mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
.toc is too large on relocatable linking.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2004-08-09 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
|
||||||
|
.toc is too large on relocatable linking.
|
||||||
|
|
||||||
2004-08-09 Alan Modra <amodra@bigpond.net.au>
|
2004-08-09 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* emultempl/ppc64elf.em (ppc_after_open): Delete.
|
* emultempl/ppc64elf.em (ppc_after_open): Delete.
|
||||||
|
@ -352,6 +352,14 @@ gld${EMULATION_NAME}_finish (void)
|
|||||||
if (need_laying_out)
|
if (need_laying_out)
|
||||||
ppc_layout_sections_again ();
|
ppc_layout_sections_again ();
|
||||||
|
|
||||||
|
if (link_info.relocatable)
|
||||||
|
{
|
||||||
|
asection *toc = bfd_get_section_by_name (output_bfd, ".toc");
|
||||||
|
if (toc != NULL
|
||||||
|
&& bfd_section_size (output_bfd, toc) > 0x10000)
|
||||||
|
einfo ("%X%P: TOC section size exceeds 64k\n");
|
||||||
|
}
|
||||||
|
|
||||||
if (stub_added)
|
if (stub_added)
|
||||||
{
|
{
|
||||||
char *msg = NULL;
|
char *msg = NULL;
|
||||||
|
Reference in New Issue
Block a user