ld: address of section '.tbss' moves backward from 0xc008 to 0xc000

View: New views
1 Messages — Rating Filter:   Alert me  

ld: address of section '.tbss' moves backward from 0xc008 to 0xc000

by Yotam Rubin-2 :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

ld version: GNU gold (GNU Binutils 2.20.51.20100303) 1.9, comes with Android ICS for linking ARM executables.

Invocation args: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-g++ -nostdlib -Bdynamic -Wl,-T,out/target/product/maguro/obj/EXECUTABLES/trace_demo_intermediates/LINKED/trace_demo.lds -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -o out/target/product/maguro/obj/EXECUTABLES/trace_demo_intermediates/LINKED/trace_demo -Lout/target/product/maguro/obj/lib -Wl,-rpath-link=out/target/product/maguro/obj/lib -lc -lstdc++ -lm out/target/product/maguro/obj/lib/crtbegin_dynamic.o out/target/product/maguro/obj/EXECUTABLES/trace_demo_intermediates/demo.o out/target/product/maguro/obj/STATIC_LIBRARIES/libtrace_user_intermediates/libtrace_user.a -Wl,-z,noexecstack -Wl,--icf=safe -Wl,--fix-cortex-a8 -Wl,--no-undefined prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/armv7-a/libgcc.a out/target/product/maguro/obj/lib/crtend_android.o

Output:
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: error: address of section '.tbss' moves backward from 0xc008 to 0xc000
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: error: address of section '.tbss' moves backward from 0xc008 to 0xc000

I've attached the linker script (trace_demo.ld) as well as demo.o, the object file causing the issues.
The source code in question applies __attribute__((section)) for certain structures and uses thread local storage (current_nesting_level).

The same code compiles and links on x86.

Regards,
   Yotam





_______________________________________________
bug-binutils mailing list
bug-binutils@...
https://lists.gnu.org/mailman/listinfo/bug-binutils

demo.o (50K) Download Attachment
trace_demo.lds (11K) Download Attachment