[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ld: address of section '.tbss' moves backward from 0xc008 to 0xc000
From: |
Yotam Rubin |
Subject: |
ld: address of section '.tbss' moves backward from 0xc008 to 0xc000 |
Date: |
Thu, 17 May 2012 18:00:18 +0300 |
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
demo.o
Description: application/object
trace_demo.lds
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ld: address of section '.tbss' moves backward from 0xc008 to 0xc000,
Yotam Rubin <=