Hi, On 16/06/16 21:04, Renlin Li wrote:
/* Now we define the strings used to build the spec file. */ -#define UNKNOWN_ELF_STARTFILE_SPEC " crti%O%s crtbegin%O%s crt0%O%s" +#define UNKNOWN_ELF_STARTFILE_SPEC \ + "crti%O%s \ + %{!shared:crtbegin%O%s} %{shared:crtbeginS%O%s} \ + crt0%O%s"
Some targets seems to use shared|pie. When you change it, shouldn't it also include for pie?
Thanks, Kugan