aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-06-12 19:49:54 +0000
committerDoug Evans <dje@google.com>1998-06-12 19:49:54 +0000
commit79259a91a311a8137260d96a3699e3a2d97390c8 (patch)
treeba0d6928232baa440db5c45c4a08b43e3ba99a6e /gas
parent9b8eef07efa7a6effd51848f4e9f129b6d5bbb00 (diff)
downloadgdb-79259a91a311a8137260d96a3699e3a2d97390c8.zip
gdb-79259a91a311a8137260d96a3699e3a2d97390c8.tar.gz
gdb-79259a91a311a8137260d96a3699e3a2d97390c8.tar.bz2
* config/tc-dvp.c (create_vuoverlay_section): Don't set a non-zero
section vma.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/config/tc-dvp.c7
2 files changed, 14 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 16e1a7a..ba0d95c 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+start-sanitize-sky
+Fri Jun 12 12:46:57 1998 Doug Evans <devans@canuck.cygnus.com>
+
+ * config/tc-dvp.c (create_vuoverlay_section): Don't set a non-zero
+ section vma.
+
+end-sanitize-sky
1998-06-12 Vladimir N. Makarov <vmakarov@cygnus.com>
* 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 fddf0ee..adbbdb5 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. */