This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch hjl/pie/gprof created. glibc-2.26-113-gf19721b
- From: hjl at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 16 Aug 2017 21:18:04 -0000
- Subject: GNU C Library master sources branch hjl/pie/gprof created. glibc-2.26-113-gf19721b
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/pie/gprof has been created
at f19721b98346b9493f3ecb5cd41527e102c7fedf (commit)
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=f19721b98346b9493f3ecb5cd41527e102c7fedf
commit f19721b98346b9493f3ecb5cd41527e102c7fedf
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Aug 16 14:15:43 2017 -0700
Support -pg with GCC defaulting to PIE
-pg and -pie are mutually exclusive since they need different crt1.o,
gcrrt1.o vs Scrt1.o. Make -pg overrdies -pie.
* Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
the startup object.
diff --git a/Makeconfig b/Makeconfig
index 5f24691..b51904b 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -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))\
-----------------------------------------------------------------------
hooks/post-receive
--
GNU C Library master sources