public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [ld] Allow custom sections to be under PT_GNU_RELRO
@ 2020-03-28  4:22 Fangrui Song
  2020-03-28 10:05 ` Florian Weimer
  0 siblings, 1 reply; 8+ messages in thread
From: Fangrui Song @ 2020-03-28  4:22 UTC (permalink / raw)
  To: binutils

https://lists.llvm.org/pipermail/llvm-dev/2020-March/140395.html

> I understand the reason of having these conventions in linkers. On the
other hand, there already exists a format with the fixed ".rel.ro"
suffix for .data and .bss. Custom suffixes would also mean that the user
code would depend more on implementation-specific things, i.e. prefixes.
For example, one would wonder, should they annotate their data with
__attribute__((section(...))) for ".data.rel.ro.my_section" or
".bss.rel.ro.my_section"?

What do you think of the magic ".rel.ro" idea?

I am not convinced this is a good idea yet but this proposal looks
interesting and I'd like to hear some other thoughts.

For the implementation, I guess this may require some logic in ld/ldelf.c:ldelf_place_orphan

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-04-07 16:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-28  4:22 [ld] Allow custom sections to be under PT_GNU_RELRO Fangrui Song
2020-03-28 10:05 ` Florian Weimer
2020-04-07  0:28   ` Cary Coutant
2020-04-07  2:51     ` Fangrui Song
2020-04-07  3:18       ` Fangrui Song
2020-04-07  6:10         ` Fangrui Song
2020-04-07 16:37           ` Cary Coutant
2020-04-07 16:28       ` Cary Coutant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).