http://sourceware.org/bugzilla/show_bug.cgi?id=13867
Bug #: 13867 Summary: wrong attributes for Cortex-M3 Product: binutils Version: 2.22 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sourceware.org ReportedBy: benjamin.h...@resol.de Classification: Unclassified Cite from mailing list [1]: However, you have shown a bug in the linker's output here: toolchain-test.elf: Attribute Section: aeabi File Attributes Tag_CPU_name: "Cortex-M3" Tag_CPU_arch: v7 Tag_CPU_arch_profile: Microcontroller Tag_ARM_ISA_use: Yes Tag_THUMB_ISA_use: Thumb-2 Cortex-M3 doesn't support ARM state instructions, but the linked image does. The linker should output different attributes here (not least Tag_CPU_arch_profile should not be 'Microcontroller'). Steps to reproduce: a) input program #include <stdlib.h> int main(int argc, char **argv) { int x = atoi("123"); return x; } b) compile with arm-none-eabi-gcc -o toolchain-test.elf -Wall -nostartfiles -msoft-float -mlittle-endian -Wl,-t -mthumb -mcpu=cortex-m3 -Wl,--entry=main main.c NOTE: the used library was compiled with arm-v4t Attribute Section: aeabi File Attributes Tag_CPU_name: "ARM7TDMI" Tag_CPU_arch: v4T (this is definitive wrong, but should not affect linker attributes for linked image) c) arm-none-eabi-readelf Attribute Section: aeabi File Attributes Tag_CPU_name: "Cortex-M3" Tag_CPU_arch: v7 Tag_CPU_arch_profile: Microcontroller Tag_ARM_ISA_use: Yes Tag_THUMB_ISA_use: Thumb-2 Tag_ABI_PCS_wchar_t: 4 Tag_ABI_FP_denormal: Needed Tag_ABI_FP_exceptions: Needed Tag_ABI_FP_number_model: IEEE 754 Tag_ABI_align_needed: 8-byte Tag_ABI_align_preserved: 8-byte, except leaf SP Tag_ABI_enum_size: small Tag_ABI_optimization_goals: Aggressive Debug [1] mailing list post http://sourceware.org/ml/binutils/2012-03/msg00215.html -- 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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils