* emultempl/spuelf.em (embedded_spu_file): Test for NULL path
before calling base_name, not after.
This commit is contained in:
parent
521ec47731
commit
80c4ed32bc
@ -1,3 +1,8 @@
|
|||||||
|
2007-07-12 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* emultempl/spuelf.em (embedded_spu_file): Test for NULL path
|
||||||
|
before calling base_name, not after.
|
||||||
|
|
||||||
2007-07-10 Alan Modra <amodra@bigpond.net.au>
|
2007-07-10 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* scripttempl/elf.sc (DISCARDED): Renamed from STACKNOTE. Add
|
* scripttempl/elf.sc (DISCARDED): Renamed from STACKNOTE. Add
|
||||||
|
@ -345,11 +345,11 @@ embedded_spu_file (lang_input_statement_type *entry, const char *flags)
|
|||||||
for (search = (lang_input_statement_type *) input_file_chain.head;
|
for (search = (lang_input_statement_type *) input_file_chain.head;
|
||||||
search != NULL;
|
search != NULL;
|
||||||
search = (lang_input_statement_type *) search->next_real_file)
|
search = (lang_input_statement_type *) search->next_real_file)
|
||||||
|
if (search->filename != NULL)
|
||||||
{
|
{
|
||||||
const char *infile = base_name (search->filename);
|
const char *infile = base_name (search->filename);
|
||||||
|
|
||||||
if (infile != NULL
|
if (strncmp (infile, "crtbegin", 8) == 0)
|
||||||
&& strncmp (infile, "crtbegin", 8) == 0)
|
|
||||||
{
|
{
|
||||||
if (infile[8] == 'S')
|
if (infile[8] == 'S')
|
||||||
flags = concat (flags, " -fPIC", NULL);
|
flags = concat (flags, " -fPIC", NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user