[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/26378] sections initialised only by linker scripts are always re
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/26378] sections initialised only by linker scripts are always read/write |
Date: |
Mon, 18 Jan 2021 12:39:33 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26378
--- Comment #11 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <amodra@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=326adec374dd43086dbf9bb2b8f18d547389e678
commit 326adec374dd43086dbf9bb2b8f18d547389e678
Author: Alan Modra <amodra@gmail.com>
Date: Sat Sep 12 10:49:13 2020 +0930
PR26378, sections initialised only by linker scripts are always read/write
This changes the initialisation of output sections so that it is
possible to create read-only sections fed only from linker script
BYTE, SHORT, LONG or QUAD. That currently isn't possible even for one
of the well-known ELF sections like .rodata, because once a section is
marked read/write that sticks. On the other hand if we start
read-only, well-known ELF sections end up read/write as appropriate.
For example .tdata will still be SHF_ALLOC + SHF_WRITE + SHF_TLS.
PR 26378
* ldlang.c (map_input_to_output_sections): Start with a read-only
section for data statements.
* testsuite/ld-elf/size-2.d: Adjust to suit.
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/26378] sections initialised only by linker scripts are always read/write,
cvs-commit at gcc dot gnu.org <=