aboutsummaryrefslogtreecommitdiff
path: root/gold/target-select.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-03-24 00:31:29 +0000
committerIan Lance Taylor <ian@airs.com>2009-03-24 00:31:29 +0000
commit36959681867a70c8f48055ffb22b6f037596b762 (patch)
tree46b20dfcf1d79a1ac3f5e12d2e03a0cde21e912e /gold/target-select.h
parentd739bf00691a4e5a8c002dc7eb5d49bb4ad95d24 (diff)
downloadgdb-36959681867a70c8f48055ffb22b6f037596b762.zip
gdb-36959681867a70c8f48055ffb22b6f037596b762.tar.gz
gdb-36959681867a70c8f48055ffb22b6f037596b762.tar.bz2
2009-03-23 Ian Lance Taylor <iant@google.com>
* freebsd.h: New file. * i386.cc: Include "freebsd.h". (Target_i386): Derive from Target_freebsd rather than Sized_target. (Target_selector_i386): Derive from Target_selector_freebsd rather than Target_selector. * x86_64.cc: Include "freebsd.h". (Target_x86_64): Derive from Target_freebsd rather than Sized_target. (Target_selector_x86_64): Derive from Target_selector_freebsd rather than Target_selector. * target.h (class Target): Add adjust_elf_header and do_adjust_elf_header. * output.cc (Output_file_header:: do_sized_write): Call target adjust_elf_header routine. * configure.tgt: Set targ_osabi. * configure.ac: Define GOLD_DEFAULT_OSABI. * parameters.cc (Parameters::default_target): Pass GOLD_DEFAULT_OSABI to select_target. * target-select.h (class Target_selector): Make instantiate_target protected rather than private. * Makefile.am (HFILES): Add freebsd.h. * configure, Makefile.in, config.in: Rebuild.
Diffstat (limited to 'gold/target-select.h')
-rw-r--r--gold/target-select.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gold/target-select.h b/gold/target-select.h
index 0582e25..b0b1d92 100644
--- a/gold/target-select.h
+++ b/gold/target-select.h
@@ -106,10 +106,10 @@ class Target_selector
virtual Target*
do_instantiate_target() = 0;
- // Recognize an object file given a machine code, size, and
- // endianness. When this is called we already know that they match
- // the machine_, size_, and is_big_endian_ fields. The child class
- // may implement a different version of this to do additional
+ // Recognize an object file given a machine code, OSABI code, and
+ // ELF version value. When this is called we already know that they
+ // match the machine_, size_, and is_big_endian_ fields. The child
+ // class may implement a different version of this to do additional
// checks, or to check for multiple machine codes if the machine_
// field is EM_NONE.
virtual Target*
@@ -134,7 +134,6 @@ class Target_selector
names->push_back(this->bfd_name_);
}
- private:
// Instantiate the target and return it.
Target*
instantiate_target()
@@ -144,6 +143,7 @@ class Target_selector
return this->instantiated_target_;
}
+ private:
// ELF machine code.
const int machine_;
// Target size--32 or 64.