* regcache.c (new_register_cache): Clear the allocated register
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
838e70c5
L
12004-01-25 H.J. Lu <hongjiu.lu@intel.com>
2
3 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
4 relocations against dynamic symbols.
5
4f199be3
DJ
62004-01-23 Daniel Jacobowitz <drow@mvista.com>
7
8 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
9 change.
10
28d39d1a
NC
112004-01-21 Tom Rix <tcrix@worldnet.att.net>
12
13 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
14 * bfd-in2.h, libbfd.h: Rebuilt.
15
66bed356
DS
162004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
17
18 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
19 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
20 flag has been cleared.
21
7e89635a
KH
222004-01-19 Kazu Hirata <kazu@cs.umass.edu>
23
24 * coff-h8300.c: Add and adjust comments about relaxation.
25 * elf32-h8300.c: Likewise.
26
e804e836
KH
272004-01-16 Kazu Hirata <kazu@cs.umass.edu>
28
29 * coff-h8300.c: Fix comment typos.
30 * elf32-h8300.c: Likewise.
31
630a7b0a
KH
322004-01-16 Kazu Hirata <kazu@cs.umass.edu>
33
34 * coff-h8300.c: Add comments about relaxation.
35 * elf32-h8300.c: Likewise.
36
f8b73030
MR
372004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
38
39 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
40 throughout.
41 * aclocal.m4: Regenerate.
42 * configure: Regenerate.
43
32159579
ILT
442004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
45
46 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
47 mips_elf64_rtype_to_howto instead of using howto_table.
48
c84cd8ee
DJ
492004-01-13 Daniel Jacobowitz <drow@mvista.com>
50
51 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
52 the .plt section.
53 (elf32_arm_check_relocs): Don't increment the PLT refcount for
54 relocs which would not use the PLT.
55
680a3378
AM
562004-01-13 Alan Modra <amodra@bigpond.net.au>
57
58 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
59 (ppc64_elf_gc_sweep_hook): Likewise.
60 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
61
faca21e5
NC
622004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
63
64 Adds linker relaxation support for bit manipulation insns like
680a3378 65 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
faca21e5 66 bst, btst, bxor.
680a3378 67 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
faca21e5 68 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
680a3378 69 * coff-h8300.c: Opcode for bit manipulation insn is checked in
faca21e5
NC
70 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
71
818a27ac
AM
722004-01-12 Alan Modra <amodra@bigpond.net.au>
73
74 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
75
96ef1419
KH
762004-01-11 Kazu Hirata <kazu@cs.umass.edu>
77
78 * elf32-h8300.c: Fix formatting.
79
babfd660
KH
802004-01-11 Kazu Hirata <kazu@cs.umass.edu>
81
82 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
83 dynamic object is present. Declare r_symndx and h in an inner
84 scope.
85 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
86
7359ea65
DJ
872004-01-09 Daniel Jacobowitz <drow@mvista.com>
88
89 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
90 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
91 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
92 identically. Do not emit PC24 relocations for shared libraries.
93 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
94 identically. Don't adjust pc_count.
95 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
96 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
97 adjust count for branch relocations.
98 (allocate_dynrelocs): Correct typo in call to
99 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
100 PC24 or PLT32 relocs when linking.
101
44e88952
NC
1022004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
103
104 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
105 relocation howto with ARM_26 one for consistency.
106 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
107 that will be converted to ARM_26D ones, since we always want 'done'
108 relocations to be reflected in section's data.
109 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
110 offset.
111 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
112 requested.
113
1e7fef1d
NC
1142004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
115
116 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
117 are not partial_inplace during a relocatable link.
118
4f075348
KH
1192004-01-08 Kazu Hirata <kazu@cs.umass.edu>
120
babfd660 121 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
4f075348
KH
122 if no dynamic object is present. Declare r_symndx and h in an
123 inner scope.
124
de0d9f33
L
1252004-01-07 H.J. Lu <hongjiu.lu@intel.com>
126
127 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
128 trampoline if it is known out of range.
129
51532845
AO
1302004-01-06 Alexandre Oliva <aoliva@redhat.com>
131
132 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
133 * elf32-frv.c (_frv_osec_readonly_p): New.
134 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
135 undefweak symbol.
136 (_frv_count_got_plt_entries): Adjust expected count accordingly.
137 (elf32_frv_relocate_section): Likewise. Error out if attempting
138 to emit rofixups or dynamic relocs in read-only segments. Use
139 _bfd_elf_section_offset to adjust r_offsets in rofixups and
140 dynamic relocations.
141 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
142 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
143 relocations or fixups involving merged sections correctly. Avoid
144 crash when undefined symbol is referenced by R_FRV_32 or
145 R_FRV_FUNCDESC_VALUE.
146 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
147 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
148 input section holding local symbol to addend of R_FRV_32 or
149 R_FRV_FUNCDESC_VALUE dynamic relocation.
150 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
151 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
152 (elf32_frv_always_size_sections): Don't store pointer to
153 __stacksize symbol in sec_info.
154 (elf32_frv_modify_segment_map): Look it up here.
155 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
156 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
157 of the lazy PLT entry, not only its offset, as the low word of a
158 function descriptor.
159 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
160 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
161 if a hash table entry already exists but is not a definition.
162 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
163 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
164 (_frv_add_rofixup): Don't inline.
165 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
166 for undefweak symbols.
167 (elf32_frv_relocate_section): Avoid crash while computing
168 relocation when linking with shared library. Only emit rofixups
169 and dynamic relocations for alloc&load sections. Mark binaries
170 with inter-segment relocations for relocation as a unit.
171 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
172 (DEFAULT_STACK_SIZE): New.
173 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
174 emit rofixups or dynamic relocs when linking dynamic non-PIE
175 executables.
176 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
177 shared libs too. Reserve the last entry for the GOT pointer.
178 (elf32_frv_finish_dynamic_sections): Emit it.
179 (elf32_frv_always_size_sections): New.
180 (elf32_frv_modify_segment_map): New.
181 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
182 sections.
183 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
184 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
185 (elf_backend_always_size_sections): New.
186 (elf_backend_modify_segment_map): New.
187 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
188 * config.bfd: Added frv-*-*linux*.
189 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
190 ABS section, instead of crashing.
191 (elf32_frv_relocate_section): Don't crash before warning about
192 different segments in non-PIC relocation.
193 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
194 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
195 relocs to undefweak symbols.
196 (elf32_frv_relocate_section): Ditto for undefined symbols.
197 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
198 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
199 gotfixup section was created.
200 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
201 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
202 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
203 complain_overflow_signed.
204 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
205 have not been allocated.
206 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
207 privfd only if dynamic sections were created.
208 (elf32_frv_relocate_section): Compute gprel_segment, and use it
209 for GPREL relocs. When linking relocatable FDPIC executables,
210 emit warnings for relocations that would be illegal on PIE or
211 shared libraries. Emit rofixup for R_FRV_32 only if input object
212 is not FDPIC.
213 (_frv_create_got_section): Define _gp symbol in the rofixup
214 section.
215 (elf32_frv_finish_dynamic_sections): If rofixups needed but
216 dynamic sections missing, error out requesting -melf32frvfd.
217 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
218 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
219 computation of addends from section and global or local symbol
220 value. Change return type to bfd_boolean, and return a failure if
221 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
222 nonzero addend is required.
223 (elf32_frv_relocate_section): Likewise. Print error for
224 unsupported nonzero addends.
225 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
226 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
227 force everything local.
228 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
229 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
230 (frv_gotfixup_section): New.
231 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
232 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
233 and relocsfdv.
234 (_frv_add_rofixup): New.
235 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
236 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
237 improve some ugly conditions.
238 (elf32_frv_relocate_section): Likewise. Reject inter-segment
239 relocations in fdpic.
240 (_frv_create_got_section): Create .rofixup.got section.
241 (struct _frv_dynamic_got_info): Added fixups.
242 (_frv_count_got_plt_entries): Account in-GOT relocations into
243 relocs32, relocsfd and relocsfdv. Account them into relocs or
244 fixups, as appropriate.
245 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
246 sizing of gotrel.
247 (elf32_frv_finish_dynamic_sections): Verify that the right number
248 of relocations and fixups was generated.
249 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
250 relocsfdv.
251 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
252 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
253 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
254 descriptor of a (formerly-)global symbol is local.
255 (struct frv_pic_relocs_info): Adjust comments.
256 (_frv_emit_got_relocs_plt_entries): Adjust.
257 (elf32_frv_relocate_section): Likewise.
258 (_frv_count_got_plt_entries): Likewise.
259 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
260 symbol's value to addend in the common preamble. Decay dynamic
261 symbols to section+offset if they bind or call locally, for GOT
262 and FUNCDESC_VALUE, respectively.
263 (elf32_frv_relocate_section): Likewise.
264 (elf32_frv_check_relocs): Don't register as dynamic symbols of
265 internal or hidden visibility.
266 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
267 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
268 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
269 (elf32_frv_relocate_section): Pass relocation addend in. Use
270 original relocation addend to look up the got relocs/plt entries
271 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
272 processing relocations that reference .scommon symbols.
273 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
274 Introduce support for dynamic linking.
275 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
276 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
277 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
278 (frv_reloc_type_lookup): Return REL howtos for executables and
279 dynamic libraries.
280 (frv_info_to_howto_rel): New.
281 (struct frv_elf_link_hash_table): New.
282 (frv_hash_table, frv_got_section, frv_gotrel_section,
283 frv_plt_section, frv_pltrel_section, frv_relocs_info,
284 frv_got_initial_offset, frv_plt_initial_offset): New macros.
285 (frv_elf_link_hash_table_create): New.
286 (struct frv_pic_relocs_info): New.
287 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
288 (frv_pic_relocs_info_find): New.
289 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
290 New.
291 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
292 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
293 (_frv_emit_got_relocs_plt_entries): New.
294 (elf32_frv_relocate_section): Add support for dynamic linking.
295 Handle new relocations.
296 (_frv_create_got_section): New.
297 (elf32_frv_create_dynamic_sections): New.
298 (ELF_DYNAMIC_INTERPRETER): New.
299 (struct _frv_dynamic_got_info): New.
300 (_frv_count_got_plt_entries): New.
301 (struct _frv_dynamic_got_plt_info): New.
302 (_frv_compute_got_alloc_data): New.
303 (_frv_get_got_entry, _frv_get_fd_entry): New.
304 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
305 (_frv_resolve_final_relocs_info): New.
306 (elf32_frv_size_dynamic_sections): New.
307 (elf32_frv_finish_dynamic_sections): New.
308 (elf32_frv_adjust_dynamic_symbol): New.
309 (elf32_frv_finish_dynamic_symbol): New.
310 (elf32_frv_check_relocs): Handle new relocs. Explain how the
311 whole thing works.
312 (elf_info_to_howto_rel): Define.
313 (bfd_elf32_bfd_link_hash_table_create): Define.
314 (elf_backend_create_dynamic_sections): Define.
315 (elf_backend_adjust_dynamic_symbol): Define.
316 (elf_backend_size_dynamic_sections): Define.
317 (elf_backend_finish_dynamic_symbol): Define.
318 (elf_backend_finish_dynamic_sections): Define.
319 (elf_backend_want_got_sym): Define.
320 (elf_backend_got_header_size): Define.
321 (elf_backend_want_got_plt): Define.
322 (elf_backend_plt_readonly): Define.
323 (elf_backend_want_plt_sym): Define.
324 (elf_backend_plt_header_size): Define.
325 (elf_backend_may_use_rel_p): Define.
326 (elf_backend_may_use_rela_p): Define.
327 (elf_backend_default_use_rela_p): Define.
328 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
329 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
330 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
331 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
332 (frv_reloc_map): Map the corresponding BFD relocs to them.
333 (frv_reloc_type_lookup): ... and back to BFD relocs.
334 * reloc.c: New relocs.
335 * bfd-in2.h, libbfd.h: Rebuilt.
336 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
337 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
338 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
339 R_FRV_FUNCDESC_GOTLO): New.
340 (frv_reloc_map): Map the corresponding BFD relocs to them.
341 (frv_reloc_type_lookup): ... and back to BFD relocs.
342 * reloc.c: New relocs.
343 * bfd-in2.h, libbfd.h: Rebuilt.
344
4301eeb1
MR
3452004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
346
347 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
348 targets to support pages of up to 64kB.
349 (elf32_bed): Redefine to get a separate backend data structure for
350 traditional targets.
351 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
352 targets to support pages of up to 64kB.
353 (elf64_bed): Redefine to get a separate backend data structure for
354 traditional targets.
355 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
356 targets to support pages of up to 64kB.
357 (elf32_bed): Redefine to get a separate backend data structure for
358 traditional targets.
359
0647ed71
MK
3602004-01-04 Mark Kettenis <kettenis@gnu.org>
361
362 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
363
61adc1a4
NC
3642004-01-02 Mark Kettenis <kettenis@gnu.org>
365
366 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
367 (elf_i386_grok_psinfo): Likewise.
368
b50c15dc
NC
3692004-01-02 Bernardo Innocenti <bernie@develer.com>
370
371 * config.bfd: Add m68k-uClinux target.
372
2627de83
AM
3732004-01-01 Grant Edwards <grante@visi.com>
374
375 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
376 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
377 (elf32_h8_gc_sweep_hook): New function.
378 (elf_backend_gc_mark_hook): Define.
379 (elf_backend_gc_sweep_hook): Define.
380 (elf_backend_can_gc_sections): Define.
381
c9e214e5 382For older changes see ChangeLog-0203
56882138
AM
383\f
384Local Variables:
385mode: change-log
386left-margin: 8
387fill-column: 74
388version-control: never
389End:
This page took 0.226943 seconds and 4 git commands to generate.