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