Commit a65fd88a by Aldy Hernandez Committed by Aldy Hernandez

(ASM_OUTPUT_SECTION_NAME): emit @nobits

From-SVN: r38228
parent 8767c894
2000-12-07 Aldy Hernandez <aldyh@redhat.com>
* config/mips/elf.h (ASM_OUTPUT_SECTION_NAME): emit @nobits
if changing into .bss section.
* config/mips/elf64.h: same.
* config/mips/iris6.h: same.
* config/mips/netbsd.h: same.
* config/mips/openbsd.h: same.
2000-12-13 Neil Booth <neil@daikokuya.demon.co.uk> 2000-12-13 Neil Booth <neil@daikokuya.demon.co.uk>
* cppfiles.c (read_name_map): Return null if open () fails. * cppfiles.c (read_name_map): Return null if open () fails.
......
...@@ -67,6 +67,8 @@ do { \ ...@@ -67,6 +67,8 @@ do { \
fprintf (asm_out_text_file, "\t.section %s,\"ax\",@progbits\n", (NAME)); \ fprintf (asm_out_text_file, "\t.section %s,\"ax\",@progbits\n", (NAME)); \
else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC)) \ else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC)) \
fprintf (F, "\t.section %s,\"a\",@progbits\n", (NAME)); \ fprintf (F, "\t.section %s,\"a\",@progbits\n", (NAME)); \
else if (! strcmp (NAME, ".bss")) \
fprintf (F, "\t.section %s,\"aw\",@nobits\n", (NAME)); \
else \ else \
fprintf (F, "\t.section %s,\"aw\",@progbits\n", (NAME)); \ fprintf (F, "\t.section %s,\"aw\",@progbits\n", (NAME)); \
} while (0) } while (0)
......
...@@ -84,6 +84,8 @@ do { \ ...@@ -84,6 +84,8 @@ do { \
fprintf (asm_out_text_file, "\t.section %s,\"ax\",@progbits\n", (NAME)); \ fprintf (asm_out_text_file, "\t.section %s,\"ax\",@progbits\n", (NAME)); \
else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC)) \ else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC)) \
fprintf (F, "\t.section %s,\"a\",@progbits\n", (NAME)); \ fprintf (F, "\t.section %s,\"a\",@progbits\n", (NAME)); \
else if (! strcmp (NAME, ".bss")) \
fprintf (F, "\t.section %s,\"aw\",@nobits\n", (NAME)); \
else \ else \
fprintf (F, "\t.section %s,\"aw\",@progbits\n", (NAME)); \ fprintf (F, "\t.section %s,\"aw\",@progbits\n", (NAME)); \
} while (0) } while (0)
......
...@@ -379,6 +379,8 @@ do { \ ...@@ -379,6 +379,8 @@ do { \
fprintf (asm_out_text_file, "\t.section %s,1,6,4,4\n", (NAME)); \ fprintf (asm_out_text_file, "\t.section %s,1,6,4,4\n", (NAME)); \
else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC)) \ else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC)) \
fprintf (F, "\t.section %s,1,2,0,8\n", (NAME)); \ fprintf (F, "\t.section %s,1,2,0,8\n", (NAME)); \
else if (! strcmp (NAME, ".bss")) \
fprintf (F, "\t.section %s,\"aw\",@nobits\n", (NAME)); \
else \ else \
fprintf (F, "\t.section %s,1,3,0,8\n", (NAME)); \ fprintf (F, "\t.section %s,1,3,0,8\n", (NAME)); \
} while (0) } while (0)
......
...@@ -214,6 +214,8 @@ do { \ ...@@ -214,6 +214,8 @@ do { \
fprintf (asm_out_text_file, "\t.section %s,\"ax\",@progbits\n", (NAME)); \ fprintf (asm_out_text_file, "\t.section %s,\"ax\",@progbits\n", (NAME)); \
else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC)) \ else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC)) \
fprintf (F, "\t.section %s,\"a\",@progbits\n", (NAME)); \ fprintf (F, "\t.section %s,\"a\",@progbits\n", (NAME)); \
else if (! strcmp (NAME, ".bss")) \
fprintf (F, "\t.section %s,\"aw\",@nobits\n", (NAME)); \
else \ else \
fprintf (F, "\t.section %s,\"aw\",@progbits\n", (NAME)); \ fprintf (F, "\t.section %s,\"aw\",@progbits\n", (NAME)); \
} while (0) } while (0)
......
...@@ -115,6 +115,8 @@ do { \ ...@@ -115,6 +115,8 @@ do { \
fprintf (asm_out_text_file, "\t.section %s,\"ax\",@progbits\n", (NAME)); \ fprintf (asm_out_text_file, "\t.section %s,\"ax\",@progbits\n", (NAME)); \
else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC)) \ else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC)) \
fprintf (F, "\t.section %s,\"a\",@progbits\n", (NAME)); \ fprintf (F, "\t.section %s,\"a\",@progbits\n", (NAME)); \
else if (! strcmp (NAME, ".bss")) \
fprintf (F, "\t.section %s,\"aw\",@nobits\n", (NAME)); \
else \ else \
fprintf (F, "\t.section %s,\"aw\",@progbits\n", (NAME)); \ fprintf (F, "\t.section %s,\"aw\",@progbits\n", (NAME)); \
} while (0) } while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment