Add x86 size relocation support to bfd
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2013-01-16 H.J. Lu <hongjiu.lu@intel.com>
2
3 * bfd-in2.h: Regenerated.
4 * libbfd.h: Likewise.
5
6 * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
7 (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
8 (elf_i386_check_relocs): Handle R_386_SIZE32.
9 (elf_i386_gc_sweep_hook): Likewise.
10 (elf_i386_relocate_section): Likewise.
11
12 * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
13 and R_X86_64_SIZE64 entries.
14 (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
15 (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
16 (elf_x86_64_reloc_name_lookup): Likewise.
17 (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
18 R_X86_64_SIZE64.
19 (elf_x86_64_gc_sweep_hook): Likewise.
20 (elf_x86_64_relocate_section): Likewise.
21
22 * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
23 BFD_RELOC_SIZE64.
24
25 2013-01-15 H.J. Lu <hongjiu.lu@intel.com>
26
27 * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
28 with R_X86_64_RELATIVE64.
29
30 2013-01-15 Nick Clifton <nickc@redhat.com>
31
32 * elf32-msp430.c: Fix spelling typo.
33
34 2013-01-15 Alan Modra <amodra@gmail.com>
35
36 * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
37 plt-thread-safe.
38
39 2013-01-14 Alan Modra <amodra@gmail.com>
40
41 PR binutils/14813
42 * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
43 (memory_bclose): Likewise. Return 0 on success.
44 * cache.c (cache_bclose): Likewise.
45 * opncls.c (opncls_bclose, bfd_close): Likewise.
46 * vms-lib.c (vms_lib_bclose): Likewise.
47 * libbfd.h: Regenerate.
48
49 2013-01-13 Alan Modra <amodra@gmail.com>
50
51 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
52 Add ref_dynamic_nonweak.
53 * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
54 (_bfd_elf_merge_symbol): Don't call above function. Move
55 setting of ref_dynamic_nonweak and dynamic_def earlier. Don't
56 clear dynamic_def.
57 (elf_link_add_object_symbols): Delete redundant "override" test.
58 Don't set dynamic_def here.
59 (elf_link_output_extsym): Update.
60
61 2013-01-12 H.J. Lu <hongjiu.lu@intel.com>
62
63 * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
64 normal and TLS symbol access.
65 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
66
67 2013-01-12 Alan Modra <amodra@gmail.com>
68
69 * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
70 * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
71 * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
72
73 2013-01-12 Alan Modra <amodra@gmail.com>
74
75 PR ld/12549
76 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
77 (_bfd_elf_strtab_clear_all_refs): Define.
78 * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
79 (_bfd_elf_strtab_clear_all_refs): Delete.
80 * elflink.c (elf_link_add_object_symbols): Clear out added
81 strtab refs. Correct handling of warning common symbols.
82
83 2013-01-10 H.J. Lu <hongjiu.lu@intel.com>
84
85 * aout0.c: Remove trailing white spaces.
86 * archive.c: Likewise.
87 * archures.c: Likewise.
88 * bfd-in.h: Likewise.
89 * bfd-in2.h: Likewise.
90 * coff-alpha.c: Likewise.
91 * coff-i860.c: Likewise.
92 * coff-mips.c: Likewise.
93 * coff-ppc.c: Likewise.
94 * coff-tic80.c: Likewise.
95 * coff-x86_64.c: Likewise.
96 * coff-z80.c: Likewise.
97 * coffcode.h: Likewise.
98 * coffgen.c: Likewise.
99 * cofflink.c: Likewise.
100 * compress.c: Likewise.
101 * corefile.c: Likewise.
102 * cpu-arm.c: Likewise.
103 * cpu-avr.c: Likewise.
104 * cpu-bfin.c: Likewise.
105 * cpu-cr16.c: Likewise.
106 * cpu-cr16c.c: Likewise.
107 * cpu-crx.c: Likewise.
108 * cpu-h8300.c: Likewise.
109 * cpu-i386.c: Likewise.
110 * cpu-lm32.c: Likewise.
111 * cpu-m68k.c: Likewise.
112 * cpu-moxie.c: Likewise.
113 * cpu-msp430.c: Likewise.
114 * cpu-sh.c: Likewise.
115 * cpu-xc16x.c: Likewise.
116 * dwarf2.c: Likewise.
117 * ecofflink.c: Likewise.
118 * ecoffswap.h: Likewise.
119 * elf-ifunc.c: Likewise.
120 * elf-m10300.c: Likewise.
121 * elf-vxworks.c: Likewise.
122 * elf32-avr.c: Likewise.
123 * elf32-avr.h: Likewise.
124 * elf32-cr16.c: Likewise.
125 * elf32-cr16c.c: Likewise.
126 * elf32-cris.c: Likewise.
127 * elf32-crx.c: Likewise.
128 * elf32-frv.c: Likewise.
129 * elf32-hppa.c: Likewise.
130 * elf32-i860.c: Likewise.
131 * elf32-ip2k.c: Likewise.
132 * elf32-iq2000.c: Likewise.
133 * elf32-m32c.c: Likewise.
134 * elf32-m68hc1x.c: Likewise.
135 * elf32-msp430.c: Likewise.
136 * elf32-mt.c: Likewise.
137 * elf32-ppc.c: Likewise.
138 * elf32-rl78.c: Likewise.
139 * elf32-s390.c: Likewise.
140 * elf32-score.h: Likewise.
141 * elf32-sh-symbian.c: Likewise.
142 * elf32-sh.c: Likewise.
143 * elf32-spu.c: Likewise.
144 * elf32-tic6x.c: Likewise.
145 * elf32-v850.c: Likewise.
146 * elf32-xc16x.c: Likewise.
147 * elf32-xtensa.c: Likewise.
148 * elf64-alpha.c: Likewise.
149 * elf64-hppa.c: Likewise.
150 * elf64-ppc.c: Likewise.
151 * elf64-s390.c: Likewise.
152 * elfcore.h: Likewise.
153 * elflink.c: Likewise.
154 * elfxx-mips.c: Likewise.
155 * elfxx-sparc.c: Likewise.
156 * elfxx-tilegx.c: Likewise.
157 * ieee.c: Likewise.
158 * libcoff.h: Likewise.
159 * libpei.h: Likewise.
160 * libxcoff.h: Likewise.
161 * linker.c: Likewise.
162 * mach-o-i386.c: Likewise.
163 * mach-o-target.c: Likewise.
164 * mach-o.c: Likewise.
165 * mach-o.h: Likewise.
166 * mmo.c: Likewise.
167 * opncls.c: Likewise.
168 * pdp11.c: Likewise.
169 * pe-x86_64.c: Likewise.
170 * peXXigen.c: Likewise.
171 * pef-traceback.h: Likewise.
172 * pei-x86_64.c: Likewise.
173 * peicode.h: Likewise.
174 * plugin.c: Likewise.
175 * reloc.c: Likewise.
176 * riscix.c: Likewise.
177 * section.c: Likewise.
178 * som.c: Likewise.
179 * syms.c: Likewise.
180 * tekhex.c: Likewise.
181 * ticoff.h: Likewise.
182 * vaxbsd.c: Likewise.
183 * xcofflink.c: Likewise.
184 * xtensa-isa.c: Likewise.
185
186 2013-01-10 Will Newton <will.newton@imgtec.com>
187
188 * Makefile.am: Add Meta.
189 * Makefile.in: Regenerate.
190 * archures.c (bfd_mach_metag): New.
191 * bfd-in2.h: Regenerate.
192 * config.bfd: Add Meta.
193 * configure: Regenerate.
194 * configure.in: Add Meta.
195 * cpu-metag.c: New file.
196 * elf-bfd.h: Add Meta.
197 * elf32-metag.c: New file.
198 * elf32-metag.h: New file.
199 * libbfd.h: Regenerate.
200 * reloc.c: Add Meta relocations.
201 * targets.c: Add Meta.
202
203 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
204
205 * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
206 (elfcore_write_aarch_hw_break): Likewise.
207 (elfcore_write_aarch_hw_watch): Likewise.
208 * elf.c (elfcore_grok_aarch_tls): New function.
209 (elfcore_grok_aarch_hw_break): Likewise.
210 (elfcore_grok_aarch_hw_watch): Likewise.
211 (elfcore_grok_note): Call the new functions to handle the
212 corresponding notes.
213 (elfcore_write_aarch_tls): New function.
214 (elfcore_write_aarch_hw_break): Likewise.
215 (elfcore_write_aarch_hw_watch): Likewise.
216 (elfcore_write_register_note): Call the new functions to handle the
217 corresponding pseudo sections.
218
219 2013-01-07 Tom Tromey <tromey@redhat.com>
220
221 * section.c (_bfd_std_section): Rename from std_section.
222 (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
223 (STD_SECTION): Update.
224 * bfd-in2.h: Rebuild.
225
226 2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
227
228 * archures.c (bfd_mach_mips5900): Define.
229 * bfd-in2.h: Regenerate.
230 * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
231 * cpu-mips.c: Add support for MIPS r5900.
232 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
233
234 2013-01-03 Nickolai Zeldovich <nickolai@csail.mit.edu>
235 Nick Clifton <nickc@redhat.com>
236
237 * elflink.c (get_value): Prevent the use of an undefined shift
238 operation. Add sanity checks.
239
240 2013-01-02 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
241
242 * config.bfd (cr16*-*-uclinux*): New target support.
243
244
245 For older changes see ChangeLog-2012
246 \f
247 Copyright (C) 2013 Free Software Foundation, Inc.
248
249 Copying and distribution of this file, with or without modification,
250 are permitted in any medium without royalty provided the copyright
251 notice and this notice are preserved.
252
253 Local Variables:
254 mode: change-log
255 left-margin: 8
256 fill-column: 74
257 version-control: never
258 End:
This page took 0.035627 seconds and 4 git commands to generate.