aboutsummaryrefslogtreecommitdiff
path: root/ld/ldexp.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-04-19 01:00:45 +0000
committerSteve Chamberlain <steve@cygnus>1991-04-19 01:00:45 +0000
commitb0f368691e0c9f8badd0ad3b430c56ed37072abc (patch)
treeb7047bcb3a850179f4fec18cf663c45c6c23cc96 /ld/ldexp.c
parent1d45ccb383e222bc6a38ad03275735babe2d4595 (diff)
downloadgdb-b0f368691e0c9f8badd0ad3b430c56ed37072abc.zip
gdb-b0f368691e0c9f8badd0ad3b430c56ed37072abc.tar.gz
gdb-b0f368691e0c9f8badd0ad3b430c56ed37072abc.tar.bz2
Fixed a bug where wild scripts stopped working.
Fixed another bug in -R symbol handling
Diffstat (limited to 'ld/ldexp.c')
-rw-r--r--ld/ldexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldexp.c b/ld/ldexp.c
index a85c79e..e243060 100644
--- a/ld/ldexp.c
+++ b/ld/ldexp.c
@@ -322,8 +322,8 @@ bfd_vma dot;
if (sdef->the_bfd->usrdata &&
((lang_input_statement_type*)(sdef->the_bfd->usrdata))->just_syms_flag == true)
{
- result = new_abs(sdef->value + sdef->section ?
- sdef->section->vma : 0);
+ result = new_abs(sdef->value + (sdef->section ?
+ sdef->section->vma : 0));
}
else {
result = new_rel(sdef->value, os);