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


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


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