3 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
4 plt entries for undefweak symbols.
8 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
10 (bfd_elf64_ia64_hpux_big_vec): Ditto.
11 (bfd_elf32_h8300_vec): Ditto.
15 * elf64-ppc.c: Remove stale part of ABI comment.
16 (NO_OPD_RELOCS): Define.
17 (ppc64_elf_check_relocs): Use it.
18 (ppc64_elf_relocate_section): Here too.
19 (build_one_stub): Don't point function syms at the stub. Instead,
21 (ppc64_elf_relocate_section): Check whether REL24 relocs should
22 really go to the stub. Make all dynamic relocs in opd against
24 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
29 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
33 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
34 TOC_BASE_OFF adjustment.
36 * Makefile.am: Run "make dep-am".
37 * Makefile.in: Regenerate.
38 * po/SRC-POTFILES.in: Regenerate.
42 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
47 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
48 Check for and emit error if sgot is NULL at this point.
52 * config.bfd (ia64*-*-netbsd*): New target.
56 * som.c (som_write_space_strings): Comment typo fix.
60 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
61 is_func_descriptor fields.
62 (link_hash_newfunc): Init them.
63 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
64 dot are candidates for plt entries. When processing .opd relocs,
65 set function descriptor strings to point inside function code
66 string, and set new ppc_link_hash_entry fields.
67 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
68 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
69 function descriptors. It's now done in..
70 (func_desc_adjust): New.
71 (ppc64_elf_func_desc_adjust): New.
72 (define elf_backend_always_size_sections): Define.
73 (ppc64_elf_hide_symbol): New.
74 (define elf_backend_hide_symbol): Define.
75 (allocate_dynrelocs): Remove code looking up function descriptors
76 as that has been done earlier.
77 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
79 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
80 up function descriptor.
81 (build_one_stub): Look up the function code sym. Check for
83 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
84 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
86 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
88 (_bfd_elf_link_hash_hide_symbol): Likewise.
89 * elflink.h (elf_link_add_object_symbols): Adjust call to
90 elf_backend_hide_symbol.
91 (elf_fix_symbol_flags): Likewise.
92 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
94 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
95 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
96 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
97 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
98 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
100 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
101 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
102 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
106 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
107 dynamic function descriptor symbol, not the associated function
112 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
116 * po/bfd.pot: Regenerate.
117 * po/fr.po: Regenerate.
121 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
122 Remove "Elf_Internal_Shdr *" param.
123 (_bfd_mips_elf_section_from_bfd_section): Ditto.
124 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
125 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
126 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
127 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
128 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
129 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
130 function to override special sections. Remove hdr arg from
131 backend call, and don't loop.
135 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
136 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
137 relocations requiring gp0 and gp.
141 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
143 (elf32_arm_print_private_bfd_data): Likewise.
147 * po/tr.po: Import new version.
151 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
152 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
153 (ORI_R0_R0_0): Correct.
157 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
159 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
160 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
161 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
162 (ppc64_elf_glink_code): Delete.
163 (PPC64_ELF_GLINK_SIZE): Delete.
164 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
165 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
166 ORI_R0_R0_0): Define.
167 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
168 (struct ppc_link_hash_table): Add sstub and plt_overflow.
169 (ppc64_elf_link_hash_table_create): Init them.
170 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
171 Don't copy to shared lib.
172 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
173 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
174 (allocate_dynrelocs <plt>): Don't change function sym here. Make
175 room for .stub and .glink code.
176 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
178 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
179 bfd_elf64_bfd_final_link.
180 (bfd_elf64_bfd_final_link): Don't define.
181 (ppc64_elf_size_stubs): New.
182 (build_plt_stub): New.
183 (build_one_stub): New.
184 (ppc64_elf_build_stubs): New.
185 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
186 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
187 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
188 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
189 case output sections not separate. Adjust DT_RELASZ to not
190 include plt relocs. Set reserved got entry. Set got and plt
192 (elf_backend_got_header_size): Set to 8.
193 * elf64-ppc.h: New file.
197 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
198 sections, use bfd_section_list_remove.
199 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
200 * elflink.h (elf_link_add_object_symbols): When removing all
201 sections, use bfd_section_list_clear.
205 * po/sv.po: New file: Swedish translation.
206 * configure.in (ALL_LINGUAS): Add sv.
207 * configure: Regenerate.
211 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
212 * elf.c (merge_sections_remove_hook): New function.
213 (_bfd_elf_merge_sections): Pass it as 3rd argument to
215 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
217 * merge.c (_bfd_merge_sections): Add remove_hook argument.
218 Call remove_hook if a SEC_EXCLUDE section is encountered.
222 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
223 (xstormy16_reloc_map): Initialise new field with correct howto
225 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
230 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
231 (elfcore_write_pstatus): Use long instead of pid_t;
232 * elf-bfd.h: Change prototypes to use long instead of pid_t;
236 * elf.c: Update copyright years.
237 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
238 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
242 Add capability to write corefile note sections, for gdb.
243 * elf.c (elfcore_write_note): New function.
244 (elfcore_write_prpsinfo): New function.
245 (elfcore_write_prstatus): New function.
246 (elfcore_write_pstatus): New function.
247 (elfcore_write_prfpreg): New function.
248 (elfcore_write_prxfpreg): New function.
249 * elf-bfd.h: Add prototypes for above functions.
253 * elf.c (elf_fake_sections): Propagate errors from
254 elf_backend_fake_section.
258 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
259 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
260 (elf32-sh-nbsd.lo): New rule.
261 * Makefile.in: Regenerate.
262 * config.bfd (sh*le-*-netbsdelf*): New target.
263 (sh*-*-netbsdelf*): New target.
264 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
265 (bfd_elf32_shnbsd_vec): New vector.
266 (bfd_elf32_shlnbsd_vec): New vector.
267 * configure: Regenerate.
268 * elf32-sh-nbsd.c: New file.
269 * targets.c: Update copyright years.
270 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
271 bfd_elf32_shnbsd_vec.
275 * coff-rs6000.c (READ20): Use bfd_scan_vma.
279 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
280 of a symbol in a section that will be deleted.
284 * po/es.po: New file: Spanish translation.
285 * configure.in (ALL_LINGUAS): Add es.
286 * configure: Regenerate.
290 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
291 argument so we can handle HP-UX specially.
292 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
293 (elfNN_hpux_backend_section_from_bfd_section): New for support
294 of SHN_IA_64_ANSI_COMMON.
295 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
296 (is_unwind_section_name): Add special HP-UX support.
297 (elfNN_ia64_section_from_shdr): Add support for more sections.
298 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
299 add support for more sections.
300 (elfNN_ia64_additional_program_headers): Modify
301 is_unwind_section_name call.
302 (elfNN_ia64_modify_segment_map): Remove assumption that there is
303 only one unwind section in segment.
307 * syms.c (_bfd_generic_make_empty_symbol): New function.
308 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
309 _bfd_generic_make_empty_symbol.
310 * libbfd.h: Regenerate.
311 * bfd-in2.h: Regenerate.
312 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
313 (hppabsd_core_get_symtab_upper_bound): Don't define.
314 (hppabsd_core_get_symtab): Likewise.
315 (hppabsd_core_print_symbol): Likewise.
316 (hppabsd_core_get_symbol_info): Likewise.
317 (hppabsd_core_bfd_is_local_label_name): Likewise.
318 (hppabsd_core_get_lineno): Likewise.
319 (hppabsd_core_find_nearest_line): Likewise.
320 (hppabsd_core_bfd_make_debug_symbol): Likewise.
321 (hppabsd_core_read_minisymbols): Likewise.
322 (hppabsd_core_minisymbol_to_symbol): Likewise.
323 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
325 * hpux-core.c: Similarly.
326 * irix-core.c: Similarly.
327 * osf-core.c: Similarly.
328 * sco5-core.c: Similarly.
329 * binary.c (binary_make_empty_symbol): Remove function, define as
330 _bfd_generic_make_empty_symbol.
331 * ihex.c (ihex_make_empty_symbol): Likewise.
332 * mmo.c (mmo_make_empty_symbol): Likewise.
333 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
334 * srec.c (srec_make_empty_symbol): Likewise.
335 * versados.c (versados_make_empty_symbol): Likewise.
336 * vms.c (_bfd_vms_make_empty_symbol): Remove.
337 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
338 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
339 rather than _bfd_vms_make_empty_symbol.
340 * vms-misc.c (new_symbol): Likewise.
344 * section.c (bfd_section_init): Remove unnecessary initialisations.
345 (bfd_section_list_clear): New function.
346 (bfd_section_list_remove, bfd_section_list_insert): New macros.
347 (_bfd_strip_section_from_output): Use them.
348 * coffcode.h (coff_set_alignment_hook): Likewise.
349 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
350 * elf64-mips.c (mips_elf64_final_link): Likewise.
351 * elf64-mmix.c (mmix_elf_final_link): Likewise.
352 * sunos.c (sunos_add_dynamic_symbols): Likewise.
353 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
354 * bfd-in2.h: Regenerate.
356 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
357 rather than doing our own section handling. Clean up after errors
358 with bfd_release and bfd_section_list_clear. Handle unexpected
360 * aoutf1.h (sunos4_core_file_p): Likewise.
361 * aix386-core.c (aix386_core_file_p): Likewise.
362 * cisco-core.c (cisco_core_file_validate): Likewise.
363 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
364 * trad-core.c (trad_unix_core_file_p): Likewise.
366 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
367 with bfd_release and bfd_section_list_clear.
368 * hpux-core.c (hpux_core_core_file_p): Likewise.
369 * irix-core.c (irix_core_core_file_p): Likewise.
370 * lynx-core.c (lynx_core_file_p): Likewise.
371 * osf-core.c (osf_core_core_file_p): Likewise.
372 * rs6000-core.c (rs6000coff_core_p): Likewise.
373 * sco5-core.c (sco5_core_file_p): Likewise.
375 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
376 sign extension adjustments without conditionals.
380 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
381 CIE at .eh_frame start is removed due to no FDEs referencing it.
385 * config.bfd (x86_64-*-netbsd*): New target.
386 * configure.in (x86_64-*-netbsd*): Set COREFILE
388 * configure: Regenerated.
392 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
393 for recent bfd_make_section_anyway change.
397 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
398 R_ARM_THM_PC11 reloc.
402 * configure.in (LINGUAS): Add ja.
403 * configure: Regenerate.
404 * po/ja.po: Import from translation project's web site.
408 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
409 messages to ease translation into other languages.
411 For older changes see ChangeLog-0001
417 version-control: never