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