]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
* config/tc-mips.c (mips_ip): Use unsigned long values for
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
1b164155
TR
12002-05-30 Tom Rix <trix@redhat.com>
2
3 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
4 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
5
3765b1be
RH
62002-05-30 Richard Henderson <rth@redhat.com>
7
8 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
9 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
10 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
11 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
12 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
13 (struct alpha_elf_obj_tdata): Rename total_got_entries and
14 n_local_got_entries to total_got_size and local_got_size.
15 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
16 (alpha_got_entry_size): New.
17 (elf64_alpha_relax_with_lituse): Use it.
18 (elf64_alpha_relax_without_lituse): Likewise.
19 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
20 (get_got_entry): New.
21 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
22 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
23 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
24 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
25 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
26 (elf64_alpha_calc_got_offsets): Likewise.
27 (alpha_dynamic_entries_for_reloc): New.
28 (elf64_alpha_calc_dynrel_sizes): Use it.
29 (elf64_alpha_size_dynamic_sections): Likewise.
30 (elf64_alpha_relocate_section): Handle TLS relocations.
31 * reloc.c: Add Alpha TLS relocations.
32 * bfd-in2.h, libbfd.h: Rebuild.
33
5e226794
NC
342002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
35
36 * peXXigen.c (pe_print_idata): Remove double printed
37 import table lines; add Bound-To comment.
38
90ace9e9
JT
392002-05-29 Matt Thomas <matt@3am-software.com>
40
41 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
42 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
43 (elf32-vax.lo): New rule.
44 * Makefile.in: Regenerate.
45 * configure.in (bfd_elf32_vax_vec)
46 (vaxnetbsd_vec): New vectors.
47 * configure: Regenerate.
48 * config.bfd (vax-*-netbsdelf*)
49 (vax-*-netbsdaout*)
50 (vax-*-netbsd*): New targets.
51 * elf32-vax.c: New file.
52 * reloc.c: Add VAX relocations.
53 * bfd-in2.h: Regenerate.
54 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
55
4a253e81
JT
562002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
57
58 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
59 and bfd_elf32_bigarm_vec to targ_selvecs.
60
6e7c73dd
CF
612002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
62
63 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
64 with auto-imported symbols.
65
8afb0e02
NC
662002-05-29 Adam Nemet <anemet@lnxw.com>
67
68 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
69 sections only record bfd.
70 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
71 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
72 * bfd-in2.h: Regenerate.
73
a95653f5
NC
742002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
75
76 * syms.c (_bfd_stab_section_find_nearest_line): Move
77 declaration and initialisation of saw_line and saw_func out of
78 for loop.
79
7cdc5bba
AM
802002-05-29 Alan Modra <amodra@bigpond.net.au>
81
82 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
83 (bfd_elf64_get_symbol_info): Define.
84 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
85
4c7aad1c
AM
862002-05-29 Andrey Volkov <avolkov@transas.com>
87
88 * cpu-h8300.c: Make default h8300 machine first in machine list.
89
d172d4ba
NC
902002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
91
92 * config.bfd: Added DLX configuraton.
93 * Makefile.am: Added DLX configuraton.
94 * configure.in: Added DLX configuraton.
95 * archures.c: Add DLX architecure.
96 * reloc.c: Add DLX relocs.
97 * targets.c: Added DLX target vector.
98 * configure: Regenerate.
99 * Makefile.in: Regenreate.
100 * bfd-in2.h: Regenreate.
101 * elf32-dlx.c: New file: Support DLX target.
102 * cpu-dlx.c: New file: Support DLX target.
103
d1329ca3
AM
1042002-05-25 Alan Modra <amodra@bigpond.net.au>
105
428d0de3
AM
106 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
107
d1329ca3
AM
108 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
109 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
110 strings to point inside function code sym string.
111 (func_desc_adjust): Likewise.
112 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
113
3bab7989
ML
1142002-05-24 Michal Ludvig <mludvig@suse.cz>
115
116 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
117 (elf64_x86_64_grok_psinfo): Added.
118
436e8db0
NC
1192002-05-24 TAMURA Kent <kent@netbsd.org>
120
121 * config.bfd: Add a target for i386-netbsdpe.
122
ea1e4b0d
AM
1232002-05-24 Alan Modra <amodra@bigpond.net.au>
124
125 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
126 and is_func_descriptor.
127 (func_desc_adjust): Hide function code sym in shared libs unless
128 there is a matching exported function descriptor sym.
129
13ae64f3
JJ
1302002-05-23 Jakub Jelinek <jakub@redhat.com>
131
132 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
133 for symbols from SHF_TLS section.
134 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
135 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
136 (map_sections_to_segments): Build PT_TLS segment if necessary.
137 (assign_file_positions_for_segments): Likewise.
138 (get_program_header_size): Account for PT_TLS segment.
139 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
140 SEC_THREAD_LOCAL sections to STT_TLS.
141 * reloc.c: Add 386 and IA-64 TLS relocs.
142 * section.c (SEC_THREAD_LOCAL): Define.
143 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
144 Remove.
145 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
146 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
147 unconditionally.
148 (struct elf_final_link_info): Add first_tls_sec.
149 (elf_bfd_final_link): Set first_tls_sec.
150 Compute elf_hash_table (info)->tls_segment.
151 (elf_link_output_extsym): Handle STT_TLS symbols.
152 (elf_link_input_bfd): Likewise.
153 * syms.c (BSF_THREAD_LOCAL): Define.
154 * bfd-in2.h: Rebuilt.
155 * libbfd.h: Rebuilt.
156 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
157 elf_i386_mkobject, elf_i386_object_p): New functions.
158 (elf_howto_table): Add TLS relocs.
159 (elf_i386_reloc_type_lookup): Support TLS relocs.
160 (elf_i386_info_to_howto_rel): Likewise.
161 (struct elf_i386_link_hash_entry): Add tls_type.
162 (struct elf_i386_obj_tdata): New.
163 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
164 New macros.
165 (struct elf_i386_link_hash_table): Add tls_ldm_got.
166 (link_hash_newfunc): Clear tls_type.
167 (elf_i386_check_relocs): Support TLS relocs.
168 (elf_i386_gc_sweep_hook): Likewise.
169 (allocate_dynrelocs): Likewise.
170 (elf_i386_size_dynamic_sections): Likewise.
171 (elf_i386_relocate_section): Likewise.
172 (elf_i386_finish_dynamic_symbol): Likewise.
173 (bfd_elf32_mkobject, elf_backend_object_p): Define.
174 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
175 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
176 want_tprel, want_dtpmod, want_dtprel.
177 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
178 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
179 R_IA64_LTOFF_TPREL22.
180 (elf_code_to_howto_index): Add TLS relocs.
181 (elfNN_ia64_check_relocs): Support TLS relocs.
182 (allocate_global_data_got): Account for TLS .got data.
183 (allocate_dynrel_entries): Account for TLS dynamic relocations.
184 (elfNN_ia64_install_value): Supprt TLS relocs.
185 (set_got_entry): Support TLS relocs.
186 (elfNN_ia64_relocate_section): Likewise.
187
c62e1cc3
NC
1882002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
189
190 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
191 BLX reloc round the relocation up rather than down.
192 * coff-arm.c (coff_arm_relocate_section): Likewise.
193
c5a43a5d
L
1942002-05-21 H.J. Lu (hjl@gnu.org)
195
196 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
197 definition.
198
afbe61cf
AM
1992002-05-22 Alan Modra <amodra@bigpond.net.au>
200
201 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
202 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
203
9c07fe7c
AM
2042002-05-22 Alan Modra <amodra@bigpond.net.au>
205
206 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
207 unresolved relocs.
208 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
209
21611032
TS
2102002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
211
212 * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
213 non-ELF targets.
214
41241523
TS
2152002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
216
217 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
218 an error value.
219 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
220 return with false on error.
221 (elf_link_input_bfd): Check reloc_emitter return value.
222
658f2588
JT
2232002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
224
225 * config.bfd (armeb-*-netbsdelf*): New target.
226
c862ae31
AM
2272002-05-20 Alan Modra <amodra@bigpond.net.au>
228
229 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
230 at the plt call stub.
231
6dd14845
TS
2322002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
233
234 * cpu-mips.c (mips_compatible): Don't try to check machine
235 compatibility.
236
a58d9c34
TR
2372002-05-18 Tom Rix <trix@redhat.com>
238
239 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
240
ef60b7ff
AM
2412002-05-17 Alan Modra <amodra@bigpond.net.au>
242
243 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
244 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
245 we've already warned about an undefined symbol. Report more
246 detail on reloc errors.
247
a703a6ea
AM
2482002-05-17 Alan Modra <amodra@bigpond.net.au>
249
250 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
251 * configure.in: Invoke AM_INSTALL_LIBBFD.
252 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
253 (install_libbfd): .. New target.
254 (uninstall_libbfd): Likewise.
255 (install-bfdlibLTLIBRARIES): Likewise.
256 (uninstall-bfdlibLTLIBRARIES): Likewise.
257 (bfdlibdir): New.
258 (bfdincludedir): New.
259 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
260 * aclocal.m4: Regenerate.
261 * configure: Regenerate.
262 * Makefile.in: Regenerate.
263
2c13d98b
NC
2642002-05-17 Stuart Balfour <sbalfour@cisco.com>
265
266 * hash.c (bfd_hash_lookup): Remove computation of len from inside
267 hash loop.
268
629936c5
NC
2692002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
270
271 * config.bfd: Add targets for sh64-linux (little endian and
272 big endian).
273
e4cf60a8
NC
2742002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
275
276 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
277 is located in the same section as the import table. Instead
278 check, and if necessary load the section containing the thunk.
279
d1e66cd4
NC
2802002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
281
282 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
ea1e4b0d
AM
283 bfd_bread.
284 (xcoff64_core_file_matches_executable_p): Replace bfd_read
285 with bfd_bread.
d1e66cd4 286
2d653fc7
AM
2872002-05-15 Alan Modra <amodra@bigpond.net.au>
288
289 * aix5ppc-core.c: Warning fixes.
290 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
291 * aout-target.h (MY_bfd_link_just_syms): Define.
292 * aout-tic30.c (MY_bfd_link_just_syms): Define.
293 * bfd.c (bfd_link_just_syms): Define.
294 * binary.c (binary_bfd_link_just_syms): Define.
295 * bout.c (b_out_bfd_link_just_syms): Define.
296 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
297 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
298 * coffcode.h (coff_bfd_link_just_syms): Define.
299 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
300 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
301 (_bfd_elf_link_just_syms): Declare.
302 * elf.c (_bfd_elf_link_just_syms): New function.
303 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
304 sections haven't already been discarded by the linker.
305 * elflink.h (elf_link_add_object_symbols): Likewise for stab
306 sections and SEC_MERGE sections.
307 (elf_bfd_discard_info): Similarly here.
308 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
309 * i386msdos.c (msdos_bfd_link_just_syms): Define.
310 * i386os9k.c (os9k_bfd_link_just_syms): Define.
311 * ieee.c (ieee_bfd_link_just_syms): Define.
312 * ihex.c (ihex_bfd_link_just_syms): Define.
313 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
314 (_bfd_generic_link_just_syms): Declare.
315 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
316 * linker.c (_bfd_generic_link_just_syms): New function.
317 * mmo.c (mmo_bfd_link_just_syms): Define.
318 * nlm-target.h (nlm_bfd_link_just_syms): Define.
319 * oasys.c (oasys_bfd_link_just_syms): Define.
320 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
321 * som.c (som_bfd_link_just_syms): Define.
322 * srec.c (srec_bfd_link_just_syms): Define.
323 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
324 (BFD_JUMP_TABLE_LINK): And here.
325 * tekhex.c (tekhex_bfd_link_just_syms): Define.
326 * versados.c (versados_bfd_link_just_syms): Define.
327 * vms.c (vms_bfd_link_just_syms): Define.
328 * libbfd.h: Regenerate.
329 * bfd-in2.h: Regenerate.
330
cb7394f2
TS
3312002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
332
333 * elf32-mips.c: Remove superfluous definitions copied from
334 elfxx-mips.c.
335 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
336 SGIish vectors to check the special case.
337 (mips_elf_hi16_reloc): Fix comment.
338 (mips_elf_got16_reloc): Likewise.
339 (_bfd_mips_elf32_gprel16_reloc): Likewise.
340 (elf_reloc_map): Code cleanup.
341 (mips_reloc_map): Add comment.
342 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
343 (mips_elf32_rtype_to_howto): Likewise.
344 (mips_elf32_discard_info): Likewise.
345 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
346 lead to IRIX compatibility now.
347
8dc1a139
TS
3482002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
349
350 * elfxx-mips.c: Call it IRIX, not Irix in comments.
351
2051e1b5
JT
3522002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
353
354 * config.bfd (shle-*-netbsdelf*): Add target which includes
355 sh64 support.
356
83954261
AM
3572002-05-13 David Edelsohn <edelsohn@gnu.org>
358
359 * configure.in: Revert 2002-04-07. Instead, auto-configure
360 HAVE_ST_C_IMPL.
361 * configure: Regenerate.
362 * config.in: Regenerate.
363 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
364 or AIX_5_CORE.
365
a9bf1154
NC
3662002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
367
368 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
369 corefiles as well.2
370 * configure: Regenerate.
371
3129eb7a
AM
3722002-05-13 Alan Modra <amodra@bigpond.net.au>
373
374 * Makefile.am (install-data-local): Install headers to
375 $(exec_prefix)/include.
376 * Makefile.in: Regenerate.
377
a9a32010
DJ
3782002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
379 Daniel Jacobowitz <drow@mvista.com>
380
381 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
382 map BFD_RELOC_RVA.
383
3842002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
690cc98b
NC
385
386 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
387 hppa*-*-openbsd*): New targets.
388 * configure.in (alpha*-*-openbsd*): Set COREFILE.
389 * configure: Regenerate.
390
f1f0d9ab
TR
3912002-05-10 Tom Rix <trix@redhat.com>
392
ea1e4b0d 393 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
f1f0d9ab
TR
394 xcoff64_ppc_relocate_section.
395 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
396 * libxcoff.h: Common xcoff_reloc_type function declaration.
397
c432ba1a
AM
3982002-05-10 Alan Modra <amodra@bigpond.net.au>
399
16a10388
AM
400 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
401 addend in 2002-05-09 commit.
402
c432ba1a
AM
403 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
404 don't look for stubs on all undefined syms.
405
4a335f3d
AM
4062002-05-09 Alan Modra <amodra@bigpond.net.au>
407
8fc39d5d
AM
408 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
409 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
410 pcrel_offset.
411
4a335f3d
AM
412 * elf32-i386.c (elf_howto_table): Comments.
413 (elf_i386_relocate_section): Handle more relocs for relocatable
414 linking and against SEC_MERGE sections.
415
41fcb14e
AM
4162002-05-08 Alan Modra <amodra@bigpond.net.au>
417
418 * elf32-ppc.c (ppc_elf_create_got): New function.
419 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
ea1e4b0d 420 _bfd_elf_create_dynamic_sections. Correct .plt flags.
41fcb14e
AM
421 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
422 _bfd_elf_create_got_section.
423
b491616a
AM
4242002-05-07 Alan Modra <amodra@bigpond.net.au>
425
426 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
427 * elfxx-target.h (elf_backend_rela_normal): Define.
428 (elfNN_bed): Init rela_normal.
429 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
430 for section symbols here if rela_normal. Simplify abs section test.
431 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
432 return immediately. Remove code handling relocatable linking.
433 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
434 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
435 * elf32-i370.c (i370_elf_relocate_section): Likewise.
436 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
437 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
438 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
439 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
440 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
441 * elf32-s390.c (elf_s390_relocate_section): Likewise.
442 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
443 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
444 * elf64-s390.c (elf_s390_relocate_section): Likewise.
445 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
446 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
447 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
448 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
449 * elf-m10200.c (elf_backend_rela_normal): Define.
450 * elf-m10300.c (elf_backend_rela_normal): Define.
451 * elf32-fr30.c (elf_backend_rela_normal): Define.
452 * elf32-i370.c (elf_backend_rela_normal): Define.
453 * elf32-i860.c (elf_backend_rela_normal): Define.
454 * elf32-m68k.c (elf_backend_rela_normal): Define.
455 * elf32-mcore.c (elf_backend_rela_normal): Define.
456 * elf32-openrisc.c (elf_backend_rela_normal): Define.
457 * elf32-ppc.c (elf_backend_rela_normal): Define.
458 * elf32-s390.c (elf_backend_rela_normal): Define.
459 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
460 * elf64-ppc.c (elf_backend_rela_normal): Define.
461 * elf64-s390.c (elf_backend_rela_normal): Define.
462 * elf64-x86-64.c (elf_backend_rela_normal): Define.
463 * elfxx-ia64.c (elf_backend_rela_normal): Define.
464 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
465 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
466
df212a7e
NC
4672002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
468
469 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
470 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
471
3decf53c
AM
4722002-05-06 Alan Modra <amodra@bigpond.net.au>
473
474 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
475 when not relocatable. Fix reloc_emitter call for K&R.
476
f46c2da6
AM
4772002-05-04 Alan Modra <amodra@bigpond.net.au>
478
479 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
480 reloading local sym addend mistakenly removed in 2002-05-01 change.
481
482 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
483 (read_abbrevs): Change "offset" param to bfd_vma.
484 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
485 Change "abbrev_offset" to bfd_vma.
486 (read_indirect_string): Use correct conversion chars in error
487 message format string, cast bfd_vma's to unsigned long.
488 (read_abbrevs): Likewise.
489 (read_attribute_value): Likewise.
490 (decode_line_info): Likewise.
491 (scan_unit_for_functions): Likewise.
492 (parse_comp_unit): Likewise.
493
59862849
TR
4942002-05-04 Tom Rix <trix@redhat.com>
495
496 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
497 (coff_swap_reloc_out): Same.
498 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
499 (xcoff_swap_reloc_out): Same.
500 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
501 case some 16 bit relocs. Add reloc value to output.
502 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
ea1e4b0d 503 R_RBR. Improve names.
59862849
TR
504 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
505 (bfd_xcoff_backend_data): Update with new reloc swap names.
506 (bfd_pmac_xcoff_backend_data) : Same.
507 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
508 (xcoff64_swap_reloc_out): Same.
ea1e4b0d 509 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
59862849 510 R_POS. Add reloc value to output.
ea1e4b0d
AM
511 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
512 bit R_RBR. Improve names, masks.
59862849
TR
513 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
514 (bfd_xcoff_backend_data): Update with new reloc swap names.
515 (bfd_xcoff_aix5_backend_data) : Same.
516
b4655ea9
AM
5172002-05-04 Alan Modra <amodra@bigpond.net.au>
518
519 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
520 bfd_count top_index, input_list, all_local_syms.
521 (elf32_hppa_setup_section_lists): New function, split from
522 elf32_hppa_size_stubs.
523 (elf32_hppa_next_input_section): Likewise.
524 (group_sections): Likewise.
525 (get_local_syms): Likewise.
526 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
527 stubs on undefined syms too.
528 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
8fc39d5d 529 Only access htab elf fields when we have an elf hash table.
b4655ea9
AM
530 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
531 (elf32_hppa_next_input_section): Declare.
532
301e3139
AM
5332002-05-04 Bob Byrnes <byrnes@curl.com>
534
535 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
536 _bfd_new_bfd.
537
7c5fcef7
L
5382002-05-03 H.J. Lu (hjl@gnu.org)
539
540 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
541 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
542 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
543 to hide a global symbol.
544 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
ea1e4b0d 545 forced_local to true.
7c5fcef7 546
84de6048
RH
5472002-05-02 Richard Henderson <rth@redhat.com>
548
549 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
550 vs SHN_UNDEF to zero.
551
805fc799
AM
5522002-05-02 Alan Modra <amodra@bigpond.net.au>
553
c061c2d8
AM
554 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
555 16 bit reloc.
556 <R_PPC64_SECTOFF_DS>: Likewise.
557 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
558 SECTOFF reloc.
559 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
560 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
561 SECTOFF reloc.
562
805fc799
AM
563 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
564 (ppc64_elf_ha_reloc): New function.
565 (ppc64_elf_brtaken_reloc): New function.
566 (ppc64_elf_sectoff_reloc): New function.
567 (ppc64_elf_sectoff_ha_reloc): New function.
568 (ppc64_elf_toc_reloc): New function.
569 (ppc64_elf_toc_ha_reloc): New function.
570 (ppc64_elf_toc64_reloc): New function.
571 (ppc64_elf_unhandled_reloc): New function.
572 (ppc64_elf_howto_raw): Use the above.
573 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
574 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
575 <R_PPC64_SECTOFF_DS>: Likewise.
576 (IS_ABSOLUTE_RELOC): Update.
577 (struct ppc_link_hash_table): Add have_undefweak.
578 (ppc64_elf_link_hash_table_create): Init.
579 (func_desc_adjust): Set have_undefweak.
580 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
581 add the .sfpr blr when have_undefweak.
582 (ppc64_elf_setup_section_lists): Check hash table flavour.
583 (ppc64_elf_next_input_section): Move output_section->owner test to
584 ppc64elf.em.
585 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
586 and relocatable test. Return TOCstart and don't set elf_gp.
587 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
588 offset calculation. Add assert on weak sym branch tweaks.
589 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
590 (ppc64_elf_toc): Declare.
591 (ppc64_elf_next_input_section): Update.
ea1e4b0d 592
818c39a3
AM
5932002-05-01 Alan Modra <amodra@bigpond.net.au>
594
595 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
596 file_name.
597
721956f4
AM
5982002-05-01 Alan Modra <amodra@bigpond.net.au>
599
600 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
601 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
602 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
603 call branches. Correct undefined weak destination.
604 (ppc64_elf_func_desc_adjust): Always create at least one blr in
605 .sfpr, and correct case where either only savef* or restf* is
606 needed.
607
608 Long branch stubs, multiple stub sections.
609 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
610 (ppc64_elf_next_input_section): Declare.
611 * elf64-ppc.c: Move linker-only prototypes.
612 (STUB_SUFFIX): Define.
613 (enum ppc_stub_type): New.
614 (struct ppc_stub_hash_entry): New.
615 (struct ppc_branch_hash_entry): New.
616 (struct ppc_link_hash_entry): Add stub_cache, oh.
617 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
618 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
619 Rename plt_overflow to stub_error.
620 (ppc_stub_hash_lookup): Define.
621 (ppc_branch_hash_lookup): Define.
622 (stub_hash_newfunc): New function.
623 (branch_hash_newfunc): New function.
624 (link_hash_newfunc): Init new fields.
625 (ppc64_elf_link_hash_table_create): Likewise.
626 (ppc64_elf_link_hash_table_free): New function.
627 (ppc_stub_name): New function.
628 (ppc_get_stub_entry): New function.
629 (ppc_add_stub): New function.
630 (create_linkage_sections): Use bfd_make_section_anyway. Create
631 .branch_lt and .rela.branch_lt sections. Don't create .stub.
632 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
633 and set up for plt call stubs. Link func and func desc syms.
634 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
635 (func_desc_adjust): Avoid hash lookup when func desc sym available
636 via shortcut, and set links when processing.
637 (ppc64_elf_hide_symbol): Likewise.
638 (allocate_dynrelocs): Don't allocate stub section here.
639 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
640 Remove sstub code.
641 (ppc_type_of_stub): New function.
642 (build_one_stub): Delete.
643 (ppc_build_one_stub): New function.
644 (ppc_size_one_stub): New function.
645 (ppc64_elf_setup_section_lists): New function.
646 (ppc64_elf_next_input_section): New function.
647 (group_sections): New function.
648 (get_local_syms): New function.
649 (ppc64_elf_size_stubs): Rewrite.
650 (ppc64_elf_build_stubs): Rewrite.
651 (ppc64_elf_relocate_section): Look up stub entry for REL24
652 relocs. Don't propagate REL14* to dynamic objects. Look for long
653 branch stubs if REL14* or REL24 relocs won't reach.
654 (bfd_elf64_bfd_link_hash_table_free): Define.
655
09c2219b
MM
6562002-04-30 Mark Mitchell <mark@codesourcery.com>
657
658 * bfd/config.bfd: Add support for powerpc-*-windiss.
659
07b678c0
TR
6602002-04-30 Tom Rix <trix@redhat.com>
661
662 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
663 symbol names into the hash table.
664
dbe341c6
TR
6652002-04-28 Tom Rix <trix@redhat.com>
666
667 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
ea1e4b0d 668 calulating relocations.
dbe341c6 669 (xcoff_complain_overflow) : Function table for relocation errors.
ea1e4b0d
AM
670 (xcoff_ppc_relocate_section): Use relocation and complain function
671 tables.
672 (xcoff_complain_overflow_unsigned_func): New complain function.
dbe341c6
TR
673 (xcoff_complain_overflow_signed_func): Same.
674 (xcoff_complain_overflow_bitfield_func): Same.
675 (xcoff_complain_overflow_dont_func): Same.
676 (xcoff_reloc_type_crel): New recot function.
677 (xcoff_reloc_type_br): Same.
678 (xcoff_reloc_type_ba): Same.
679 (xcoff_reloc_type_toc): Same.
680 (xcoff_reloc_type_rel): Same.
681 (xcoff_reloc_type_neg): Same.
682 (xcoff_reloc_type_pos): Same.
683 (xcoff_reloc_type_fail): Same.
684 (xcoff_reloc_type_noop): Same.
685 * libxcoff.h : Declare common parts for xcoff64.
686 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
ea1e4b0d 687 and complain function tables.
dbe341c6 688
985142a4
AM
6892002-04-28 Alan Modra <amodra@bigpond.net.au>
690
691 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
692 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
693
eba91044
AM
6942002-04-26 Alan Modra <amodra@bigpond.net.au>
695
e54fdaa5
AM
696 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
697 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
698
a50c1845
AM
699 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
700 same as the output before calling elf_link_input_bfd.
701
eba91044
AM
702 * coffcode.h (coff_compute_section_file_positions): Set
703 section_tail after shuffling section list.
704
3c25c5f6
NC
7052002-04-24 Christian Groessler <chris@groessler.org>
706
707 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
708 addresses are 23bit with a special layout, not plain 32bit
709 values. Prevent relocation of immediate values.
710
40d32fc6
CD
7112002-04-24 Chris G. Demetriou <cgd@broadcom.com>
712
713 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
714 MIPS-16 ASE flags are set, print something to indicate that.
715
067fa4a6
AM
7162002-04-23 Alan Modra <amodra@bigpond.net.au>
717
718 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
719 under which a plt call stub is used.
720 (final_link_relocate): Similarly.
721 (allocate_plt_static): Clear h-plabel except when plt entry is
722 exclusively used for a plabel.
723 (allocate_dynrelocs): Use the above to simplify plt sizing.
724 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
725 (elf32_hppa_link_hash_table_create): Init.
726 (BL22_RP): Define.
727 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
728 (elf32_hppa_check_relocs): Set has_22bit_branch.
729
730 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
731 (final_link_relocate): Likewise.
732
af40ce3c
JJ
7332002-04-22 Jakub Jelinek <jakub@redhat.com>
734
735 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
736 search table if some FDE is DW_EH_PE_aligned encoded either.
737 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
738
09ae86c2
JJ
7392002-04-22 Richard Smith <richard@ex-parrot.com>
740 Jakub Jelinek <jakub@redhat.com>
741
742 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
743 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
744 encoded personality.
745 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
746 for CIE/FDE removal.
747
deeb2cd7
TR
7482002-04-20 Tom Rix <trix@redhat.com>
749
750 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
751
99dc0092
AM
7522002-04-20 Alan Modra <amodra@bigpond.net.au>
753
aa3d5824
AM
754 * archures.c (bfd_lookup_arch): Move the list order comment..
755 (struct bfd_arch_info): ..to where it belongs.
756 * bfd-in2.h: Regenerate.
757
99dc0092
AM
758 * archures.c (bfd_lookup_arch): Add comment on list order.
759 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
760 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
761 is always at head of list.
762
7831a775
NC
7632002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
764
765 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
766 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
767 definition of these functions for ARM_WINCE builds as they are
768 not used.
ea1e4b0d 769 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
7831a775
NC
770 for ARM_WINCE builds.
771
7722002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
773
ea1e4b0d 774 * coff-arm.c (bfd_arm_process_before_allocation):
7831a775
NC
775
7762002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
777
778 * cpu-sh.c (scan_mach): Delete.
779 (arch_info_struct): Replace scan_mach with bfd_default_scan.
780 (bfd_sh_arch): Likewise.
781
3d8dbe36
NC
7822002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
783
784 * ihex.c (ihex_write_object_contents): Fix check for records
785 crossing 64K boundaries.
786
4ab82700
AM
7872002-04-16 Alan Modra <amodra@bigpond.net.au>
788
789 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
790 type rather than just assuming entries are ELF.
791 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
792 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
793 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
794 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
795 rather than elf_link_hash_entry.
796
036fe0fe
RH
7972002-04-15 Richard Henderson <rth@redhat.com>
798
799 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
800 n32 binaries.
801
c4f3d130
NC
8022002-04-15 Michael Snyder <msnyder@redhat.com>
803
804 * opncls.c (bfd_close): Write contents if writeable.
805 Minor formatting tidy-ups.
806
4ab82700 8072002-04-15 Alan Modra <amodra@bigpond.net.au>
27242387
AM
808
809 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
810
0c04d169
MS
8112002-04-12 Michael Snyder <msnyder@redhat.com>
812
813 * bfd-in.h (bfd_get_section_lma): New access macro.
814 Minor white-space fix-up.
815
89d4966f
AM
8162002-04-12 Alan Modra <amodra@bigpond.net.au>
817
818 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
819 header pad.
820
8d0da3c2
DD
8212002-04-09 DJ Delorie <dj@redhat.com>
822
823 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
824
05793179
NC
8252002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
826
827 * coffcode.h (coff_read_word): New.
828 (coff_compute_checksum): New.
829 (coff_apply_checksum): New.
830 (coff_write_object_contents): Call coff_apply_checksum () to
831 apply checksum to PE image.
832
46fe4e66
AM
8332002-04-08 Randolph Chung <tausq@debian.org>
834
835 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
836 (elf32_hppa_final_link): Split out sorting logic to..
837 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
838 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
839
3b5b409c
AC
8402002-04-07 Andrew Cagney <ac131313@redhat.com>
841
842 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
843 pattern.
844 * configure: Re-generate.
845
ac7b6ceb
AC
8462002-04-07 Andrew Cagney <ac131313@redhat.com>
847
848 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
849 is greater or equal to 4.3.3.
850 * configure: Regenerate.
851 Fix PR gdb/344.
852
44aa49bb
HPN
8532002-04-05 Hans-Peter Nilsson <hp@axis.com>
854
855 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
856 R_CRIS_32_PCREL>: Fix typo in name.
857 (cris_elf_check_relocs): Always create .rela.got here when
858 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
859 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
860 assume it's created.
861
e2d34d7d
DJ
8622002-04-04 Daniel Jacobowitz <drow@mvista.com>
863
864 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
865 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
866 define.
867 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
868 * bfd.c (bfd_link_hash_table_free): Define.
869 * binary.c (binary_bfd_link_hash_table_free): Define.
870 * bout.c (b_out_bfd_link_hash_table_free): Define.
871 * coff-rs6000.c (rs6000coff_vec): Include
872 _bfd_generic_link_hash_table_free.
873 (pmac_xcoff_vec): Likewise.
874 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
875 (aix5coff64_vec): Likewise.
876 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
877 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
878 (bfd_elf32_bfd_link_hash_table_free): Define.
879 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
880 (bfd_elf32_bfd_link_hash_table_free): Define.
881 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
882 define.
883 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
884 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
885 * ieee.c (ieee_bfd_link_hash_table_free): Define.
886 * ihex.c (ihex_bfd_link_hash_table_free): Define.
887 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
888 (_bfd_generic_link_hash_table_free): Add prototype.
889 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
890 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
891 * linker.c (_bfd_generic_link_hash_table_free): New function.
892 * mmo.c (mmo_bfd_link_hash_table_free): Define.
893 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
894 * oasys.c (oasys_bfd_link_hash_table_free): Define.
895 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
896 * som.c (som_bfd_link_hash_table_free): Define.
897 * srec.c (srec_bfd_link_hash_table_free): Define.
898 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
899 * versados.c (versados_bfd_link_hash_table_free): Define.
900 * vms.c (vms_bfd_link_hash_table_free): New function.
901 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
902
903 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
904 instead of bfd_alloc.
905 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
906 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
907 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
908 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
909 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
910 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
911 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
912 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
913 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
914 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
915 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
916 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
917 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
918 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
919 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
920 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
921 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
922 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
923 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
924 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
925 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
926 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
927 * m68klinux.c (linux_link_hash_table_create): Likewise.
928 * sparclinux.c (linux_link_hash_table_create): Likewise.
929 * sunos.c (sunos_link_hash_table_create): Likewise.
930 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
931
932 * targets.c: Add _bfd_link_hash_table_free to xvec.
933
934 * bfd-in2.h: Regenerate.
935 * libbfd.h: Regenerate.
936 * libcoff.h: Regenerate.
937
830629ab
AM
9382002-04-04 Alan Modra <amodra@bigpond.net.au>
939
940 * dep-in.sed: Cope with absolute paths.
941 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
942 Run "make dep-am".
943 * Makefile.in: Regenerate.
944 * coff-arm.c: Fix copyright date.
945 * cpu-h8300.c: Likewise.
946 * cpu-i370.c: Likewise.
947 * cpu-s390.c: Likewise.
948 * cpu-mips.c: Likewise.
949 * po/SRC-POTFILES.in: Regenerate.
950
c6e90b02
TS
9512002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
952
953 * Makefile.am: Add elfxx-mips.c to the known backends.
954 (elf32-mips.lo): remove dependency to coff/external.h.
955 * Makefile.in: Regenerate.
956 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
957 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
958 accordingly.
959 * configure: Regenerate.
960 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
961 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
962 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
963 MIPS specific backend functions.
964 * elf32-mips.c: Moved most code to elfxx-mips.c.
965 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
966 static.
967 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
968 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
969 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
970 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
971 interface to allow selection of the right REL or RELA howto table.
972 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
973 static. Let it refuse n32 objects.
974 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
975 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
976 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
977 (elf32_mips_ignore_discarded_relocs): Rename from
978 _bfd_elf32_mips_ignore_discarded_relocs.
979 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
980 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
981 (elf_mips_howto_table_rela): Remove.
982 * elf64-mips.c: Moved most code to elfxx-mips.c.
983 (bfd_elf64_bfd_reloc_type_lookup): Make static.
984 (mips_elf64_rtype_to_howto): New function.
985 (mips_elf64_object_p): Likewise.
986 (elf64_mips_irix_compat): Likewise.
987 * elfxx-mips.c: New file containing common code merged together from
988 elf32-mips.c and elf64-mips.c.
989 * elfxx-mips.h: New file containing MIPS specific prototypes from
990 elf-bfd.h.
991 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
992 elf_backend_mips_rtype_to_howto.
993
d8dce692
AM
9942002-04-04 Alan Modra <amodra@bigpond.net.au>
995
996 * srec.c (MAXCHUNK, Chunk): Revise comments.
997 (srec_write_record): Correct buffer size.
998 (srec_write_header): Do without intermediate buffer.
999 (srec_write_section): Validate Chunk.
1000 (srec_write_terminator): Pass NULL instead of dummy buffer.
1001 (srec_write_symbols): Pass file and symbol names directly to
1002 bfd_bwrite so sprintf won't overflow buffer.
1003
b88a866a
JJ
10042002-04-03 Jakub Jelinek <jakub@redhat.com>
1005
1006 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
1007 PC relative relocs against hidden symbols.
1008 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1009
d7866f04
AM
10102002-04-03 Alan Modra <amodra@bigpond.net.au>
1011
1012 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
1013 LMAs, loop over segments until p_vaddr and p_memsz specify an
1014 extent enclosing the section.
1015
9e81ee67
NC
10162002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
1017
1018 * ihex.c (ihex_write_object_contents): Do not allow records to
1019 cross a 64K boundary - wrap if necessary.
1020
d2b64500
JT
10212002-04-01 Nathan Williams <nathanw@wasabisystems.com>
1022
1023 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
1024 which caused the returned LWP ID to always be 0.
1025
e36f7d53
RH
10262002-04-01 Richard Henderson <rth@redhat.com>
1027
1028 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1029 (elf32_sparc_relocate_section): Use it to figure out when to
1030 initialize .got entries.
1031 * elf64-sparc.c: Similarly.
1032
e92d460e
AM
10332002-03-28 Alan Modra <amodra@bigpond.net.au>
1034
1035 * linker.c (link_action): Ignore duplicate warning syms.
1036 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
1037 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
1038 (elf_adjust_dynamic_symbol): Likewise.
1039 (elf_export_symbol): Likewise.
1040 (elf_link_find_version_dependencies): Likewise.
1041 (elf_link_assign_sym_version): Likewise.
1042 (elf_link_sec_merge_syms): Likewise.
1043 (elf_link_output_extsym): Likewise.
1044 (elf_gc_sweep_symbol): Likewise.
1045 (elf_gc_propagate_vtable_entries_used): Likewise.
1046 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1047 (elf_gc_allocate_got_offsets): Likewise.
1048 (elf_collect_hash_codes): Likewise.
1049 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
1050 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
1051 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
1052 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
1053 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
1054 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
1055 (elf_cris_discard_excess_dso_dynamics): Likewise.
1056 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
1057 (mark_PIC_calls): Likewise.
1058 (allocate_plt_static): Likewise.
1059 (allocate_dynrelocs): Likewise.
1060 (readonly_dynrelocs): Likewise.
1061 * elf32-i386.c (allocate_dynrelocs): Likewise.
1062 (readonly_dynrelocs): Likewise.
1063 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
1064 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
1065 * elf32-mips.c (mips_elf_output_extsym): Likewise.
1066 (mips_elf_sort_hash_table_f): Likewise.
1067 (mips_elf_check_mips16_stubs): Likewise.
1068 * elf32-s390.c (allocate_dynrelocs): Likewise.
1069 (readonly_dynrelocs): Likewise.
1070 * elf32-sh.c (sh_elf_discard_copies): Likewise.
1071 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
1072 (xstormy16_relax_plt_realloc): Likewise.
1073 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
1074 (elf64_alpha_output_extsym): Likewise.
1075 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
1076 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
1077 (mips_elf64_check_mips16_stubs): Likewise.
1078 (mips_elf64_output_extsym): Likewise.
1079 * elf64-ppc.c (func_desc_adjust): Likewise.
1080 (allocate_dynrelocs): Likewise.
1081 (readonly_dynrelocs): Likewise.
1082 * elf64-s390.c (allocate_dynrelocs): Likewise.
1083 (readonly_dynrelocs): Likewise.
1084 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
1085 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
1086 (readonly_dynrelocs): Likewise.
1087 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
1088 * aoutx.h (aout_link_write_other_symbol): Likewise.
1089 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
1090 (_bfd_coff_write_global_sym): Likewise.
1091 * i386linux.c (linux_tally_symbols): Likewise.
1092 * m68klinux.c (linux_tally_symbols): Likewise.
1093 * sparclinux.c (linux_tally_symbols): Likewise.
1094 * pdp11.c (aout_link_write_other_symbol): Likewise.
1095 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
1096 * xcofflink.c (xcoff_build_ldsyms): Likewise.
1097 (xcoff_write_global_symbol): Likewise.
1098
1099 * cofflink.c (_bfd_coff_final_link): Formatting.
1100 * cpu-mips.c (mips_compatible): Make static, prototype.
1101 * elf32-i386.c (elf_i386_check_relocs): Formatting.
1102 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1103 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
1104 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
1105 (mips_elf64_final_link): Likewise.
1106 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
1107 prototype.
1108
2106126f
NC
11092002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
1110
1111 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
1112 (SWAP_OUT_RELOC_OFFSET): Define.
1113
b99d1833
AM
11142002-03-27 Gregory Steuck <greg@nest.cx>
1115
1116 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
1117 terminating NULL if empty symbol table.
1118 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
1119
ad43ed4c
L
11202002-03-26 H.J. Lu (hjl@gnu.org)
1121
1122 * elflink.h (elf_link_input_bfd): Revert the last change since
1123 the gcc exception handling isn't fixed yet.
1124
3851fca4
L
11252002-03-26 H.J. Lu (hjl@gnu.org)
1126
1127 * elflink.h (elf_link_input_bfd): Complain about relocations
1128 against local symbols in discarded sections.
1129
b91afed7
AM
11302002-03-26 Alan Modra <amodra@bigpond.net.au>
1131
1132 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
1133
dba143ef
AM
11342002-03-23 Alan Modra <amodra@bigpond.net.au>
1135
1136 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
1137 section file offset for !SEC_LOAD sections.
1138
ee29b9fb
RE
11392002-03-21 Richard Earnshaw <rearnsha@arm.com>
1140
830629ab
AM
1141 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
1142 <case R_ARM_GOT>): Handle relocations to Thumb functions.
ee29b9fb 1143
54327882
AM
11442002-03-21 Alan Modra <amodra@bigpond.net.au>
1145
1146 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
1147 Whitespace changes.
1148 * archive.c: Update copyright date.
1149 * bfd-in2.h: Regenerate.
1150 * libbfd.h: Regenerate.
1151 * Makefile.am: Run "make dep-am"
1152 * Makefile.in: Regenerate.
1153 * po/SRC-POTFILES.in: Regenerate.
1154
1ee24f27
DJ
11552002-03-20 Daniel Jacobowitz <drow@mvista.com>
1156
1157 * dwarf2.c (struct funcinfo): Move up.
1158 (lookup_address_in_function_table): New argument function_ptr.
1159 Set it.
1160 (lookup_address_in_line_table): New argument function. If function
1161 is non-NULL, use it to handle ``addr'' before the first line note of
1162 the function.
1163 (comp_unit_find_nearest_line): Update and swap calls to
1164 lookup_address_in_function_table and lookup_address_in_line_table.
1165 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
1166 N_SLINE encountered if we see an N_FUN before any N_SLINE.
1167
51b9608c
TR
11682002-03-20 Tom Rix <trix@redhat.com>
1169
ea1e4b0d 1170 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
51b9608c 1171 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
ea1e4b0d 1172 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
51b9608c 1173
789c90aa
TR
11742002-03-19 Tom Rix <trix@redhat.com>
1175
ea1e4b0d 1176 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
789c90aa
TR
1177 dynamic objects in archives.
1178
1da54d81
HPN
11792002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
1180
1181 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
1182 STT_NOTYPE symbols to STT_OBJECT.
1183
7831a775 11842002-03-18 Jan Hubicka <jh@suse.cz>
beb43bb9
JH
1185
1186 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
1187
eb1e0e80
NC
11882002-03-18 Tom Rix <trix@redhat.com>
1189
1190 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
1191 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
1192 * coff-rs6000 (do_pad) : New function for archive padding.
1193 (do_copy) : New function for object file copying in archives.
1194 (do_shared_object_padding) : New function for padding shared
1195 objects to their text section alignment in archives.
1196 (bfd_xcoff_ar_achive_set_magic) : Stub.
1197 (xcoff_write_armap_big) : Use do_copy and do_pad.
1198 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
1199 do_copy and do_pad.
1200 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
ea1e4b0d 1201 bfd_xcoff_magic_number.
eb1e0e80
NC
1202 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
1203 fop.
1204 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
1205 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
1206 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
1207 * rs6000-core.c : Update copyright date.
ea1e4b0d 1208 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
eb1e0e80
NC
1209 csectpp.
1210 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
1211 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
1212 (coff_set_flags) : Use bfd_xcoff_magic_number.
1213 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
1214 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
1215 * Makefile.am : Same.
1216 * config.bfd : Same.
1217 * targets.c : Same.
1218 * configure : Regnerate.
1219 * Makefile.in : Same.
1220 * bfd-in2.h : Same.
1221
a1c259a1
NC
12222002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1223
1224 * po/fr.po: Updated version.
1225
4dae1ae7
AM
12262002-03-18 Alan Modra <amodra@bigpond.net.au>
1227
1228 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
1229 * libbfd.h: Regenerate.
1230 * archive.c (coff_write_armap): Pass on failures from
1231 bfd_write_bigendian_4byte_int.
1232
36b4f6e7
L
12332002-03-14 H.J. Lu <hjl@gnu.org>
1234
1235 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
1236 error to bfd_error_nonrepresentable_section for reinit_array
1237 section in DSO.
1238
a1aefc76
NC
12392002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1240
a181be0a
NC
1241 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
1242 OR it in rather than replacing previously selected flags.
1243
a1aefc76
NC
1244 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
1245 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
1246
c119f9b8
AM
12472002-03-14 Alan Modra <amodra@bigpond.net.au>
1248
1249 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
1250 (N): Use the above.
1251 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
1252 ensure reloc size matches before calling elf_link_input_bfd.
1253 Add an assert to check reloc size when counting output relocs.
1254
c295a511
NC
12552002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1256
1257 * mmo.c (mmo_get_loc): Return NULL rather than false.
1258
9ce88e60
NC
12592002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1260
1261 * po/fr.po: Updated version.
1262
4ddafab0
AM
12632002-03-13 Alan Modra <amodra@bigpond.net.au>
1264
b74fa2cd
AM
1265 * archures.c (bfd_default_compatible): Test bits_per_word.
1266 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
1267 bfd_default_compatible.
1268 * cpu-i370.c (i370_compatible): Likewise.
1269 * cpu-sparc.c (sparc_compatible): Likewise.
1270 * cpu-h8300.c (compatible): Test in->arch == out->arch.
1271
40b829d4
AM
1272 * elflink.h: Formatting fixes.
1273 (elf_link_output_extsym): Merge undefined and undef weak cases.
1274
4ddafab0
AM
1275 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
1276 when word size of input matches output word size.
1277
dd53c801
AJ
12782002-03-12 Andreas Jaeger <aj@suse.de>
1279
1280 * cpu-i386.c (i386_compatible): New. Use it instead of
1281 bfd_default_compatible.
1282
aa066ac8
L
12832002-03-07 H.J. Lu (hjl@gnu.org)
1284
1285 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
1286 as the type for bfd_reloc_val.
1287
1bf42538
JL
12882002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1289
1290 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
1291 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
1292 (elf_hppa_final_link_relocate): Correct relocations for indirect
1293 references to local data through the DLT. Fix .opd creation for
1294 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
1295 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
1296 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
1297 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1298 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
1299 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
1300 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1301
86eaf01e
JJ
13022002-03-05 Jakub Jelinek <jakub@redhat.com>
1303
1304 * merge.c (_bfd_merge_sections): Don't segfault if there
1305 is nothing to merge due to GC.
1306
c44233aa
AM
13072002-03-05 Alan Modra <amodra@bigpond.net.au>
1308
039cc25f
AM
1309 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
1310 symbols that have been forced local.
1311
c44233aa
AM
1312 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
1313 to output forced local syms for non-shared link.
1314 (elf_link_output_extsym): Tweak condition for calling backend
1315 adjust_dynamic_symbol so that previous behaviour is kept.
1316 Whitespace changes throughout file.
1317
25e27870
L
13182002-03-04 H.J. Lu <hjl@gnu.org>
1319
1320 * elf.c (bfd_section_from_shdr): Handle special sections,
1321 .init_array, .fini_array and .preinit_array.
1322 (elf_fake_sections): Likewise.
1323
1324 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
1325 DT entry only if the section is in output for .init_array,
1326 .fini_array and .preinit_array. Complain about .preinit_array
1327 section in DSO.
1328 (elf_bfd_final_link): Warn zero size for .init_array,
1329 .fini_array and .preinit_array sections.
1330
1331 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
1332 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
1333 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
1334 .preinit_array.
1335
bb2a49f2
AM
13362002-03-04 Alan Modra <amodra@bigpond.net.au>
1337
1338 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
1339 * configure: Regenerate.
1340
38487e5e
TR
13412002-03-02 Tom Rix <trix@redhat.com>
1342
c44233aa
AM
1343 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
1344 symbolic equiv.
38487e5e
TR
1345 * coff-rs6000.c (xcoff_howto_table): Same.
1346
30831527
RH
13472002-03-01 David Mosberger <davidm@hpl.hp.com>
1348
1349 * elflink.h (size_dynamic_sections): If section named
1350 ".preinit_array" exists, create DT_PREINIT_ARRAY and
1351 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
1352 ".init_array" and ".fini_array".
1353 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
1354 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
1355 DT_FINI_ARRAY.
1356
c8e5ddc8
AM
13572002-02-26 Andrew Macleod <amacleod@cygnus.com>
1358
1359 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
1360 dynsyms.
1361
96e0dda4
AM
13622002-02-25 Alan Modra <amodra@bigpond.net.au>
1363
1c5b6bf8
AM
1364 * elf64-hppa.h: Update copyright date.
1365
96e0dda4
AM
1366 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
1367 (ppc64_elf_relocate_section): Don't generate power4 style branch
1368 hints for *_BRTAKEN and *_BRNTAKEN relocs.
1369
0fb19cbc
JJ
13702002-02-22 Jakub Jelinek <jakub@redhat.com>
1371
1372 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
1373 last patch.
1374 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1375
c434dee6
AJ
13762002-02-21 Andreas Jaeger <aj@suse.de>
1377
1378 * elf64-x86-64.c: Major rework that introduces all recent changes
1379 to the x86-64 backend. Get a closer match to elf32-i386.
1380 (struct elf64_x86_64_dyn_relocs): Rename from
1381 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
1382 all users.
1383 (struct elf64_x86_64_link_hash_table): Add short cuts to some
1384 sections.
1385 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
1386 remove casts, initialize new hash members.
1387 (create_got_section): New.
1388 (elf64_x86_64_create_dynamic_sections): New.
1389 (elf64_x86_64_copy_indirect_symbol): New.
1390 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
1391 relocs, .got or .relgot here but do it in allocate_dynrelocs.
1392 Reference count possible .plt and .got entries. Don't test input
1393 section SEC_READONLY here to try to avoid copy relocs, and keep
1394 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
1395 DF_TEXTREL here. Delay setting of variables until needed. Cache
1396 pointer to "sreloc" section in elf_section_data. Tweak condition
1397 under which .got created. Report files with bad relocation
1398 section names.
1399 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1400 Reference count possible .plt entries. Don't deallocate .got and
1401 .relgot space here.
1402 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
1403 do copy reloc processing for weakdefs. Remove redundant casts and
1404 aborts. Delay setting of vars until needed. Move creation of
1405 dynamic symbols and allocation of .plt and .rela.plt to
1406 allocate_dynrelocs. Replace BFD_ASSERT with abort.
1407 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1408 (allocate_dynrelocs): New.
1409 (readonly_dynrelocs): New.
1410 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
1411 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
1412 Zero out the dynamic allocated content space.
1413 (elf64_x86_64_discard_copies): Removed.
1414 (elf64_x86_64_relocate_section): Make use of dynamic section
1415 short-cuts. Localise vars, and delay setting. Better error
1416 reporting, replace BFD_ASSERT with abort. Check
1417 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
1418 regular object file and tread the weak definition as the normal
1419 one. Don't discard relocs for undefweak or undefined symbols and
1420 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
1421 relocs.
1422 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
1423 symbols that have been forced local. Use same test to decide if
1424 we can use a relative reloc for got as relocate_section. Expand
1425 SHN_UNDEF comment. Move expressions out of function calls.
1426 Replace BFD_ASSERT with abort.
1427 (bfd_elf64_bfd_final_link): Removed.
1428 (elf_backend_copy_indirect_symbol): Define.
1429
ff3a6ee3
TR
14302002-02-20 Tom Rix <trix@redhat.com>
1431
1432 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
1433 (_bfd_xcoff_reloc_type_lookup): Use it.
1434 * coff64-rs6000.c (xcoff64_howto_table): Same.
1435 (xcoff64_reloc_type_lookup): Same.
c434dee6 1436
a68d41fb
AM
14372002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1438
1439 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
1440 little endian.
1441
befc3abb
MS
14422002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1443
1444 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
1445 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
1446 * bfd-in2.h: Regenerate.
1447 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
1448 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
1449 with "s390:64-bit".
1450 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
1451 (elf_s390_reloc_type_lookup): Likewise.
1452 (elf_s390_check_relocs): Likewise.
1453 (elf_s390_gc_sweep_hook): Likewise.
1454 (elf_s390_relocate_section): Likewise.
1455 (elf_s390_object_p): Use renamed architecture define.
1456 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
1457
6eeeec9b
FCE
14582002-02-19 Frank Ch. Eigler <fche@redhat.com>
1459
1460 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
1461
0bb2d96a
JJ
14622002-02-19 Jakub Jelinek <jakub@redhat.com>
1463
1464 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
1465 absptr -> pcrel optimization for shared libs.
1466 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
1467 library cannot be converted to pcrel.
1468 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
1469 relative.
1470 * elf32-i386.c (elf_i386_relocate_section): If
1471 _bfd_elf_section_offset returned -2, skip, but make sure the
1472 relocation is installed.
1473 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
1474 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1475 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1476 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1477 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1478 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1479 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1480 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1481 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1482 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1483 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1484 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1485 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1486 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1487 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
1488 _bfd_elf_section_offset returning -2 the same way as -1.
1489 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
1490 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
1491 and BFD_ASSERT.
1492 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
1493
69f284c7
TR
14942002-02-18 Tom Rix <trix@redhat.com>
1495
1496 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
1497 (bfd_xcoff_size_dynamic_sections): Same.
1498 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
1499 (bfd_xcoff_size_dynamic_sections): Same.
1500 * coff-rs6000.c (xcoff_generate_rtinit): Same.
1501 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
1502 * libxcoff.h (struct xcoff_backend_data_rec): Same.
1503 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
1504 * bfd-in2.h: Regenerate.
1505
82bd7b59
AM
15062002-02-18 Alan Modra <amodra@bigpond.net.au>
1507
1508 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
1509 (struct ppc_link_hash_table): Add sfpr.
1510 (ppc64_elf_link_hash_table_create): Init it.
1511 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
1512 .glink out to..
1513 (create_linkage_sections): ..here. Make .sfpr too.
1514 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
1515 dynobj early.
1516 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
1517 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
1518 ._restf* functions, and create as needed.
1519 (func_desc_adjust): Only force_local for shared libs.
1520
ef1355e8
NC
15212002-02-18 David O'Brien <obrien@FreeBSD.org>
1522
1523 * configure.in: Bump version number post 2.12 branching.
1524 * configure: Regenerate.
1525
dfa36a69
HPN
15262002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1527
1528 * mmo.c: Correct and improve comments.
1529 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
1530 zero-pad. Use input to fill up non-empty bfd buffer.
1531 (mmo_flush_chunk): New function.
1532 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
1533 changed. Don't emit location specifier if VMA is same as
1534 *LAST_VMAP after omitting leading zero contents. Call
1535 mmo_flush_chunk before emitting location specifier.
1536 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
1537 with mmo_write_loc_chunk calls.
1538 (mmo_internal_write_section): Call mmo_flush_chunk after
1539 mmo_write_chunk.
1540 (mmo_write_symbols_and_terminator): Move :Main to first position
1541 in symbol array. Add faked one if it does not exist if there are
1542 other symbols. Don't add it if there are no symbols at all. Move
1543 out test for value of :Main from symbol loop. Rename table
1544 fakemain to maintable and variable mainsym to fakemain.
1545
ccf00ab6
RH
15462002-02-15 Richard Henderson <rth@redhat.com>
1547
1548 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
1549 section with no got matches any got. Simplify error generaion.
1550
88eaccc2
AM
15512002-02-15 Alan Modra <amodra@bigpond.net.au>
1552
fd96f80f
AM
1553 Support arbitrary length fill patterns.
1554 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
1555 (_bfd_default_link_order): Remove bfd_fill_link_order code.
1556 Call default_data_link_order.
1557 (default_fill_link_order): Delete.
1558 (default_data_link_order): New function.
1559 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
1560 of bfd_fill_link_order with bfd_data_link_order.
1561 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
1562 * elf64-mips.c (mips_elf64_final_link): Likewise.
1563
88eaccc2
AM
1564 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
1565 Correct value returned in "end" for "0x<non-hex>".
1566
e2fd756b
NC
15672002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
1568
1569 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
1570 (scan): Test against 'mach' field in info structure.
1571
edd29cf9
AM
15722002-02-14 Alan Modra <amodra@bigpond.net.au>
1573
1574 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
1575
1e30956e 15762002-02-14 Matt Fredette <fredette@netbsd.org>
76f57f3a
JT
1577
1578 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
1579 EF_M68000.
1580
bf36db18
NC
15812002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
1582
1583 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
edd29cf9
AM
1584 non-zero physical addresses when adjusting the LMAs of new
1585 sections.
bf36db18 1586
189c6563
AM
15872002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1588
1589 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
1590 from _bfd_elf_hppa_gen_reloc_type.
1591 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
1592 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
1593 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
1594 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
1595
e948afaf
AO
15962002-02-12 Alexandre Oliva <aoliva@redhat.com>
1597
1598 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
1599 loading its contents if there's nothing to do in it.
1600
19397422
AM
16012002-02-12 Alan Modra <amodra@bigpond.net.au>
1602
0ad3a73b
AM
1603 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
1604 64k boundary.
1605
19397422
AM
1606 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
1607 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
1608 (ppc64_elf_finish_dynamic_sections): Set values for them.
1609
51316059
MS
16102002-02-11 Michael Snyder <msnyder@redhat.com>
1611
1612 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
1613 * elf.c (elfcore_grok_pstatus): Add prototype.
1614 (elfcore_grok_lwpstatus): Add prototype.
1615 (elfcore_write_lwpstatus): New function.
1616 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
1617
518313c3
AO
16182002-02-11 Alexandre Oliva <aoliva@redhat.com>
1619
1620 * elf32-sh.c: Added missing prototypes.
1621 * elf32-sh64.c: Likewise.
1622 (sh_elf_align_loads): Mark unused args as such.
1623 * elf64-sh64.c: Added missing prototypes.
1624 (struct elf_sh64_link_hash_entry): Fix typo.
1625 (sh_elf64_relocate_section): Fix info argument passed to
1626 _bfd_elf_section_offset.
1627
2c73f9d8
AM
16282002-02-11 Alan Modra <amodra@bigpond.net.au>
1629
1630 * Makefile.am: "make dep-am".
1631 * Makefile.in: Regenerate.
1632 * aclocal.m4: Regenerate.
1633 * config.in: Regenerate.
1634 * configure: Regenerate.
1635
d426c6b0
DJ
16362002-02-10 Daniel Jacobowitz <drow@mvista.com>
1637
1638 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
1639 variable warnings.
1640 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
1641 comparison warning.
1642 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
1643 cast warnings for the common case.
1644
e58ee0cd
HPN
16452002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
1646
1647 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
1648 vectors.
1649 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
1650 vectors.
1651
7793f4d0
RH
16522002-02-09 Richard Henderson <rth@redhat.com>
1653
1654 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
1655 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
1656 (elf64_alpha_relocate_section): Likewise.
1657 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
1658 * bfd-in2.h, libbfd.h: Rebuild.
1659
7e799044
HPN
16602002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1661
1662 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
1663 that base-plus-offset reloc accounting is consistent.
1664 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
1665 up to date for undefined symbols.
1666
027d73eb
EC
16672002-02-08 Eric Christopher <echristo@redhat.com>
1668
1669 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1670
1671 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
1672 sections for the O32 ABI.
1673
517662d4
CD
16742002-02-08 Chris Demetriou <cgd@broadcom.com>
1675
1676 * elf32-arm.h: Fix formatting of _("...").
1677 * elf32-d10v.c: Likewise.
1678 * elf32-m68k.c: Likewise.
1679 * elf32-mips.c: Likewise.
1680
5e37cc46
NC
16812002-02-08 Ivan Guzvinec <ivang@opencores.org>
1682
1683 * coff-or32.c: Fix compile time warning messages.
1684
fbca6ad9
AO
16852002-02-08 Alexandre Oliva <aoliva@redhat.com>
1686
1687 Contribute sh64-elf.
1688 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
1689 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
1690 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
1691 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
1692 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
1693 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
1694 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
1695 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
1696 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
1697 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
1698 New relocs.
1699 * libbfd.h, bfd-in2.h: Rebuilt.
1700 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
1701 (sh_reloc_map): Map them.
1702 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1703 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
1704 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
1705 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1706 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
1707 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
1708 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
1709 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
1710 datalabel_got_offset.
1711 (sh_elf_link_hash_newfunc): Initialize it.
1712 (sh_elf_relocate_section): Augment the scope of
1713 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
1714 GOT and GOTOFF handling to new SHmedia relocation types. Support
1715 GOT_BIAS.
1716 (sh_elf_check_relocs): Likewise.
1717 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
1718 PLT entries using movi_shori_putval. Support GOT_BIAS.
1719 (sh_elf_finish_dynamic_sections): Likewise.
1720 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
1721 relocation, it's now done by the caller.
1722 (GOT_BIAS): New.
1723 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
1724 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
1725 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
1726 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
1727 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
1728 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
1729 sh64_elf64_hash_table): New.
1730 (sh_elf64_howto_table): Introduce new relocs.
1731 (sh_elf64_info_to_howto): Accept new PIC relocs.
1732 (sh_elf64_relocate_section): Augment the scope of
1733 seen_stt_datalabel. Support new PIC relocs.
1734 (sh_elf64_check_relocs): Support new PIC relocs.
1735 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
1736 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
1737 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
1738 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
1739 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
1740 movi_shori_putval, movi_3shori_putval,
1741 sh64_elf64_create_dynamic_sections,
1742 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
1743 sh64_elf64_size_dynamic_sections,
1744 sh64_elf64_finish_dynamic_symbol,
1745 sh64_elf64_finish_dynamic_sections): New.
1746 (elf_backend_create_dynamic-sections,
1747 bfd_elf64_bfd_link_hash_table_create,
1748 elf_backend_adjust_dynamic_symbol,
1749 elf_backend_size_dynamic_sections,
1750 elf_backend_finish_dynamic_symbol,
1751 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1752 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1753 elf_backend_got_header_size, elf_backend_plt_header_size):
1754 Define.
1755 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1756 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
1757 match official numbers and names; moved unmaching ones to the
1758 range 0xf2-0xff.
1759 * elf32-sh64.c, elf64-sh64.c: Likewise.
1760 2001-03-12 DJ Delorie <dj@redhat.com>
1761 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
1762 sections.
1763 2001-03-12 DJ Delorie <dj@redhat.com>
1764 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
1765 be aligned.
1766 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
1767 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1768 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
1769 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
1770 .cranges section with SEC_SORT_ENTRIES set.
1771 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
1772 incoming sorted .cranges section.
1773 (sh64_bfd_elf_copy_private_section_data): New.
1774 (sh64_elf_final_write_processing): Only sort .cranges and modify
1775 start address if called by linker.
1776 2001-01-08 Ben Elliston <bje@redhat.com>
1777 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
1778 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
1779 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
1780 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1781 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
1782 line. Add comments before all entries.
1783 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
1784 comment.
1785 (sh_elf64_reloc): Correct head comment.
1786 (sh_elf64_relocate_section): Correct spacing.
1787 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
1788 instead call reloc_dangerous callback.
1789 <case R_SH_SHMEDIA_CODE>: New case.
1790 (sh_elf64_gc_mark_hook): Correct spacing.
1791 (sh_elf64_check_relocs): Ditto.
1792 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
1793 New case.
1794 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
1795 functions.
1796 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
1797 clarify describing comment. Add comments before all entries.
1798 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
1799 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
1800 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1801 Sort .cranges section in final link. Prepare to set bit 0 on
1802 entry address.
1803 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
1804 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
1805 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
1806 .cranges section.
1807 (sh64_backend_section_from_shdr): New, to recognize
1808 SHT_SH5_CR_SORTED on incoming .cranges section.
1809 (elf_backend_section_from_shdr): Define.
1810 (sh64_elf_final_write_processing): Sort outgoing .cranges
1811 section. (New, temporarily disabled:) Set bit 0 on entry address
1812 according to ISA type.
1813 (sh64_find_section_for_address): New.
1814 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
1815 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
1816 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
1817 bfd_malloc, not xmalloc.
1818 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
1819 global.
1820 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
1821 temporarily disabled) setting bit 0 on entry address.
1822 (elf_backend_final_write_processing): Define.
1823 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1824 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
1825 be a proper relocation for PTA and PTB rather than a marker.
1826 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
1827 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
1828 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
1829 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
1830 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
1831 Zero src_mask.
1832 * elf64-sh64.c: Ditto.
1833 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
1834 * elf32-sh64.c: Include opcodes/sh64-opc.h
1835 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
1836 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
1837 parameters. No unused parameters. Caller changed.
1838 <case R_SH_PT_16>: New case.
1839 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
1840 * Makefile.in: Regenerate.
1841 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1842 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
1843 all code sections.
1844 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1845 (sh64_elf_merge_private_data): Ditto.
1846 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
1847 to access stored section flags.
1848 (sh64_elf_final_write_processing): Return immediately unless
1849 called by linker. Use sh64_elf_section_data (cranges) to get size
1850 of linker-generated cranges entries.
1851 (sh64_elf_copy_private_data): Add missing "return true".
1852 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1853 (sh_elf64_merge_private_data): Ditto.
1854 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
1855 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
1856 elf64-sh64.c:sh64_elf_fake_sections.
1857 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
1858 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1859 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
1860 (sh64_elf_final_write_processing): New.
1861 (elf_backend_final_write_processing): Define.
1862 (sh64_elf_fake_sections): Get header flags from tdata field.
1863 (sh64_elf_copy_private_data): Do not call
1864 sh64_elf_copy_private_data_internal, just copy e_flags field.
1865 (sh64_elf_merge_private_data): Do not call
1866 sh64_elf_copy_private_data_internal.
1867 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1868 Remove EF_SH64_ABI64, let ELF size make difference.
1869 Remove SH64-specific BFD section flag.
1870 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
1871 containing SHmedia through elf_section_data (asect)->tdata
1872 non-zero, not using a BFD section flag.
1873 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
1874 (sh64_elf_merge_private_data): Similar.
1875 (elf_backend_section_flags): Don't define.
1876 (sh64_elf_backend_section_flags): Delete.
1877 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
1878 not EF_SH64_ABI64.
1879 (sh_elf64_merge_private_data): Similar.
1880 * section.c (Section flags definitions): Don't define
1881 SEC_SH_ISA_SHMEDIA.
1882 (bfd-in2.h): Regenerate.
1883 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
1884 Make DataLabel references work with partial linking.
1885 * elf32-sh64.c: Fix formatting.
1886 (sh64_elf_link_output_symbol_hook): New.
1887 (elf_backend_link_output_symbol_hook): Define to
1888 sh64_elf_link_output_symbol_hook.
1889 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
1890 undefined if partial linking. Adjust sanity check.
1891 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
1892 (elf_backend_link_output_symbol_hook): Define to
1893 sh64_elf64_link_output_symbol_hook.
1894 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
1895 undefined if partial linking. Adjust sanity check.
1896 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
1897 Implement semantics for inter-file DataLabel references.
1898 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
1899 (sh64_elf64_add_symbol_hook): New.
1900 (sh_elf64_relocate_section): If passing an indirect symbol with
1901 st_type STT_DATALABEL on the way to a symbol with st_other
1902 STO_SH5_ISA32, do not bitor 1 to the relocation.
1903 (elf_backend_add_symbol_hook): Define to
1904 sh64_elf64_add_symbol_hook.
1905 * elf64-sh32.c: Tweak comments.
1906 (DATALABEL_SUFFIX): Define.
1907 (sh64_elf_add_symbol_hook): New.
1908 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
1909 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
1910 symbol with st_type STT_DATALABEL on the way to a symbol with
1911 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
1912 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
1913 Pass through STT_DATALABEL.
1914 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
1915 (elf_backend_get_symbol_type): Define.
1916 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
1917 (elf_backend_get_symbol_type): Define.
1918 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1919 * elf32-sh64.c: Tweak comments.
1920 (sh64_elf_copy_private_data_internal): Add prototype.
1921 (bfd_elf32_bfd_set_private_flags): Define.
1922 (sh64_elf_copy_private_data_internal): Compare machine name, not
1923 textual BFD target name, to check whether to copy section flag
1924 SHF_SH5_ISA32.
1925 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
1926 Tweak section-contents-type-mismatch message.
1927 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
1928 Validize reloc-types.
1929 * elf64-sh64.c: New file.
1930 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
1931 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
1932 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
1933 Regenerate dependencies.
1934 * Makefile.in: Regenerate.
1935 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
1936 bfd_elf64_sh64l_vec.
1937 * configure.in: Handle bfd_elf64_sh64_vec and
1938 bfd_elf64_sh64l_vec.
1939 * configure: Regenerate.
1940 * po/POTFILES.in: Regenerate.
1941 * po/bfd.pot: Regenerate.
1942 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1943 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
1944 anything else but EF_SH64 and EF_SH64_ABI64.
1945 (sh64_elf_merge_private_data): Emit error for anything else but
1946 EF_SH64 and EF_SH64_ABI64.
1947 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
1948 from targ_selvecs.
1949 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
1950 bfd_elf32_sh64l_vec as a temporary measure.
1951 * configure: Regenerate.
1952 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
1953 * cpu-sh.c (arch_info_struct): Include sh5 item
1954 unconditionalized.
1955 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
1956 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
1957 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
1958 * elf32-sh64.c: Tweak comments.
1959 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
1960 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
1961 (sh64_elf_copy_private_data_internal): Wrap long line.
1962 (sh64_elf_merge_private_data): Rewrite to allow objects from
1963 SH64 subsets to be linked together.
1964 (INCLUDE_SHMEDIA): Define.
1965 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
1966 Parenthesize plus-expression inside or-expression.
1967 <global symbol>: Ditto.
1968 (sh_elf_set_mach_from_flags): Remove code refusing
1969 deleted EF_SH64_32BIT_ABI flag.
1970 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
1971 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
1972 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
1973 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
1974 (sh_elf_relocate_section) <local symbol>: Or 1 in
1975 calculation of relocation if sym->st_other & STO_SH5_ISA32.
1976 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
1977 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
1978 relocation.
1979 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1980 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
1981 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
1982 Regenerate dependencies.
1983 * Makefile.in: Regenerate.
1984 * archures.c: Add bfd_mach_sh5.
1985 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
1986 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
1987 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
1988 * configure: Regenerate.
1989 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
1990 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
1991 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1992 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
1993 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
1994 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
1995 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
1996 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
1997 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
1998 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
1999 in item for SH5.
2000 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
2001 for SHmedia relocs.
2002 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
2003 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
2004 shmedia_prepare_reloc, goto final_link_relocate if it returns
2005 non-zero, else fail as before.
2006 (sh_elf_set_mach_from_flags): Provide function only if not defined
2007 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
2008 (sh_elf_set_private_flags): Provide function only if not defined
2009 as a macro.
2010 (sh_elf_copy_private_data): Similar.
2011 (sh_elf_merge_private_data): Similar.
2012 * section.c (SEC_SH_ISA_SHMEDIA): New.
2013 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
2014 * elf32-sh64.c: New file.
2015 * libbfd.h: Regenerate.
2016 * bfd-in2.h: Regenerate.
2017 * po/POTFILES.in: Regenerate.
2018 * po/bfd.pot: Regenerate.
2019 * bfd-in2.h: Regenerate.
2020 * libbfd.h: Regenerate.
2021
e108f470
DJ
20222002-02-07 Daniel Jacobowitz <drow@mvista.com>
2023
2024 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
2025 been included, not drag it in.
2026 * bfd-in2.h: Regenerate.
2027
259d18a3
L
20282002-02-06 H.J. Lu (hjl@gnu.org)
2029
2030 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
2031 the mach and ISA fields if necessary.
2032
f13b834e
NC
20332002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2034
2035 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
2036 ARM architecture when an F_ARM_5 flag is detected, since we cannot
2037 be sure exactly which architecture this represents.
2038
82f6addb
NC
20392002-02-05 Nick Clifton <nickc@redhat.com>
2040
2041 * po/tr.po: Updated translation.
2042
899f54f5
AM
20432002-02-05 Alan Modra <amodra@bigpond.net.au>
2044
2045 From Jimi X <jimix@watson.ibm.com>
2046 * archures (bfd_mach_ppc64): Define.
2047 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
2048 (bfd_powerpc_arch): Define.
2049 * bfd-in2.h: Regenerate.
2050 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
2051 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
2052 (bfd_powerpc_archs): Add default powerpc64 arch.
2053
248866a8
AM
20542002-02-05 Alan Modra <amodra@bigpond.net.au>
2055
2056 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
2057 against section syms in readonly sections. Don't do the global
2058 sym check if we find one.
2059 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
2060 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
0a6958db 2061 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
248866a8
AM
2062 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
2063 (elf_s390_grok_prstatus): Add missing prototype.
2064
4fa5c2a8
HPN
20652002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2066
2067 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
2068 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
2069 Call bfd_get_section_by_name only once. Initialize
2070 bpodata->n_bpo_relocs_this_section.
2071 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
2072 referring to DSOs.
2073 (bpo_reloc_request_sort_fn): Don't use difference of values as
2074 return-value.
2075
537c972e
DB
20762002-02-02 David O'Brien <obrien@FreeBSD>
2077
2078 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
2079 version 4.5 and later the same as 5-CURRENT.
2080 * configure: Re-generate.
2081
006336b8
JT
20822002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2083
2084 * config.bfd (hppa*-*-netbsd*): New target.
2085
6c571f00
PT
20862002-01-31 Philipp Thomas <pthomas@suse.de>
2087
19397422
AM
2088 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
2089 to front of message. Unify messages with elf32-arm.h. Use
2090 commas where neccessary.
2091 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
2092 ERROR in messages. Unify messages with coff-arm.c. Correct
2093 VFP/FPA error message.
2094 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
2095 APCS-32 for translation.
6c571f00 2096
930b4cb2
HPN
20972002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2098
2099 Perform on-demand global register allocation from
2100 R_MMIX_BASE_PLUS_OFFSET relocs.
2101 * elf64-mmix.c (struct bpo_reloc_section_info, struct
2102 bpo_reloc_request, struct bpo_greg_section_info): New.
2103 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
2104 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
2105 _bfd_mmix_check_all_relocs,
2106 _bfd_mmix_prepare_linker_allocated_gregs,
2107 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
2108 (elf_mmix_howto_table): Correct src_mask for most relocs.
2109 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
2110 case.
2111 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
2112 case. Fix typo in comment. New label do_mmix_reloc.
2113 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
2114 store first object file with a base-plus-offset reloc. Call
2115 mmix_elf_check_common_relocs for the part common with mmo.
2116 (mmix_elf_final_link): Write out linker-allocated register
2117 contents section.
2118 (elf_backend_gc_sweep_hook): Define.
2119 (bfd_elf64_bfd_relax_section): Define.
2120
2121 * mmo.c: Don't include <ctype.h>
2122 (mmo_init): Correct init-once logic.
2123
3e36d993
TR
21242002-02-01 Tom Rix <trix@redhat.com>
2125
2126 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
2127
ba323545
AM
21282002-02-01 Alan Modra <amodra@bigpond.net.au>
2129
2130 * Makefile.am: Run "make dep-am"
2131 * Makefile.in: Regenerate.
2132
012884d6
DB
21332002-01-31 David O'Brien <obrien@FreeBSD>
2134
2135 * configure.in: Recognize the differences in core files from FreeBSD
2136 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
2137 5-CURRENT.
2138 * configure: Regenerate.
2139
3b16e843
NC
21402002-01-31 Ivan Guzvinec <ivang@opencores.org>
2141
2142 * coff-or32.c: New file.
2143 * cpu-or32.c: New file.
2144 * elf32-or32.c: New file.
2145 * archures.c: Add support for or32.
2146 * targets.c: Add support for or32.
2147 * bfd-in2.h: Regenerate.
7dc0ab31 2148 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
3b16e843
NC
2149 coff_write_object_contents): Add support for or32.
2150 * config.bfd: Add target.
2151 * configure.in: Add support for or32.
2152 * configure: Regenerate.
2153 * Makefile.am: Add support for or32.
2154 * Makefile.in: Regenerate.
3b16e843
NC
2155 * po/SRC-POTFILES.in: Add or32 files.
2156 * po/bfd.pot: Regenerate.
7dc0ab31 2157
caf8ca8e
NC
21582002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
2159 Don Lindsay <lindsayd@cisco.com>
2160
2161 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
2162 false' with a return of a bfd_reloc_ error code.
2163
e5dfef09
HPN
21642002-01-31 Hans-Peter Nilsson <hp@axis.com>
2165
2166 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
2167 unexport unreferenced symbols when --export-dynamic. Call
2168 _bfd_elf_strtab_delref when unexporting.
2169
4e4770d0
DJ
21702002-01-30 Daniel Jacobowitz <drow@mvista.com>
2171
2172 * bfd-in.h: Include <stdbool.h> if it is available.
2173 * bfd-in2.h: Regenerated.
2174
e1fa50e7
AM
21752002-01-31 Alan Modra <amodra@bigpond.net.au>
2176
2177 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
2178 not go via the plt.
2179
b5f79c76
NC
21802002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
2181
b5f79c76
NC
2182 * archures.c: Tidy up formatting of embedded comments.
2183 * bfd.c: Tidy up formatting of embedded comments.
7dc0ab31 2184 * bfd-in.h: Fix formatting of comments.
b5f79c76
NC
2185 * reloc.c: Tidy up formatting of ordinary & embedded comments.
2186 * section.c: Tidy up formatting of embedded comments.
2187 * syms.c: Tidy up formatting of embedded comments.
2188 * targets.c: Tidy up formatting of embedded comments.
2189
2190 * bfd-in2.h: Regenerate.
2191
ca09e32b
NC
21922002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
2193
2194 * vms-tir.c (cmd_name): New function.
2195 (tir_cmd_name): New function.
2196 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
2197 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
2198 Fix formatting.
7dc0ab31 2199
ca09e32b
NC
2200 * peXXigen.c (pe_print_idata): Rearrange message to aid in
2201 translation.
2202 (pe_print_pdata): Rearrange message to aid in translation.
2203
2204 * libbfd.c (warn_deprecated): Rearrange error message to aid in
2205 translation.
2206
2207 * ihex.c (ihex_write_object_contents): Fix spelling typo.
2208
2209 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
2210
2211 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
2212 message to aid in translation.
2213
2214 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
2215 to aid in translation.
2216
2217 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
2218
7dc0ab31 22192002-01-30 Philipp Thomas <pthomas@suse.de>
ae1a89b7
PT
2220
2221 * coff-arm.c, elf32-elf.h: Unify messages.
2222
05f64ac6
NC
22232002-01-30 Nick Clifton <nickc@redhat.com>
2224
2225 * po/sv.po: Updated translation.
2226
f5a3e38a
NC
22272002-01-30 Philipp Thomas <pthomas@suse.de>
2228
2229 * dwarf2.c (read_abbrev): Use full section name in error message.
2230 (decode_line_info): Likewise.
661a3fd4
NC
2231
2232 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
2233 message.
2234
d926e03d
AM
22352002-01-30 Alan Modra <amodra@bigpond.net.au>
2236
2237 * elf64-ppc.c (func_desc_adjust): Only provide missing function
2238 descriptor symbols for undefined function code syms. Clear
2239 ELF_LINK_NON_ELF so that they can stay weak.
2240
030d18fb 22412002-01-29 Chris Demetriou <cgd@broadcom.com>
7dc0ab31 2242 Mitch Lichtenberg <mpl@broadcom.com>
030d18fb
CD
2243
2244 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
2245 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
2246 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
2247 generation.
2248 * bfd-in2.h: Regenerate.
2249
fcc76bea
CD
22502002-01-29 Chris Demetriou <cgd@broadcom.com>
2251
2252 * elf32-mips.c: Add additional comments about HI16 relocation
2253 processing.
2254 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
2255 pc-relative relocations. (Reverts change made on 2001-10-31.)
2256 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
2257 for pc-relative relocations.
2258 (mips_elf_calculate_relocation): Add a comment about a kludge
2259 in the R_MIPS_GNU_REL_HI16 handling.
2260 (_bfd_mips_elf_relocate_section): Implement that kludge;
2261 adjust pc-relative HI16 relocation for difference in HI16 and
2262 LO16 addresses, since it can't easily be done in
2263 mips_elf_calculate_relocation.
2264
f9cd9119
MS
22652002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
2266
2267 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
2268 relocations with PC32 relocations for undefined or weak symbols.
2269 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
2270 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
2271
702248bb
JT
22722002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
2273
2274 * elfcore.h (elf_core_file_p): Improve comment for last change.
2275
4867be41
DJ
22762002-01-27 Daniel Jacobowitz <drow@mvista.com>
2277
2278 * configure: Regenerated.
2279
a94cef6a
JT
22802002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
2281
2282 * elfcore.h (elf_core_file_p): Set the machine architecture
2283 before processing the program headers.
2284
7562a296
HPN
22852002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2286
966abd70
HPN
2287 * configure.in <64-bit configuration>: If using gcc, check and
2288 emit error for egcs-1.1.2.
2289 * configure: Regenerate.
2290
e8eab623
NC
22912002-01-26 Egor Duda <deo@logos-m.ru>
2292
2293 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
2294 as possible to avoid stack corruption.
2295
73896efb
RH
22962002-01-26 Richard Henderson <rth@redhat.com>
2297
2298 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
2299 for non-allocated sections.
2300
23012002-01-25 Mark Kettenis <kettenis@gnu.org>
c106e334
MK
2302
2303 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
2304 prstat.pr_reg even if it is a struct.
2305
73896efb 23062002-01-25 Steve Ellcey <sje@cup.hp.com>
254ed743
NC
2307
2308 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
2309
3d66c4f7
NC
23102002-01-25 Philipp Thomas <pthomas@suse.de>
2311
2312 * coffgen.c (coff_print_symbol): Don't mark info message
2313 for translation.
2314
9460ecda
NC
23152002-01-25 Nick Clifton <nickc@redhat.com>
2316
2317 * po/fr.po: Updated translation.
2318 * po/es.po: Updated translation.
2319
cc9ff76a
AM
23202002-01-25 Philipp Thomas <pthomas@suse.de>
2321
2322 * coff-alpha.c (alpha_relocate_section): Unify warning message
2323 for GP relative relocations without GP defined.
2324 * coff-mips.c (mips_relocate_section): Likewise.
2325
c68836a9
AM
23262002-01-25 Alan Modra <amodra@bigpond.net.au>
2327
2328 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
2329 unsigned overflow when new_offset < old_offset.
2330
e8eab623 23312002-01-24 Philipp Thomas <pthomas@suse.de>
391154e9
NC
2332
2333 * bfd.c (_bfd_abort): Fix typo.
2334
8ba89f17
RH
23352002-01-23 Richard Henderson <rth@redhat.com>
2336
2337 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
2338 plt entries for undefweak symbols.
2339
c6953948
NC
23402002-01-23 Steve Ellcey <sje@cup.hp.com>
2341
2342 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
2343 DEFAULT_VECTOR.
2344 (bfd_elf64_ia64_hpux_big_vec): Ditto.
2345 (bfd_elf32_h8300_vec): Ditto.
2346
41bd81ab
AM
23472002-01-23 Alan Modra <amodra@bigpond.net.au>
2348
2349 * elf64-ppc.c: Remove stale part of ABI comment.
2350 (NO_OPD_RELOCS): Define.
2351 (ppc64_elf_check_relocs): Use it.
2352 (ppc64_elf_relocate_section): Here too.
2353 (build_one_stub): Don't point function syms at the stub. Instead,
2354 hijack plt.offset.
2355 (ppc64_elf_relocate_section): Check whether REL24 relocs should
2356 really go to the stub. Make all dynamic relocs in opd against
2357 locals.
2358 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
2359 plt.offset.
2360
f304919d
RH
23612002-01-22 Richard Henderson <rth@redhat.com>
2362
2363 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
2364
c0ef99a7
AM
23652002-01-22 Alan Modra <amodra@bigpond.net.au>
2366
60ee0d4a
AM
2367 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
2368 TOC_BASE_OFF adjustment.
2369
c0ef99a7
AM
2370 * Makefile.am: Run "make dep-am".
2371 * Makefile.in: Regenerate.
2372 * po/SRC-POTFILES.in: Regenerate.
2373
64328b46
AM
23742002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
2375
2376 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
2377 host defines.
2378
59953665 23792002-01-21 Hans-Peter Nilsson <hp@axis.com>
58255df3
HPN
2380
2381 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
2382 Check for and emit error if sgot is NULL at this point.
2383
9596feea
JT
23842002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2385
2386 * config.bfd (ia64*-*-netbsd*): New target.
2387
7b45c6e1
AM
23882002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
2389
2390 * som.c (som_write_space_strings): Comment typo fix.
2391
e5094212
AM
23922002-01-21 Alan Modra <amodra@bigpond.net.au>
2393
e86ce104
AM
2394 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
2395 is_func_descriptor fields.
2396 (link_hash_newfunc): Init them.
2397 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
2398 dot are candidates for plt entries. When processing .opd relocs,
2399 set function descriptor strings to point inside function code
2400 string, and set new ppc_link_hash_entry fields.
2401 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
2402 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
2403 function descriptors. It's now done in..
2404 (func_desc_adjust): New.
2405 (ppc64_elf_func_desc_adjust): New.
2406 (define elf_backend_always_size_sections): Define.
2407 (ppc64_elf_hide_symbol): New.
2408 (define elf_backend_hide_symbol): Define.
2409 (allocate_dynrelocs): Remove code looking up function descriptors
2410 as that has been done earlier.
2411 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
2412 table.
2413 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
2414 up function descriptor.
2415 (build_one_stub): Look up the function code sym. Check for
2416 invalid plt offsets.
2417 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
2418 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
2419
e5094212
AM
2420 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
2421 boolean param.
2422 (_bfd_elf_link_hash_hide_symbol): Likewise.
2423 * elflink.h (elf_link_add_object_symbols): Adjust call to
2424 elf_backend_hide_symbol.
2425 (elf_fix_symbol_flags): Likewise.
2426 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
2427 than bfd_alloc.
2428 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
2429 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
2430 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2431 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
2432 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
2433 and adjust to suit.
2434 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
2435 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
2436 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2437
40b8271b
AM
24382002-01-18 Alan Modra <amodra@bigpond.net.au>
2439
2440 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
2441 dynamic function descriptor symbol, not the associated function
2442 symbol.
2443
55baa95b
EC
24442002-01-17 Eric Christopher <echristo@redhat.com>
2445
2446 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
2447
328577ad
NC
24482002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2449
2450 * po/bfd.pot: Regenerate.
2451 * po/fr.po: Regenerate.
2452
af746e92
AM
24532002-01-17 Alan Modra <amodra@bigpond.net.au>
2454
2455 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
2456 Remove "Elf_Internal_Shdr *" param.
2457 (_bfd_mips_elf_section_from_bfd_section): Ditto.
2458 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
2459 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
2460 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
2461 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
2462 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
2463 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
2464 function to override special sections. Remove hdr arg from
2465 backend call, and don't loop.
2466
175e9962
EC
24672002-01-16 Eric Christopher <echristo@redhat.com>
2468
2469 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
2470 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
2471 relocations requiring gp0 and gp.
2472
96a846ea
RE
24732002-01-16 Richard Earnshaw <rearnsha@arm.com>
2474
175e9962 2475 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
96a846ea
RE
2476 EF_ARM_VFP_FLOAT.
2477 (elf32_arm_print_private_bfd_data): Likewise.
2478
af3ae48d
NC
24792002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
2480
2481 * po/tr.po: Import new version.
2482
10ed1bba
AM
24832002-01-16 Alan Modra <amodra@bigpond.net.au>
2484
2485 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
2486 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
2487 (ORI_R0_R0_0): Correct.
2488
5d1634d7
AM
24892002-01-16 Alan Modra <amodra@bigpond.net.au>
2490
2491 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
2492 when plt_not_loaded.
2493 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
2494 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
2495 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
2496 (ppc64_elf_glink_code): Delete.
2497 (PPC64_ELF_GLINK_SIZE): Delete.
2498 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
2499 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
2500 ORI_R0_R0_0): Define.
2501 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
2502 (struct ppc_link_hash_table): Add sstub and plt_overflow.
2503 (ppc64_elf_link_hash_table_create): Init them.
2504 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
2505 Don't copy to shared lib.
2506 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
2507 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
2508 (allocate_dynrelocs <plt>): Don't change function sym here. Make
2509 room for .stub and .glink code.
2510 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
2511 DT_PPC64_GLINK.
2512 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
2513 bfd_elf64_bfd_final_link.
2514 (bfd_elf64_bfd_final_link): Don't define.
2515 (ppc64_elf_size_stubs): New.
2516 (build_plt_stub): New.
2517 (build_one_stub): New.
2518 (ppc64_elf_build_stubs): New.
2519 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
2520 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
2521 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
2522 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
2523 case output sections not separate. Adjust DT_RELASZ to not
2524 include plt relocs. Set reserved got entry. Set got and plt
2525 entry size.
2526 (elf_backend_got_header_size): Set to 8.
2527 * elf64-ppc.h: New file.
2528
c601ffdb
AM
25292002-01-16 Alan Modra <amodra@bigpond.net.au>
2530
2531 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
2532 sections, use bfd_section_list_remove.
2533 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2534 * elflink.h (elf_link_add_object_symbols): When removing all
2535 sections, use bfd_section_list_clear.
2536
8fb4cb7f
NC
25372002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2538
2539 * po/sv.po: New file: Swedish translation.
2540 * configure.in (ALL_LINGUAS): Add sv.
2541 * configure: Regenerate.
2542
d3c456e9
JJ
25432002-01-15 Jakub Jelinek <jakub@redhat.com>
2544
2545 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
2546 * elf.c (merge_sections_remove_hook): New function.
2547 (_bfd_elf_merge_sections): Pass it as 3rd argument to
2548 _bfd_merge_sections.
2549 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
2550 * libbfd.h: Rebuilt.
2551 * merge.c (_bfd_merge_sections): Add remove_hook argument.
2552 Call remove_hook if a SEC_EXCLUDE section is encountered.
2553
1f7fd478
NC
25542002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2555
2556 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
2557 (xstormy16_reloc_map): Initialise new field with correct howto
2558 table.
2559 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
2560 howto entry.
2561
b87011e9
MS
25622002-01-10 Michael Snyder <msnyder@redhat.com>
2563
2564 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
2565 (elfcore_write_pstatus): Use long instead of pid_t;
2566 * elf-bfd.h: Change prototypes to use long instead of pid_t;
2567
175e9962 25682002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
b4db1224
JT
2569
2570 * elf.c: Update copyright years.
2571 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
2572 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
2573
7c76fa91
MS
25742002-01-08 Michael Snyder <msnyder@redhat.com>
2575
2576 Add capability to write corefile note sections, for gdb.
2577 * elf.c (elfcore_write_note): New function.
2578 (elfcore_write_prpsinfo): New function.
2579 (elfcore_write_prstatus): New function.
2580 (elfcore_write_pstatus): New function.
2581 (elfcore_write_prfpreg): New function.
2582 (elfcore_write_prxfpreg): New function.
97996af6 2583 * elf-bfd.h: Add prototypes for above functions.
7c76fa91 2584
e1fddb6b
AO
25852002-01-08 Alexandre Oliva <aoliva@redhat.com>
2586
2587 * elf.c (elf_fake_sections): Propagate errors from
2588 elf_backend_fake_section.
2589
8d05742f
JT
25902002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2591
2592 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
2593 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
2594 (elf32-sh-nbsd.lo): New rule.
2595 * Makefile.in: Regenerate.
2596 * config.bfd (sh*le-*-netbsdelf*): New target.
2597 (sh*-*-netbsdelf*): New target.
2598 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
2599 (bfd_elf32_shnbsd_vec): New vector.
2600 (bfd_elf32_shlnbsd_vec): New vector.
2601 * configure: Regenerate.
2602 * elf32-sh-nbsd.c: New file.
2603 * targets.c: Update copyright years.
175e9962 2604 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
8d05742f
JT
2605 bfd_elf32_shnbsd_vec.
2606
1dba4cb4
AH
26072002-01-07 Aldy Hernandez <aldyh@redhat.com>
2608
2609 * coff-rs6000.c (READ20): Use bfd_scan_vma.
2610
47b22aef
GK
26112002-01-07 Geoffrey Keating <geoffk@redhat.com>
2612
2613 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
2614 of a symbol in a section that will be deleted.
2615
be2d1673
NC
26162002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2617
2618 * po/es.po: New file: Spanish translation.
2619 * configure.in (ALL_LINGUAS): Add es.
2620 * configure: Regenerate.
2621
d9cf1b54
AM
26222002-01-06 Steve Ellcey <sje@cup.hp.com>
2623
2624 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
2625 argument so we can handle HP-UX specially.
2626 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
2627 (elfNN_hpux_backend_section_from_bfd_section): New for support
2628 of SHN_IA_64_ANSI_COMMON.
2629 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
2630 (is_unwind_section_name): Add special HP-UX support.
2631 (elfNN_ia64_section_from_shdr): Add support for more sections.
2632 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
2633 add support for more sections.
2634 (elfNN_ia64_additional_program_headers): Modify
2635 is_unwind_section_name call.
2636 (elfNN_ia64_modify_segment_map): Remove assumption that there is
2637 only one unwind section in segment.
2638
3f3c5c34
AM
26392002-01-06 Alan Modra <amodra@bigpond.net.au>
2640
2641 * syms.c (_bfd_generic_make_empty_symbol): New function.
2642 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
2643 _bfd_generic_make_empty_symbol.
2644 * libbfd.h: Regenerate.
2645 * bfd-in2.h: Regenerate.
2646 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
2647 (hppabsd_core_get_symtab_upper_bound): Don't define.
2648 (hppabsd_core_get_symtab): Likewise.
2649 (hppabsd_core_print_symbol): Likewise.
2650 (hppabsd_core_get_symbol_info): Likewise.
2651 (hppabsd_core_bfd_is_local_label_name): Likewise.
2652 (hppabsd_core_get_lineno): Likewise.
2653 (hppabsd_core_find_nearest_line): Likewise.
2654 (hppabsd_core_bfd_make_debug_symbol): Likewise.
2655 (hppabsd_core_read_minisymbols): Likewise.
2656 (hppabsd_core_minisymbol_to_symbol): Likewise.
2657 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
2658 Formatting fixes.
2659 * hpux-core.c: Similarly.
2660 * irix-core.c: Similarly.
2661 * osf-core.c: Similarly.
2662 * sco5-core.c: Similarly.
2663 * binary.c (binary_make_empty_symbol): Remove function, define as
2664 _bfd_generic_make_empty_symbol.
2665 * ihex.c (ihex_make_empty_symbol): Likewise.
2666 * mmo.c (mmo_make_empty_symbol): Likewise.
2667 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
2668 * srec.c (srec_make_empty_symbol): Likewise.
2669 * versados.c (versados_make_empty_symbol): Likewise.
2670 * vms.c (_bfd_vms_make_empty_symbol): Remove.
2671 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
2672 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
2673 rather than _bfd_vms_make_empty_symbol.
2674 * vms-misc.c (new_symbol): Likewise.
2675
3f0a7f7f
AM
26762002-01-05 Alan Modra <amodra@bigpond.net.au>
2677
9e7b37b3
AM
2678 * section.c (bfd_section_init): Remove unnecessary initialisations.
2679 (bfd_section_list_clear): New function.
2680 (bfd_section_list_remove, bfd_section_list_insert): New macros.
2681 (_bfd_strip_section_from_output): Use them.
2682 * coffcode.h (coff_set_alignment_hook): Likewise.
2683 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
2684 * elf64-mips.c (mips_elf64_final_link): Likewise.
2685 * elf64-mmix.c (mmix_elf_final_link): Likewise.
2686 * sunos.c (sunos_add_dynamic_symbols): Likewise.
2687 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
2688 * bfd-in2.h: Regenerate.
2689
2690 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
2691 rather than doing our own section handling. Clean up after errors
2692 with bfd_release and bfd_section_list_clear. Handle unexpected
2693 flags.
2694 * aoutf1.h (sunos4_core_file_p): Likewise.
2695 * aix386-core.c (aix386_core_file_p): Likewise.
2696 * cisco-core.c (cisco_core_file_validate): Likewise.
2697 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
2698 * trad-core.c (trad_unix_core_file_p): Likewise.
2699
2700 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
2701 with bfd_release and bfd_section_list_clear.
2702 * hpux-core.c (hpux_core_core_file_p): Likewise.
2703 * irix-core.c (irix_core_core_file_p): Likewise.
2704 * lynx-core.c (lynx_core_file_p): Likewise.
2705 * osf-core.c (osf_core_core_file_p): Likewise.
2706 * rs6000-core.c (rs6000coff_core_p): Likewise.
2707 * sco5-core.c (sco5_core_file_p): Likewise.
2708
3f0a7f7f
AM
2709 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
2710 sign extension adjustments without conditionals.
2711
a3aa38ee
JJ
27122002-01-04 Jakub Jelinek <jakub@redhat.com>
2713
2714 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
2715 CIE at .eh_frame start is removed due to no FDEs referencing it.
2716
8a8b2d4b
AJ
27172002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2718
2719 * config.bfd (x86_64-*-netbsd*): New target.
2720 * configure.in (x86_64-*-netbsd*): Set COREFILE
2721 to netbsd-core.lo.
2722 * configure: Regenerated.
2723
04b5af89
TR
27242002-01-03 Tom Rix <trix@redhat.com>
2725
2726 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
2727 for recent bfd_make_section_anyway change.
2728
51c5503b
NC
27292002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
2730
2731 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
2732 R_ARM_THM_PC11 reloc.
2733
07f7c046
NC
27342002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2735
2736 * configure.in (LINGUAS): Add ja.
2737 * configure: Regenerate.
2738 * po/ja.po: Import from translation project's web site.
2739
5eefb65f
NC
27402002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2741
2742 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
2743 messages to ease translation into other languages.
2744
39e90f10 2745For older changes see ChangeLog-0001
56882138
AM
2746\f
2747Local Variables:
2748mode: change-log
2749left-margin: 8
2750fill-column: 74
2751version-control: never
2752End: