ldlang.c (print_assignment): Do not rely upon a valid result having a section

associated with it.
elf32-arm.c (elf32_arm_final_link_relocate): Gracefully handle the situation
  where a symbols's section is not known but a section relative R_ARM_RELATIVE
  reloc has to be generated for the Symbian OS.
This commit is contained in:
Nick Clifton 2005-05-17 14:39:18 +00:00
parent 3b83e13a45
commit 10dbd1f36f
4 changed files with 22 additions and 3 deletions

View file

@ -3219,7 +3219,10 @@ print_assignment (lang_assignment_statement_type *assignment,
if (computation_is_valid)
{
value = result.value + result.section->bfd_section->vma;
value = result.value;
if (result.section)
value += result.section->bfd_section->vma;
minfo ("0x%V", value);
if (is_dot)
@ -3233,7 +3236,10 @@ print_assignment (lang_assignment_statement_type *assignment,
FALSE, FALSE, TRUE);
if (h)
{
value = h->u.def.value + result.section->bfd_section->vma;
value = h->u.def.value;
if (result.section)
value += result.section->bfd_section->vma;
minfo ("[0x%V]", value);
}