gcc-20000114 ix86 -fdata-sections
Alan Modra
alan@SPRI.Levels.UniSA.Edu.Au
Sat Jan 15 02:08:00 GMT 2000
When running the ld testsuite using gcc-20000114, I encounter an error due
to missing ".data." from a section name.
/usr/tmp/ccIanSm2.s: Assembler messages:
/usr/tmp/ccIanSm2.s:72: Fatal error: Symbol dropme2 already defined.
$ cat /usr/tmp/zzz.i
# 1 "/usr/src/binutils-current/ld/testsuite/ld-selective/1.c"
void _start() __asm__("_start");
void _start()
{
}
void dropme1()
{
}
int dropme2[102] = { 0 };
$ gcc -S -w -O2 -ffunction-sections -fdata-sections -g -O2 -W -Wall \
/usr/tmp/zzz.i -o old.s
$ /usr/tmp/egcs/gcc/xgcc -B/usr/tmp/egcs/gcc/ -S -w -O2 \
-ffunction-sections -fdata-sections -g -O2 -W -Wall \
/usr/tmp/zzz.i -o new.s
$ diff -u old.s new.s
--- old.s Sat Jan 15 20:10:58 2000
+++ new.s Sat Jan 15 20:11:21 2000
@@ -64,7 +64,7 @@
.Lscope1:
.stabs "",36,0,0,.Lscope1-dropme1
.globl dropme2
- .section .data.dropme2,"aw",@progbits
+ .section dropme2,"aw",@progbits
.stabs "dropme2:G(0,21)=ar(0,1);0;101;(0,1)",32,0,12,0
.align 32
.type dropme2,@object
@@ -75,4 +75,4 @@
.text
.stabs "",100,0,0,Letext
Letext:
- .ident "GCC: (GNU) 2.96 19991129 (experimental)"
+ .ident "GCC: (GNU) 2.96 20000114 (experimental)"
More information about the Gcc-bugs
mailing list