From 36959681867a70c8f48055ffb22b6f037596b762 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 24 Mar 2009 00:31:29 +0000 Subject: 2009-03-23 Ian Lance Taylor * 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. --- gold/configure | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gold/configure') diff --git a/gold/configure b/gold/configure index 5f2782a..2b49c2e 100755 --- a/gold/configure +++ b/gold/configure @@ -2030,6 +2030,7 @@ all_targets= default_machine= default_size= default_big_endian= +default_osabi=ELFOSABI_NONE targ_32_little= targ_32_big= targ_64_little= @@ -2078,6 +2079,7 @@ echo "$as_me: error: \"unsupported target $targ\"" >&2;} default_machine=$targ_machine default_size=$targ_size default_big_endian=$targ_big_endian + default_osabi=$targ_osabi fi fi fi @@ -2135,6 +2137,11 @@ cat >>confdefs.h <<_ACEOF _ACEOF +cat >>confdefs.h <<_ACEOF +#define GOLD_DEFAULT_OSABI $default_osabi +_ACEOF + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -- cgit v1.1