mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
register section vma to a sane value after emitting error. Make fatal conditions cause program exit when emitting message.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
|
||||||
|
|
||||||
|
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
|
||||||
|
register section vma to a sane value after emitting error. Make
|
||||||
|
fatal conditions cause program exit when emitting message.
|
||||||
|
|
||||||
2002-02-08 Ivan Guzvinec <ivang@opencores.org>
|
2002-02-08 Ivan Guzvinec <ivang@opencores.org>
|
||||||
|
|
||||||
* configure.tgt: Add or32-*-rtems target.
|
* configure.tgt: Add or32-*-rtems target.
|
||||||
|
@ -67,10 +67,16 @@ mmix_after_allocation ()
|
|||||||
|
|
||||||
regvma = 256 * 8 - sec->_raw_size - 8;
|
regvma = 256 * 8 - sec->_raw_size - 8;
|
||||||
|
|
||||||
/* If we start on a local register, we have too many global registers. */
|
/* If we start on a local register, we have too many global registers.
|
||||||
|
We treat this error as nonfatal (meaning processing will continue in
|
||||||
|
search for other errors), because it's a link error in the same way
|
||||||
|
as an undefined symbol. */
|
||||||
if (regvma < 32 * 8)
|
if (regvma < 32 * 8)
|
||||||
einfo ("%X%P: Too many global registers: %u, max 223\n",
|
{
|
||||||
(unsigned) sec->_raw_size / 8);
|
einfo ("%X%P: Too many global registers: %u, max 223\n",
|
||||||
|
(unsigned) sec->_raw_size / 8);
|
||||||
|
regvma = 32 * 8;
|
||||||
|
}
|
||||||
|
|
||||||
/* Set vma to correspond to first such register number * 8. */
|
/* Set vma to correspond to first such register number * 8. */
|
||||||
bfd_set_section_vma (output_bfd, sec, (bfd_vma) regvma);
|
bfd_set_section_vma (output_bfd, sec, (bfd_vma) regvma);
|
||||||
@ -80,9 +86,9 @@ mmix_after_allocation ()
|
|||||||
if (sec->_cooked_size == 0
|
if (sec->_cooked_size == 0
|
||||||
&& ! bfd_set_section_size (output_bfd, sec, sec->_raw_size))
|
&& ! bfd_set_section_size (output_bfd, sec, sec->_raw_size))
|
||||||
{
|
{
|
||||||
einfo ("%X%P: Can't set section %s size to %u\n",
|
/* This is a fatal error; make the einfo call not return. */
|
||||||
|
einfo ("%F%P: Can't set section %s size to %u\n",
|
||||||
MMIX_REG_CONTENTS_SECTION_NAME, (unsigned) sec->_raw_size);
|
MMIX_REG_CONTENTS_SECTION_NAME, (unsigned) sec->_raw_size);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Simplify symbol output for the register section (without contents;
|
/* Simplify symbol output for the register section (without contents;
|
||||||
@ -94,9 +100,8 @@ mmix_after_allocation ()
|
|||||||
|
|
||||||
if (!_bfd_mmix_finalize_linker_allocated_gregs (output_bfd, &link_info))
|
if (!_bfd_mmix_finalize_linker_allocated_gregs (output_bfd, &link_info))
|
||||||
{
|
{
|
||||||
einfo ("%X%P: Can't finalize linker-allocated global registers\n");
|
/* This is a fatal error; make einfo call not return. */
|
||||||
/* In case stuff is added after this conditional. */
|
einfo ("%F%P: Can't finalize linker-allocated global registers\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
Reference in New Issue
Block a user