diff options
author | Xi Ruoyao <xry111@xry111.site> | 2024-10-11 02:44:27 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2024-11-02 01:19:51 +0800 |
commit | c8d35f2ecbf124bdd164dbb1c36de9d90695843b (patch) | |
tree | 6995d9d4e11117d3a2d1130d8342382d8db56088 /gcc/analyzer | |
parent | 36a92c3829ba7a2683c3b095356b9ed08978420a (diff) | |
download | gcc-c8d35f2ecbf124bdd164dbb1c36de9d90695843b.zip gcc-c8d35f2ecbf124bdd164dbb1c36de9d90695843b.tar.gz gcc-c8d35f2ecbf124bdd164dbb1c36de9d90695843b.tar.bz2 |
Always set SECTION_RELRO for or .data.rel.ro{,.local} [PR116887]
At least two ports (hppa and loongarch) need to set SECTION_RELRO for
.data.rel.ro{,.local} in section_type_flags (PR52999 and PR116887), and
I cannot see a reason not to just set it in the generic code.
With this applied we can also remove the hppa-specific
pa_section_type_flags in a future patch.
gcc/ChangeLog:
PR target/116887
* varasm.cc (default_section_type_flags): Always set
SECTION_RELRO if name is .data.rel.ro{,.local}.
gcc/testsuite/ChangeLog:
PR target/116887
* gcc.dg/pr116887.c: New test.
Diffstat (limited to 'gcc/analyzer')
0 files changed, 0 insertions, 0 deletions