bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/30059] Weird interaction between "INSERT BEFORE" and "MEMORY"


From: amodra at gmail dot com
Subject: [Bug ld/30059] Weird interaction between "INSERT BEFORE" and "MEMORY"
Date: Wed, 01 Feb 2023 01:02:16 +0000

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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Alan Modra <amodra at gmail dot com> ---
In this case I don't think the problem you're seeing is anything to do with
MEMORY in inserted scripts.  Mind you, inserted scripts are really intended
only for statements that are inside SECTIONS, and MEMORY is not one of those.

When using MEMORY, the value of "dot" in a script is that for the current
memory region.  The default script doesn't use memory regions, and I suspect
you're seeing the value of "dot" before .text as it is in the "*default*"
memory region.  .text then gets assigned to your ram region, resetting "dot".

So, not a bug.

-- 
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]