diff options
author | Fangrui Song <maskray@google.com> | 2021-01-11 11:56:54 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2021-01-11 12:03:36 -0800 |
commit | 87d583c6e8cd0e49f64da76636ebeec033298b4d (patch) | |
tree | 0db4d141573b5454d054767ac407e32e7e6bfc9c /configure.ac | |
parent | bf7db6d369d7366ffe3ebcf3c2810139b0195517 (diff) | |
download | glibc-87d583c6e8cd0e49f64da76636ebeec033298b4d.tar glibc-87d583c6e8cd0e49f64da76636ebeec033298b4d.tar.gz glibc-87d583c6e8cd0e49f64da76636ebeec033298b4d.tar.bz2 glibc-87d583c6e8cd0e49f64da76636ebeec033298b4d.zip |
install: Replace scripts/output-format.sed with objdump -f [BZ #26559]
GNU ld and gold have supported --print-output-format since 2011. glibc
requires binutils>=2.25 (2015), so if LD is GNU ld or gold, we can
assume the option is supported.
lld is by default a cross linker supporting multiple targets. It auto
detects the file format and does not need OUTPUT_FORMAT. It does not
support --print-output-format.
By parsing objdump -f, we can support all the three linkers.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac index 43cfac9d48..341d4eeac2 100644 --- a/configure.ac +++ b/configure.ac @@ -1429,17 +1429,6 @@ fi rm -f conftest*]) AC_SUBST(libc_cv_has_glob_dat) -AC_CACHE_CHECK(linker output format, libc_cv_output_format, [dnl -if libc_cv_output_format=` -${CC-cc} -nostartfiles -nostdlib $no_ssp -Wl,--print-output-format 2>&AS_MESSAGE_LOG_FD` -then - : -else - libc_cv_output_format= -fi -test -n "$libc_cv_output_format" || libc_cv_output_format=unknown]) -AC_SUBST(libc_cv_output_format) - AC_CACHE_CHECK(for -fno-toplevel-reorder -fno-section-anchors, libc_cv_fno_toplevel_reorder, [dnl cat > conftest.c <<EOF int foo; |