aboutsummaryrefslogtreecommitdiff
path: root/bfd/aout.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/aout.c
parenta5c6b4b3b58effba6d4a89c71bf32c8daca005c6 (diff)
downloadgdb-d0ec7a8ee45ad23107d26161b3499d33b99922a6.zip
gdb-d0ec7a8ee45ad23107d26161b3499d33b99922a6.tar.gz
gdb-d0ec7a8ee45ad23107d26161b3499d33b99922a6.tar.bz2
Various portability lints.
Fixed reloc bug in ieee and oasys.
Diffstat (limited to 'bfd/aout.c')
-rwxr-xr-xbfd/aout.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/aout.c b/bfd/aout.c
index b714bf9..35f2d4f 100755
--- a/bfd/aout.c
+++ b/bfd/aout.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)) {