about summary refs log tree commit diff
path: root/config.make.in
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2021-01-11 11:56:54 -0800
committerFangrui Song <maskray@google.com>2021-11-15 13:16:26 -0800
commit903a6c6d5a68b80d99fbf587475f0f56f6b09dc5 (patch)
tree3933ed06260078c17f5f49c1b837df316b3e612d /config.make.in
parentb0d12dcb635744a4fa0ebd13b6e5743d67da1046 (diff)
downloadglibc-903a6c6d5a68b80d99fbf587475f0f56f6b09dc5.tar.gz
glibc-903a6c6d5a68b80d99fbf587475f0f56f6b09dc5.tar.xz
glibc-903a6c6d5a68b80d99fbf587475f0f56f6b09dc5.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>
(cherry picked from commit 87d583c6e8cd0e49f64da76636ebeec033298b4d)
Diffstat (limited to 'config.make.in')
-rw-r--r--config.make.in1
1 files changed, 0 insertions, 1 deletions
diff --git a/config.make.in b/config.make.in
index 58f56c3038..d967eaa0f7 100644
--- a/config.make.in
+++ b/config.make.in
@@ -72,7 +72,6 @@ fno-unit-at-a-time = @fno_unit_at_a_time@
 bind-now = @bindnow@
 have-hash-style = @libc_cv_hashstyle@
 use-default-link = @use_default_link@
-output-format = @libc_cv_output_format@
 have-cxx-thread_local = @libc_cv_cxx_thread_local@
 have-loop-to-function = @libc_cv_cc_loop_to_function@