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.
This commit is contained in:
Luca Boccassi
2021-07-21 14:32:03 +01:00
committed by Nick Clifton
parent 8f5d31b8d1
commit 6b86da53d5
8 changed files with 34 additions and 1 deletions

View File

@@ -121,7 +121,8 @@ enum section_type
first_overlay_section,
overlay_section,
noload_section,
noalloc_section
noalloc_section,
readonly_section
};
/* This structure holds a list of program headers describing