[0/6] Change how symbol section indices are set

Message ID 20230118153025.342512-1-tromey@adacore.com
Headers
Series Change how symbol section indices are set |

Message

Tom Tromey Jan. 18, 2023, 3:30 p.m. UTC
  An otherwise innocuous internal AdaCore test case started failing when
linked with 'mold'.  Investigation revealed that the problem was
actually in gdb -- gdb decided that a certain symbol was in the
.interp section.

Digging deeper, I found that most calls to fixup_symbol_section are
incorrect, and that if a section is chosen, it's frequently the wrong
one.

This series attempts to clean up this area.  Regression tested on
x86-64 Fedora 36.

Tom
  

Comments

Tom Tromey Feb. 8, 2023, 4:28 p.m. UTC | #1
>>>>> "Tom" == Tom Tromey via Gdb-patches <gdb-patches@sourceware.org> writes:

Tom> An otherwise innocuous internal AdaCore test case started failing when
Tom> linked with 'mold'.  Investigation revealed that the problem was
Tom> actually in gdb -- gdb decided that a certain symbol was in the
Tom> .interp section.

Tom> Digging deeper, I found that most calls to fixup_symbol_section are
Tom> incorrect, and that if a section is chosen, it's frequently the wrong
Tom> one.

Tom> This series attempts to clean up this area.  Regression tested on
Tom> x86-64 Fedora 36.

I'm checking this in now.

Tom