diff options
author | Alan Modra <amodra@gmail.com> | 2021-08-28 14:23:33 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-09-18 08:20:11 +0930 |
commit | 973b2b402ebf660e2bbbac60e85469164d76ecfc (patch) | |
tree | 5c483374372e3cde206bc403bf3095e379567e6c /gdb/p-lang.c | |
parent | 912697efc15768894c13a9370a2fcaa950f24558 (diff) | |
download | binutils-973b2b402ebf660e2bbbac60e85469164d76ecfc.zip binutils-973b2b402ebf660e2bbbac60e85469164d76ecfc.tar.gz binutils-973b2b402ebf660e2bbbac60e85469164d76ecfc.tar.bz2 |
[GOLD] Remove addend from Local_got_entry_key
This patch removes the addend from Local_got_entry_key, which is
unnecessary now that Got_offset_list has an addend. Note that it
might be advantageous to keep the addend in Local_got_entry_key when
linking objects containing a large number of section_sym+addend@got
relocations. I opted to save some memory by removing the field but
left the class there in case we might need to restore {sym,addend}
lookup. That's also why this change is split out from the
Got_offset_list change.
PR 28192
* object.h (Local_got_entry_key): Delete addend_ field.
Adjust constructor and methods to suit.
* object.cc (Sized_relobj::do_for_all_local_got_entries):
Update key.
Diffstat (limited to 'gdb/p-lang.c')
0 files changed, 0 insertions, 0 deletions