aboutsummaryrefslogtreecommitdiff
path: root/gold/x86_64.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-06-28 22:25:14 +0000
committerIan Lance Taylor <ian@airs.com>2011-06-28 22:25:14 +0000
commit200b2bb9e8930d9d47fa5f378cf595328ee9c9bc (patch)
tree57dd95b99e99a1306e2503f90771d01f1e71d518 /gold/x86_64.cc
parentb3ce541e970466431bf6abfa8ad58424a1d1a7ec (diff)
downloadbinutils-200b2bb9e8930d9d47fa5f378cf595328ee9c9bc.zip
binutils-200b2bb9e8930d9d47fa5f378cf595328ee9c9bc.tar.gz
binutils-200b2bb9e8930d9d47fa5f378cf595328ee9c9bc.tar.bz2
* target.h (class Target): Add osabi_ field.
(Target::osabi): New function. (Target::set_osabi): New function. (Target::Target): Initialize osabi_. (Target::do_adjust_elf_header): Make pure virtual. (Sized_target::do_adjust_elf_header): Declare. * target.cc (Sized_target::do_adjust_elf_header): New function. (class Sized_target): Instantiate all versions. * freebsd.h (class Target_freebsd): Remove. (Target_selector_freebsd::do_recognize): Call set_osabi on Target. (Target_selector_freebsd::do_recognize_by_name): Likewise. (Target_selector_freebsd::set_osabi): Remove. * i386.cc (class Target_i386): Inherit from Sized_target rather than Target_freebsd. * x86_64.cc (class Target_x86_64): Likewise.
Diffstat (limited to 'gold/x86_64.cc')
-rw-r--r--gold/x86_64.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/x86_64.cc b/gold/x86_64.cc
index a6e9ddd..6d04dc7 100644
--- a/gold/x86_64.cc
+++ b/gold/x86_64.cc
@@ -201,7 +201,7 @@ class Output_data_plt_x86_64 : public Output_section_data
// http://people.redhat.com/drepper/tls.pdf
// http://www.lsd.ic.unicamp.br/~oliva/writeups/TLS/RFC-TLSDESC-x86.txt
-class Target_x86_64 : public Target_freebsd<64, false>
+class Target_x86_64 : public Sized_target<64, false>
{
public:
// In the x86_64 ABI (p 68), it says "The AMD64 ABI architectures
@@ -209,7 +209,7 @@ class Target_x86_64 : public Target_freebsd<64, false>
typedef Output_data_reloc<elfcpp::SHT_RELA, true, 64, false> Reloc_section;
Target_x86_64()
- : Target_freebsd<64, false>(&x86_64_info),
+ : Sized_target<64, false>(&x86_64_info),
got_(NULL), plt_(NULL), got_plt_(NULL), got_tlsdesc_(NULL),
global_offset_table_(NULL), rela_dyn_(NULL),
copy_relocs_(elfcpp::R_X86_64_COPY), dynbss_(NULL),