MEMORY attributes in linker script

James Murray james@nscc.info
Fri Apr 17 18:20:00 GMT 2015


On Fri, 2015-04-17 at 11:04 -0700, Cary Coutant wrote:
> > 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.

Thanks for that clarification.

Are those words already in the documentation? If not, is there any
chance of adding them and possibly a few of the words I suggested
before?

regards

James Murray



More information about the Binutils mailing list