https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118715
Christophe Lyon <clyon at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|clyon at gcc dot gnu.org |unassigned at gcc dot gnu.org --- Comment #7 from Christophe Lyon <clyon at gcc dot gnu.org> --- The first time using_thumb_only is called (bfd/elf32-arm.c in binutils sources), globals->obfd points to a bfd whose filename is: "pr118715.exe.lto-pr118715.o (symbol from plugin)" (with "(symbol from plugin)" part of the filename) and it sees its Tag_CPU_arch_profile as 0. However, when using readelf to look at the attributes section in pr118715.exe.lto-pr118715.o, it does have Tag_CPU_arch_profile: Microcontroller So why does bfd_elf_get_obj_attr_int return 0? I'm not sure how the lto-plugin really works? I've noticed that pr118715.exe.lto.ltrans0.o does not have an attributes section, but when/how is it used? I don't see it on linker command line