mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
Support mcount/gprof test with GCC defaulting to PIE
The mcount/gprof test should be linked with gcrt1.o, not Scrt1.o. * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override the startup object.
This commit is contained in:
parent
bb6274ee12
commit
34d6a3cbf2
@ -1,3 +1,8 @@
|
||||
2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
|
||||
the startup object.
|
||||
|
||||
2017-08-17 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* include/sys/socket.h (__opensock): Remove internal_function.
|
||||
|
@ -409,7 +409,7 @@ ifndef +link-pie
|
||||
+link-pie-before-libc = $(CC) -pie -Wl,-O1 -nostdlib -nostartfiles -o $@ \
|
||||
$(sysdep-LDFLAGS) $(LDFLAGS) $(LDFLAGS-$(@F)) \
|
||||
$(combreloc-LDFLAGS) $(relro-LDFLAGS) $(hashstyle-LDFLAGS) \
|
||||
$(addprefix $(csu-objpfx),S$(start-installed-name)) \
|
||||
$(firstword $(CRT-$(@F)) $(csu-objpfx)S$(start-installed-name)) \
|
||||
$(+preinit) $(+prectorS) \
|
||||
$(filter-out $(addprefix $(csu-objpfx),start.o \
|
||||
S$(start-installed-name))\
|
||||
|
Loading…
Reference in New Issue
Block a user