aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1999-09-13 05:51:32 +0000
committerJeff Law <law@redhat.com>1999-09-13 05:51:32 +0000
commit228d307f1b71e33adc55664d547cee569e54f5b8 (patch)
tree474dddf19312b27e634184cf4c821e917185306c /bfd
parent795a77040c7cb25c4592be7fbe3e7b21780ae55d (diff)
downloadgdb-228d307f1b71e33adc55664d547cee569e54f5b8.zip
gdb-228d307f1b71e33adc55664d547cee569e54f5b8.tar.gz
gdb-228d307f1b71e33adc55664d547cee569e54f5b8.tar.bz2
* elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32.
Stub SEGREL32. Return an error for any relocation not handled.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf-hppa.h21
2 files changed, 17 insertions, 9 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ead122e..da9d2e8 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Sun Sep 12 23:47:58 1999 Jeffrey A Law (law@cygnus.com)
+
+ * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32.
+ Stub SEGREL32. Return an error for any relocation not handled.
+
1999-09-12 Ian Lance Taylor <ian@zembu.com>
* cofflink.c (coff_link_add_symbols): Look for special MSVC string
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index dfc754e..f629bbc 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -791,7 +791,7 @@ elf_hppa_remark_useless_dynamic_symbols (h, data)
libraries contain reerences to undefined symbols.
So we twiddle the flags associated with such symbols so that they
- will not trigger the warning. ?!? FIXME. This is horribly fraglie.
+ will not trigger the warning. ?!? FIXME. This is horribly fragile.
Ultimately we should have better controls over the generic ELF BFD
linker code. */
@@ -1530,16 +1530,19 @@ elf_hppa_final_link_relocate (rel, input_bfd, output_bfd,
return bfd_reloc_ok;
}
+ case R_PARISC_SECREL32:
+ bfd_put_32 (input_bfd,
+ (value + addend
+ - sym_sec->output_section->vma),
+ hit_data);
+ return bfd_reloc_ok;
+
+ case R_PARISC_SEGREL32:
+ return bfd_reloc_ok;
+
/* Something we don't know how to handle. */
default:
- /* ?!? This is temporary as we flesh out basic linker support, once
- the basic support is functional we will return the not_supported
- error conditional appropriately. */
-#if 0
- return bfd_reloc_not_supported;
-#else
- return bfd_reloc_ok;
-#endif
+ return bfd_reloc_notsupported;
}
/* Update the instruction word. */