summaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-11 20:14:57 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-11 20:14:57 +0000
commitee0a15b270e1d3c2f9b367492f7f06709459911e (patch)
tree8e27ac90290b49bd7229bb06e55ac6b3b41a99a4 /bfd/elfcode.h
parent5fec578ce206a5c3acca9cdbe87f9364dad990c7 (diff)
downloadgdb-ee0a15b270e1d3c2f9b367492f7f06709459911e.tar.gz
* elfcode.h (write_relocs): Handle an absolute symbol in REL
relocs as we do for RELA relocs.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index adbafd84ff7..d98c07a5b22 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -857,6 +857,8 @@ write_relocs (abfd, sec, data)
if (sym == last_sym)
n = last_sym_idx;
+ else if (bfd_is_abs_section (sym->section) && sym->value == 0)
+ n = STN_UNDEF;
else
{
last_sym = sym;