bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/20312] New: [2.24 regression] Assertion failure from an attempt


From: address@hidden
Subject: [Bug gas/20312] New: [2.24 regression] Assertion failure from an attempt to decrease text section alignment to 0 on unsuccessful assembly
Date: Tue, 28 Jun 2016 23:56:53 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=20312

            Bug ID: 20312
           Summary: [2.24 regression] Assertion failure from an attempt to
                    decrease text section alignment to 0 on unsuccessful
                    assembly
           Product: binutils
           Version: 2.27 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: address@hidden
                CC: amodra at gmail dot com
  Target Milestone: ---

This issue affects any targets whose default text section alignment is above 0,
typically RISC machines.  On unsuccessful assembly, which may be due to any
reason, such supplying as a valid source like this:

        .text
        .byte   0
        .err

processing is terminated with an assertion failure like:

test.s: Assembler messages:
test.s:3: Error: .err encountered
../as-new: BFD (GNU Binutils) 2.24.51.20140628 internal error, aborting at
.../gas/write.c line 608 in size_seg
../as-new: Please report this bug.

This is due to an attempt to decrease text section alignment to 0, requested
from `subsegs_finish_section' where `frag_align_code (alignment, 0)' is called
with `alignment' set to 0.  This has been caused by commit 85024cd8bcb9 ("Run
write_object_file after errors") which enabled a call to
`subsegs_finish_section' from `subsegs_finish' from `write_object_file' at
unsuccessful completion, which previously wasn't made.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]