unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Run (some?) ELF constructors after applying RELRO protection
@ 2018-02-27 10:01 Florian Weimer
  2018-06-11 14:50 ` Rich Felker
  0 siblings, 1 reply; 5+ messages in thread
From: Florian Weimer @ 2018-02-27 10:01 UTC (permalink / raw
  To: GNU C Library, GCC, Binutils

I think it would be a nice addition to the toolchain if it were possible 
to programatically initialize data in the RELRO section.  We do this in 
glibc, but I don't think this is currently supported for general use.

One important application is to allocate a memory region with mmap, on 
which protection flags can be changed as needed.  This way, the 
application can have a read-only path to its own configuration data, for 
example.

Do you think this would be worthwhile to implement?  Any suggestions how 
we should do it, without needing binutils/GCC/glibc updates?

Thanks,
Florian


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

end of thread, other threads:[~2018-07-05 19:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-27 10:01 Run (some?) ELF constructors after applying RELRO protection Florian Weimer
2018-06-11 14:50 ` Rich Felker
2018-06-11 17:50   ` Florian Weimer
2018-06-11 18:59     ` Rich Felker
2018-07-05 19:49       ` Florian Weimer

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).