diff options
Diffstat (limited to 'gas/configure.ac')
-rw-r--r-- | gas/configure.ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gas/configure.ac b/gas/configure.ac index 377526e..8f71825 100644 --- a/gas/configure.ac +++ b/gas/configure.ac @@ -88,6 +88,17 @@ AC_ARG_ENABLE(x86_relax_relocations, no) ac_default_x86_relax_relocations=0 ;; esac])dnl +# Decide if ELF assembler should generate common symbols with the +# STT_COMMON type. +ac_default_elf_stt_common=unset +# Provide a configure time option to override our default. +AC_ARG_ENABLE(elf_stt_common, + AS_HELP_STRING([--enable-elf-stt-common], + [generate ELF common symbols with STT_COMMON type by default]), +[case "${enableval}" in + yes) ac_default_elf_stt_common=1 ;; +esac])dnl + using_cgen=no AM_BINUTILS_WARNINGS @@ -578,6 +589,14 @@ AC_DEFINE_UNQUOTED(DEFAULT_GENERATE_X86_RELAX_RELOCATIONS, $ac_default_x86_relax_relocations, [Define to 1 if you want to generate x86 relax relocations by default.]) +if test ${ac_default_elf_stt_common} = unset; then + ac_default_elf_stt_common=0 +fi +AC_DEFINE_UNQUOTED(DEFAULT_GENERATE_ELF_STT_COMMON, + $ac_default_elf_stt_common, + [Define to 1 if you want to generate ELF common symbols with the + STT_COMMON type by default.]) + if test x$ac_default_compressed_debug_sections = xyes ; then AC_DEFINE(DEFAULT_FLAG_COMPRESS_DEBUG, 1, [Define if you want compressed debug sections by default.]) fi |