mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 06:40:09 +00:00
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.
(cherry picked from commit ecd0747df3
)
This commit is contained in:
parent
8a1adb5939
commit
dca8b177f6
@ -1,3 +1,11 @@
|
|||||||
|
2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
[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.
|
||||||
|
|
||||||
2017-08-30 Florian Weimer <fweimer@redhat.com>
|
2017-08-30 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
* malloc/dynarray_emplace_enlarge.c
|
* malloc/dynarray_emplace_enlarge.c
|
||||||
|
@ -686,14 +686,17 @@ $(build-module-helper) -o $@ $(shlib-lds-flags) \
|
|||||||
$(call after-link,$@)
|
$(call after-link,$@)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# sofini.os must be placed last since it terminates .eh_frame section.
|
||||||
build-module-helper-objlist = \
|
build-module-helper-objlist = \
|
||||||
$(patsubst %_pic.a,$(whole-archive) %_pic.a $(no-whole-archive),\
|
$(patsubst %_pic.a,$(whole-archive) %_pic.a $(no-whole-archive),\
|
||||||
$(filter-out %.lds $(map-file) $(+preinit) $(+postinit) \
|
$(filter-out %.lds $(map-file) $(+preinit) $(+postinit) \
|
||||||
|
$(elf-objpfx)sofini.os \
|
||||||
$(link-libc-deps),$^))
|
$(link-libc-deps),$^))
|
||||||
|
|
||||||
build-module-objlist = $(build-module-helper-objlist) $(LDLIBS-$(@F:%.so=%).so)
|
build-module-objlist = $(build-module-helper-objlist) $(LDLIBS-$(@F:%.so=%).so)
|
||||||
build-shlib-objlist = $(build-module-helper-objlist) \
|
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.
|
# Don't try to use -lc when making libc.so itself.
|
||||||
# Also omits crti.o and crtn.o, which we do not want
|
# Also omits crti.o and crtn.o, which we do not want
|
||||||
|
Loading…
Reference in New Issue
Block a user