Make Elf_file::section_name() a const function, so that it can be used in
[external/binutils.git] / elfcpp / ChangeLog
1 2014-09-02  Cary Coutant  <ccoutant@google.com>
2
3         * elfcpp_file.h (Elf_file::shnum): New const function.
4         (Elf_file::shstrndx): New const function.
5         (Elf_file::large_shndx_offset): New const function.
6         (Elf_file::section_name): Add const attribute.
7         (Elf_file::section_header_offset): Likewise.
8
9 2014-08-08  Han Shen  <shenhan@google.com>
10
11         * aarch64.h (withdrawn): Replaced with R_AARCH64_withdrawn.
12
13 2014-07-29  Matthew Fortune  <matthew.fortune@imgtec.com>
14
15         * elfcpp.h (PT_MIPS_ABIFLAGS): New program header type.
16
17 2014-07-02  Jing Yu  <jingyu@google.com>
18
19         * aarch64.h: New file. New enums for aarch64-elf64 relocations.
20         * elfcpp.h (EM_AARCH64, SHT_AARCH64_ATTRIBUTES, PT_AARCH64_ARCHEXT,
21         PT_AARCH64_UNWIND): New enum constant.
22
23 2014-04-22  Christian Svensson  <blue@cmd.nu>
24
25         * elfcpp.h: Remove openrisc and or32 support.
26
27 2014-04-15  Sasa Stankovic  <Sasa.Stankovic@imgtec.com>
28
29         * mips.h (R _MIPS16_TLS_GD, R_MIPS16_TLS_LDM, R_MIPS16_TLS_DTPREL_HI16,
30         R_MIPS16_TLS_DTPREL_LO16, R_MIPS16_TLS_GOTTPREL,
31         R_MIPS16_TLS_TPREL_HI16, R_MIPS16_TLS_TPREL_LO16, R_MICROMIPS_26_S1,
32         R_MICROMIPS_HI16, R_MICROMIPS_LO16, R_MICROMIPS_GPREL16,
33         R_MICROMIPS_LITERAL, R_MICROMIPS_GOT16, R_MICROMIPS_PC7_S1,
34         R_MICROMIPS_PC10_S1, R_MICROMIPS_PC16_S1, R_MICROMIPS_CALL16,
35         R_MICROMIPS_GOT_DISP, R_MICROMIPS_GOT_PAGE, R_MICROMIPS_GOT_OFST,
36         R_MICROMIPS_GOT_HI16, R_MICROMIPS_GOT_LO16, R_MICROMIPS_SUB,
37         R_MICROMIPS_HIGHER, R_MICROMIPS_HIGHEST, R_MICROMIPS_CALL_HI16,
38         R_MICROMIPS_CALL_LO16, R_MICROMIPS_SCN_DISP, R_MICROMIPS_JALR,
39         R_MICROMIPS_HI0_LO16, R_MICROMIPS_TLS_GD, R_MICROMIPS_TLS_LDM,
40         R_MICROMIPS_TLS_DTPREL_HI16, R_MICROMIPS_TLS_DTPREL_LO16,
41         R_MICROMIPS_TLS_GOTTPREL, R_MICROMIPS_TLS_TPREL_HI16,
42         R_MICROMIPS_TLS_TPREL_LO16, R_MICROMIPS_GPREL7_S2,
43         R_MICROMIPS_PC23_S20, R_MIPS_EH): New enums for relocations (mips16 and
44         micromips).
45         (STO_MIPS_FLAGS): New enum constant.
46         (elf_st_is_mips16): New function.
47         (elf_st_is_micromips): New function.
48         (is_micromips): New function.
49         (abi_n32): New function.
50         (abi_n64): New function.
51         (ODK_NULL, ODK_REGINFO, ODK_EXCEPTIONS, ODK_PAD, ODK_HWPATCH, ODK_FILL,
52         ODK_TAGS, ODK_HWAND, ODK_HWOR, ODK_GP_GROUP, ODK_IDENT): New enum
53         constants.
54         * elfcpp.h (SHT_MIPS_OPTIONS): New enum constant.
55
56 2014-03-05  Alan Modra  <amodra@gmail.com>
57
58         Update copyright years.
59
60 2014-03-05  Alan Modra  <amodra@gmail.com>
61
62         * powerpc.h (R_PPC64_REL24_NOTOC, R_PPC64_ADDR64_LOCAL): Define.
63
64 2014-02-06  Andrew Pinski  <apinski@cavium.com>
65
66         * mips.h (E_MIPS_MACH_OCTEON3): New enum constant.
67
68 2013-11-17  H.J. Lu  <hongjiu.lu@intel.com>
69
70         * x86_64.h (R_X86_64_PC32_BND): New.
71         (R_X86_64_PLT32_BND): Likewise.
72
73 2013-10-30  Alan Modra  <amodra@gmail.com>
74
75         * powerpc.h (EF_PPC64_ABI): New enum constant.
76         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK): Likewise.
77         (ppc64_decode_local_entry): New function.
78         (ppc64_encode_local_entry): Likewise.
79
80 2013-10-30  Alan Modra  <amodra@gmail.com>
81
82         * powerpc.h (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
83         R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA,
84         R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Define.
85
86 2013-03-01  Cary Coutant  <ccoutant@google.com>
87
88         * dwarf.h (enum DW_LANG): Adjust spacing for consistency.
89         (enum DW_SECT): New enum type.
90
91 2012-12-17  Nick Clifton  <nickc@redhat.com>
92
93         * README: Add copyright notice.
94
95 2012-10-30  Steve McIntyre  <steve.mcintyre@linaro.org>
96
97         * arm.h: New enum for EABI soft- and hard-float flags.
98
99 2012-09-15  Jiong Wang  <jiwang@tilera.com>
100
101         * tilegx.h: New file.
102         * elfcpp.h: add EM_TILEGX.
103
104 2012-08-14  Alan Modra  <amodra@gmail.com>
105
106         * powerpc.h: Add more relocs.
107         (R_PPC_REL16*): Rename to R_POWERPC_REL16*.
108
109 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
110
111         PR gold/14091
112         * x86_64.h (R_X86_64_RELATIVE64): New.
113
114 2012-05-01  Cary Coutant  <ccoutant@google.com>
115
116         * dwarf.h (enum DW_TAG, enum DW_FORM, enum DW_AT, enum DW_ENCODING)
117         (enum DW_OP, enum DW_CFA): Remove.
118         Include dwarf2.def.
119
120 2012-04-23  Cary Coutant  <ccoutant@google.com>
121
122         * elfcpp_swap.h (struct Swap_aligned32): New template.
123
124 2012-04-16  David S. Miller  <davem@davemloft.net>
125
126         * sparc.h (R_SPARC_JMP_IREL): New relocation.
127
128 2012-04-12  David S. Miller  <davem@davemloft.net>
129
130         * sparc.h (R_SPARC_WDISP10): New relocation.
131
132 2012-03-12  Cary Coutant  <ccoutant@google.com>
133
134         Update DWARF enums from ../include/dwarf2.h.
135         * dwarf.h (enum DW_TAG): Add new DWARF-4 tags.
136         (enum DW_FORM): Add new DWARF-4 and Fission extensions.
137         (enum DW_AT): New enum.
138         (enum DW_LINE_EXTENDED_OPS): Add new DWARF-4 opcode.
139         (enum DW_ENCODING): Add new DWARF-4 encoding.
140         (enum DW_OP): Add new DWARF-4 opcodes.
141         (enum DW_CHILDREN): New enum.
142         (enum DW_LANG): New enum.
143
144 2012-01-27  Aleksandar Simeonov  <asimeonov@mips.com>
145
146         * mips.h: New file
147         * elfcpp.h (SHT_MIPS_REGINFO): New enums for processor-specific flags.
148         (SHF_MIPS_GPREL): Likewise.
149         (PT_MIPS_REGINFO, PT_MIPS_RTPROC, PT_MIPS_OPTIONS): Likewise.
150         (DT_MIPS_RLD_VERSION, DT_MIPS_TIME_STAMP, DT_MIPS_ICHECKSUM,
151          DT_MIPS_IVERSION, DT_MIPS_FLAGS, DT_MIPS_BASE_ADDRESS, DT_MIPS_MSYM,
152          DT_MIPS_CONFLICT, DT_MIPS_LIBLIST, DT_MIPS_LOCAL_GOTNO,
153          DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO, DT_MIPS_SYMTABNO,
154          DT_MIPS_UNREFEXTNO, DT_MIPS_GOTSYM, DT_MIPS_HIPAGENO, DT_MIPS_RLD_MAP,
155          DT_MIPS_DELTA_CLASS, DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE,
156          DT_MIPS_DELTA_INSTANCE_NO, DT_MIPS_DELTA_RELOC, DT_MIPS_DELTA_RELOC_NO,
157          DT_MIPS_DELTA_SYM, DT_MIPS_DELTA_SYM_NO, DT_MIPS_DELTA_CLASSSYM,
158          DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_CXX_FLAGS, DT_MIPS_PIXIE_INIT,
159          DT_MIPS_SYMBOL_LIB, DT_MIPS_LOCALPAGE_GOTIDX, DT_MIPS_LOCAL_GOTIDX,
160          DT_MIPS_HIDDEN_GOTIDX, DT_MIPS_PROTECTED_GOTIDX, DT_MIPS_OPTIONS,
161          DT_MIPS_INTERFACE, DT_MIPS_DYNSTR_ALIGN, DT_MIPS_INTERFACE_SIZE,
162          DT_MIPS_RLD_TEXT_RESOLVE_ADDR, DT_MIPS_PERF_SUFFIX,
163          DT_MIPS_COMPACT_SIZE, DT_MIPS_GP_VALUE, DT_MIPS_AUX_DYNAMIC,
164          DT_MIPS_PLTGOT, DT_MIPS_RWPLT): Likewise.
165
166 2012-01-27  Ian Lance Taylor  <iant@google.com>
167
168         * elfcpp.h (STT_GNU_IFUNC): Add comment.
169
170 2011-07-03  Samuel Thibault  <samuel.thibault@gnu.org>
171             Thomas Schwinge  <thomas@schwinge.name>
172
173         PR binutils/12913
174         * elfcpp.h (ELFOSABI): Add ELFOSABI_GNU with value of ELFOSABI_LINUX,
175         keep ELFOSABI_LINUX as an alias.  Remove ELFOSABI_HURD.
176
177 2011-07-01  Ian Lance Taylor  <iant@google.com>
178
179         * dwarf.h (enum DW_CFA): Define.
180
181 2010-08-12  Cary Coutant  <ccoutant@google.com>
182
183         * elfcpp.h (enum SHT): Add SHT_GNU_INCREMENTAL_GOT_PLT.
184
185 2010-08-12  Cary Coutant  <ccoutant@google.com>
186
187         * elfcpp.h (enum SHT): Add SHT_GNU_INCREMENTAL_SYMTAB,
188         SHT_GNU_INCREMENTAL_RELOCS.
189
190 2010-08-04  Ian Lance Taylor  <iant@google.com>
191
192         * i386.h (R_386_IRELATIVE): Define.
193         * powerpc.h (R_POWERPC_IRELATIVE): Define.
194         (R_PPC_RELAX32, R_PPC_RELAX32PC): Don't define.
195         (R_PPC_RELAX32_PLT, R_PPC_RELAX32PC_PLT): Don't define.
196         * sparc.h (R_SPARC_IRELATIVE): Define.
197         * x86_64.h (R_X86_64_IRELATIVE): Define.
198         (R_X86_64_GNU_VTINHERIT): Rename from R_386_GNU_VTINHERIT.
199         (R_X86_64_GNU_VTENTRY): Rename from R_386_GNU_VTENTRY.
200
201 2010-05-12  Doug Kwan  <dougkwan@google.com>
202
203         * arm.h (Tag_FP_arch, Tag_ABI_align_needed, Tag_ABI_align_preserved,
204         Tag_FP_HP_extension, Tag_MPextension_use_legacy): Rename from
205         existing tags.
206         (Tag_undefined40, Tag_undefined41, Tag_MPextension_use,
207         Tag_undefined43): New tags.
208         (Targ_VFP_arch, Tag_ABI_align8_needed, TAG_ABI_align8_preserved,
209         Tag_VFP_HP_extension): Define aliases for backward compatiblity.
210
211 2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
212
213         * elfcpp.h (VER_FLG_INFO): Define.
214
215 2010-01-21  Doug Kwan  <dougkwan@google.com>
216
217         * arm.h (EXIDX_CANTUNWIND): New enum.
218
219 2010-01-19  Ian Lance Taylor  <iant@google.com>
220
221         * elfcpp.h (PN_XNUM): Define.
222
223 2009-12-14  Ian Lance Taylor  <iant@google.com>
224
225         * elfcpp_file.h: Revert last patch.
226
227 2009-12-11  Nick Clifton  <nickc@redhat.com>
228
229         * elfcpp_file.h: Fix shadowed variable warnings.
230
231 2009-12-10  Doug Kwan  <dougkwan@google.com>
232
233         * arm.h: New enums for EABI object attribute tags and values.
234
235 2009-12-05  Doug Kwan  <dougkwan@google.com>
236
237         * arm.h: Define enums for Tag_CPU_arch EABI attribute.
238
239 2009-11-24  Rafael Avila de Espindola  <espindola@google.com>
240
241         * elfcpp_file.h: Include elfcpp.h.
242
243 2009-11-03  Ian Lance Taylor  <iant@google.com>
244
245         * elfcpp.h: Remove trailing commas from enum definitions.
246
247 2009-10-30  Doug Kwan  <dougkwan@google.com>
248
249         * arm.h (EF_ARM_BE8, EF_ARM_EABIMASK, EF_ARM_EABI_UNKNOWN,
250         EF_ARM_EABI_VER1, EF_ARM_EABI_VER2, EF_ARM_EABI_VER3,
251         EF_ARM_EABI_VER4, EF_ARM_EABI_VER5): New enums for processor-specific
252         flags.
253         (arm_eabi_version): New inline function.
254         * elfcpp.h: Add a comment about DT_ENCODING.
255
256 2009-10-16  Doug Kwan  <dougkwan@google.com>
257
258         * elfcpp/elfcpp.h (DT_PREINIT_ARRAY): Correct enum value.
259
260 2009-10-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
261
262         * elfcpp/elfcpp_file.h (Elf_file::section_name): Change shstr_size
263         to Elf_WXword.
264
265 2009-10-09  Mikolaj Zalewski  <mikolajz@google.com>
266
267         * elf_file.h: (class Elf_strtab): New class.
268
269 2009-10-09  Mikolaj Zalewski  <mikolajz@google.com>
270
271         * elfcpp_file.h: Fix header guard.  Include <cstdio>.
272         (class Elf_recognizer): New class, code from gold/object.cc.
273         (Elf_file::find_section_by_type): New method.
274
275 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
276
277         * elfcpp.h (enum STB): Add STB_GNU_UNIQUE.
278
279 2009-06-21  Ian Lance Taylor  <iant@google.com>
280
281         * elfcpp.h (SHN_X86_64_LCOMMON): Define enum constant.
282         (enum SHT): Add SHT_X86_64_UNWIND.
283         (enum SHF): Add SHT_X86_64_LARGE.
284
285 2009-05-27  Doug Kwan  <dougkwan@google.com>
286
287         * arm.h: New file.
288         * elfcpp.h (enum SHT): Add ARM-specific special sections.
289         (enum PT): Add ARM-specific section types.
290         (enum SST): Add STT_ARM_TFUNC.
291
292 2009-04-30  Nick Clifton  <nickc@redhat.com>
293
294         * elfcpp.h (enum STT): Add STT_GNU_IFUNC.
295
296 2009-03-20  Mikolaj Zalewski  <mikolajz@google.com>
297
298         * elfcpp.h (SHT_GNU_INCREMENTAL_INPUTS): Define.
299
300 2009-03-01  Ian Lance Taylor  <iant@google.com>
301
302         * elfcpp_swap.h: #include "config.h".  Only #include <byteswap.h>
303         if HAVE_BYTESWAP_H is defined; if not, provide definitions for
304         bswap_{16,32,64}.  For gcc 4.3 and later, use the builtin bswap
305         functions.  Check WORDS_BIGENDIAN rather than __BYTE_ORDER.
306
307 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
308
309         * elfcpp.h (enum STT): Remove STT_IFUNC.
310
311 2008-12-03  Nick Clifton  <nickc@redhat.com>
312
313         * elfcpp.h (enum STT): Add STT_IFUNC.
314
315 2008-06-12  David S. Miller  <davem@davemloft.net>
316
317         * powerpc.h: New file.
318         * elfcpp.h (SHT_ORDERED): New enum constant.
319         (DT_PPC_GOT, DT_PPC64_GLINK, DT_PPC64_OPD, DT_PPC64_OPDSZ): Same.
320
321 2008-05-28  Caleb Howe  <cshowe@google.com>
322
323         * dwarf.h (enum DW_FORM): Define.
324
325 2008-04-19  Ian Lance Taylor  <iant@google.com>
326
327         * elfcpp_file.h (class Elf_file): Add large_shndx_offset_ field.
328         (Elf_file::large_shndx_offset): New function.
329         (Elf_file::construct): Initialize large_shndx_offset_.
330         (Elf_File::initialize_shnum): If necessary, adjust shstrndx_ and
331         set large_shndx_offset_.
332
333 2008-04-16  David S. Miller  <davem@davemloft.net>
334
335         * elfcpp.h (DF_1_NOW, DF_1_GLOBAL, DF_1_GROUP,
336         DF_1_NODELETE, DF_1_LOADFLTR, DF_1_INITFIRST,
337         DF_1_NOOPEN, DF_1_ORIGIN, DF_1_DIRECT, DF_1_TRANS,
338         DF_1_INTERPOSE, DF_1_NODEFLIB, DF_1_NODUMP,
339         DF_1_CONLFAT): New enum constants.
340
341 2008-04-15  David S. Miller  <davem@davemloft.net>
342
343         * sparc.h (EF_SPARC_EXT_MASK, EF_SPARC_32PLUS_MASK,
344         EF_SPARC_32PLUS, EF_SPARC_SUN_US1, EF_SPARC_HAL_R1,
345         EF_SPARC_SUN_US3, EF_SPARC_LEDATA, EF_SPARCV9_MM,
346         EF_SPARCV9_TSO, EF_SPARCV9_PSO, EF_SPARCV9_RMO):
347         Define as enum constants.
348
349 2008-04-11  David S. Miller  <davem@davemloft.net>
350
351         * sparc.h: New file
352         * elfcpp.h (SHN_BEFORE, SHN_AFTER): New enum constants.
353         (SHT_SPARC_GOTDATA, SHF_ORDERED, SHF_EXCLUDE,
354         STT_SPARC_REGISTER, DT_SPARC_REGISTER): Likewise.
355
356 2008-04-03  Ian Lance Taylor  <iant@google.com>
357
358         * elfcpp_swap.h (Swap_unaligned<64, true>::writeval): Correct
359         byte order.
360
361 2008-03-24  Ian Lance Taylor  <iant@google.com>
362
363         * elfcpp.h (NT_VERSION, NT_ARCH): Define as enum constants.
364         (NT_GNU_ABI_TAG, NT_GNU_HWCAP): Likewise.
365         (NT_GNU_BUILD_ID, NT_GNU_GOLD_VERSION): Likewise.
366         (ELF_NOTE_OS_LINUX, ELF_NOTE_OS_GNU): Likewise.
367         (ELF_NOTE_OS_SOLARIS2, ELF_NOTE_OS_NETBSD): Likewise.
368         (ELF_NOTE_OS_SYLLABLE): Likewise.
369
370 2008-03-21  Ian Lance Taylor  <iant@google.com>
371
372         * Added source code to GNU binutils.
373 \f
374 Copyright (C) 2008-2014 Free Software Foundation, Inc.
375
376 Copying and distribution of this file, with or without modification,
377 are permitted in any medium without royalty provided the copyright
378 notice and this notice are preserved.
379
380 Local Variables:
381 mode: change-log
382 left-margin: 8
383 fill-column: 74
384 version-control: never
385 End: