From: Doug Evans Date: Fri, 12 Jun 1998 19:49:54 +0000 (+0000) Subject: * config/tc-dvp.c (create_vuoverlay_section): Don't set a non-zero X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79259a91a311a8137260d96a3699e3a2d97390c8;p=binutils-gdb.git * config/tc-dvp.c (create_vuoverlay_section): Don't set a non-zero section vma. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 16e1a7a66da..ba0d95ccb28 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +start-sanitize-sky +Fri Jun 12 12:46:57 1998 Doug Evans + + * config/tc-dvp.c (create_vuoverlay_section): Don't set a non-zero + section vma. + +end-sanitize-sky 1998-06-12 Vladimir N. Makarov * config/tc-d10v.c (md_apply_fix3): Checking displacement in diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c index fddf0eefa40..adbbdb5c95f 100644 --- a/gas/config/tc-dvp.c +++ b/gas/config/tc-dvp.c @@ -1591,6 +1591,10 @@ dvp_frob_file () We are responsible for updating sym->bsym->value. */ S_SET_SEGMENT (p->sym, p->sec); /* Adjust for the section's vma. */ + /* FIXME: bfd doesn't get this right, it adds the section vma + back in (in elf.c:swap_out_syms). As a workaround the + section vma is assumed to be zero. Of course, there might + not be a point in setting it to non-zero anyway. */ p->sym->bsym->value -= bfd_get_section_vma (stdoutput, p->sec); } } @@ -2332,8 +2336,11 @@ create_vuoverlay_section (section_name, addr, start_label, end_label) /* There's no point in setting the section vma as we can't get the linker to preserve it. But what the heck ... It might be useful to the objdump user. */ +#if 0 /* FIXME: bfd's elf.c:swap_out_syms always emits symbol values with + the section vma added in so we can't do this. */ if (addr->sy_value.X_op == O_constant) bfd_set_section_vma (stdoutput, vuoverlay_section, S_GET_VALUE (addr)); +#endif /* The size of the section won't be known until we see the .endmpg, but we can compute it from the start and end labels. */ /* FIXME: This causes the section to occupy space in the file. */