Skip to contentSkip to conversation

current cvs broken on ppc

Qemu-devel Jens Axboe 1 participant 1 message May 27, 2003

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

Hi,

./dyngen -o op-i386.h op-i386.o
dyngen: could not find .sdata section
make: *** [op-i386.h] Error 1

objdump of io-i386.o reveals that there is no .sdata, .data is there though. I can see that dyngen looks for sdata only on ppc.

Another problem is what appears to be a misplace #endif in main.c, causing __init_array_start[] to be undefined at the final link of qemu.

Index: main.c
===================================================================
RCS file: /cvsroot/qemu/qemu/main.c,v
retrieving revision 1.27

main.c +1 -2
diff -u -r1.27 main.c
@@ -38,6 +38,7 @@
 /* Force usage of an ELF interpreter even if it is an ELF shared
    object ! */
 const char interp[] __attribute__((section(".interp"))) = "/lib/ld-linux.so.2";
+#endif
 
 /* for recent libc, we add these dummies symbol which are not declared
    when generating a linked object (bug in ld ?) */
@@ -46,8 +47,6 @@
 long __init_array_end[0];
 long __fini_array_start[0];
 long __fini_array_end[0];
-#endif
-
 #endif
 
 /* XXX: on x86 MAP_GROWSDOWN only works if ESP <= address + 32, so
Signature · 1 line
Jens Axboe