This is the mail archive of the libc-alpha@sources.redhat.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]
Other format: [Raw text]

Re: link_warning fix


Bruno Haible <bruno@clisp.org> writes:

|> Hi,
|> 
|> While cross-compiling glibc-2.2.5 for target=cris-linux using gcc-3.1 and
|> binutils-2.12.90.0.7, I get an error
|> 
|> cris-linux-gcc ../sysdeps/unix/sysv/linux/sigstack.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g      -I../include -I. -I/backup/cross-build/build-glibc-cris/signal -I.. -I../libio  -I/backup/cross-build/build-glibc-cris -I../sysdeps/cris/elf -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/cris -I../sysdeps/unix/sysv/linux/cris -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/cris -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic  -nostdinc -isystem /cross/cris-linux-tools/lib/gcc-lib/cris-linux/3.1/include -isystem /cross/cris-linux/include -D_LIBC_REENTRANT -include ../include/lib
 c-symbols.h     -o /backup/cross-build/build-glibc-cris/signal/sigstack.o
|> /tmp/cca7qZyI.s: Assembler messages:
|> /tmp/cca7qZyI.s:87: Warning: rest of line ignored; first ignored character is `,'
|> /tmp/cca7qZyI.s:87: Error: Unknown opcode: `progbits'
|> make[2]: *** [/backup/cross-build/build-glibc-cris/signal/sigstack.o] Fehler 1
|> 
|> 
|> The reason is that the .s file contains the following.
|> 
|> ...
|> 	.size	sigstack,.Lfe1-sigstack
|> #APP
|> 	.section .gnu.warning.sigstack
|> 	.previous
|> #NO_APP
|> 	.section	.gnu.warning.sigstack
|> 	#,"a",@progbits
|> 	.align 2
|> 	.type	__evoke_link_warning_sigstack,@object
|> ...
|> 
|> and comments (introduced by '#') are recognized by the assembler only after
|> #APP, not after #NO_APP. The workaround is to add '#APP' to the fake section
|> name. The following patch works for me.

IMHO it would be much easier to just remove the TAB before #.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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