https://sourceware.org/bugzilla/show_bug.cgi?id=31115
Bug ID: 31115 Summary: [ARM] The minimalistic DWARF DIE for function has wrong address in Thumb mode Product: binutils Version: 2.39 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: thiago.bauermann at linaro dot org Target Milestone: --- Commit 591cc9fbbfd6 ("gas/Dwarf: record functions") introduced minimalistic DWARF symbols for functions which have their size specified. Unfortunately in Arm Thumb mode the minimalistic symbol has the LSB bit set. This is indeed the convention for ELF symbols to denote a function using Thumb instructions but isn't used for DWARF symbols, where DW_AT_low_pc should contain the actual function address. This causes a failure in GDB testcase gdb.arch/pr25124.exp: (gdb) x /i main+8 0x10521 <main+7>: vrhadd.u16 d14, d14, d31 (gdb) FAIL: gdb.arch/pr25124.exp: disassemble thumb instruction (1st try) Whereas when using a gas version not affected by the bug: (gdb) x /i main+8 0x10520 <main+8>: bx lr (gdb) PASS: gdb.arch/pr25124.exp: disassemble thumb instruction (1st try) -- You are receiving this mail because: You are on the CC list for the bug.