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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
            Version|unspecified                 |2.46 (HEAD)
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Alan Modra <amodra at gmail dot com> ---
First off, SHOULD_FAIL = . + .; in kernel.ld as given outside of an output
section does not result in adding two relative addresses.  It is the addition
of two absolute addresses.

Secondly, if the SHOULD_FAIL line is moved inside the .text output section then
yes, "." is relative to the start of the section.  I see no reason why ld
should fail adding the two offsets, or in other expressions like "2 * .".  Even
if you could convince me that ld should reject ". + .", I would resist changing
the ld expression parser in case it broke existing user scripts and mark this
"bug" as WONTFIX.

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

Reply via email to