diff options
author | Alan Modra <amodra@gmail.com> | 2007-02-26 08:58:16 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-02-26 08:58:16 +0000 |
commit | 45d3b878abeec9aba15bde906804909c480fbb6f (patch) | |
tree | 5495ada8b691a9d71890c8080fae678f0caee051 /ld/emultempl | |
parent | 56b60c14ab85dadc5eef8af7dcbd5132b69b67eb (diff) | |
download | gdb-45d3b878abeec9aba15bde906804909c480fbb6f.zip gdb-45d3b878abeec9aba15bde906804909c480fbb6f.tar.gz gdb-45d3b878abeec9aba15bde906804909c480fbb6f.tar.bz2 |
* emultempl/spuelf.em (_binary_builtin_ovl_mgr_start): Rename
to _binary_spu_ovl_o_start.
(_binary_builtin_ovl_mgr_end): Rename to _binary_spu_ovl_o_end.
(spu_elf_load_ovl_mgr): Fatal error on missing overlay manager.
* emultempl/spu_inc.s: Rename symbols.
* emultempl/spu_none.s: New file.
* emultempl/spu_ovl.S: Update copyright.
* Makefile.am (spu_inc.o): Try building with ld -r first, then
gas incbin, then build without overlay manager.
* Makefile.in: Regenerate.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/spu_inc.s | 8 | ||||
-rw-r--r-- | ld/emultempl/spu_none.s | 6 | ||||
-rw-r--r-- | ld/emultempl/spu_ovl.S | 2 | ||||
-rw-r--r-- | ld/emultempl/spuelf.em | 10 |
4 files changed, 17 insertions, 9 deletions
diff --git a/ld/emultempl/spu_inc.s b/ld/emultempl/spu_inc.s index 243bd10..29a076c 100644 --- a/ld/emultempl/spu_inc.s +++ b/ld/emultempl/spu_inc.s @@ -1,7 +1,7 @@ .text - .globl _binary_builtin_ovl_mgr_start - .globl _binary_builtin_ovl_mgr_end + .globl _binary_spu_ovl_o_start + .globl _binary_spu_ovl_o_end -_binary_builtin_ovl_mgr_start: +_binary_spu_ovl_o_start: .incbin "spu_ovl.o" -_binary_builtin_ovl_mgr_end: +_binary_spu_ovl_o_end: diff --git a/ld/emultempl/spu_none.s b/ld/emultempl/spu_none.s new file mode 100644 index 0000000..f0d2318 --- /dev/null +++ b/ld/emultempl/spu_none.s @@ -0,0 +1,6 @@ + .text + .globl _binary_spu_ovl_o_start + .globl _binary_spu_ovl_o_end + +_binary_spu_ovl_o_start: +_binary_spu_ovl_o_end: diff --git a/ld/emultempl/spu_ovl.S b/ld/emultempl/spu_ovl.S index 3af4fd8..53d82a4 100644 --- a/ld/emultempl/spu_ovl.S +++ b/ld/emultempl/spu_ovl.S @@ -1,6 +1,6 @@ /* Overlay manager for SPU. - Copyright 2006 Free Software Foundation, Inc. + Copyright 2006, 2007 Free Software Foundation, Inc. This file is part of GLD, the Gnu Linker. diff --git a/ld/emultempl/spuelf.em b/ld/emultempl/spuelf.em index de6a914..95b1cb2 100644 --- a/ld/emultempl/spuelf.em +++ b/ld/emultempl/spuelf.em @@ -38,12 +38,12 @@ static int emit_stub_syms = 0; static bfd_vma local_store_lo = 0; static bfd_vma local_store_hi = 0x3ffff; -extern void *_binary_builtin_ovl_mgr_start; -extern void *_binary_builtin_ovl_mgr_end; +extern void *_binary_spu_ovl_o_start; +extern void *_binary_spu_ovl_o_end; static const struct _ovl_stream ovl_mgr_stream = { - &_binary_builtin_ovl_mgr_start, - &_binary_builtin_ovl_mgr_end + &_binary_spu_ovl_o_start, + &_binary_spu_ovl_o_end }; static asection *toe = NULL; @@ -118,6 +118,8 @@ spu_elf_load_ovl_mgr (void) { /* User supplied __ovly_load. */ } + else if (ovl_mgr_stream.start == ovl_mgr_stream.end) + einfo ("%F%P: no built-in overlay manager\n"); else { lang_input_statement_type *ovl_is; |