glibc-2.3.2 nonportable .section declaration for empty sections
Ralph Siemsen
ralphs@netwinder.org
Wed Apr 23 15:19:00 GMT 2003
There is a problem building glibc-2.3.2 on platforms such as arm which
use the @ symbol as a comment character. According to the info pages
for gas, in such cases the @ symbol is to be replaced with %. However,
glibc fails to do so in include/libc-symbols.h:
# define libc_freeres_ptr(decl) \
__make_section_unallocated ("__libc_freeres_ptrs, \"aw\", @nobits") \
This leads to bad .section directives being generated all over the
glibc tree, and the assembler subsequently complains:
/tmp/ccHfHquJ.s: Assembler messages:
/tmp/ccHfHquJ.s:10: Warning: rest of line ignored; first ignored
character is `,'
/tmp/ccHfHquJ.s:12: Warning: rest of line ignored; first ignored
character is `,'
This problem is present in CVS HEAD as well. Changing the @nobits to
%nobits solves the problem, although I suspect this would break the
built on other architectures.
Additional details...
glibc-2.3.2-27.9 (CVS 2003-04-02 04:32 from RedHat9 SRPMS).
gcc version 3.2.2 20030313
GNU assembler 2.13.90.0.18 20030206
Platform: armv4l (Corel/Rebel NetWinder)
I'm new to glibc/toolchain hacking and am not subscribed to this list,
please CC any replies.
--
Ralph Siemsen
www.netwinder.org
More information about the Libc-alpha
mailing list