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

Issue 7715030: Fix dynamic library linking. (Closed)

Created:
9 years, 4 months ago by khim
Modified:
9 years, 4 months ago
CC:
native-client-reviews_googlegroups.com, Mark Seaborn
Base URL:
http://git.chromium.org/native_client/nacl-glibc.git@master
Visibility:
Public.

Description

Fix dynamic library linking. Align the BSS to a 64k page boundary in order to work around the issue NaCl's mmap() has with zero filling. More discussion can be found here: http://code.google.com/p/nativeclient/issues/detail?id=1068 BUG=http://code.google.com/p/nativeclient/issues/detail?id=2184 TEST=see bug #2184 R=pasko@google.com Committed: http://git.chromium.org/gitweb?p=native_client/nacl-glibc.git;a=commit;h=3e75d2e

Patch Set 1 #

Total comments: 6

Patch Set 2 : Comment added #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -5 lines) Patch
M elf/Makefile View 1 1 chunk +9 lines, -1 line 0 comments Download
M nacl/dyn-link/ldscripts/elf64_nacl.xs View 3 chunks +15 lines, -2 lines 0 comments Download
M nacl/dyn-link/ldscripts/elf_nacl.xs View 3 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
khim
9 years, 4 months ago (2011-08-24 15:25:47 UTC) #1
Brad Chen
Q: will this fix some of the failing browser tests? On Wed, Aug 24, 2011 ...
9 years, 4 months ago (2011-08-24 15:28:51 UTC) #2
pasko-google - do not use
On Wed, Aug 24, 2011 at 7:28 PM, Brad Chen <bradchen@google.com> wrote: > Q: will ...
9 years, 4 months ago (2011-08-24 15:35:33 UTC) #3
pasko-google - do not use
LGTM with some concerns that you are free to resolve at your will http://codereview.chromium.org/7715030/diff/1/elf/Makefile File ...
9 years, 4 months ago (2011-08-24 16:38:14 UTC) #4
khim
9 years, 4 months ago (2011-08-24 17:03:07 UTC) #5
http://codereview.chromium.org/7715030/diff/1/elf/Makefile
File elf/Makefile (right):

http://codereview.chromium.org/7715030/diff/1/elf/Makefile#newcode308
elf/Makefile:308: $(LINK.o) -nostdlib -nostartfiles -shared
$(z-now-$(bind-now))	\
On 2011/08/24 16:38:14, pasko wrote:
> would be nice to leave a comment above this line:
> # NaCl loader refuses to run ld.so with more than 3 loadable segments.  Remove
> the bss segment.

Done.

http://codereview.chromium.org/7715030/diff/1/elf/Makefile#newcode315
elf/Makefile:315: -e 's/\. = DATA_SEGMENT_END (\.);//' -e 's/} :seg_bss/}/' \
On 2011/08/24 16:38:14, pasko wrote:
> please, wrap the 2-nd -e here to the next line, would be more readable

Done.

http://codereview.chromium.org/7715030/diff/1/nacl/dyn-link/ldscripts/elf64_n...
File nacl/dyn-link/ldscripts/elf64_nacl.xs (right):

http://codereview.chromium.org/7715030/diff/1/nacl/dyn-link/ldscripts/elf64_n...
nacl/dyn-link/ldscripts/elf64_nacl.xs:178: . = ALIGN (CONSTANT
(COMMONPAGESIZE));
On 2011/08/24 16:38:14, pasko wrote:
> please, take a look it it did not significantly increasthe overall size of
library files on disk, when files are not sparse

It adds few kilobytes to file with debug info (but these are large anyway),
after strip size is the same.

Powered by Google App Engine
This is Rietveld 408576698