tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] tcc incompatible with nested parenthesis in ld scripts


From: Daniel P. Stasinski
Subject: [Tinycc-devel] tcc incompatible with nested parenthesis in ld scripts
Date: Thu, 4 Aug 2005 20:28:59 -0700

The problem I mentioned yesterday comes from tcc not being able to
parse nested () in ld scripts.

The new version of /usr/lib/libc.so looks like this:

/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED (
/lib/ld-linux.so.2 ) )

The old version looks like this:

/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )

"AS_NEEDED" is a new feature since binutils 2.16.

Daniel
-- 
| ---------------------------------------------------------------
| Daniel P. Stasinski         | http://www.saidsimple.com
| address@hidden          | http://www.disabilities-r-us.com
| --------------------------- | http://oneweek.org
| --------------------------- | http://www.scriptkitties.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]