gold patch committed: Generate DT_RELCOUNT/DT_RELACOUNT
Ian Lance Taylor
iant@google.com
Thu Jan 7 21:10:00 GMT 2010
PR 11061 notes that gold does not generate DT_RELCOUNT/DT_RELACOUNT
dynamic tags. I committed this patch to fix that.
Ian
2010-01-07 Ian Lance Taylor <iant@google.com>
PR 11061
* output.h (class Output_reloc) [SHT_RELA]: Add is_relative
function.
(class Output_data_reloc_generic): Define.
(class Output_data_reloc_base): Change base class to
Output_data_reloc_generic. Change add() method to call
bump_relative_reloc_count for a relative reloc. Remove
sort_relocs_ field.
* output.cc (Output_data_reloc_base::do_write): Change sort_reloc_
to sort_relocs().
* layout.cc (Layout::add_target_dynamic_tags): Change dyn_rel to
Output_data_reloc_generic*. Add DT_RELCOUNT/DT_RELACOUNT tag if
appropriate.
* layout.h (class Layout): Update declaration.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 5829 bytes
Desc: DT_RELCOUNT
URL: <https://sourceware.org/pipermail/binutils/attachments/20100107/6e6b4ce9/attachment.bin>
More information about the Binutils
mailing list