1 2002-01-25 Nick Clifton <nickc@redhat.com>
3 * po/fr.po: Updated translation.
4 * po/es.po: Updated translation.
6 2002-01-25 Philipp Thomas <pthomas@suse.de>
8 * coff-alpha.c (alpha_relocate_section): Unify warning message
9 for GP relative relocations without GP defined.
10 * coff-mips.c (mips_relocate_section): Likewise.
12 2002-01-25 Alan Modra <amodra@bigpond.net.au>
14 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
15 unsigned overflow when new_offset < old_offset.
17 2002-24-01 Philipp Thomas <pthomas@suse.de>
19 * bfd.c (_bfd_abort): Fix typo.
21 2002-01-23 Richard Henderson <rth@redhat.com>
23 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
24 plt entries for undefweak symbols.
26 2002-01-23 Steve Ellcey <sje@cup.hp.com>
28 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
30 (bfd_elf64_ia64_hpux_big_vec): Ditto.
31 (bfd_elf32_h8300_vec): Ditto.
33 2002-01-23 Alan Modra <amodra@bigpond.net.au>
35 * elf64-ppc.c: Remove stale part of ABI comment.
36 (NO_OPD_RELOCS): Define.
37 (ppc64_elf_check_relocs): Use it.
38 (ppc64_elf_relocate_section): Here too.
39 (build_one_stub): Don't point function syms at the stub. Instead,
41 (ppc64_elf_relocate_section): Check whether REL24 relocs should
42 really go to the stub. Make all dynamic relocs in opd against
44 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
47 2002-01-22 Richard Henderson <rth@redhat.com>
49 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
51 2002-01-22 Alan Modra <amodra@bigpond.net.au>
53 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
54 TOC_BASE_OFF adjustment.
56 * Makefile.am: Run "make dep-am".
57 * Makefile.in: Regenerate.
58 * po/SRC-POTFILES.in: Regenerate.
60 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
62 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
65 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
67 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
68 Check for and emit error if sgot is NULL at this point.
70 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
72 * config.bfd (ia64*-*-netbsd*): New target.
74 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
76 * som.c (som_write_space_strings): Comment typo fix.
78 2002-01-21 Alan Modra <amodra@bigpond.net.au>
80 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
81 is_func_descriptor fields.
82 (link_hash_newfunc): Init them.
83 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
84 dot are candidates for plt entries. When processing .opd relocs,
85 set function descriptor strings to point inside function code
86 string, and set new ppc_link_hash_entry fields.
87 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
88 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
89 function descriptors. It's now done in..
90 (func_desc_adjust): New.
91 (ppc64_elf_func_desc_adjust): New.
92 (define elf_backend_always_size_sections): Define.
93 (ppc64_elf_hide_symbol): New.
94 (define elf_backend_hide_symbol): Define.
95 (allocate_dynrelocs): Remove code looking up function descriptors
96 as that has been done earlier.
97 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
99 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
100 up function descriptor.
101 (build_one_stub): Look up the function code sym. Check for
103 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
104 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
106 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
108 (_bfd_elf_link_hash_hide_symbol): Likewise.
109 * elflink.h (elf_link_add_object_symbols): Adjust call to
110 elf_backend_hide_symbol.
111 (elf_fix_symbol_flags): Likewise.
112 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
114 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
115 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
116 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
117 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
118 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
120 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
121 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
122 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
124 2002-01-18 Alan Modra <amodra@bigpond.net.au>
126 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
127 dynamic function descriptor symbol, not the associated function
130 2002-01-17 Eric Christopher <echristo@redhat.com>
132 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
134 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
136 * po/bfd.pot: Regenerate.
137 * po/fr.po: Regenerate.
139 2002-01-17 Alan Modra <amodra@bigpond.net.au>
141 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
142 Remove "Elf_Internal_Shdr *" param.
143 (_bfd_mips_elf_section_from_bfd_section): Ditto.
144 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
145 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
146 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
147 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
148 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
149 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
150 function to override special sections. Remove hdr arg from
151 backend call, and don't loop.
153 2002-01-16 Eric Christopher <echristo@redhat.com>
155 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
156 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
157 relocations requiring gp0 and gp.
159 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
161 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
163 (elf32_arm_print_private_bfd_data): Likewise.
165 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
167 * po/tr.po: Import new version.
169 2002-01-16 Alan Modra <amodra@bigpond.net.au>
171 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
172 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
173 (ORI_R0_R0_0): Correct.
175 2002-01-16 Alan Modra <amodra@bigpond.net.au>
177 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
179 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
180 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
181 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
182 (ppc64_elf_glink_code): Delete.
183 (PPC64_ELF_GLINK_SIZE): Delete.
184 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
185 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
186 ORI_R0_R0_0): Define.
187 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
188 (struct ppc_link_hash_table): Add sstub and plt_overflow.
189 (ppc64_elf_link_hash_table_create): Init them.
190 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
191 Don't copy to shared lib.
192 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
193 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
194 (allocate_dynrelocs <plt>): Don't change function sym here. Make
195 room for .stub and .glink code.
196 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
198 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
199 bfd_elf64_bfd_final_link.
200 (bfd_elf64_bfd_final_link): Don't define.
201 (ppc64_elf_size_stubs): New.
202 (build_plt_stub): New.
203 (build_one_stub): New.
204 (ppc64_elf_build_stubs): New.
205 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
206 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
207 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
208 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
209 case output sections not separate. Adjust DT_RELASZ to not
210 include plt relocs. Set reserved got entry. Set got and plt
212 (elf_backend_got_header_size): Set to 8.
213 * elf64-ppc.h: New file.
215 2002-01-16 Alan Modra <amodra@bigpond.net.au>
217 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
218 sections, use bfd_section_list_remove.
219 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
220 * elflink.h (elf_link_add_object_symbols): When removing all
221 sections, use bfd_section_list_clear.
223 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
225 * po/sv.po: New file: Swedish translation.
226 * configure.in (ALL_LINGUAS): Add sv.
227 * configure: Regenerate.
229 2002-01-15 Jakub Jelinek <jakub@redhat.com>
231 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
232 * elf.c (merge_sections_remove_hook): New function.
233 (_bfd_elf_merge_sections): Pass it as 3rd argument to
235 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
237 * merge.c (_bfd_merge_sections): Add remove_hook argument.
238 Call remove_hook if a SEC_EXCLUDE section is encountered.
240 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
242 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
243 (xstormy16_reloc_map): Initialise new field with correct howto
245 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
248 2002-01-10 Michael Snyder <msnyder@redhat.com>
250 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
251 (elfcore_write_pstatus): Use long instead of pid_t;
252 * elf-bfd.h: Change prototypes to use long instead of pid_t;
254 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
256 * elf.c: Update copyright years.
257 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
258 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
260 2002-01-08 Michael Snyder <msnyder@redhat.com>
262 Add capability to write corefile note sections, for gdb.
263 * elf.c (elfcore_write_note): New function.
264 (elfcore_write_prpsinfo): New function.
265 (elfcore_write_prstatus): New function.
266 (elfcore_write_pstatus): New function.
267 (elfcore_write_prfpreg): New function.
268 (elfcore_write_prxfpreg): New function.
269 * elf-bfd.h: Add prototypes for above functions.
271 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
273 * elf.c (elf_fake_sections): Propagate errors from
274 elf_backend_fake_section.
276 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
278 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
279 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
280 (elf32-sh-nbsd.lo): New rule.
281 * Makefile.in: Regenerate.
282 * config.bfd (sh*le-*-netbsdelf*): New target.
283 (sh*-*-netbsdelf*): New target.
284 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
285 (bfd_elf32_shnbsd_vec): New vector.
286 (bfd_elf32_shlnbsd_vec): New vector.
287 * configure: Regenerate.
288 * elf32-sh-nbsd.c: New file.
289 * targets.c: Update copyright years.
290 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
291 bfd_elf32_shnbsd_vec.
293 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
295 * coff-rs6000.c (READ20): Use bfd_scan_vma.
297 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
299 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
300 of a symbol in a section that will be deleted.
302 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
304 * po/es.po: New file: Spanish translation.
305 * configure.in (ALL_LINGUAS): Add es.
306 * configure: Regenerate.
308 2002-01-06 Steve Ellcey <sje@cup.hp.com>
310 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
311 argument so we can handle HP-UX specially.
312 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
313 (elfNN_hpux_backend_section_from_bfd_section): New for support
314 of SHN_IA_64_ANSI_COMMON.
315 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
316 (is_unwind_section_name): Add special HP-UX support.
317 (elfNN_ia64_section_from_shdr): Add support for more sections.
318 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
319 add support for more sections.
320 (elfNN_ia64_additional_program_headers): Modify
321 is_unwind_section_name call.
322 (elfNN_ia64_modify_segment_map): Remove assumption that there is
323 only one unwind section in segment.
325 2002-01-06 Alan Modra <amodra@bigpond.net.au>
327 * syms.c (_bfd_generic_make_empty_symbol): New function.
328 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
329 _bfd_generic_make_empty_symbol.
330 * libbfd.h: Regenerate.
331 * bfd-in2.h: Regenerate.
332 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
333 (hppabsd_core_get_symtab_upper_bound): Don't define.
334 (hppabsd_core_get_symtab): Likewise.
335 (hppabsd_core_print_symbol): Likewise.
336 (hppabsd_core_get_symbol_info): Likewise.
337 (hppabsd_core_bfd_is_local_label_name): Likewise.
338 (hppabsd_core_get_lineno): Likewise.
339 (hppabsd_core_find_nearest_line): Likewise.
340 (hppabsd_core_bfd_make_debug_symbol): Likewise.
341 (hppabsd_core_read_minisymbols): Likewise.
342 (hppabsd_core_minisymbol_to_symbol): Likewise.
343 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
345 * hpux-core.c: Similarly.
346 * irix-core.c: Similarly.
347 * osf-core.c: Similarly.
348 * sco5-core.c: Similarly.
349 * binary.c (binary_make_empty_symbol): Remove function, define as
350 _bfd_generic_make_empty_symbol.
351 * ihex.c (ihex_make_empty_symbol): Likewise.
352 * mmo.c (mmo_make_empty_symbol): Likewise.
353 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
354 * srec.c (srec_make_empty_symbol): Likewise.
355 * versados.c (versados_make_empty_symbol): Likewise.
356 * vms.c (_bfd_vms_make_empty_symbol): Remove.
357 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
358 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
359 rather than _bfd_vms_make_empty_symbol.
360 * vms-misc.c (new_symbol): Likewise.
362 2002-01-05 Alan Modra <amodra@bigpond.net.au>
364 * section.c (bfd_section_init): Remove unnecessary initialisations.
365 (bfd_section_list_clear): New function.
366 (bfd_section_list_remove, bfd_section_list_insert): New macros.
367 (_bfd_strip_section_from_output): Use them.
368 * coffcode.h (coff_set_alignment_hook): Likewise.
369 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
370 * elf64-mips.c (mips_elf64_final_link): Likewise.
371 * elf64-mmix.c (mmix_elf_final_link): Likewise.
372 * sunos.c (sunos_add_dynamic_symbols): Likewise.
373 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
374 * bfd-in2.h: Regenerate.
376 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
377 rather than doing our own section handling. Clean up after errors
378 with bfd_release and bfd_section_list_clear. Handle unexpected
380 * aoutf1.h (sunos4_core_file_p): Likewise.
381 * aix386-core.c (aix386_core_file_p): Likewise.
382 * cisco-core.c (cisco_core_file_validate): Likewise.
383 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
384 * trad-core.c (trad_unix_core_file_p): Likewise.
386 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
387 with bfd_release and bfd_section_list_clear.
388 * hpux-core.c (hpux_core_core_file_p): Likewise.
389 * irix-core.c (irix_core_core_file_p): Likewise.
390 * lynx-core.c (lynx_core_file_p): Likewise.
391 * osf-core.c (osf_core_core_file_p): Likewise.
392 * rs6000-core.c (rs6000coff_core_p): Likewise.
393 * sco5-core.c (sco5_core_file_p): Likewise.
395 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
396 sign extension adjustments without conditionals.
398 2002-01-04 Jakub Jelinek <jakub@redhat.com>
400 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
401 CIE at .eh_frame start is removed due to no FDEs referencing it.
403 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
405 * config.bfd (x86_64-*-netbsd*): New target.
406 * configure.in (x86_64-*-netbsd*): Set COREFILE
408 * configure: Regenerated.
410 2002-01-03 Tom Rix <trix@redhat.com>
412 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
413 for recent bfd_make_section_anyway change.
415 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
417 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
418 R_ARM_THM_PC11 reloc.
420 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
422 * configure.in (LINGUAS): Add ja.
423 * configure: Regenerate.
424 * po/ja.po: Import from translation project's web site.
426 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
428 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
429 messages to ease translation into other languages.
431 For older changes see ChangeLog-0001
437 version-control: never