This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: glibc-2.3.2 nonportable .section declaration for empty sections
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Ralph Siemsen <ralphs at netwinder dot org>
- Cc: libc-alpha at sources dot redhat dot com, rmk at arm dot linux dot org dot uk
- Date: Wed, 23 Apr 2003 11:24:58 -0400
- Subject: Re: glibc-2.3.2 nonportable .section declaration for empty sections
- References: <20030423111927.B30583@kei.netwinder.org>
On Wed, Apr 23, 2003 at 11:19:27AM -0400, Ralph Siemsen wrote:
> 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.
Probably it wouldn't; gas always accepts %.
Alternatively, I believe ASM_TYPE_DIRECTIVE_PREFIX (when defined) is
also a valid prefix for nobits. I've been using a patch to that
effect. Sorry, I'm a little behind on pushing all my glibc patches
out; swamped...
FYI there are at least a few other ARM problems in glibc 2.3.2. I
don't know if they were fixed before or after your snapshot.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer