diff options
author | Ian Lance Taylor <ian@airs.com> | 2010-01-07 21:09:31 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2010-01-07 21:09:31 +0000 |
commit | 3a44184e641a1a7f6791b65fed802492032d8492 (patch) | |
tree | 5025d8c7aa99dc8b416e78f4cf046771e937c76d /gold/layout.h | |
parent | 71a72a84624232e06f41b605ac5a3e277f28a0dc (diff) | |
download | fsf-binutils-gdb-3a44184e641a1a7f6791b65fed802492032d8492.zip fsf-binutils-gdb-3a44184e641a1a7f6791b65fed802492032d8492.tar.gz fsf-binutils-gdb-3a44184e641a1a7f6791b65fed802492032d8492.tar.bz2 |
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.
Diffstat (limited to 'gold/layout.h')
-rw-r--r-- | gold/layout.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gold/layout.h b/gold/layout.h index 0b16cdf..15e7548 100644 --- a/gold/layout.h +++ b/gold/layout.h @@ -51,6 +51,7 @@ class Output_segment_headers; class Output_file_header; class Output_segment; class Output_data; +class Output_data_reloc_generic; class Output_data_dynamic; class Output_symtab_xindex; class Output_reduced_debug_abbrev_section; @@ -561,7 +562,8 @@ class Layout void add_target_dynamic_tags(bool use_rel, const Output_data* plt_got, const Output_data* plt_rel, - const Output_data* dyn_rel, bool add_debug); + const Output_data_reloc_generic* dyn_rel, + bool add_debug); // Compute and write out the build ID if needed. void |