diff options
Diffstat (limited to 'arch/powerpc/boot/wrapper')
-rwxr-xr-x | arch/powerpc/boot/wrapper | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper index 024e4d425c59..157d8c89e138 100755 --- a/arch/powerpc/boot/wrapper +++ b/arch/powerpc/boot/wrapper | |||
@@ -191,7 +191,7 @@ fi | |||
191 | 191 | ||
192 | if [ "$platform" != "miboot" ]; then | 192 | if [ "$platform" != "miboot" ]; then |
193 | ${CROSS}ld -m elf32ppc -T $lds -o "$ofile" \ | 193 | ${CROSS}ld -m elf32ppc -T $lds -o "$ofile" \ |
194 | $object/crt0.o $platformo $tmp $object/wrapper.a | 194 | $platformo $tmp $object/wrapper.a |
195 | rm $tmp | 195 | rm $tmp |
196 | fi | 196 | fi |
197 | 197 | ||
@@ -201,7 +201,9 @@ pseries|chrp) | |||
201 | $object/addnote "$ofile" | 201 | $object/addnote "$ofile" |
202 | ;; | 202 | ;; |
203 | pmaccoff) | 203 | pmaccoff) |
204 | ${CROSS}objcopy -O aixcoff-rs6000 --set-start 0x500000 "$ofile" | 204 | entry=`objdump -f "$ofile" | grep '^start address ' | \ |
205 | cut -d' ' -f3` | ||
206 | ${CROSS}objcopy -O aixcoff-rs6000 --set-start "$entry" "$ofile" | ||
205 | $object/hack-coff "$ofile" | 207 | $object/hack-coff "$ofile" |
206 | ;; | 208 | ;; |
207 | esac | 209 | esac |