projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d3aaa7
)
* elfcode.h (write_relocs): Handle an absolute symbol in REL
author
Ian Lance Taylor
<ian@airs.com>
Sat, 11 Sep 1999 20:14:57 +0000
(20:14 +0000)
committer
Ian Lance Taylor
<ian@airs.com>
Sat, 11 Sep 1999 20:14:57 +0000
(20:14 +0000)
relocs as we do for RELA relocs.
bfd/ChangeLog
patch
|
blob
|
history
bfd/elfcode.h
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 4028e7c5026abb11e0e7ccf1e0a824e822739c41..e358175656ea3d779082ec892956bcf2ac8be035 100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,8
@@
+1999-09-11 Ian Lance Taylor <ian@zembu.com>
+
+ * elfcode.h (write_relocs): Handle an absolute symbol in REL
+ relocs as we do for RELA relocs.
+
1999-09-11 Donn Terry <donn@interix.com>
* cofflink.c (coff_link_add_symbols): Don't warn about symbol type
diff --git
a/bfd/elfcode.h
b/bfd/elfcode.h
index adbafd84ff7bf117514e6bbf0061323493f02303..d98c07a5b22293d662ea4cb2a25d1f279c95c92a 100644
(file)
--- 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;