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

Issue 6995084: Restore simple LIB_SPEC using just -lc (Closed)

Created:
9 years, 6 months ago by Roland McGrath
Modified:
9 years, 6 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
http://git.chromium.org/native_client/nacl-gcc.git@master
Visibility:
Public.

Description

Restore simple LIB_SPEC using just -lc The compiler configuration is not the place to encode internal details of the libc implementation. When the libc implementation wants the default link to include multiple constituent libraries, it can do that by providing a linker script for libc.so or libc.a and let the compiler just use -lc as it has always done. This follows a change to the nacl newlib build to provide a libc.a linker script. Future changes to the libc implementation internals will not require any gcc change. This also removes the truly evil magical treatment of -lnosys as a special command line option. It's just a library like any other. BUG=cleanup TEST=local builds still link the same using newlib's new libc.a linker script R=khim@google.com,pasko@google.com,eaeltsin@google.com Committed: http://git.chromium.org/gitweb?p=native_client/nacl-gcc.git;a=commit;h=818dbb2

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -11 lines) Patch
M gcc/config/i386/nacl.h View 1 chunk +2 lines, -7 lines 0 comments Download
M gcc/gcc.c View 1 chunk +1 line, -4 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
Roland McGrath
9 years, 6 months ago (2011-06-08 18:01:31 UTC) #1
khim
One nit. http://codereview.chromium.org/6995084/diff/1/gcc/gcc.c File gcc/gcc.c (left): http://codereview.chromium.org/6995084/diff/1/gcc/gcc.c#oldcode6809 gcc/gcc.c:6809: if (strcmp(input_filename, "-lnosys") == 0) If you ...
9 years, 6 months ago (2011-06-08 19:32:29 UTC) #2
khimg
BTW even if the libnosys.a will be a script complex cases will fail. I mean ...
9 years, 6 months ago (2011-06-08 19:36:50 UTC) #3
Roland McGrath
The -lnosys magic handling was too clever by half. The libraries that go into newlib's ...
9 years, 6 months ago (2011-06-08 19:48:50 UTC) #4
robertm
BTW: We recently went through the exercise of eliminating those functions from pnacl's newlib branch. ...
9 years, 6 months ago (2011-06-08 20:45:03 UTC) #5
khimg
On Wed, Jun 8, 2011 at 11:48 PM, <mcgrathr@chromium.org> wrote: > The -lnosys magic handling ...
9 years, 6 months ago (2011-06-08 21:15:44 UTC) #6
Use chromium.org instead
On Wed, Jun 8, 2011 at 2:15 PM, Victor Khimenko <khim@google.com> wrote: > And move ...
9 years, 6 months ago (2011-06-08 21:32:58 UTC) #7
khimg
On Thu, Jun 9, 2011 at 1:32 AM, Roland McGrath <mcgrathr@google.com> wrote: > On Wed, ...
9 years, 6 months ago (2011-06-09 14:10:41 UTC) #8
eaeltsin
9 years, 6 months ago (2011-06-09 14:29:28 UTC) #9
Victor's answer above is in fact LGTM :-)

Powered by Google App Engine
This is Rietveld 408576698