aboutsummaryrefslogtreecommitdiff
path: root/ld/ldexp.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-10-01 08:15:42 +0000
committerAlan Modra <amodra@gmail.com>2010-10-01 08:15:42 +0000
commitabf4be64df114dbca199fc2c2fbf52fa17492649 (patch)
tree9b3869563a3f3201d06ec1d3681448c8f57212fd /ld/ldexp.c
parent0629d0af5a963d9bf2eafe458dc01f40eb597615 (diff)
downloadgdb-abf4be64df114dbca199fc2c2fbf52fa17492649.zip
gdb-abf4be64df114dbca199fc2c2fbf52fa17492649.tar.gz
gdb-abf4be64df114dbca199fc2c2fbf52fa17492649.tar.bz2
PR ld/12066
* ldexp.c (fold_name): Treat absolute symbols as plain numbers. * ld.texinfo (Expression Section): Don't say absolute symbols are addresses.
Diffstat (limited to 'ld/ldexp.c')
-rw-r--r--ld/ldexp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/ldexp.c b/ld/ldexp.c
index 0549f19..de7f9f2 100644
--- a/ld/ldexp.c
+++ b/ld/ldexp.c
@@ -553,6 +553,8 @@ fold_name (etree_type *tree)
" referenced in expression\n"),
tree->name.name);
}
+ else if (output_section == bfd_abs_section_ptr)
+ new_number (h->u.def.value + h->u.def.section->output_offset);
else
new_rel (h->u.def.value + h->u.def.section->output_offset,
output_section);