From 3ba20bde7e5976625515b62ba462f7bf2dbf8b23 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 29 May 2007 13:10:10 +0000 Subject: binutils/ * embedspu.sh: Emit SPU ELF image to .data.rel.ro.speelf if pic or pie and image needs relocs. ld/ * emultempl/spuelf.em (base_name): New function, split out from.. (embedded_spu_file) ..here. Pass -fPIC or -fpie to embedspu invocation if we deduce a shared lib or position independent executable build by looking at ctrbegin* linker input files. --- binutils/embedspu.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'binutils/embedspu.sh') diff --git a/binutils/embedspu.sh b/binutils/embedspu.sh index 7a321589d1b..49776b00d76 100644 --- a/binutils/embedspu.sh +++ b/binutils/embedspu.sh @@ -146,11 +146,6 @@ main () # 5. Write a table of _SPUEAR_ symbols. ${CC} ${FLAGS} -x assembler-with-cpp -nostartfiles -nostdlib \ -Wa,-mbig -Wl,-r -Wl,-x -o ${OUTFILE} - <