From 6b86da53d5ee2022b9065f445d23356190380746 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Wed, 21 Jul 2021 14:32:03 +0100 Subject: Allows linker scripts to set the SEC_READONLY flag. * ld.texi: Document new output section type. * ldgram.y: Add new token. * ldlang.c: Handle the new flag. * ldlang.h: Add readonly_section to list of section types. * ldlex.l: Add a new identifier. * testsuite/ld-scripts/output-section-types.t: New example linker script. * testsuite/ld-scripts/output-section-types.d: Test driver. * testsyute/ld-scripts/script.exp: Run the new test. --- ld/ld.texi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ld/ld.texi') diff --git a/ld/ld.texi b/ld/ld.texi index b6d8dccea0b..60bb071fb79 100644 --- a/ld/ld.texi +++ b/ld/ld.texi @@ -5474,6 +5474,8 @@ parentheses. The following types are defined: @item NOLOAD The section should be marked as not loadable, so that it will not be loaded into memory when the program is run. +@item READONLY +The section should be marked as read-only. @item DSECT @itemx COPY @itemx INFO -- cgit v1.2.1