aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-01-13 08:57:08 -0700
committerTom Tromey <tromey@adacore.com>2023-02-08 08:20:12 -0700
commitb8a6e9878141f5f1ac6c790e85257eadd51fff8f (patch)
tree8016847c255500606857c94e63a1e38db594acd2 /gdb/objfiles.c
parent3f01c12b9006227529823a07aee8a21627da63dd (diff)
downloadbinutils-b8a6e9878141f5f1ac6c790e85257eadd51fff8f.zip
binutils-b8a6e9878141f5f1ac6c790e85257eadd51fff8f.tar.gz
binutils-b8a6e9878141f5f1ac6c790e85257eadd51fff8f.tar.bz2
Set section indices when symbols are made
Most places in gdb that create a new symbol will apply a section offset to the address. It seems to me that the choice of offset here is also an implicit choice of the section. This is particularly true if you examine fixup_section, which notes that it must be called before such offsets are applied -- meaning that if any such call has an effect, it's purely by accident. This patch cleans up this area by tracking the section index and applying it to a symbol when the address is set. This is done for nearly every case -- the remaining cases will be handled in later patches.
Diffstat (limited to 'gdb/objfiles.c')
0 files changed, 0 insertions, 0 deletions