diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-01-12 12:22:47 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-01-12 12:22:47 +0100 |
commit | 0400f928335a5e04c788e1c831d8825d42612c49 (patch) | |
tree | 0aab9292ac5e9b919d7140ed2c56f4063c6ece7d /Makerules | |
parent | 87d583c6e8cd0e49f64da76636ebeec033298b4d (diff) | |
download | glibc-0400f928335a5e04c788e1c831d8825d42612c49.zip glibc-0400f928335a5e04c788e1c831d8825d42612c49.tar.gz glibc-0400f928335a5e04c788e1c831d8825d42612c49.tar.bz2 |
Makerules: Do not require startup files for format.lds probe object
During statically linked bootstrap, the compiler does not have
the required startup files, so do a smaller dummy link to obtain
the output format information.
Fixes commit 87d583c6e8cd0e49f64da76636ebeec033298b4d ("install:
Replace scripts/output-format.sed with objdump -f [BZ #26559]").
Diffstat (limited to 'Makerules')
-rw-r--r-- | Makerules | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1067,9 +1067,8 @@ install: $(inst_slibdir)/libc.so$(libc.so-version) # used by a link for a different format on a multi-architecture system. $(common-objpfx)format.lds: $(common-objpfx)config.make \ $(common-objpfx)config.h $(..)Makerules - $(LINK.o) -shared $(sysdep-LDFLAGS) $(rtld-LDFLAGS) \ - $(LDFLAGS.so) $(LDFLAGS-lib.so) \ - -x c /dev/null -o $@.so 2>/dev/null + $(LINK.o) -shared -nostdlib -nostartfiles \ + -x assembler /dev/null -o $@.so $(OBJDUMP) -f $@.so | sed -n 's/.*file format \(.*\)/OUTPUT_FORMAT(\1)/;T;p' > $@ rm -f $@.so common-generated += format.lds |