This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MEMORY attributes in linker script


> However, setting that attribute does not actually set the generated
> section attributes in the linker output. I assumed that it would.
>
> Somewhere else (can't find the link now) it said that the section
> attributes are checked but ignored?

The MEMORY block in the linker script doesn't define a section or
segment; it describes a region of memory that's available for
placement of sections. If you specify attributes, the linker uses them
to decide whether a section is eligible to be placed in that memory
region, but it's the attributes of the sections themselves that
determine the attributes of the output section.

-cary


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]