bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/20552] New: Binutils: bad relocation with arm cortex-M too


From: romain.naour at gmail dot com
Subject: [Bug binutils/20552] New: Binutils: bad relocation with arm cortex-M toolchains.
Date: Sun, 04 Sep 2016 14:08:02 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=20552

            Bug ID: 20552
           Summary: Binutils: bad relocation with arm cortex-M toolchains.
           Product: binutils
           Version: 2.25
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: romain.naour at gmail dot com
  Target Milestone: ---

Hi,

Binutils (2.25.1 and 2.26.1) fail to build on arm Cortex-M4 architecture due to
-Os optimization [1].

libtool: link:
/home/buildroot/autobuild/run/instance-3/output/host/usr/bin/arm-linux-gcc -w
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os
-Wl,-elf2flt -static -static-libstdc++ -static-libgcc -Wl,-elf2flt -static -o
strings strings.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a
../libiberty/libiberty.a -lintl -lz -lm
ERROR: reloc type R_ARM_THM_MOVW_ABS_NC unsupported in this context
ERROR: reloc type R_ARM_THM_MOVT_ABS unsupported in this context
2 bad relocscollect2: error: ld returned 1 exit status

Using O1, O2 or O3 allow to build Binutils correctly.

Best regards,
Romain Naour

[1]
http://autobuild.buildroot.net/results/e72/e727e6e9cf361acc786acec192a88f5f5444a2f6/build-end.log

-- 
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]