Output section type (READONLY)

Luca Boccassi luca.boccassi@gmail.com
Sat Jan 29 16:46:34 GMT 2022


> [PATCH v2] ld: add READONLY attribute for SECTIONS
> (https://sourceware.org/pipermail/binutils/2021-July/117492.html)
> added
> READONLY. There was no justification as to why it was added.

It was already explained - READONLY is necessary for notes, otherwise
they are marked as writable:

[ 3] .note.package     NOTE             00000000000002e8  000002e8
  0000000000000030  0000000000000000  WA       0     0     4

> What went lucky is that
> https://sourceware.org/binutils/docs/ld/Output-Section-Type.html does
> not have
> the feature listed yet, so hopefully very few people will be lured to
> use this.

The documentation update is already committed in the repository, I
imagine it will be published on the website after the new release is
out.

-- 
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://sourceware.org/pipermail/binutils/attachments/20220129/e99afd8f/attachment.sig>


More information about the Binutils mailing list