This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Preventing .text and .rodata being merged
- From: "Will Newton" <will dot newton at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 30 Nov 2007 15:20:09 +0000
- Subject: Preventing .text and .rodata being merged
Hello all,
I would like to be able to stop the .text and .rodata sections being
merged into the same ELF segment. Is there an easy way to do this?
>From looking at map_sections_to_segments it looks like it isn't. More
generally I would like to make sure that executable read-only sections
and non-executable read-only sections are kept separate in the output.
Thanks,