bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/14124] New: Linking fails with 'address of section '.tbss' moves


From: yotamrubin at gmail dot com
Subject: [Bug ld/14124] New: Linking fails with 'address of section '.tbss' moves backward from 0xc008 to 0xc000'
Date: Sat, 19 May 2012 12:42:40 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=14124

             Bug #: 14124
           Summary: Linking fails with 'address of section '.tbss' moves
                    backward from 0xc008 to 0xc000'
           Product: binutils
           Version: 2.20
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


Created attachment 6414
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6414
demo.o

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

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.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]