Bug 1896 - FAIL: .equ redefinitions (2)
Summary: FAIL: .equ redefinitions (2)
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-20 22:21 UTC by John David Anglin
Modified: 2005-11-27 19:12 UTC (History)
1 user (show)

See Also:
Host: hppa2.0w-hp-hpux11.11
Target: hppa2.0w-hp-hpux11.11
Build: hppa2.0w-hp-hpux11.11
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2005-11-20 22:21:13 UTC
/xxx/gnu/binutils-2.15.91/src/gas/testsuite/lib/run ../as-new   -o dump.o /xxx/g
nu/binutils-2.15.91/src/gas/testsuite/gas/all/redef2.s
/home/gnu/binutils-2.15.91/objdir/gas/testsuite/../../binutils/objdump  -rsj .da
ta dump.o > dump.out
extra regexps in /xxx/gnu/binutils-2.15.91/src/gas/testsuite/gas/all/redef2.d st
arting with "^RELOCATION RECORDS FOR .*$"
EOF from dump.out
FAIL: .equ redefinitions (2)

While the test currently fails because of "$DATA$" versus ".data" issues,
there appears to be a real bug present in the SOM target.  This is the
dump:

</objdir/gas/testsuite/../../binutils/objdump  -rs dump.o > dump.out
# less dump.out

dump.o:     file format som

RELOCATION RECORDS FOR [$DATA$]:
OFFSET   TYPE              VALUE
00000000 R_DATA_ONE_SYMBOL  sym
00000008 R_DATA_ONE_SYMBOL  xtrn
00000010 R_DATA_ONE_SYMBOL  sym


Contents of section $DATA$:
 0000 00000000 11111111 00000000 22222222  ............""""
 0010 00000000 00000000                    ........

The value of the first relocation should be "here" not "sym".

The redef3.s test would also fail for the same reason if the .comm portion
was removed.
Comment 1 John David Anglin 2005-11-27 19:12:10 UTC
See http://sources.redhat.com/ml/binutils/2005-11/msg00363.html.