ELF: Don't generate unused section symbols
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
d1bcae83
L
12021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR 27109
4 * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
5 section symbol.
6 * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
7 * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
8 on the section symbol.
9 (set_symtab): Don't generate unused section symbols.
10 (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
11 on the section symbol.
12 * config/obj-elf.c (elf_adjust_symtab): Call
13 symbol_mark_used_in_reloc on the group signature symbol.
14 * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
15 from expected output.
16 * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
17 is_elf_unused_section_symbols.
18 * testsuite/gas/elf/section2.e: Updated.
19 * testsuite/gas/elf/section2.e-unused: New file.
20 * testsuite/gas/elf/symver.d: Remove unused section symbols.
21 * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
22 * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
23 * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
24 * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
25 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
26 * testsuite/gas/i386/size-1.d: Likewise.
27 * testsuite/gas/i386/size-3.d: Likewise.
28 * testsuite/gas/i386/svr4.d: Likewise.
29 * testsuite/gas/i386/x86-64-size-1.d: Likewise.
30 * testsuite/gas/i386/x86-64-size-3.d: Likewise.
31 * testsuite/gas/i386/x86-64-size-5.d: Likewise.
32 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
33
aa881ecd
PT
342021-01-07 Philipp Tomsich <prt@gnu.org>
35
36 * config/tc-riscv.c (riscv_multi_subset_supports): Added
37 INSN_CLASS_ZIHINTPAUSE.
38 * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for
39 the pause hint instruction.
40 * testsuite/gas/riscv/pause.s: Likewise.
41
2652cfad
CXW
422021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
43 Jim Wilson <jimw@sifive.com>
44 Andrew Waterman <andrew@sifive.com>
45 Maxim Blinov <maxim.blinov@embecosm.com>
46 Kito Cheng <kito.cheng@sifive.com>
47 Nelson Chu <nelson.chu@sifive.com>
48
49 * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
50 (riscv_get_default_ext_version): Do not check the default_isa_spec when
51 the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
52 * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
53 * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
54 * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
55
85f55c2b
AM
562021-01-06 Alan Modra <amodra@gmail.com>
57
58 * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
59
22206e84
AM
602021-01-06 Alan Modra <amodra@gmail.com>
61
62 * testsuite/gas/macros/app1.d: xfail tic30.
63 * testsuite/gas/macros/app2.d: Likewise.
64 * testsuite/gas/macros/app3.d: Likewise.
65 * testsuite/gas/macros/app4.d: Likewise.
66
286d2f2c
MC
672021-01-06 Marcus Comstedt <marcus@mc.pp.se>
68
69 * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
70 * doc/c-riscv.texi: Likewise.
71
f36ce378
MC
722021-01-06 Marcus Comstedt <marcus@mc.pp.se>
73
74 * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
75 to littleriscv.
76 * testsuite/gas/riscv/li64.d: Likewise.
77 * testsuite/gas/riscv/lla32.d: Likewise.
78 * testsuite/gas/riscv/lla64.d: Likewise.
79 * testsuite/gas/riscv/march-ok-g2.d: Likewise.
80 * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
81 * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
82 * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
83 * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
84 * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
85 * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
86
fbc09e7a
MC
872021-01-06 Marcus Comstedt <marcus@mc.pp.se>
88
89 * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
90 elf32-bigriscv.
91 (install_insn): Always write instructions as little endian.
92 (riscv_make_nops): Likewise.
93 (md_convert_frag_branch): Likewise.
94 (md_number_to_chars): Write data in target endianness.
95 (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
96 (md_parse_option): Handle the endian options.
97 * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
98 already defined.
99 * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
100
cd6d537c
L
1012021-01-04 H.J. Lu <hongjiu.lu@intel.com>
102
103 PR ld/26256
104 * config/obj-elf.c (obj_elf_change_section): Also filter out
105 SHF_LINK_ORDER.
106
dd933805
AM
1072021-01-04 Alan Modra <amodra@gmail.com>
108
109 PR 27102
110 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
111 message and register symbol error message.
112
90320e40
AM
1132021-01-04 Alan Modra <amodra@gmail.com>
114
115 PR 27101
116 * read.c (s_align): Use a large enough type for "align" to hold
117 the result of get_absolute_expression.
118
f9a6a8f0
AM
1192021-01-01 Nicolas Boulenguez <nicolas@debian.org>
120
121 * config/tc-i386.c: Correct comment spelling.
122 * config/tc-riscv.c: Likewise.
123 * config/tc-s390.c: Correct comment grammar.
124 * doc/c-i386.texi: Correct spelling.
125 * doc/c-s390.texi: Correct grammar.
126
250d07de
AM
1272021-01-01 Alan Modra <amodra@gmail.com>
128
129 Update year range in copyright notice of all files.
130
64d05a43
HPN
1312021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
132
133 * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
134
c2795844 135For older changes see ChangeLog-2020
3499769a 136\f
c2795844 137Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
138
139Copying and distribution of this file, with or without modification,
140are permitted in any medium without royalty provided the copyright
141notice and this notice are preserved.
142
143Local Variables:
144mode: change-log
145left-margin: 8
146fill-column: 74
147version-control: never
148End:
This page took 0.331607 seconds and 4 git commands to generate.