diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-08-17 04:55:44 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-08-17 04:56:01 -0700 |
commit | 34d6a3cbf2be45aa039a7eb9f0084a4b710437b8 (patch) | |
tree | 6a4071fc15f120552dd0925b49ad8465f6405cff /Makeconfig | |
parent | bb6274ee1293a6bc76d9d7c889783303de181295 (diff) | |
download | glibc-34d6a3cbf2be45aa039a7eb9f0084a4b710437b8.zip glibc-34d6a3cbf2be45aa039a7eb9f0084a4b710437b8.tar.gz glibc-34d6a3cbf2be45aa039a7eb9f0084a4b710437b8.tar.bz2 |
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.
Diffstat (limited to 'Makeconfig')
-rw-r--r-- | Makeconfig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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))\ |