2009-03-23 Ian Lance Taylor <iant@google.com>
authorIan Lance Taylor <ian@airs.com>
Tue, 24 Mar 2009 00:31:29 +0000 (00:31 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 24 Mar 2009 00:31:29 +0000 (00:31 +0000)
commit36959681867a70c8f48055ffb22b6f037596b762
tree46b20dfcf1d79a1ac3f5e12d2e03a0cde21e912e
parentd739bf00691a4e5a8c002dc7eb5d49bb4ad95d24
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.
14 files changed:
gold/ChangeLog
gold/Makefile.am
gold/Makefile.in
gold/config.in
gold/configure
gold/configure.ac
gold/configure.tgt
gold/freebsd.h [new file with mode: 0644]
gold/i386.cc
gold/output.cc
gold/parameters.cc
gold/target-select.h
gold/target.h
gold/x86_64.cc