Revert "lsdx", "lsdi", "stsdx", "stsdi", "lmd" and "stmd" insns.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
51992aec
AM
12004-03-16 Alan Modra <amodra@bigpond.net.au>
2
3 * elflink.c (elf_link_read_relocs_from_section): Don't use
4 NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check..
5 (_bfd_elf_link_read_relocs): ..to here.
6 * elf32-ppc.c (ppc_elf_relax_section): Formatting.
7
ccba357f
AM
82004-03-16 Alan Modra <amodra@bigpond.net.au>
9
10 * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override
11 values selected in configure.host. Require both to be defined
12 before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to
13 corresponding BFD_HOST vars with quotes.
14 <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc;
15 Always require BFD_HOST_64_BIT_DEFINED.
16 <file_ptr type>: Find off_t size before emitting message. Combine
17 off_t and ftello64 conditional.
18 * configure: Regenerate.
19
41978308
AM
202004-03-16 Alan Modra <amodra@bigpond.net.au>
21
22 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
23 aliasing warning. Remove trailing whitespace throughout file.
24
d63b5ed9
DA
252004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26
27 * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of
28 input_section in calls to get_dyn_name.
29 * elf64-hppa.c (get_dyn_name): Change type of first argument to "bfd *". Use section id of first section in input BFD to build dynamic name for
30 local symbols.
31 (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
32
8ce8c090
AM
332004-03-15 Alan Modra <amodra@bigpond.net.au>
34
35 * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types.
36 (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here.
37 (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t.
38 (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t.
39 (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t.
40 * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8.
41 (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set
42 when using long.
43 * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t.
44 (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT.
45 (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
46 (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT.
47 (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise.
48 * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t.
49 (read_8_bytes, read_indirect_string, read_address): Likewise.
50 (read_abbrevs, parse_comp_unit): Likewise.
51 * targets.c (struct bfd_target): Likewise.
52 * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use.
53 * hppabsd-core.c: Likewise. Formatting.
54 * hpux-core.c: Likewise.
55 * irix-core.c: Likewise.
56 * netbsd-core.c: Likewise.
57 * osf-core.c: Likewise.
58 * ptrace-core.c: Likewise.
59 * sco5-core.c: Likewise.
60 * trad-core.c: Likewise.
61 * configure: Regenerate.
62 * bfd-in2.h: Regenerate.
63
edeb6e24
AM
642004-03-15 Alan Modra <amodra@bigpond.net.au>
65
66 * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
67 (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
68 (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
69 (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
70 (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
71 (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
72 (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
73 * libbfd.c: Likewise in function definitions.
74 (bfd_put_8): Mask with 0xff rather than casting to char.
75 (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
76 (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
77 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
78 (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
79 (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
80 (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
81 * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
82 (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
83 (H_GET_64, H_GET_32, H_GET_16): Likewise.
84 (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
85 * archive.c (do_slurp_coff_armap): Update swap prototype.
86 * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
87 (tic54x_getl_signed_32): Likewise.
88 (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
89 * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
90 * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
91 (bfd_getp_signed_32, bfd_putp32): Likewise.
92 * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
93 bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
94 bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
95 bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
96 bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
97 bfd_h_getx_signed_16, bfd_h_putx16.
98 * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
99 * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
100 * hpux-core.c: Likewise.
101 * irix-core.c: Likewise.
102 * netbsd-core.c: Likewise.
103 * osf-core.c: Likewise.
104 * ptrace-core.c: Likewise.
105 * sco5-core.c: Likewise.
106 * trad-core.c: Likewise.
107 * bfd-in2.h: Regenerate.
108
c1b954e2
AM
1092004-03-15 Matt Thomas <matt@3am-software.com>
110
111 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
112 selected.
113
85cfd8d3
MK
1142004-03-13 Mark Kettenis <kettenis@gnu.org>
115
116 * config.bfd: Add x86_64-*-openbsd*.
117 * configure.in (x86_64-*-openbsd*): Set COREFILE to
118 netbsd-core.lo.
119 * configure: Regenerate.
120
d1f161ea
NC
1212004-03-12 Nick Clifton <nickc@redhat.com>
122 Dave Murphy <wintermute2k4@ntlworld.com>
c1b954e2 123
d1f161ea
NC
124 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
125 if the input bfd does not contain any code.
126
8b6f2683
JW
1272004-03-09 Steve Ellcey <sje@cup.hp.com>
128
129 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
130
79cda7cf
FF
1312004-03-05 Fred Fish <fnf@redhat.com>
132
133 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
134 mips16 symbols to be even rather than testing first for even/odd.
135 (_bfd_mips_elf_link_output_symbol_hook): Ditto.
136
e5caec89
NS
1372004-03-05 Nathan Sidwell <nathan@codesourcery.com>
138
139 * elf.c (map_sections_to_segments): Ignore .tbss sections for
140 layout purposes.
141
02bb6eae
AO
1422004-03-03 Alexandre Oliva <aoliva@redhat.com>
143
144 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
145 undefined symbols as hash_new.
146
ae51a426
JR
1472003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
148
149 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
150 * cpu-sh.c: Ditto.
151 * elf32-sh.c: Ditto.
152 * bfd-in2.h: Regenerate.
153
3b712a1a
AO
1542004-03-02 Alexandre Oliva <aoliva@redhat.com>
155
156 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
157 dynrelocs.
158 (_frv_count_got_plt_entries): Initialize them.
159 (frv_pic_relocs_info_find): Add insert argument. Adjust all
160 callers.
161 (frv_pic_relocs_info_for_global): Likewise.
162 (frv_pic_relocs_info_for_local): Likewise.
163 (frv_pic_merge_early_relocs_info): New.
164 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
165 another.
166 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
167 Check that we don't exceed the allocated count for entry.
168 (_frv_add_rofixup): Likewise.
169 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
170 (elf32_frv_finish_dynamic_sections): Improve error message in case
171 we emit too few rofixup entries.
172
676a64f4
RS
1732004-03-01 Richard Sandiford <rsandifo@redhat.com>
174
175 * archures.c (bfd_mach_fr450): New.
176 * bfd-in2.h: Regenerate.
177 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
178 (arch_info_500): Link to it.
179 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
180 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
181 (frv_elf_arch_extension_p): New function.
182 (frv_elf_merge_private_bfd_data): Use it.
183
0ad989f9
L
1842004-02-28 H.J. Lu <hongjiu.lu@intel.com>
185
186 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
187
188 * elflink.h (is_global_data_symbol_definition): Moved to
189 elflink.c.
190 (elf_link_is_defined_archive_symbol): Likewise.
191 (elf_link_add_archive_symbols): Likewise. Renamed to
192 _bfd_elf_link_add_archive_symbols.
193
194 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
195 of ELF symbol table entry from backend.
196 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
197 instead of elf_link_add_object_symbols.
198
ec3391e7
AO
1992004-02-27 Alexandre Oliva <aoliva@redhat.com>
200
201 * elf-bfd.h (struct elf_backend_data): Added
202 elf_backend_can_make_relative_eh_frame,
203 elf_backend_can_make_lsda_relative_eh_frame and
204 elf_backend_encode_eh_address.
205 (_bfd_elf_encode_eh_address): Declare.
206 (_bfd_elf_can_make_relative): Declare.
207 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
208 hooks to decide whether to attempt to make_relative and
209 make_lsda_relative.
210 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
211 (_bfd_elf_can_make_relative): New.
212 (_bfd_elf_encode_eh_address): New.
213 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
214 (frv_elf_encode_eh_address): New.
215 (elf_backend_can_make_relative_eh_frame): Define.
216 (elf_backend_can_make_lsda_relative_eh_frame): Define.
217 (elf_backend_encode_eh_address): Define.
218 * elfxx-target.h
219 (elf_backend_can_make_relative_eh_frame): Define.
220 (elf_backend_can_make_lsda_relative_eh_frame): Define.
221 (elf_backend_encode_eh_address): Define.
222 (elfNN_bed): Add them.
223
e6deed0a
AO
2242004-02-27 Alexandre Oliva <aoliva@redhat.com>
225
226 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
227 complain_on_overflow to signed.
228
b60d7a1a
L
2292004-02-27 H.J. Lu <hongjiu.lu@intel.com>
230
231 * elflink.h (sort_symbol): New.
232 (elf_link_add_object_symbols): Use a sorted symbol array for
233 weakdef.
234
1c3ff0f2
MS
2352004-02-27 Jakub Jelinek <jakub@redhat.com>
236
237 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
238 for pc relative relocs.
239 (elf_s390_relocate_section): Likewise.
240 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
241 for pc relative relocs.
242 (elf_s390_relocate_section): Likewise.
243
de9811af
L
2442004-02-26 H.J. Lu <hongjiu.lu@intel.com>
245
246 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
247 count_dyn_reloc.
248
ac33696c
L
2492004-02-25 H.J. Lu <hongjiu.lu@intel.com>
250
251 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
252 field to track if a relocation is against readonly section.
253 (count_dyn_reloc): Take a new argument for rent->reltext.
254 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
255 (get_reloc_section): Don't set ia64_info->reltext here.
256 (allocate_dynrel_entries): Set ia64_info->reltext here.
257
072c8903
AO
2582004-02-24 Alexandre Oliva <aoliva@redhat.com>
259
260 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
261 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
262 function's descriptor to symbol+offset, and map local undefweak
263 symbol to NULL function descriptor.
264 (elf32_frv_relocate_section): Likewise.
265
aca305d9
NC
2662004-02-23 Mark Kettenis <kettenis@gnu.org>
267
268 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
269 M_X86_64_NETBSD.
270 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
271 (netbsd_core_file_p): Set architecture from machine ID for
272 selected machines.
273
646411fb
JJ
2742004-02-23 Jakub Jelinek <jakub@redhat.com>
275
276 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
277 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
278
1de1a317
L
2792004-02-21 H.J. Lu <hongjiu.lu@intel.com>
280
281 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
282 symbols with non-default visibility.
283
3c9d0484
DS
2842004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
285
286 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
287 IMAGE_SCN_MEM_WRITE on known sections only.
288
a876ecf9
JJ
2892004-02-20 Jakub Jelinek <jakub@redhat.com>
290
291 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
292 symbols used in PIE relocs.
293
a8a6d7ce
JJ
2942004-02-19 Jakub Jelinek <jakub@redhat.com>
295
296 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
297 .plt sh_entsize.
298
d080fcd2
DJ
2992004-02-18 Daniel Jacobowitz <drow@mvista.com>
300
301 * configure.in: Update version to 2.15.90.
302 * configure: Regenerate.
303
d25aed71 3042004-02-17 Daniel Jacobowitz <drow@mvista.com>
c1b954e2 305 Richard Sandiford <rsandifo@redhat.com>
d25aed71
RS
306
307 * elfxx-mips.c (mips_elf_calculate_relocation): Use
308 _bfd_elf_symbol_refs_local_p to decide whether to decay
309 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
310 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
311 relocs if the symbol wasn't defined by a regular object file.
312 Don't check the symbol's dynindx.
313
d7ce59e3
AC
3142004-02-16 Andrew Cagney <cagney@redhat.com>
315
316 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
317 @bfd_file_ptr@.
318 * bfd-in2.h: Re-generate.
319
ca0b7686
AC
3202004-02-14 Andrew Cagney <cagney@redhat.com>
321
322 * configure.host (HDEFINES): When hppa*-*-hpux*, define
323 _LARGEFILE64_SOURCE.
324
340b6d91
AC
3252004-02-13 Andrew Cagney <cagney@redhat.com>
326
327 * elf.c (vma_page_aligned_bias): New function.
328 (assign_file_positions_except_relocs)
329 (assign_file_positions_for_segments): Replace broken modulo
330 arithmetic with call to vma_page_aligned_bias.
331
1012372a
AC
3322004-02-11 Andrew Cagney <cagney@redhat.com>
333
7c192733
AC
334 * bfd-in.h: Update copyright.
335 (bfd_tell): Change return type to file_ptr.
336 * bfd-in2.h: Re-generate.
337 * cache.c: Update copyright.
338 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
339 parameter.
340 (close_one): Use real_ftell.
341 * bfdio.c: Update copyright.
342 (real_ftell, real_fseek): New functions.
343 (bfd_tell): Use real_fseek and real_ftell, change return type to
344 file_ptr.
345 (bfd_seek): Use real_ftell and real_fseek, change type of
346 file_position to a file_ptr.
347 * libbfd-in.h: Update copyright.
348 (real_ftell, real_fseek): Declare.
349 * libbfd.h: Re-generate.
350
1012372a
AC
351 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
352 fseeko and fseeko64. Determine bfd_file_ptr.
353 * configure: Re-generate.
c1ea0c09 354 * config.in: Re-generate.
c1b954e2 355
3255318a
NC
3562004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
357
358 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
359 * elf32-h8300.c: Likewise.
360
0d5f9994
NC
3612004-02-09 Christian Vogel <vogelchr@vogel.cx>
362 Nick Clifton <nickc@redhat.com>
363
364 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
365 GOT entries with no associated GOT subsection.
366
174fd7f9
RS
3672004-02-09 Richard Sandiford <rsandifo@redhat.com>
368
369 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
370 * elf.c (swap_out_syms): Use it to decide whether local section
371 symbols should be named.
372 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
373 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
374 (elf_backend_name_local_section_symbols): Define.
375 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
376
03609792
L
3772004-01-30 H.J. Lu <hongjiu.lu@intel.com>
378
379 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
380 (elfNN_ia64_relax_section): Optimize brl to br during the relax
381 finalize pass.
382
ea01195e
AO
3832004-01-30 Alexandre Oliva <aoliva@redhat.com>
384
385 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
386 to bfd_link_hash_entry passed by reference to
387 _bfd_generic_link_add_one_symbol.
388
838e70c5
L
3892004-01-25 H.J. Lu <hongjiu.lu@intel.com>
390
391 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
392 relocations against dynamic symbols.
393
4f199be3
DJ
3942004-01-23 Daniel Jacobowitz <drow@mvista.com>
395
396 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
397 change.
398
28d39d1a
NC
3992004-01-21 Tom Rix <tcrix@worldnet.att.net>
400
401 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
402 * bfd-in2.h, libbfd.h: Rebuilt.
403
66bed356
DS
4042004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
405
406 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
407 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
408 flag has been cleared.
409
7e89635a
KH
4102004-01-19 Kazu Hirata <kazu@cs.umass.edu>
411
412 * coff-h8300.c: Add and adjust comments about relaxation.
413 * elf32-h8300.c: Likewise.
414
e804e836
KH
4152004-01-16 Kazu Hirata <kazu@cs.umass.edu>
416
417 * coff-h8300.c: Fix comment typos.
418 * elf32-h8300.c: Likewise.
419
630a7b0a
KH
4202004-01-16 Kazu Hirata <kazu@cs.umass.edu>
421
422 * coff-h8300.c: Add comments about relaxation.
423 * elf32-h8300.c: Likewise.
424
f8b73030
MR
4252004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
426
427 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
428 throughout.
429 * aclocal.m4: Regenerate.
430 * configure: Regenerate.
431
32159579
ILT
4322004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
433
434 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
435 mips_elf64_rtype_to_howto instead of using howto_table.
436
c84cd8ee
DJ
4372004-01-13 Daniel Jacobowitz <drow@mvista.com>
438
439 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
440 the .plt section.
441 (elf32_arm_check_relocs): Don't increment the PLT refcount for
442 relocs which would not use the PLT.
443
680a3378
AM
4442004-01-13 Alan Modra <amodra@bigpond.net.au>
445
446 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
447 (ppc64_elf_gc_sweep_hook): Likewise.
448 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
449
faca21e5
NC
4502004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
451
452 Adds linker relaxation support for bit manipulation insns like
680a3378 453 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
faca21e5 454 bst, btst, bxor.
680a3378 455 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
faca21e5 456 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
680a3378 457 * coff-h8300.c: Opcode for bit manipulation insn is checked in
faca21e5
NC
458 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
459
818a27ac
AM
4602004-01-12 Alan Modra <amodra@bigpond.net.au>
461
462 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
463
96ef1419
KH
4642004-01-11 Kazu Hirata <kazu@cs.umass.edu>
465
466 * elf32-h8300.c: Fix formatting.
467
babfd660
KH
4682004-01-11 Kazu Hirata <kazu@cs.umass.edu>
469
470 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
471 dynamic object is present. Declare r_symndx and h in an inner
472 scope.
473 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
474
7359ea65
DJ
4752004-01-09 Daniel Jacobowitz <drow@mvista.com>
476
477 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
478 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
479 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
480 identically. Do not emit PC24 relocations for shared libraries.
481 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
482 identically. Don't adjust pc_count.
483 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
484 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
485 adjust count for branch relocations.
486 (allocate_dynrelocs): Correct typo in call to
487 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
488 PC24 or PLT32 relocs when linking.
489
44e88952
NC
4902004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
491
492 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
493 relocation howto with ARM_26 one for consistency.
494 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
495 that will be converted to ARM_26D ones, since we always want 'done'
496 relocations to be reflected in section's data.
497 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
498 offset.
499 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
500 requested.
501
1e7fef1d
NC
5022004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
503
504 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
505 are not partial_inplace during a relocatable link.
506
4f075348
KH
5072004-01-08 Kazu Hirata <kazu@cs.umass.edu>
508
babfd660 509 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
4f075348
KH
510 if no dynamic object is present. Declare r_symndx and h in an
511 inner scope.
512
de0d9f33
L
5132004-01-07 H.J. Lu <hongjiu.lu@intel.com>
514
515 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
516 trampoline if it is known out of range.
517
51532845
AO
5182004-01-06 Alexandre Oliva <aoliva@redhat.com>
519
520 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
521 * elf32-frv.c (_frv_osec_readonly_p): New.
522 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
523 undefweak symbol.
524 (_frv_count_got_plt_entries): Adjust expected count accordingly.
525 (elf32_frv_relocate_section): Likewise. Error out if attempting
526 to emit rofixups or dynamic relocs in read-only segments. Use
527 _bfd_elf_section_offset to adjust r_offsets in rofixups and
528 dynamic relocations.
529 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
530 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
531 relocations or fixups involving merged sections correctly. Avoid
532 crash when undefined symbol is referenced by R_FRV_32 or
533 R_FRV_FUNCDESC_VALUE.
534 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
535 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
536 input section holding local symbol to addend of R_FRV_32 or
537 R_FRV_FUNCDESC_VALUE dynamic relocation.
538 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
539 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
540 (elf32_frv_always_size_sections): Don't store pointer to
541 __stacksize symbol in sec_info.
542 (elf32_frv_modify_segment_map): Look it up here.
543 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
544 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
545 of the lazy PLT entry, not only its offset, as the low word of a
546 function descriptor.
547 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
548 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
549 if a hash table entry already exists but is not a definition.
550 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
551 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
552 (_frv_add_rofixup): Don't inline.
553 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
554 for undefweak symbols.
555 (elf32_frv_relocate_section): Avoid crash while computing
556 relocation when linking with shared library. Only emit rofixups
557 and dynamic relocations for alloc&load sections. Mark binaries
558 with inter-segment relocations for relocation as a unit.
559 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
560 (DEFAULT_STACK_SIZE): New.
561 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
562 emit rofixups or dynamic relocs when linking dynamic non-PIE
563 executables.
564 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
565 shared libs too. Reserve the last entry for the GOT pointer.
566 (elf32_frv_finish_dynamic_sections): Emit it.
567 (elf32_frv_always_size_sections): New.
568 (elf32_frv_modify_segment_map): New.
569 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
570 sections.
571 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
572 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
573 (elf_backend_always_size_sections): New.
574 (elf_backend_modify_segment_map): New.
575 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
576 * config.bfd: Added frv-*-*linux*.
577 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
578 ABS section, instead of crashing.
579 (elf32_frv_relocate_section): Don't crash before warning about
580 different segments in non-PIC relocation.
581 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
582 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
583 relocs to undefweak symbols.
584 (elf32_frv_relocate_section): Ditto for undefined symbols.
585 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
586 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
587 gotfixup section was created.
588 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
589 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
590 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
591 complain_overflow_signed.
592 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
593 have not been allocated.
594 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
595 privfd only if dynamic sections were created.
596 (elf32_frv_relocate_section): Compute gprel_segment, and use it
597 for GPREL relocs. When linking relocatable FDPIC executables,
598 emit warnings for relocations that would be illegal on PIE or
599 shared libraries. Emit rofixup for R_FRV_32 only if input object
600 is not FDPIC.
601 (_frv_create_got_section): Define _gp symbol in the rofixup
602 section.
603 (elf32_frv_finish_dynamic_sections): If rofixups needed but
604 dynamic sections missing, error out requesting -melf32frvfd.
605 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
606 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
607 computation of addends from section and global or local symbol
608 value. Change return type to bfd_boolean, and return a failure if
609 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
610 nonzero addend is required.
611 (elf32_frv_relocate_section): Likewise. Print error for
612 unsupported nonzero addends.
613 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
614 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
615 force everything local.
616 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
617 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
618 (frv_gotfixup_section): New.
619 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
620 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
621 and relocsfdv.
622 (_frv_add_rofixup): New.
623 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
624 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
625 improve some ugly conditions.
626 (elf32_frv_relocate_section): Likewise. Reject inter-segment
627 relocations in fdpic.
628 (_frv_create_got_section): Create .rofixup.got section.
629 (struct _frv_dynamic_got_info): Added fixups.
630 (_frv_count_got_plt_entries): Account in-GOT relocations into
631 relocs32, relocsfd and relocsfdv. Account them into relocs or
632 fixups, as appropriate.
633 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
634 sizing of gotrel.
635 (elf32_frv_finish_dynamic_sections): Verify that the right number
636 of relocations and fixups was generated.
637 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
638 relocsfdv.
639 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
640 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
641 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
642 descriptor of a (formerly-)global symbol is local.
643 (struct frv_pic_relocs_info): Adjust comments.
644 (_frv_emit_got_relocs_plt_entries): Adjust.
645 (elf32_frv_relocate_section): Likewise.
646 (_frv_count_got_plt_entries): Likewise.
647 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
648 symbol's value to addend in the common preamble. Decay dynamic
649 symbols to section+offset if they bind or call locally, for GOT
650 and FUNCDESC_VALUE, respectively.
651 (elf32_frv_relocate_section): Likewise.
652 (elf32_frv_check_relocs): Don't register as dynamic symbols of
653 internal or hidden visibility.
654 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
655 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
656 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
657 (elf32_frv_relocate_section): Pass relocation addend in. Use
658 original relocation addend to look up the got relocs/plt entries
659 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
660 processing relocations that reference .scommon symbols.
661 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
662 Introduce support for dynamic linking.
663 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
664 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
665 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
666 (frv_reloc_type_lookup): Return REL howtos for executables and
667 dynamic libraries.
668 (frv_info_to_howto_rel): New.
669 (struct frv_elf_link_hash_table): New.
670 (frv_hash_table, frv_got_section, frv_gotrel_section,
671 frv_plt_section, frv_pltrel_section, frv_relocs_info,
672 frv_got_initial_offset, frv_plt_initial_offset): New macros.
673 (frv_elf_link_hash_table_create): New.
674 (struct frv_pic_relocs_info): New.
675 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
676 (frv_pic_relocs_info_find): New.
677 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
678 New.
679 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
680 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
681 (_frv_emit_got_relocs_plt_entries): New.
682 (elf32_frv_relocate_section): Add support for dynamic linking.
683 Handle new relocations.
684 (_frv_create_got_section): New.
685 (elf32_frv_create_dynamic_sections): New.
686 (ELF_DYNAMIC_INTERPRETER): New.
687 (struct _frv_dynamic_got_info): New.
688 (_frv_count_got_plt_entries): New.
689 (struct _frv_dynamic_got_plt_info): New.
690 (_frv_compute_got_alloc_data): New.
691 (_frv_get_got_entry, _frv_get_fd_entry): New.
692 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
693 (_frv_resolve_final_relocs_info): New.
694 (elf32_frv_size_dynamic_sections): New.
695 (elf32_frv_finish_dynamic_sections): New.
696 (elf32_frv_adjust_dynamic_symbol): New.
697 (elf32_frv_finish_dynamic_symbol): New.
698 (elf32_frv_check_relocs): Handle new relocs. Explain how the
699 whole thing works.
700 (elf_info_to_howto_rel): Define.
701 (bfd_elf32_bfd_link_hash_table_create): Define.
702 (elf_backend_create_dynamic_sections): Define.
703 (elf_backend_adjust_dynamic_symbol): Define.
704 (elf_backend_size_dynamic_sections): Define.
705 (elf_backend_finish_dynamic_symbol): Define.
706 (elf_backend_finish_dynamic_sections): Define.
707 (elf_backend_want_got_sym): Define.
708 (elf_backend_got_header_size): Define.
709 (elf_backend_want_got_plt): Define.
710 (elf_backend_plt_readonly): Define.
711 (elf_backend_want_plt_sym): Define.
712 (elf_backend_plt_header_size): Define.
713 (elf_backend_may_use_rel_p): Define.
714 (elf_backend_may_use_rela_p): Define.
715 (elf_backend_default_use_rela_p): Define.
716 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
717 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
718 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
719 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
720 (frv_reloc_map): Map the corresponding BFD relocs to them.
721 (frv_reloc_type_lookup): ... and back to BFD relocs.
722 * reloc.c: New relocs.
723 * bfd-in2.h, libbfd.h: Rebuilt.
724 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
725 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
726 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
727 R_FRV_FUNCDESC_GOTLO): New.
728 (frv_reloc_map): Map the corresponding BFD relocs to them.
729 (frv_reloc_type_lookup): ... and back to BFD relocs.
730 * reloc.c: New relocs.
731 * bfd-in2.h, libbfd.h: Rebuilt.
732
4301eeb1
MR
7332004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
734
735 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
736 targets to support pages of up to 64kB.
737 (elf32_bed): Redefine to get a separate backend data structure for
738 traditional targets.
739 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
740 targets to support pages of up to 64kB.
741 (elf64_bed): Redefine to get a separate backend data structure for
742 traditional targets.
743 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
744 targets to support pages of up to 64kB.
745 (elf32_bed): Redefine to get a separate backend data structure for
746 traditional targets.
747
0647ed71
MK
7482004-01-04 Mark Kettenis <kettenis@gnu.org>
749
750 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
751
61adc1a4
NC
7522004-01-02 Mark Kettenis <kettenis@gnu.org>
753
754 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
755 (elf_i386_grok_psinfo): Likewise.
756
b50c15dc
NC
7572004-01-02 Bernardo Innocenti <bernie@develer.com>
758
759 * config.bfd: Add m68k-uClinux target.
760
2627de83
AM
7612004-01-01 Grant Edwards <grante@visi.com>
762
763 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
764 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
765 (elf32_h8_gc_sweep_hook): New function.
766 (elf_backend_gc_mark_hook): Define.
767 (elf_backend_gc_sweep_hook): Define.
768 (elf_backend_can_gc_sections): Define.
769
c9e214e5 770For older changes see ChangeLog-0203
56882138
AM
771\f
772Local Variables:
773mode: change-log
774left-margin: 8
775fill-column: 74
776version-control: never
777End:
This page took 0.240203 seconds and 4 git commands to generate.