This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A patch for PIC default


hjl@lucon.org (H.J. Lu) writes:

> Glibc assumes PIC means for shared libraries. It is not always correct.

Right.  PIC means shared lib, and most probably (unless I miss
something) always shared lib (unless when used in assembler code).

But this shouldn't be a problem.  On systems where static code is not
compiled the same way as PIC the distinction is what we want.  Again,
this is only for assembler code and versioning stuff.

For systems which use the same code (e.g., MIPS) there is no need to
compile any file using PIC except it depends on this symbol for
generating versioning information.  There will not be assembler code
depending on this symbol.  And for the versioning information case I
suggested to provide a way to generate the .os files which then would
get the -DPIC on the commandline.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]