aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2003-10-08 12:40:26 +0000
committerHans-Peter Nilsson <hp@axis.com>2003-10-08 12:40:26 +0000
commit6a33aff473fa59850c8b688b9594d019145afd25 (patch)
tree9d90ccf5a288421a5d3af132602885a7564e120c
parentb8fe28d49f7b55af2f9a4adc6d5993a7ad7d8406 (diff)
downloadgdb-6a33aff473fa59850c8b688b9594d019145afd25.zip
gdb-6a33aff473fa59850c8b688b9594d019145afd25.tar.gz
gdb-6a33aff473fa59850c8b688b9594d019145afd25.tar.bz2
* ldexp.c (fold_name) <case DEFINED>: Set section of result to
abs_output_section.
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldexp.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index fb616b9..28c6218 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-08 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * ldexp.c (fold_name) <case DEFINED>: Set section of result to
+ abs_output_section.
+
2003-10-07 Bob Wilson <bob.wilson@acm.org>
* emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS,
diff --git a/ld/ldexp.c b/ld/ldexp.c
index ce57790..cce0cdf 100644
--- a/ld/ldexp.c
+++ b/ld/ldexp.c
@@ -497,7 +497,7 @@ fold_name (etree_type *tree,
&& (h->type == bfd_link_hash_defined
|| h->type == bfd_link_hash_defweak
|| h->type == bfd_link_hash_common));
- result.section = 0;
+ result.section = abs_output_section;
result.valid_p = TRUE;
}
break;