http://sourceware.org/bugzilla/show_bug.cgi?id=14201
Bug #: 14201
Summary: gas 2.19.51, Assertion failure when declaring large
array: sb_build at
/netrel/src/binutils-2.19.51-1/gas/sb.c line 62.
Product: binutils
Version: pre-2.12
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Trying to pad memory in the data section with zeros, using the following
assembly file results in a "gas" assertion. My platform is a PC, running cygwin
under Win7 64-bit (i686 target).
$ cat pad_data.s
.file "pad_data.c"
/APP
.data
.align 4
.global _pad_data
_pad_data:
.rept (0x40000*400)
.long 0
.endr
Below is my "as" command line as well as output:
$ as -o pad_data.o pad_data.s
pad_data.s: Assembler messages:
pad_data.s:9: Internal error!
Assertion failure in sb_build at /netrel/src/binutils-2.19.51-1/gas/sb.c line
62.
Please report this bug.
One would expect that if the "rept" directive value is too large that "as"
would fail with an error instead of the assertion failure.
Note that using much smaller sizes in the "rept" directive works without error.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils