diff options
author | Jeff Law <law@gcc.gnu.org> | 1993-09-02 23:53:48 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1993-09-02 23:53:48 -0600 |
commit | 41ded2895ea808ef00afcaa47398329d188a673b (patch) | |
tree | 00713a472b02da5d23e1174d5d4d514759afe13e | |
parent | e600165c51f4af94c173bd5448c75005ce84ba6f (diff) | |
download | gcc-41ded2895ea808ef00afcaa47398329d188a673b.zip gcc-41ded2895ea808ef00afcaa47398329d188a673b.tar.gz gcc-41ded2895ea808ef00afcaa47398329d188a673b.tar.bz2 |
pa.h (READONLY_DATA_ASM_OP): Define.
* pa.h (READONLY_DATA_ASM_OP): Define.
(READONLY_DATA_SECTION): Define.
(EXTRA_SECTIONS): Add in_readonly_data.
(EXTRA_SECTION_FUNCTIONS): Add readonly_data.
From-SVN: r5255
-rw-r--r-- | gcc/config/pa/pa.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index a2c8322..fda8d51 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -1566,6 +1566,12 @@ do { fprintf (FILE, "\t.SPACE $PRIVATE$\n\ /* Supposedly the assembler rejects the command if there is no tab! */ #define TEXT_SECTION_ASM_OP "\t.SPACE $TEXT$\n\t.SUBSPA $CODE$\n" +/* Output before read-only data. */ + +/* Supposedly the assembler rejects the command if there is no tab! */ +#define READONLY_DATA_ASM_OP "\t.SPACE $TEXT$\n\t.SUBSPA $LIT$\n" +#define READONLY_DATA_SECTION readonly_data + /* Output before writable data. */ /* Supposedly the assembler rejects the command if there is no tab! */ @@ -1577,7 +1583,7 @@ do { fprintf (FILE, "\t.SPACE $PRIVATE$\n\ /* Define the .bss section for ASM_OUTPUT_LOCAL to use. */ -#define EXTRA_SECTIONS in_bss +#define EXTRA_SECTIONS in_bss, in_readonly_data #define EXTRA_SECTION_FUNCTIONS \ void \ @@ -1588,6 +1594,15 @@ bss_section () \ fprintf (asm_out_file, "%s\n", BSS_SECTION_ASM_OP); \ in_section = in_bss; \ } \ +} \ +void \ +readonly_data () \ +{ \ + if (in_section != in_readonly_data) \ + { \ + fprintf (asm_out_file, "%s\n", READONLY_DATA_ASM_OP); \ + in_section = in_readonly_data; \ + } \ } |