[uClibc]binutils 2.14.90.0.2 and ADD_GCC_FUNCTIONS=y not working
Peter S. Mazinger
ps.m at gmx.net
Wed Jun 4 21:59:45 UTC 2003
Hello!
_GLOBAL_OFFSET_TABLE_ is missing if ADD_GCC_FUNCTIONS=y
The problem is in the script get-needed-libgcc-objects.sh, because the
output of nm --undefined-only looks so:
U _GLOBAL_OFFSET_TABLE_
U main
having 9 spaces before U, so the check "^..." won't work for main and
_GLOBAL_OFFSET_TABLE_. With binutils 2.13.2.1 the output is like the
script expects it.
If "-P" switch (portability) would be added to nm, then with 2.13.2.1
nothing changes, the output with my version becomes
_GLOBAL_OFFSET_TABLE_ U
main U
with 9 spaces after U.
I do not have other undefined entries, so I do not know which approach
should be the correct one to support newer binutils too.
I removed "^" from grep -v, so it works for me.
The tests were made with uClibc-20030604's libc.a and crt?.o.
binutils is the rawhide version from redhat.
Peter
--
Peter S. Mazinger <ps.m at gmx.net> ID: 0xA5F059F2 NIC: IXUYHSKQLI
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
More information about the uClibc
mailing list