Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Issue 332015: This change allows compilation with... (Closed)

Created:
11 years, 2 months ago by Markus (顧孟勤)
Modified:
9 years, 7 months ago
CC:
native-client-reviews_googlegroups.com, Michael Moss
Visibility:
Public.

Description

This change allows compilation with "GYP_DEFINES: target_arch=x64 library=shared_library release_extra_cflags=-fPIC"

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M src/trusted/service_runtime/arch/x86_64/nacl_syscall.S View 1 2 3 chunks +14 lines, -0 lines 2 comments Download
M src/trusted/service_runtime/arch/x86_64/service_runtime_x86_64.gyp View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Markus (顧孟勤)
This change makes the code compile in -fPIC mode, but I have no idea if ...
11 years, 2 months ago (2009-10-23 20:55:53 UTC) #1
spotrh
Doesn't resolve the issue for me, I still get: /usr/bin/ld: /mnt/chromium/rpmbuild/BUILD/chromium-20091216svn34775/src/sconsbuild/Release/lib/libservice_runtime_x86_64.a(nacl_syscall.o): relocation R_X86_64_32S against `nacl_user' ...
11 years ago (2009-12-17 19:54:56 UTC) #2
Markus (顧孟勤)
Can you please dump the disassembly output and the relocation information and see what code ...
11 years ago (2009-12-17 20:42:59 UTC) #3
spotrh
Okay. Lemme know if I did this wrong. [spot@f10.x86-64 obj]$ objdump -Dr ./service_runtime_x86_64/service_runtime_x86_64/nacl_syscall.o ./service_runtime_x86_64/service_runtime_x86_64/nacl_syscall.o: file ...
11 years ago (2009-12-18 06:18:06 UTC) #4
Markus (顧孟勤)
You either didn't apply the patch to the correct source file, or the __PIC__ preprocessor ...
11 years ago (2009-12-18 19:52:58 UTC) #5
spotrh
Okay, I forced -fPIC this time: gcc -m64 -fPIC -DNACL_BLOCK_SHIFT=5 -DNACL_BLOCK_SIZE=32 -DNACL_LINUX=1 -DNACL_OSX=0 -DNACL_WINDOWS=0 -D_BSD_SOURCE=1 ...
11 years ago (2009-12-18 21:47:09 UTC) #6
spotrh
Also, for reference, this is the patch I am applying: diff -up chromium-20091216svn34775/src/native_client/src/trusted/service_runtime/arch/x86_64/nacl_syscall.S.shared chromium-20091216svn34775/src/native_client/src/trusted/service_run$ --- ...
11 years ago (2009-12-18 21:48:10 UTC) #7
khimg
Translation looks sane to me, but one question arises: why are we using addr32 prefix ...
11 years ago (2009-12-21 10:37:38 UTC) #8
tuduce
On 2009/12/21 10:37:38, khim wrote: > Translation looks sane to me, but one question arises: ...
11 years ago (2009-12-21 10:57:19 UTC) #9
tuduce
LGTM
11 years ago (2009-12-22 07:38:59 UTC) #10
sehr (please use chromium)
On 2009/12/22 07:38:59, tuduce wrote: > LGTM Markus, We need to get Brad Nelson to ...
10 years, 11 months ago (2010-01-07 17:23:37 UTC) #11
Markus (顧孟勤)
10 years, 11 months ago (2010-01-07 17:28:00 UTC) #12
Markus (顧孟勤)
I don't know how to check out and work in the NaCl tree. If you ...
10 years, 11 months ago (2010-01-07 17:30:15 UTC) #13
Evan Martin
On 2010/01/07 17:30:15, Markus (顧孟勤) wrote: > I don't know how to check out and ...
10 years, 10 months ago (2010-02-15 13:19:57 UTC) #14
Mark Seaborn
I don't think this patch is necessary any more. The code has since been changed ...
10 years, 10 months ago (2010-02-15 14:45:49 UTC) #15
tuduce
This patch was applied by http://code.google.com/p/nativeclient/source/detail?r=1306 and latter changed as Mark described by http://code.google.com/p/nativeclient/source/detail?r=1455 So, ...
10 years, 10 months ago (2010-02-16 08:23:38 UTC) #16
Evan Martin
10 years, 10 months ago (2010-02-16 09:03:14 UTC) #17
On 2010/02/16 08:23:38, tuduce wrote:
> This patch was applied by
> http://code.google.com/p/nativeclient/source/detail?r=1306
> and latter changed as Mark described by
> http://code.google.com/p/nativeclient/source/detail?r=1455
> So, this issue can be closed.

I will close this issue.

BTW, we still get a native client error in the shared build:
 /usr/local/google/home/eisinger/chrome/bin/ld: error:
out/Debug/obj.target/native_client/src/trusted/service_runtime/arch/x86_64/libservice_runtime_x86_64.a(nacl_syscall_64.o):
unsupported reloc 23 against local symbol
collect2: ld returned 1 exit status
make: * [out/Debug/lib.target/chrome/libnacl.so] Error 1
make: * Waiting for unfinished jobs....

Do you know where I should bring this up?

Powered by Google App Engine
This is Rietveld 408576698