This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch hjl/pr22051/master created. glibc-2.26-222-g953d46e
- From: hjl at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 31 Aug 2017 11:06:48 -0000
- Subject: GNU C Library master sources branch hjl/pr22051/master created. glibc-2.26-222-g953d46e
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, hjl/pr22051/master has been created
at 953d46ebe8cf0bf24c78b7ab0306cd035d413411 (commit)
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=953d46ebe8cf0bf24c78b7ab0306cd035d413411
commit 953d46ebe8cf0bf24c78b7ab0306cd035d413411
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Aug 30 21:26:53 2017 -0700
Place $(elf-objpfx)sofini.os last [BZ #22051]
Since sofini.os terminates .eh_frame section, it should be placed last.
[BZ #22051]
* Makerules (build-module-helper-objlist): Filter out
$(elf-objpfx)sofini.os.
(build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
needed.
diff --git a/Makerules b/Makerules
index 8f1324d..bbfbefe 100644
--- a/Makerules
+++ b/Makerules
@@ -686,14 +686,17 @@ $(build-module-helper) -o $@ $(shlib-lds-flags) \
$(call after-link,$@)
endef
+# sofini.os must be placed last since it terminates .eh_frame section.
build-module-helper-objlist = \
$(patsubst %_pic.a,$(whole-archive) %_pic.a $(no-whole-archive),\
$(filter-out %.lds $(map-file) $(+preinit) $(+postinit) \
+ $(elf-objpfx)sofini.os \
$(link-libc-deps),$^))
build-module-objlist = $(build-module-helper-objlist) $(LDLIBS-$(@F:%.so=%).so)
build-shlib-objlist = $(build-module-helper-objlist) \
- $(LDLIBS-$(@F:lib%.so=%).so)
+ $(LDLIBS-$(@F:lib%.so=%).so) \
+ $(filter $(elf-objpfx)sofini.os,$^)
# Don't try to use -lc when making libc.so itself.
# Also omits crti.o and crtn.o, which we do not want
-----------------------------------------------------------------------
hooks/post-receive
--
GNU C Library master sources