aboutsummaryrefslogtreecommitdiff
path: root/bfd/sunos.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-05-08 19:21:48 +0000
committerSteve Chamberlain <steve@cygnus>1991-05-08 19:21:48 +0000
commitd0ec7a8ee45ad23107d26161b3499d33b99922a6 (patch)
tree297883f2c1184ec84635db108472d0587c46576d /bfd/sunos.c
parenta5c6b4b3b58effba6d4a89c71bf32c8daca005c6 (diff)
downloadfsf-binutils-gdb-d0ec7a8ee45ad23107d26161b3499d33b99922a6.zip
fsf-binutils-gdb-d0ec7a8ee45ad23107d26161b3499d33b99922a6.tar.gz
fsf-binutils-gdb-d0ec7a8ee45ad23107d26161b3499d33b99922a6.tar.bz2
Various portability lints.
Fixed reloc bug in ieee and oasys.
Diffstat (limited to 'bfd/sunos.c')
-rw-r--r--bfd/sunos.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/sunos.c b/bfd/sunos.c
index b714bf9..35f2d4f 100644
--- a/bfd/sunos.c
+++ b/bfd/sunos.c
@@ -1273,7 +1273,9 @@ swap_std_reloc_out (abfd, g, natptr)
else {
r_extern = 0;
if (g->section == NULL) {
- BFD_ASSERT(0);
+ /* It is possible to have a reloc with nothing, we generate an
+ abs + 0 */
+ r_addend = 0;
r_index = N_ABS | N_EXT;
}
else if(g->section->output_section == obj_textsec(abfd)) {