diff options
author | Alan Modra <amodra@gmail.com> | 2018-09-04 10:13:26 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-09-06 14:13:00 +0930 |
commit | deee88e9810fe5a3e73b071713ff6fa03b5c016d (patch) | |
tree | f6df138f6600917454c508e10fdaef7eac3964c6 /gas/config/tc-avr.c | |
parent | f1628857d783fee0171f16f1bad0b7816460dec5 (diff) | |
download | gdb-deee88e9810fe5a3e73b071713ff6fa03b5c016d.zip gdb-deee88e9810fe5a3e73b071713ff6fa03b5c016d.tar.gz gdb-deee88e9810fe5a3e73b071713ff6fa03b5c016d.tar.bz2 |
PR23570, AVR .noinit section defaults to PROGBITS
Revert commit 8744470deab and instead use the standard special_sections
support.
PR 23570
bfd/
* elf32-avr.c (elf_avr_special_sections): New.
(elf_backend_special_sections): Define.
gas/
* config/tc-avr.c: Revert 2018-09-03 change.
Diffstat (limited to 'gas/config/tc-avr.c')
-rw-r--r-- | gas/config/tc-avr.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gas/config/tc-avr.c b/gas/config/tc-avr.c index edf60f4..d628c95 100644 --- a/gas/config/tc-avr.c +++ b/gas/config/tc-avr.c @@ -481,13 +481,11 @@ const char EXP_CHARS[] = "eE"; const char FLT_CHARS[] = "dD"; static void avr_set_arch (int); -static void avr_set_section (int); /* The target specific pseudo-ops which we support. */ const pseudo_typeS md_pseudo_table[] = { {"arch", avr_set_arch, 0}, - {"section", avr_set_section, 0}, { NULL, NULL, 0} }; @@ -704,23 +702,6 @@ avr_set_arch (int dummy ATTRIBUTE_UNUSED) bfd_set_arch_mach (stdoutput, TARGET_ARCH, avr_mcu->mach); } -static void -avr_set_section (int push) -{ - obj_elf_section (push); - - /* PR 23570. The .noinit section needs to be explicitly - set to the NOBITS type. */ - if (seg_info (now_seg)->bss == 0 - && strcmp (bfd_get_section_name (stdoutput, now_seg), ".noinit") == 0) - { - bfd_set_section_flags (stdoutput, now_seg, SEC_ALLOC | SEC_RELOC); - seg_info (now_seg)->bss = 1; - elf_section_type (now_seg) = SHT_NOBITS; - elf_section_flags (now_seg) = SHF_ALLOC | SHF_WRITE; - } -} - int md_parse_option (int c, const char *arg) { |