diff options
author | Stan Shebs <stanshebs@google.com> | 2018-02-14 09:15:44 -0800 |
---|---|---|
committer | Stan Shebs <stanshebs@google.com> | 2018-02-14 09:15:44 -0800 |
commit | 6302c3ccf839007f8632964e99a3e5d038a5e9e2 (patch) | |
tree | b30fae8bcad7e11ae65d829ebeebdeea9cfe47ea /elf/Makefile | |
parent | fdb03f97368f55bf3948f5a16f948e079eacca3a (diff) | |
download | glibc-6302c3ccf839007f8632964e99a3e5d038a5e9e2.zip glibc-6302c3ccf839007f8632964e99a3e5d038a5e9e2.tar.gz glibc-6302c3ccf839007f8632964e99a3e5d038a5e9e2.tar.bz2 |
Add a --with-lld option to choose LLVMs lld linker
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile index e460587..6aefe50 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -444,9 +444,10 @@ $(objpfx)librtld.map: $(objpfx)dl-allobjs.os $(common-objpfx)libc_pic.a rm -f $@.o mv -f $@T $@ +# For lld, add to regexp below for optional address and size to be at front of line. $(objpfx)librtld.mk: $(objpfx)librtld.map Makefile LC_ALL=C \ - sed -n 's@^$(common-objpfx)\([^(]*\)(\([^)]*\.os\)) *.*$$@\1 \2@p' \ + sed -n 's@^[0-9a-f ]*$(common-objpfx)\([^(]*\)(\([^)]*\.os\)) *.*$$@\1 \2@p' \ $< | \ while read lib file; do \ case $$lib in \ |