aboutsummaryrefslogtreecommitdiff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2018-02-14 09:15:44 -0800
committerStan Shebs <stanshebs@google.com>2018-02-14 09:15:44 -0800
commit6302c3ccf839007f8632964e99a3e5d038a5e9e2 (patch)
treeb30fae8bcad7e11ae65d829ebeebdeea9cfe47ea /elf/Makefile
parentfdb03f97368f55bf3948f5a16f948e079eacca3a (diff)
downloadglibc-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/Makefile3
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 \