Disable shared libgcc use for profiled builds. GNU linker pulls symbols
out of libgcc_s.so.1 somehow and fails to record DT_NEEED dependency when linking with profiled libraries despite --ld-as-needed option.
This commit is contained in:
parent
10faa56870
commit
7a6bf861d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170077
@ -1635,7 +1635,8 @@ init_gcc_specs (struct obstack *obstack, const char *shared_name,
|
||||
{
|
||||
char *buf;
|
||||
|
||||
buf = concat ("%{static|static-libgcc:", static_name, " ", eh_name, "}"
|
||||
buf = concat ("%{pg:", static_name, " ", eh_name, "} %{!pg:",
|
||||
"%{static|static-libgcc|pg:", static_name, " ", eh_name, "}"
|
||||
"%{!static:%{!static-libgcc:"
|
||||
#if USE_LD_AS_NEEDED
|
||||
"%{!shared-libgcc:",
|
||||
@ -1658,7 +1659,7 @@ init_gcc_specs (struct obstack *obstack, const char *shared_name,
|
||||
"%{shared:", shared_name, "}"
|
||||
#endif
|
||||
#endif
|
||||
"}}", NULL);
|
||||
"}}}", NULL);
|
||||
|
||||
obstack_grow (obstack, buf, strlen (buf));
|
||||
free (buf);
|
||||
|
Loading…
Reference in New Issue
Block a user