]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
* scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
76f99c63
JL
12002-06-06 Jeffrey Law <law@redhat.com
2
3 * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
4 relocations.
5
7217313c
NC
62002-06-06 Nick Clifton <nickc@cambridge.redhat.com>
7
8 * merge.c: Include libiberty.h.
9 * elf-strtab.c: Include libiberty.h.
10
6cb22815
AM
112002-06-06 Elias Athanasopoulos <eathan@otenet.gr>
12
13 * peXXigen.c (pe_print_idata): Remove unused variable.
14
1ed89aa9
NC
152002-06-06 David Heine <dlheine@tensilica.com>
16
17 * elf.c (assign_file_positions_for_segments): Remove unallocated
18 sections from the section to segment mapping for PT_LOAD segments.
19 Update comment about empty loadable segments.
20
644c4c80
RS
212002-06-06 Richard Sandiford <rsandifo@redhat.com>
22
23 * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
24 is within the .stabstr section.
25
f8ecb12b
AM
262002-06-06 Alan Modra <amodra@bigpond.net.au>
27
28 * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
29 are "const PTR", not "const PTR *".
30 (bfd_elf32_swap_symbol_in): Likewise.
31 (bfd_elf64_swap_symbol_in): Likewise.
32 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
33 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
34 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
35 (elf_link_add_object_symbols): Likewise.
36 (elf_link_record_local_dynamic_symbol): Likewise.
37 (elf_link_input_bfd): Likewise.
38 (elf_gc_mark): Likewise.
39 (elf_reloc_symbol_deleted_p): Likewise.
40 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
41 (mn10200_elf_relax_delete_bytes): Likewise.
42 (mn10200_elf_symbol_address_p): Likewise.
43 (mn10200_elf_get_relocated_section_contents): Likewise.
44 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
45 (mn10300_elf_relax_section): Likewise.
46 (mn10300_elf_relax_delete_bytes): Likewise.
47 (mn10300_elf_symbol_address_p): Likewise.
48 (mn10300_elf_get_relocated_section_contents): Likewise.
49 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
50 (elf32_h8_relax_delete_bytes): Likewise.
51 (elf32_h8_symbol_address_p): Likewise.
52 (elf32_h8_get_relocated_section_contents): Likewise.
53 * elf32-hppa.c (get_local_syms): Likewise.
54 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
55 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
56 * elf32-sh.c (sh_elf_relax_section): Likewise.
57 (sh_elf_relax_delete_bytes): Likewise.
58 (sh_elf_get_relocated_section_contents): Likewise.
59 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
60 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
61 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
62 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
63 * elf64-ppc.c (get_local_syms): Likewise.
64 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
65 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
66
1ed89aa9 672002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
68
69 * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
70
73ff0d56
AM
712002-06-05 Alan Modra <amodra@bigpond.net.au>
72
9dce4196
AM
73 * elf.c (group_signature): Swap in the whole symbol, and handle
74 extracting section symbol names.
75 (setup_group): Add comment.
76 (set_group_contents): When called from objcopy or ld, arrange for
77 section contents to be written. Write group member output section
78 indices to allow objcopy to reorganize sections.
79 (_bfd_elf_copy_private_section_data): Copy group info.
80
73ff0d56
AM
81 * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
82 (bfd_elf32_swap_symbol_in): Update prototype.
83 (bfd_elf64_swap_symbol_in): Likewise.
84 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
85 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
86 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
87 (elf_link_add_object_symbols): Likewise.
88 (elf_link_record_local_dynamic_symbol): Likewise.
89 (elf_link_input_bfd): Likewise.
90 (elf_gc_mark): Likewise.
91 (elf_reloc_symbol_deleted_p): Likewise.
92 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
93 (mn10200_elf_relax_delete_bytes): Likewise.
94 (mn10200_elf_symbol_address_p): Likewise.
95 (mn10200_elf_get_relocated_section_contents): Likewise.
96 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
97 (mn10300_elf_relax_section): Likewise.
98 (mn10300_elf_relax_delete_bytes): Likewise.
99 (mn10300_elf_symbol_address_p): Likewise.
100 (mn10300_elf_get_relocated_section_contents): Likewise.
101 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
102 (elf32_h8_relax_delete_bytes): Likewise.
103 (elf32_h8_symbol_address_p): Likewise.
104 (elf32_h8_get_relocated_section_contents): Likewise.
105 * elf32-hppa.c (get_local_syms): Likewise.
106 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
107 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
108 * elf32-sh.c (sh_elf_relax_section): Likewise.
109 (sh_elf_relax_delete_bytes): Likewise.
110 (sh_elf_get_relocated_section_contents): Likewise.
111 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
112 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
113 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
114 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
115 * elf64-ppc.c (get_local_syms): Likewise.
116 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
117 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
118 * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
119 * elf64-alpha.c (alpha_elf_size_info): Likewise.
120 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
121 * elf64-mips.c (mips_elf64_size_info): Likewise.
122 * elf64-s390.c (s390_elf64_size_info): Likewise.
123 * elf64-sparc.c (sparc64_elf_size_info): Likewise.
124
53bfd6b4
MR
1252002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
126
127 * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
128 elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
129 elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
130 _bfd_mips_elf_ignore_discarded_relocs.
131 elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
132
d4df96e6
L
1332002-06-05 H.J. Lu <hjl@gnu.org>
134
135 * elfxx-mips.c (mips_elf_calculate_relocation): Call
136 _bfd_elf_rel_local_sym for STT_SECTION relocations against
137 the SEC_MERGE section.
138
e61463e1
AM
1392002-06-05 Alan Modra <amodra@bigpond.net.au>
140
3cac74d0
AM
141 * coff-alpha.c: Update copyright date.
142 * coff-mips.c: Likewise.
143 * xcoff-target.h: Likewise.
144
e61463e1
AM
145 * bfd-in.h: Remove "taken from the source" comment.
146 * libbfd-in.h: Likewise.
147 * libcoff-in.h: Likewise.
148 * bfd-in2.h: Regenerate.
149 * libbfd.h: Regenerate.
150 * libcoff.h: Regenerate.
151
152 * elf.c (bfd_elf_discard_group): Return true.
153 * elf-bfd.h (bfd_elf_discard_group): Declare.
154 * bfd-in.h (bfd_elf_discard_group): Don't declare here.
155 * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
156 * bfd.c (bfd_discard_group): Define.
157 * targets.c (struct bfd_target): Add _bfd_discard_group.
158 (BFD_JUMP_TABLE_LINK): Here too.
159 * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
160 * aout-adobe.c (aout_32_bfd_discard_group): Define.
161 * aout-target.h (MY_bfd_discard_group): Define.
162 * aout-tic30.c (MY_bfd_discard_group): Define.
163 * binary.c (binary_bfd_discard_group): Define.
164 * bout.c (b_out_bfd_discard_group): Define.
165 * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
166 * coffcode.h (coff_bfd_discard_group): Define.
167 * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
168 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
169 * i386msdos.c (msdos_bfd_discard_group): Define.
170 * i386os9k.c (os9k_bfd_discard_group): Define.
171 * ieee.c (ieee_bfd_discard_group): Define.
172 * ihex.c (ihex_bfd_discard_group): Define.
173 * mmo.c (mmo_bfd_discard_group): Define.
174 * nlm-target.h (nlm_bfd_discard_group): Define.
175 * oasys.c (oasys_bfd_discard_group): Define.
176 * ppcboot.c (ppcboot_bfd_discard_group): Define.
177 * som.c (som_bfd_discard_group): Define.
178 * srec.c (srec_bfd_discard_group): Define.
179 * tekhex.c (tekhex_bfd_discard_group): Define.
180 * versados.c (versados_bfd_discard_group): Define.
181 * vms.c (vms_bfd_discard_group): Define.
182 * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
183 * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
184 (aix5coff64_vec): Likewise.
185 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
186
9cba27b2
JT
1872002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
188
189 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
190 (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
191 (elf32-sh64-com.lo): New dependency list.
192 * Makefile.in: Regenerate.
193 * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
194 (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
195 elf32-sh64-com.lo.
196 * configure: Regenerate.
197 * elf32-sh64.c (sh64_address_in_cranges)
198 (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
199 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
200 (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
201 * elf32-sh64-com.c: ...here. New file.
202
8d2c33be
AM
2032002-06-04 Alan Modra <amodra@bigpond.net.au>
204
205 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
206 ATTRIBUTE_UNUSED on used params.
207 * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
208 before calling bfd_section_from_elf_index on local syms.
209 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
210
5b0e55b6
JT
2112002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
212
213 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
214 (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
215 (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
216 (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
217 (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
218 * Makefile.in: Regenerate.
219 * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
220 (sh64-*-netbsd*): New targets.
221 * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
222 bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
223 * configure: Regenerate.
224 * elf32-sh64-nbsd.c: New file.
225 * elf64-sh64-nbsd.c: New file.
226 * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
227 bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
228 bfd_elf64_sh64lnbsd_vec.
229
b885599b
AM
2302002-06-04 Alan Modra <amodra@bigpond.net.au>
231
232 * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
233 (bfd_section_from_shdr): Likewise. Set section name of group
234 sections from signature.
235 (group_signature): Split out from setup_group. Ensure symbol table
236 is available.
237 (bfd_elf_discard_group): New function.
238 (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
239 .gnu.linkonce* sections if they are members of a group.
240 (set_group_contents): Set GRP_COMDAT flag.
241 * section.c (bfd_discard_group): New function.
242 * bfd-in.h (bfd_elf_discard_group): Declare.
243 * bfd-in2.h: Regenerate.
244 * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
245 (elf_linkonce_p): Define.
246
90937f86
AM
2472002-06-04 Alan Modra <amodra@bigpond.net.au>
248
249 * elf.c (bfd_section_from_shdr): Make "name" const.
250 * elf-bfd.h (elf_backend_section_from_shdr): Likewise.
251 * elf32-i370.c (i370_elf_section_from_shdr): Likewise.
252 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
253 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
254 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
255 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
256 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
257 * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
258 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
259 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
260 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
261
cf6fb9ce
MR
2622002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
263
264 * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
265 ABI.
266
cedb70c5
KH
2672002-06-02 Kazu Hirata <kazu@cs.umass.edu>
268
269 * elf32-arc.c: Fix formatting.
270 * elf32-arm.h: Likewise.
271 * elf32-cris.c: Likewise.
272 * elf32-dlx.c: Likewise.
273 * elf32-hppa.c: Likewise.
274 * elf32-i386.c: Likewise.
275 * elf32-i386qnx.c: Likewise.
276 * elf32-or32.c: Likewise.
277 * elf32-s390.c: Likewise.
278 * elf32-sh64.c: Likewise.
279 * elf32-vax.c: Likewise.
280 * elf32-xstormy16.c: Likewise.
281 * elf64-alpha.c: Likewise.
282 * elf64-mmix.c: Likewise.
283 * elf64-ppc.c: Likewise.
284 * elf64-s390.c: Likewise.
285 * elf64-sh64.c: Likewise.
286 * elf64-x86-64.c: Likewise.
287
048d873d
RH
2882002-06-02 Richard Henderson <rth@redhat.com>
289
290 * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
291 null when there are no got entries for a symbol.
292 (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
293 uninitialized variable warning.
294
4a67a098
RH
2952002-06-01 Richard Henderson <rth@redhat.com>
296
297 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
298 undefined symbols here.
299 (elf64_alpha_relax_section): Do it here. Also test for not
300 defined in the current module.
301 (elf64_alpha_relocate_section_r): Split out of ...
302 (elf64_alpha_relocate_section): ... here. Don't dereference
303 NULL when looking up local got entries.
304
f44f99a5
RH
3052002-06-01 Richard Henderson <rth@redhat.com>
306
307 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
308 symbols from JSR relaxation.
309 (elf64_alpha_size_plt_section_1): New.
310 (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
311 (elf64_alpha_size_rela_got_1): ... here.
312 (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
313 (elf64_alpha_size_rela_got_section): ... here.
314 (elf64_alpha_size_plt_section): New.
315 (elf64_alpha_relax_section): Call them.
316 (elf64_alpha_size_got_sections): Remove output_bfd arg.
317 (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
318
9e756d64
RH
3192002-06-01 Richard Henderson <rth@redhat.com>
320
321 * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
322 (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
323 in shared libraries. Fix DTPRELHI and TPRELHI value.
324 (INSN_ADDQ, INSN_RDUNIQ): New.
325 (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
326 (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
327 argument. Reject dynamic symbols. Use LITUSE symbolic constants.
328 (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
329 Handle GOTDTPREL and GOTTPREL relocations.
330 (elf64_alpha_relax_gprelhilo): New.
331 (elf64_alpha_relax_tls_get_addr): New.
332 (elf64_alpha_relax_find_tls_segment): New.
333 (elf64_alpha_relax_section): Handle TLS relocations.
334 (ALPHA_ELF_LINK_HASH_TLS_IE): New.
335 (elf64_alpha_check_relocs): Set it.
336
c853d7f6
RH
3372002-06-01 Richard Henderson <rth@redhat.com>
338
b646261c
RH
339 * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
340
c853d7f6
RH
341 * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
342 check; don't suppress dynamic relocs for non-allocated sections.
343
d7e41a96
RH
344 * elf64-alpha.c: Remove dead code.
345
5f333394
AM
3462002-05-31 Alan Modra <amodra@bigpond.net.au>
347
08e0ee05
AM
348 * bfd-in2.h: Regenerate.
349 * libbfd.h: Regenerate.
350 * po/SRC-POTFILES.in: Regenerate.
351
5f333394
AM
352 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
353 space for bss .plt.
354
caf47ea6
AM
3552002-05-31 Graeme Peterson <gp@qnx.com>
356
357 * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
358 (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
359 Run "make dep-am".
360 * Makefile.in: Regenerate.
361 * config.bfd: Add i[3456]86-*-nto-qnx* support.
362 * configure.in: Add bfd_elf32_i386qnx_vec support.
363 * configure: Regenerate.
364 * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
365 is_contained_by_filepos, and copy_private_bfd_data_p.
366 * elf.c (assign_file_positions_for_segments): Call backend
367 set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
368 (IS_CONTAINED_BY_FILEPOS): Define.
369 (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
370 (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
371 Fix non-K&R call to _bfd_error_handler.
372 (_bfd_elf_copy_private_section_data): Use backend
373 copy_private_bfd_data_p.
374 * elf32-i386.c: Don't include elfxx-target.h when
375 ELF32_I386_C_INCLUDED is defined.
376 * elf32-i386qnx.c: New QNX elf backend file.
377 * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
378 elf_backend_is_contained_by_filepos, and
379 elf_backend_do_copy_private_bfd_data.
380 * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
381
5bc56484
AM
3822002-05-31 Alan Modra <amodra@bigpond.net.au>
383
384 * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
385 Move other similar defines to start of file.
386
1b164155
TR
3872002-05-30 Tom Rix <trix@redhat.com>
388
389 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
390 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
391
3765b1be
RH
3922002-05-30 Richard Henderson <rth@redhat.com>
393
394 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
395 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
396 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
397 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
398 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
399 (struct alpha_elf_obj_tdata): Rename total_got_entries and
400 n_local_got_entries to total_got_size and local_got_size.
401 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
402 (alpha_got_entry_size): New.
403 (elf64_alpha_relax_with_lituse): Use it.
404 (elf64_alpha_relax_without_lituse): Likewise.
405 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
406 (get_got_entry): New.
407 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
408 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
409 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
410 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
411 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
412 (elf64_alpha_calc_got_offsets): Likewise.
413 (alpha_dynamic_entries_for_reloc): New.
414 (elf64_alpha_calc_dynrel_sizes): Use it.
415 (elf64_alpha_size_dynamic_sections): Likewise.
416 (elf64_alpha_relocate_section): Handle TLS relocations.
417 * reloc.c: Add Alpha TLS relocations.
418 * bfd-in2.h, libbfd.h: Rebuild.
419
5e226794
NC
4202002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
421
422 * peXXigen.c (pe_print_idata): Remove double printed
423 import table lines; add Bound-To comment.
424
90ace9e9
JT
4252002-05-29 Matt Thomas <matt@3am-software.com>
426
427 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
428 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
429 (elf32-vax.lo): New rule.
430 * Makefile.in: Regenerate.
431 * configure.in (bfd_elf32_vax_vec)
432 (vaxnetbsd_vec): New vectors.
433 * configure: Regenerate.
434 * config.bfd (vax-*-netbsdelf*)
435 (vax-*-netbsdaout*)
436 (vax-*-netbsd*): New targets.
437 * elf32-vax.c: New file.
438 * reloc.c: Add VAX relocations.
439 * bfd-in2.h: Regenerate.
440 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
441
4a253e81
JT
4422002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
443
444 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
445 and bfd_elf32_bigarm_vec to targ_selvecs.
446
6e7c73dd
CF
4472002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
448
449 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
450 with auto-imported symbols.
451
8afb0e02
NC
4522002-05-29 Adam Nemet <anemet@lnxw.com>
453
454 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
455 sections only record bfd.
456 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
457 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
458 * bfd-in2.h: Regenerate.
459
a95653f5
NC
4602002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
461
462 * syms.c (_bfd_stab_section_find_nearest_line): Move
463 declaration and initialisation of saw_line and saw_func out of
464 for loop.
465
7cdc5bba
AM
4662002-05-29 Alan Modra <amodra@bigpond.net.au>
467
468 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
469 (bfd_elf64_get_symbol_info): Define.
470 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
471
4c7aad1c
AM
4722002-05-29 Andrey Volkov <avolkov@transas.com>
473
474 * cpu-h8300.c: Make default h8300 machine first in machine list.
475
d172d4ba
NC
4762002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
477
478 * config.bfd: Added DLX configuraton.
479 * Makefile.am: Added DLX configuraton.
480 * configure.in: Added DLX configuraton.
481 * archures.c: Add DLX architecure.
482 * reloc.c: Add DLX relocs.
483 * targets.c: Added DLX target vector.
484 * configure: Regenerate.
485 * Makefile.in: Regenreate.
486 * bfd-in2.h: Regenreate.
487 * elf32-dlx.c: New file: Support DLX target.
488 * cpu-dlx.c: New file: Support DLX target.
489
d1329ca3
AM
4902002-05-25 Alan Modra <amodra@bigpond.net.au>
491
428d0de3
AM
492 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
493
d1329ca3
AM
494 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
495 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
496 strings to point inside function code sym string.
497 (func_desc_adjust): Likewise.
498 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
499
3bab7989
ML
5002002-05-24 Michal Ludvig <mludvig@suse.cz>
501
502 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
503 (elf64_x86_64_grok_psinfo): Added.
504
436e8db0
NC
5052002-05-24 TAMURA Kent <kent@netbsd.org>
506
507 * config.bfd: Add a target for i386-netbsdpe.
508
ea1e4b0d
AM
5092002-05-24 Alan Modra <amodra@bigpond.net.au>
510
511 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
512 and is_func_descriptor.
513 (func_desc_adjust): Hide function code sym in shared libs unless
514 there is a matching exported function descriptor sym.
515
13ae64f3
JJ
5162002-05-23 Jakub Jelinek <jakub@redhat.com>
517
518 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
519 for symbols from SHF_TLS section.
520 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
521 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
522 (map_sections_to_segments): Build PT_TLS segment if necessary.
523 (assign_file_positions_for_segments): Likewise.
524 (get_program_header_size): Account for PT_TLS segment.
525 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
526 SEC_THREAD_LOCAL sections to STT_TLS.
527 * reloc.c: Add 386 and IA-64 TLS relocs.
528 * section.c (SEC_THREAD_LOCAL): Define.
529 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
530 Remove.
531 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
532 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
533 unconditionally.
534 (struct elf_final_link_info): Add first_tls_sec.
535 (elf_bfd_final_link): Set first_tls_sec.
536 Compute elf_hash_table (info)->tls_segment.
537 (elf_link_output_extsym): Handle STT_TLS symbols.
538 (elf_link_input_bfd): Likewise.
539 * syms.c (BSF_THREAD_LOCAL): Define.
540 * bfd-in2.h: Rebuilt.
541 * libbfd.h: Rebuilt.
542 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
543 elf_i386_mkobject, elf_i386_object_p): New functions.
544 (elf_howto_table): Add TLS relocs.
545 (elf_i386_reloc_type_lookup): Support TLS relocs.
546 (elf_i386_info_to_howto_rel): Likewise.
547 (struct elf_i386_link_hash_entry): Add tls_type.
548 (struct elf_i386_obj_tdata): New.
549 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
550 New macros.
551 (struct elf_i386_link_hash_table): Add tls_ldm_got.
552 (link_hash_newfunc): Clear tls_type.
553 (elf_i386_check_relocs): Support TLS relocs.
554 (elf_i386_gc_sweep_hook): Likewise.
555 (allocate_dynrelocs): Likewise.
556 (elf_i386_size_dynamic_sections): Likewise.
557 (elf_i386_relocate_section): Likewise.
558 (elf_i386_finish_dynamic_symbol): Likewise.
559 (bfd_elf32_mkobject, elf_backend_object_p): Define.
560 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
561 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
562 want_tprel, want_dtpmod, want_dtprel.
563 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
564 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
565 R_IA64_LTOFF_TPREL22.
566 (elf_code_to_howto_index): Add TLS relocs.
567 (elfNN_ia64_check_relocs): Support TLS relocs.
568 (allocate_global_data_got): Account for TLS .got data.
569 (allocate_dynrel_entries): Account for TLS dynamic relocations.
570 (elfNN_ia64_install_value): Supprt TLS relocs.
571 (set_got_entry): Support TLS relocs.
572 (elfNN_ia64_relocate_section): Likewise.
573
c62e1cc3
NC
5742002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
575
576 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
577 BLX reloc round the relocation up rather than down.
578 * coff-arm.c (coff_arm_relocate_section): Likewise.
579
c5a43a5d
L
5802002-05-21 H.J. Lu (hjl@gnu.org)
581
582 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
583 definition.
584
afbe61cf
AM
5852002-05-22 Alan Modra <amodra@bigpond.net.au>
586
587 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
588 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
589
9c07fe7c
AM
5902002-05-22 Alan Modra <amodra@bigpond.net.au>
591
592 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
593 unresolved relocs.
594 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
595
21611032
TS
5962002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
597
598 * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
599 non-ELF targets.
600
41241523
TS
6012002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
602
603 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
604 an error value.
605 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
606 return with false on error.
607 (elf_link_input_bfd): Check reloc_emitter return value.
608
658f2588
JT
6092002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
610
611 * config.bfd (armeb-*-netbsdelf*): New target.
612
c862ae31
AM
6132002-05-20 Alan Modra <amodra@bigpond.net.au>
614
615 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
616 at the plt call stub.
617
6dd14845
TS
6182002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
619
620 * cpu-mips.c (mips_compatible): Don't try to check machine
621 compatibility.
622
a58d9c34
TR
6232002-05-18 Tom Rix <trix@redhat.com>
624
625 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
626
ef60b7ff
AM
6272002-05-17 Alan Modra <amodra@bigpond.net.au>
628
629 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
630 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
631 we've already warned about an undefined symbol. Report more
632 detail on reloc errors.
633
a703a6ea
AM
6342002-05-17 Alan Modra <amodra@bigpond.net.au>
635
636 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
637 * configure.in: Invoke AM_INSTALL_LIBBFD.
638 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
639 (install_libbfd): .. New target.
640 (uninstall_libbfd): Likewise.
641 (install-bfdlibLTLIBRARIES): Likewise.
642 (uninstall-bfdlibLTLIBRARIES): Likewise.
643 (bfdlibdir): New.
644 (bfdincludedir): New.
645 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
646 * aclocal.m4: Regenerate.
647 * configure: Regenerate.
648 * Makefile.in: Regenerate.
649
2c13d98b
NC
6502002-05-17 Stuart Balfour <sbalfour@cisco.com>
651
652 * hash.c (bfd_hash_lookup): Remove computation of len from inside
653 hash loop.
654
629936c5
NC
6552002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
656
657 * config.bfd: Add targets for sh64-linux (little endian and
658 big endian).
659
e4cf60a8
NC
6602002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
661
662 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
663 is located in the same section as the import table. Instead
664 check, and if necessary load the section containing the thunk.
665
d1e66cd4
NC
6662002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
667
668 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
ea1e4b0d
AM
669 bfd_bread.
670 (xcoff64_core_file_matches_executable_p): Replace bfd_read
671 with bfd_bread.
d1e66cd4 672
2d653fc7
AM
6732002-05-15 Alan Modra <amodra@bigpond.net.au>
674
675 * aix5ppc-core.c: Warning fixes.
676 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
677 * aout-target.h (MY_bfd_link_just_syms): Define.
678 * aout-tic30.c (MY_bfd_link_just_syms): Define.
679 * bfd.c (bfd_link_just_syms): Define.
680 * binary.c (binary_bfd_link_just_syms): Define.
681 * bout.c (b_out_bfd_link_just_syms): Define.
682 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
683 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
684 * coffcode.h (coff_bfd_link_just_syms): Define.
685 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
686 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
687 (_bfd_elf_link_just_syms): Declare.
688 * elf.c (_bfd_elf_link_just_syms): New function.
689 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
690 sections haven't already been discarded by the linker.
691 * elflink.h (elf_link_add_object_symbols): Likewise for stab
692 sections and SEC_MERGE sections.
693 (elf_bfd_discard_info): Similarly here.
694 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
695 * i386msdos.c (msdos_bfd_link_just_syms): Define.
696 * i386os9k.c (os9k_bfd_link_just_syms): Define.
697 * ieee.c (ieee_bfd_link_just_syms): Define.
698 * ihex.c (ihex_bfd_link_just_syms): Define.
699 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
700 (_bfd_generic_link_just_syms): Declare.
701 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
702 * linker.c (_bfd_generic_link_just_syms): New function.
703 * mmo.c (mmo_bfd_link_just_syms): Define.
704 * nlm-target.h (nlm_bfd_link_just_syms): Define.
705 * oasys.c (oasys_bfd_link_just_syms): Define.
706 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
707 * som.c (som_bfd_link_just_syms): Define.
708 * srec.c (srec_bfd_link_just_syms): Define.
709 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
710 (BFD_JUMP_TABLE_LINK): And here.
711 * tekhex.c (tekhex_bfd_link_just_syms): Define.
712 * versados.c (versados_bfd_link_just_syms): Define.
713 * vms.c (vms_bfd_link_just_syms): Define.
714 * libbfd.h: Regenerate.
715 * bfd-in2.h: Regenerate.
716
cb7394f2
TS
7172002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
718
719 * elf32-mips.c: Remove superfluous definitions copied from
720 elfxx-mips.c.
721 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
722 SGIish vectors to check the special case.
723 (mips_elf_hi16_reloc): Fix comment.
724 (mips_elf_got16_reloc): Likewise.
725 (_bfd_mips_elf32_gprel16_reloc): Likewise.
726 (elf_reloc_map): Code cleanup.
727 (mips_reloc_map): Add comment.
728 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
729 (mips_elf32_rtype_to_howto): Likewise.
730 (mips_elf32_discard_info): Likewise.
731 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
732 lead to IRIX compatibility now.
733
8dc1a139
TS
7342002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
735
736 * elfxx-mips.c: Call it IRIX, not Irix in comments.
737
2051e1b5
JT
7382002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
739
740 * config.bfd (shle-*-netbsdelf*): Add target which includes
741 sh64 support.
742
83954261
AM
7432002-05-13 David Edelsohn <edelsohn@gnu.org>
744
745 * configure.in: Revert 2002-04-07. Instead, auto-configure
746 HAVE_ST_C_IMPL.
747 * configure: Regenerate.
748 * config.in: Regenerate.
749 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
750 or AIX_5_CORE.
751
a9bf1154
NC
7522002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
753
754 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
755 corefiles as well.2
756 * configure: Regenerate.
757
3129eb7a
AM
7582002-05-13 Alan Modra <amodra@bigpond.net.au>
759
760 * Makefile.am (install-data-local): Install headers to
761 $(exec_prefix)/include.
762 * Makefile.in: Regenerate.
763
a9a32010
DJ
7642002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
765 Daniel Jacobowitz <drow@mvista.com>
766
767 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
768 map BFD_RELOC_RVA.
769
7702002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
690cc98b
NC
771
772 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
773 hppa*-*-openbsd*): New targets.
774 * configure.in (alpha*-*-openbsd*): Set COREFILE.
775 * configure: Regenerate.
776
f1f0d9ab
TR
7772002-05-10 Tom Rix <trix@redhat.com>
778
ea1e4b0d 779 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
f1f0d9ab
TR
780 xcoff64_ppc_relocate_section.
781 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
782 * libxcoff.h: Common xcoff_reloc_type function declaration.
783
c432ba1a
AM
7842002-05-10 Alan Modra <amodra@bigpond.net.au>
785
16a10388 786 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
90937f86 787 added in 2002-05-09 commit.
16a10388 788
c432ba1a
AM
789 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
790 don't look for stubs on all undefined syms.
791
4a335f3d
AM
7922002-05-09 Alan Modra <amodra@bigpond.net.au>
793
8fc39d5d
AM
794 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
795 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
796 pcrel_offset.
797
4a335f3d
AM
798 * elf32-i386.c (elf_howto_table): Comments.
799 (elf_i386_relocate_section): Handle more relocs for relocatable
800 linking and against SEC_MERGE sections.
801
41fcb14e
AM
8022002-05-08 Alan Modra <amodra@bigpond.net.au>
803
804 * elf32-ppc.c (ppc_elf_create_got): New function.
805 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
ea1e4b0d 806 _bfd_elf_create_dynamic_sections. Correct .plt flags.
41fcb14e
AM
807 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
808 _bfd_elf_create_got_section.
809
b491616a
AM
8102002-05-07 Alan Modra <amodra@bigpond.net.au>
811
812 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
813 * elfxx-target.h (elf_backend_rela_normal): Define.
814 (elfNN_bed): Init rela_normal.
815 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
816 for section symbols here if rela_normal. Simplify abs section test.
817 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
818 return immediately. Remove code handling relocatable linking.
819 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
820 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
821 * elf32-i370.c (i370_elf_relocate_section): Likewise.
822 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
823 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
824 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
825 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
826 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
827 * elf32-s390.c (elf_s390_relocate_section): Likewise.
828 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
829 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
830 * elf64-s390.c (elf_s390_relocate_section): Likewise.
831 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
832 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
833 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
834 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
835 * elf-m10200.c (elf_backend_rela_normal): Define.
836 * elf-m10300.c (elf_backend_rela_normal): Define.
837 * elf32-fr30.c (elf_backend_rela_normal): Define.
838 * elf32-i370.c (elf_backend_rela_normal): Define.
839 * elf32-i860.c (elf_backend_rela_normal): Define.
840 * elf32-m68k.c (elf_backend_rela_normal): Define.
841 * elf32-mcore.c (elf_backend_rela_normal): Define.
842 * elf32-openrisc.c (elf_backend_rela_normal): Define.
843 * elf32-ppc.c (elf_backend_rela_normal): Define.
844 * elf32-s390.c (elf_backend_rela_normal): Define.
845 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
846 * elf64-ppc.c (elf_backend_rela_normal): Define.
847 * elf64-s390.c (elf_backend_rela_normal): Define.
848 * elf64-x86-64.c (elf_backend_rela_normal): Define.
849 * elfxx-ia64.c (elf_backend_rela_normal): Define.
850 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
851 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
852
df212a7e
NC
8532002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
854
855 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
856 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
857
3decf53c
AM
8582002-05-06 Alan Modra <amodra@bigpond.net.au>
859
860 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
861 when not relocatable. Fix reloc_emitter call for K&R.
862
f46c2da6
AM
8632002-05-04 Alan Modra <amodra@bigpond.net.au>
864
865 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
866 reloading local sym addend mistakenly removed in 2002-05-01 change.
867
868 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
869 (read_abbrevs): Change "offset" param to bfd_vma.
870 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
871 Change "abbrev_offset" to bfd_vma.
872 (read_indirect_string): Use correct conversion chars in error
873 message format string, cast bfd_vma's to unsigned long.
874 (read_abbrevs): Likewise.
875 (read_attribute_value): Likewise.
876 (decode_line_info): Likewise.
877 (scan_unit_for_functions): Likewise.
878 (parse_comp_unit): Likewise.
879
59862849
TR
8802002-05-04 Tom Rix <trix@redhat.com>
881
882 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
883 (coff_swap_reloc_out): Same.
884 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
885 (xcoff_swap_reloc_out): Same.
886 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
887 case some 16 bit relocs. Add reloc value to output.
888 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
ea1e4b0d 889 R_RBR. Improve names.
59862849
TR
890 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
891 (bfd_xcoff_backend_data): Update with new reloc swap names.
892 (bfd_pmac_xcoff_backend_data) : Same.
893 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
894 (xcoff64_swap_reloc_out): Same.
ea1e4b0d 895 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
59862849 896 R_POS. Add reloc value to output.
ea1e4b0d
AM
897 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
898 bit R_RBR. Improve names, masks.
59862849
TR
899 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
900 (bfd_xcoff_backend_data): Update with new reloc swap names.
901 (bfd_xcoff_aix5_backend_data) : Same.
902
b4655ea9
AM
9032002-05-04 Alan Modra <amodra@bigpond.net.au>
904
905 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
906 bfd_count top_index, input_list, all_local_syms.
907 (elf32_hppa_setup_section_lists): New function, split from
908 elf32_hppa_size_stubs.
909 (elf32_hppa_next_input_section): Likewise.
910 (group_sections): Likewise.
911 (get_local_syms): Likewise.
912 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
913 stubs on undefined syms too.
914 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
8fc39d5d 915 Only access htab elf fields when we have an elf hash table.
b4655ea9
AM
916 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
917 (elf32_hppa_next_input_section): Declare.
918
301e3139
AM
9192002-05-04 Bob Byrnes <byrnes@curl.com>
920
921 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
922 _bfd_new_bfd.
923
7c5fcef7
L
9242002-05-03 H.J. Lu (hjl@gnu.org)
925
926 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
927 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
928 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
929 to hide a global symbol.
930 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
ea1e4b0d 931 forced_local to true.
7c5fcef7 932
84de6048
RH
9332002-05-02 Richard Henderson <rth@redhat.com>
934
935 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
936 vs SHN_UNDEF to zero.
937
805fc799
AM
9382002-05-02 Alan Modra <amodra@bigpond.net.au>
939
c061c2d8
AM
940 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
941 16 bit reloc.
942 <R_PPC64_SECTOFF_DS>: Likewise.
943 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
944 SECTOFF reloc.
945 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
946 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
947 SECTOFF reloc.
948
805fc799
AM
949 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
950 (ppc64_elf_ha_reloc): New function.
951 (ppc64_elf_brtaken_reloc): New function.
952 (ppc64_elf_sectoff_reloc): New function.
953 (ppc64_elf_sectoff_ha_reloc): New function.
954 (ppc64_elf_toc_reloc): New function.
955 (ppc64_elf_toc_ha_reloc): New function.
956 (ppc64_elf_toc64_reloc): New function.
957 (ppc64_elf_unhandled_reloc): New function.
958 (ppc64_elf_howto_raw): Use the above.
959 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
960 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
961 <R_PPC64_SECTOFF_DS>: Likewise.
962 (IS_ABSOLUTE_RELOC): Update.
963 (struct ppc_link_hash_table): Add have_undefweak.
964 (ppc64_elf_link_hash_table_create): Init.
965 (func_desc_adjust): Set have_undefweak.
966 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
967 add the .sfpr blr when have_undefweak.
968 (ppc64_elf_setup_section_lists): Check hash table flavour.
969 (ppc64_elf_next_input_section): Move output_section->owner test to
970 ppc64elf.em.
971 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
972 and relocatable test. Return TOCstart and don't set elf_gp.
973 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
974 offset calculation. Add assert on weak sym branch tweaks.
975 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
976 (ppc64_elf_toc): Declare.
977 (ppc64_elf_next_input_section): Update.
ea1e4b0d 978
818c39a3
AM
9792002-05-01 Alan Modra <amodra@bigpond.net.au>
980
981 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
982 file_name.
983
721956f4
AM
9842002-05-01 Alan Modra <amodra@bigpond.net.au>
985
986 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
987 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
988 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
989 call branches. Correct undefined weak destination.
990 (ppc64_elf_func_desc_adjust): Always create at least one blr in
991 .sfpr, and correct case where either only savef* or restf* is
992 needed.
993
994 Long branch stubs, multiple stub sections.
995 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
996 (ppc64_elf_next_input_section): Declare.
997 * elf64-ppc.c: Move linker-only prototypes.
998 (STUB_SUFFIX): Define.
999 (enum ppc_stub_type): New.
1000 (struct ppc_stub_hash_entry): New.
1001 (struct ppc_branch_hash_entry): New.
1002 (struct ppc_link_hash_entry): Add stub_cache, oh.
1003 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
1004 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
1005 Rename plt_overflow to stub_error.
1006 (ppc_stub_hash_lookup): Define.
1007 (ppc_branch_hash_lookup): Define.
1008 (stub_hash_newfunc): New function.
1009 (branch_hash_newfunc): New function.
1010 (link_hash_newfunc): Init new fields.
1011 (ppc64_elf_link_hash_table_create): Likewise.
1012 (ppc64_elf_link_hash_table_free): New function.
1013 (ppc_stub_name): New function.
1014 (ppc_get_stub_entry): New function.
1015 (ppc_add_stub): New function.
1016 (create_linkage_sections): Use bfd_make_section_anyway. Create
1017 .branch_lt and .rela.branch_lt sections. Don't create .stub.
1018 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
1019 and set up for plt call stubs. Link func and func desc syms.
1020 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
1021 (func_desc_adjust): Avoid hash lookup when func desc sym available
1022 via shortcut, and set links when processing.
1023 (ppc64_elf_hide_symbol): Likewise.
1024 (allocate_dynrelocs): Don't allocate stub section here.
1025 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
1026 Remove sstub code.
1027 (ppc_type_of_stub): New function.
1028 (build_one_stub): Delete.
1029 (ppc_build_one_stub): New function.
1030 (ppc_size_one_stub): New function.
1031 (ppc64_elf_setup_section_lists): New function.
1032 (ppc64_elf_next_input_section): New function.
1033 (group_sections): New function.
1034 (get_local_syms): New function.
1035 (ppc64_elf_size_stubs): Rewrite.
1036 (ppc64_elf_build_stubs): Rewrite.
1037 (ppc64_elf_relocate_section): Look up stub entry for REL24
1038 relocs. Don't propagate REL14* to dynamic objects. Look for long
1039 branch stubs if REL14* or REL24 relocs won't reach.
1040 (bfd_elf64_bfd_link_hash_table_free): Define.
1041
09c2219b
MM
10422002-04-30 Mark Mitchell <mark@codesourcery.com>
1043
1044 * bfd/config.bfd: Add support for powerpc-*-windiss.
1045
07b678c0
TR
10462002-04-30 Tom Rix <trix@redhat.com>
1047
1048 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
1049 symbol names into the hash table.
1050
dbe341c6
TR
10512002-04-28 Tom Rix <trix@redhat.com>
1052
1053 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
ea1e4b0d 1054 calulating relocations.
dbe341c6 1055 (xcoff_complain_overflow) : Function table for relocation errors.
ea1e4b0d
AM
1056 (xcoff_ppc_relocate_section): Use relocation and complain function
1057 tables.
1058 (xcoff_complain_overflow_unsigned_func): New complain function.
dbe341c6
TR
1059 (xcoff_complain_overflow_signed_func): Same.
1060 (xcoff_complain_overflow_bitfield_func): Same.
1061 (xcoff_complain_overflow_dont_func): Same.
1062 (xcoff_reloc_type_crel): New recot function.
1063 (xcoff_reloc_type_br): Same.
1064 (xcoff_reloc_type_ba): Same.
1065 (xcoff_reloc_type_toc): Same.
1066 (xcoff_reloc_type_rel): Same.
1067 (xcoff_reloc_type_neg): Same.
1068 (xcoff_reloc_type_pos): Same.
1069 (xcoff_reloc_type_fail): Same.
1070 (xcoff_reloc_type_noop): Same.
1071 * libxcoff.h : Declare common parts for xcoff64.
1072 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
ea1e4b0d 1073 and complain function tables.
dbe341c6 1074
985142a4
AM
10752002-04-28 Alan Modra <amodra@bigpond.net.au>
1076
1077 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
1078 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
1079
eba91044
AM
10802002-04-26 Alan Modra <amodra@bigpond.net.au>
1081
e54fdaa5
AM
1082 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
1083 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
1084
a50c1845
AM
1085 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
1086 same as the output before calling elf_link_input_bfd.
1087
eba91044
AM
1088 * coffcode.h (coff_compute_section_file_positions): Set
1089 section_tail after shuffling section list.
1090
3c25c5f6
NC
10912002-04-24 Christian Groessler <chris@groessler.org>
1092
1093 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
1094 addresses are 23bit with a special layout, not plain 32bit
1095 values. Prevent relocation of immediate values.
1096
40d32fc6
CD
10972002-04-24 Chris G. Demetriou <cgd@broadcom.com>
1098
1099 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
1100 MIPS-16 ASE flags are set, print something to indicate that.
1101
067fa4a6
AM
11022002-04-23 Alan Modra <amodra@bigpond.net.au>
1103
1104 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
1105 under which a plt call stub is used.
1106 (final_link_relocate): Similarly.
1107 (allocate_plt_static): Clear h-plabel except when plt entry is
1108 exclusively used for a plabel.
1109 (allocate_dynrelocs): Use the above to simplify plt sizing.
1110 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
1111 (elf32_hppa_link_hash_table_create): Init.
1112 (BL22_RP): Define.
1113 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
1114 (elf32_hppa_check_relocs): Set has_22bit_branch.
1115
1116 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
1117 (final_link_relocate): Likewise.
1118
af40ce3c
JJ
11192002-04-22 Jakub Jelinek <jakub@redhat.com>
1120
1121 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
1122 search table if some FDE is DW_EH_PE_aligned encoded either.
1123 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
1124
09ae86c2
JJ
11252002-04-22 Richard Smith <richard@ex-parrot.com>
1126 Jakub Jelinek <jakub@redhat.com>
1127
1128 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
1129 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
1130 encoded personality.
1131 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
1132 for CIE/FDE removal.
1133
deeb2cd7
TR
11342002-04-20 Tom Rix <trix@redhat.com>
1135
1136 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
1137
99dc0092
AM
11382002-04-20 Alan Modra <amodra@bigpond.net.au>
1139
aa3d5824
AM
1140 * archures.c (bfd_lookup_arch): Move the list order comment..
1141 (struct bfd_arch_info): ..to where it belongs.
1142 * bfd-in2.h: Regenerate.
1143
99dc0092
AM
1144 * archures.c (bfd_lookup_arch): Add comment on list order.
1145 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
1146 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
1147 is always at head of list.
1148
7831a775
NC
11492002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1150
1151 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
1152 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
1153 definition of these functions for ARM_WINCE builds as they are
1154 not used.
ea1e4b0d 1155 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
7831a775
NC
1156 for ARM_WINCE builds.
1157
11582002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1159
ea1e4b0d 1160 * coff-arm.c (bfd_arm_process_before_allocation):
7831a775
NC
1161
11622002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
1163
1164 * cpu-sh.c (scan_mach): Delete.
1165 (arch_info_struct): Replace scan_mach with bfd_default_scan.
1166 (bfd_sh_arch): Likewise.
1167
3d8dbe36
NC
11682002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
1169
1170 * ihex.c (ihex_write_object_contents): Fix check for records
1171 crossing 64K boundaries.
1172
4ab82700
AM
11732002-04-16 Alan Modra <amodra@bigpond.net.au>
1174
1175 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
1176 type rather than just assuming entries are ELF.
1177 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
1178 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
1179 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
1180 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
1181 rather than elf_link_hash_entry.
1182
036fe0fe
RH
11832002-04-15 Richard Henderson <rth@redhat.com>
1184
1185 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
1186 n32 binaries.
1187
c4f3d130
NC
11882002-04-15 Michael Snyder <msnyder@redhat.com>
1189
1190 * opncls.c (bfd_close): Write contents if writeable.
1191 Minor formatting tidy-ups.
1192
4ab82700 11932002-04-15 Alan Modra <amodra@bigpond.net.au>
27242387
AM
1194
1195 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
1196
0c04d169
MS
11972002-04-12 Michael Snyder <msnyder@redhat.com>
1198
1199 * bfd-in.h (bfd_get_section_lma): New access macro.
1200 Minor white-space fix-up.
1201
89d4966f
AM
12022002-04-12 Alan Modra <amodra@bigpond.net.au>
1203
1204 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
1205 header pad.
1206
8d0da3c2
DD
12072002-04-09 DJ Delorie <dj@redhat.com>
1208
1209 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
1210
05793179
NC
12112002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
1212
1213 * coffcode.h (coff_read_word): New.
1214 (coff_compute_checksum): New.
1215 (coff_apply_checksum): New.
1216 (coff_write_object_contents): Call coff_apply_checksum () to
1217 apply checksum to PE image.
1218
46fe4e66
AM
12192002-04-08 Randolph Chung <tausq@debian.org>
1220
1221 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
1222 (elf32_hppa_final_link): Split out sorting logic to..
1223 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
1224 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
1225
3b5b409c
AC
12262002-04-07 Andrew Cagney <ac131313@redhat.com>
1227
1228 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
1229 pattern.
1230 * configure: Re-generate.
1231
ac7b6ceb
AC
12322002-04-07 Andrew Cagney <ac131313@redhat.com>
1233
1234 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
1235 is greater or equal to 4.3.3.
1236 * configure: Regenerate.
1237 Fix PR gdb/344.
1238
44aa49bb
HPN
12392002-04-05 Hans-Peter Nilsson <hp@axis.com>
1240
1241 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
1242 R_CRIS_32_PCREL>: Fix typo in name.
1243 (cris_elf_check_relocs): Always create .rela.got here when
1244 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
1245 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
1246 assume it's created.
1247
e2d34d7d
DJ
12482002-04-04 Daniel Jacobowitz <drow@mvista.com>
1249
1250 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
1251 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
1252 define.
1253 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
1254 * bfd.c (bfd_link_hash_table_free): Define.
1255 * binary.c (binary_bfd_link_hash_table_free): Define.
1256 * bout.c (b_out_bfd_link_hash_table_free): Define.
1257 * coff-rs6000.c (rs6000coff_vec): Include
1258 _bfd_generic_link_hash_table_free.
1259 (pmac_xcoff_vec): Likewise.
1260 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1261 (aix5coff64_vec): Likewise.
1262 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
1263 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
1264 (bfd_elf32_bfd_link_hash_table_free): Define.
1265 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
1266 (bfd_elf32_bfd_link_hash_table_free): Define.
1267 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
1268 define.
1269 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
1270 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
1271 * ieee.c (ieee_bfd_link_hash_table_free): Define.
1272 * ihex.c (ihex_bfd_link_hash_table_free): Define.
1273 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
1274 (_bfd_generic_link_hash_table_free): Add prototype.
1275 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
1276 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
1277 * linker.c (_bfd_generic_link_hash_table_free): New function.
1278 * mmo.c (mmo_bfd_link_hash_table_free): Define.
1279 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
1280 * oasys.c (oasys_bfd_link_hash_table_free): Define.
1281 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
1282 * som.c (som_bfd_link_hash_table_free): Define.
1283 * srec.c (srec_bfd_link_hash_table_free): Define.
1284 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
1285 * versados.c (versados_bfd_link_hash_table_free): Define.
1286 * vms.c (vms_bfd_link_hash_table_free): New function.
1287 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
1288
1289 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
1290 instead of bfd_alloc.
1291 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
1292 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
1293 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
1294 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
1295 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
1296 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
1297 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
1298 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
1299 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
1300 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
1301 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
1302 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
1303 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
1304 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
1305 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
1306 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
1307 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
1308 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
1309 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
1310 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
1311 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
1312 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
1313 * m68klinux.c (linux_link_hash_table_create): Likewise.
1314 * sparclinux.c (linux_link_hash_table_create): Likewise.
1315 * sunos.c (sunos_link_hash_table_create): Likewise.
1316 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
1317
1318 * targets.c: Add _bfd_link_hash_table_free to xvec.
1319
1320 * bfd-in2.h: Regenerate.
1321 * libbfd.h: Regenerate.
1322 * libcoff.h: Regenerate.
1323
830629ab
AM
13242002-04-04 Alan Modra <amodra@bigpond.net.au>
1325
1326 * dep-in.sed: Cope with absolute paths.
1327 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
1328 Run "make dep-am".
1329 * Makefile.in: Regenerate.
1330 * coff-arm.c: Fix copyright date.
1331 * cpu-h8300.c: Likewise.
1332 * cpu-i370.c: Likewise.
1333 * cpu-s390.c: Likewise.
1334 * cpu-mips.c: Likewise.
1335 * po/SRC-POTFILES.in: Regenerate.
1336
c6e90b02
TS
13372002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1338
1339 * Makefile.am: Add elfxx-mips.c to the known backends.
1340 (elf32-mips.lo): remove dependency to coff/external.h.
1341 * Makefile.in: Regenerate.
1342 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
1343 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
1344 accordingly.
1345 * configure: Regenerate.
1346 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
1347 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
1348 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
1349 MIPS specific backend functions.
1350 * elf32-mips.c: Moved most code to elfxx-mips.c.
1351 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
1352 static.
1353 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
1354 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
1355 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
1356 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
1357 interface to allow selection of the right REL or RELA howto table.
1358 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
1359 static. Let it refuse n32 objects.
1360 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
1361 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
1362 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
1363 (elf32_mips_ignore_discarded_relocs): Rename from
1364 _bfd_elf32_mips_ignore_discarded_relocs.
1365 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
1366 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
1367 (elf_mips_howto_table_rela): Remove.
1368 * elf64-mips.c: Moved most code to elfxx-mips.c.
1369 (bfd_elf64_bfd_reloc_type_lookup): Make static.
1370 (mips_elf64_rtype_to_howto): New function.
1371 (mips_elf64_object_p): Likewise.
1372 (elf64_mips_irix_compat): Likewise.
1373 * elfxx-mips.c: New file containing common code merged together from
1374 elf32-mips.c and elf64-mips.c.
1375 * elfxx-mips.h: New file containing MIPS specific prototypes from
1376 elf-bfd.h.
1377 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
1378 elf_backend_mips_rtype_to_howto.
1379
d8dce692
AM
13802002-04-04 Alan Modra <amodra@bigpond.net.au>
1381
1382 * srec.c (MAXCHUNK, Chunk): Revise comments.
1383 (srec_write_record): Correct buffer size.
1384 (srec_write_header): Do without intermediate buffer.
1385 (srec_write_section): Validate Chunk.
1386 (srec_write_terminator): Pass NULL instead of dummy buffer.
1387 (srec_write_symbols): Pass file and symbol names directly to
1388 bfd_bwrite so sprintf won't overflow buffer.
1389
b88a866a
JJ
13902002-04-03 Jakub Jelinek <jakub@redhat.com>
1391
1392 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
1393 PC relative relocs against hidden symbols.
1394 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1395
d7866f04
AM
13962002-04-03 Alan Modra <amodra@bigpond.net.au>
1397
1398 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
1399 LMAs, loop over segments until p_vaddr and p_memsz specify an
1400 extent enclosing the section.
1401
9e81ee67
NC
14022002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
1403
1404 * ihex.c (ihex_write_object_contents): Do not allow records to
1405 cross a 64K boundary - wrap if necessary.
1406
d2b64500
JT
14072002-04-01 Nathan Williams <nathanw@wasabisystems.com>
1408
1409 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
1410 which caused the returned LWP ID to always be 0.
1411
e36f7d53
RH
14122002-04-01 Richard Henderson <rth@redhat.com>
1413
1414 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1415 (elf32_sparc_relocate_section): Use it to figure out when to
1416 initialize .got entries.
1417 * elf64-sparc.c: Similarly.
1418
e92d460e
AM
14192002-03-28 Alan Modra <amodra@bigpond.net.au>
1420
1421 * linker.c (link_action): Ignore duplicate warning syms.
1422 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
1423 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
1424 (elf_adjust_dynamic_symbol): Likewise.
1425 (elf_export_symbol): Likewise.
1426 (elf_link_find_version_dependencies): Likewise.
1427 (elf_link_assign_sym_version): Likewise.
1428 (elf_link_sec_merge_syms): Likewise.
1429 (elf_link_output_extsym): Likewise.
1430 (elf_gc_sweep_symbol): Likewise.
1431 (elf_gc_propagate_vtable_entries_used): Likewise.
1432 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1433 (elf_gc_allocate_got_offsets): Likewise.
1434 (elf_collect_hash_codes): Likewise.
1435 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
1436 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
1437 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
1438 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
1439 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
1440 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
1441 (elf_cris_discard_excess_dso_dynamics): Likewise.
1442 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
1443 (mark_PIC_calls): Likewise.
1444 (allocate_plt_static): Likewise.
1445 (allocate_dynrelocs): Likewise.
1446 (readonly_dynrelocs): Likewise.
1447 * elf32-i386.c (allocate_dynrelocs): Likewise.
1448 (readonly_dynrelocs): Likewise.
1449 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
1450 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
1451 * elf32-mips.c (mips_elf_output_extsym): Likewise.
1452 (mips_elf_sort_hash_table_f): Likewise.
1453 (mips_elf_check_mips16_stubs): Likewise.
1454 * elf32-s390.c (allocate_dynrelocs): Likewise.
1455 (readonly_dynrelocs): Likewise.
1456 * elf32-sh.c (sh_elf_discard_copies): Likewise.
1457 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
1458 (xstormy16_relax_plt_realloc): Likewise.
1459 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
1460 (elf64_alpha_output_extsym): Likewise.
1461 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
1462 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
1463 (mips_elf64_check_mips16_stubs): Likewise.
1464 (mips_elf64_output_extsym): Likewise.
1465 * elf64-ppc.c (func_desc_adjust): Likewise.
1466 (allocate_dynrelocs): Likewise.
1467 (readonly_dynrelocs): Likewise.
1468 * elf64-s390.c (allocate_dynrelocs): Likewise.
1469 (readonly_dynrelocs): Likewise.
1470 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
1471 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
1472 (readonly_dynrelocs): Likewise.
1473 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
1474 * aoutx.h (aout_link_write_other_symbol): Likewise.
1475 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
1476 (_bfd_coff_write_global_sym): Likewise.
1477 * i386linux.c (linux_tally_symbols): Likewise.
1478 * m68klinux.c (linux_tally_symbols): Likewise.
1479 * sparclinux.c (linux_tally_symbols): Likewise.
1480 * pdp11.c (aout_link_write_other_symbol): Likewise.
1481 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
1482 * xcofflink.c (xcoff_build_ldsyms): Likewise.
1483 (xcoff_write_global_symbol): Likewise.
1484
1485 * cofflink.c (_bfd_coff_final_link): Formatting.
1486 * cpu-mips.c (mips_compatible): Make static, prototype.
1487 * elf32-i386.c (elf_i386_check_relocs): Formatting.
1488 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1489 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
1490 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
1491 (mips_elf64_final_link): Likewise.
1492 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
1493 prototype.
1494
2106126f
NC
14952002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
1496
1497 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
1498 (SWAP_OUT_RELOC_OFFSET): Define.
1499
b99d1833
AM
15002002-03-27 Gregory Steuck <greg@nest.cx>
1501
1502 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
1503 terminating NULL if empty symbol table.
1504 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
1505
ad43ed4c
L
15062002-03-26 H.J. Lu (hjl@gnu.org)
1507
1508 * elflink.h (elf_link_input_bfd): Revert the last change since
1509 the gcc exception handling isn't fixed yet.
1510
3851fca4
L
15112002-03-26 H.J. Lu (hjl@gnu.org)
1512
1513 * elflink.h (elf_link_input_bfd): Complain about relocations
1514 against local symbols in discarded sections.
1515
b91afed7
AM
15162002-03-26 Alan Modra <amodra@bigpond.net.au>
1517
1518 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
1519
dba143ef
AM
15202002-03-23 Alan Modra <amodra@bigpond.net.au>
1521
1522 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
1523 section file offset for !SEC_LOAD sections.
1524
ee29b9fb
RE
15252002-03-21 Richard Earnshaw <rearnsha@arm.com>
1526
830629ab
AM
1527 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
1528 <case R_ARM_GOT>): Handle relocations to Thumb functions.
ee29b9fb 1529
54327882
AM
15302002-03-21 Alan Modra <amodra@bigpond.net.au>
1531
1532 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
1533 Whitespace changes.
1534 * archive.c: Update copyright date.
1535 * bfd-in2.h: Regenerate.
1536 * libbfd.h: Regenerate.
1537 * Makefile.am: Run "make dep-am"
1538 * Makefile.in: Regenerate.
1539 * po/SRC-POTFILES.in: Regenerate.
1540
1ee24f27
DJ
15412002-03-20 Daniel Jacobowitz <drow@mvista.com>
1542
1543 * dwarf2.c (struct funcinfo): Move up.
1544 (lookup_address_in_function_table): New argument function_ptr.
1545 Set it.
1546 (lookup_address_in_line_table): New argument function. If function
1547 is non-NULL, use it to handle ``addr'' before the first line note of
1548 the function.
1549 (comp_unit_find_nearest_line): Update and swap calls to
1550 lookup_address_in_function_table and lookup_address_in_line_table.
1551 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
1552 N_SLINE encountered if we see an N_FUN before any N_SLINE.
1553
51b9608c
TR
15542002-03-20 Tom Rix <trix@redhat.com>
1555
ea1e4b0d 1556 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
51b9608c 1557 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
ea1e4b0d 1558 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
51b9608c 1559
789c90aa
TR
15602002-03-19 Tom Rix <trix@redhat.com>
1561
ea1e4b0d 1562 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
789c90aa
TR
1563 dynamic objects in archives.
1564
1da54d81
HPN
15652002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
1566
1567 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
1568 STT_NOTYPE symbols to STT_OBJECT.
1569
7831a775 15702002-03-18 Jan Hubicka <jh@suse.cz>
beb43bb9
JH
1571
1572 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
1573
eb1e0e80
NC
15742002-03-18 Tom Rix <trix@redhat.com>
1575
1576 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
1577 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
1578 * coff-rs6000 (do_pad) : New function for archive padding.
1579 (do_copy) : New function for object file copying in archives.
1580 (do_shared_object_padding) : New function for padding shared
1581 objects to their text section alignment in archives.
1582 (bfd_xcoff_ar_achive_set_magic) : Stub.
1583 (xcoff_write_armap_big) : Use do_copy and do_pad.
1584 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
1585 do_copy and do_pad.
1586 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
ea1e4b0d 1587 bfd_xcoff_magic_number.
eb1e0e80
NC
1588 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
1589 fop.
1590 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
1591 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
1592 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
1593 * rs6000-core.c : Update copyright date.
ea1e4b0d 1594 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
eb1e0e80
NC
1595 csectpp.
1596 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
1597 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
1598 (coff_set_flags) : Use bfd_xcoff_magic_number.
1599 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
1600 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
1601 * Makefile.am : Same.
1602 * config.bfd : Same.
1603 * targets.c : Same.
1604 * configure : Regnerate.
1605 * Makefile.in : Same.
1606 * bfd-in2.h : Same.
1607
a1c259a1
NC
16082002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1609
1610 * po/fr.po: Updated version.
1611
4dae1ae7
AM
16122002-03-18 Alan Modra <amodra@bigpond.net.au>
1613
1614 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
1615 * libbfd.h: Regenerate.
1616 * archive.c (coff_write_armap): Pass on failures from
1617 bfd_write_bigendian_4byte_int.
1618
36b4f6e7
L
16192002-03-14 H.J. Lu <hjl@gnu.org>
1620
1621 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
1622 error to bfd_error_nonrepresentable_section for reinit_array
1623 section in DSO.
1624
a1aefc76
NC
16252002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1626
a181be0a
NC
1627 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
1628 OR it in rather than replacing previously selected flags.
1629
a1aefc76
NC
1630 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
1631 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
1632
c119f9b8
AM
16332002-03-14 Alan Modra <amodra@bigpond.net.au>
1634
1635 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
1636 (N): Use the above.
1637 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
1638 ensure reloc size matches before calling elf_link_input_bfd.
1639 Add an assert to check reloc size when counting output relocs.
1640
c295a511
NC
16412002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1642
1643 * mmo.c (mmo_get_loc): Return NULL rather than false.
1644
9ce88e60
NC
16452002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1646
1647 * po/fr.po: Updated version.
1648
4ddafab0
AM
16492002-03-13 Alan Modra <amodra@bigpond.net.au>
1650
b74fa2cd
AM
1651 * archures.c (bfd_default_compatible): Test bits_per_word.
1652 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
1653 bfd_default_compatible.
1654 * cpu-i370.c (i370_compatible): Likewise.
1655 * cpu-sparc.c (sparc_compatible): Likewise.
1656 * cpu-h8300.c (compatible): Test in->arch == out->arch.
1657
40b829d4
AM
1658 * elflink.h: Formatting fixes.
1659 (elf_link_output_extsym): Merge undefined and undef weak cases.
1660
4ddafab0
AM
1661 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
1662 when word size of input matches output word size.
1663
dd53c801
AJ
16642002-03-12 Andreas Jaeger <aj@suse.de>
1665
1666 * cpu-i386.c (i386_compatible): New. Use it instead of
1667 bfd_default_compatible.
1668
aa066ac8
L
16692002-03-07 H.J. Lu (hjl@gnu.org)
1670
1671 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
1672 as the type for bfd_reloc_val.
1673
1bf42538
JL
16742002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1675
1676 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
1677 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
1678 (elf_hppa_final_link_relocate): Correct relocations for indirect
1679 references to local data through the DLT. Fix .opd creation for
1680 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
1681 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
1682 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
1683 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1684 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
1685 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
1686 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1687
86eaf01e
JJ
16882002-03-05 Jakub Jelinek <jakub@redhat.com>
1689
1690 * merge.c (_bfd_merge_sections): Don't segfault if there
1691 is nothing to merge due to GC.
1692
c44233aa
AM
16932002-03-05 Alan Modra <amodra@bigpond.net.au>
1694
039cc25f
AM
1695 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
1696 symbols that have been forced local.
1697
c44233aa
AM
1698 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
1699 to output forced local syms for non-shared link.
1700 (elf_link_output_extsym): Tweak condition for calling backend
1701 adjust_dynamic_symbol so that previous behaviour is kept.
1702 Whitespace changes throughout file.
1703
25e27870
L
17042002-03-04 H.J. Lu <hjl@gnu.org>
1705
1706 * elf.c (bfd_section_from_shdr): Handle special sections,
1707 .init_array, .fini_array and .preinit_array.
1708 (elf_fake_sections): Likewise.
1709
1710 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
1711 DT entry only if the section is in output for .init_array,
1712 .fini_array and .preinit_array. Complain about .preinit_array
1713 section in DSO.
1714 (elf_bfd_final_link): Warn zero size for .init_array,
1715 .fini_array and .preinit_array sections.
1716
1717 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
1718 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
1719 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
1720 .preinit_array.
1721
bb2a49f2
AM
17222002-03-04 Alan Modra <amodra@bigpond.net.au>
1723
1724 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
1725 * configure: Regenerate.
1726
38487e5e
TR
17272002-03-02 Tom Rix <trix@redhat.com>
1728
c44233aa
AM
1729 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
1730 symbolic equiv.
38487e5e
TR
1731 * coff-rs6000.c (xcoff_howto_table): Same.
1732
30831527
RH
17332002-03-01 David Mosberger <davidm@hpl.hp.com>
1734
1735 * elflink.h (size_dynamic_sections): If section named
1736 ".preinit_array" exists, create DT_PREINIT_ARRAY and
1737 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
1738 ".init_array" and ".fini_array".
1739 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
1740 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
1741 DT_FINI_ARRAY.
1742
c8e5ddc8
AM
17432002-02-26 Andrew Macleod <amacleod@cygnus.com>
1744
1745 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
1746 dynsyms.
1747
96e0dda4
AM
17482002-02-25 Alan Modra <amodra@bigpond.net.au>
1749
1c5b6bf8
AM
1750 * elf64-hppa.h: Update copyright date.
1751
96e0dda4
AM
1752 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
1753 (ppc64_elf_relocate_section): Don't generate power4 style branch
1754 hints for *_BRTAKEN and *_BRNTAKEN relocs.
1755
0fb19cbc
JJ
17562002-02-22 Jakub Jelinek <jakub@redhat.com>
1757
1758 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
1759 last patch.
1760 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1761
c434dee6
AJ
17622002-02-21 Andreas Jaeger <aj@suse.de>
1763
1764 * elf64-x86-64.c: Major rework that introduces all recent changes
1765 to the x86-64 backend. Get a closer match to elf32-i386.
1766 (struct elf64_x86_64_dyn_relocs): Rename from
1767 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
1768 all users.
1769 (struct elf64_x86_64_link_hash_table): Add short cuts to some
1770 sections.
1771 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
1772 remove casts, initialize new hash members.
1773 (create_got_section): New.
1774 (elf64_x86_64_create_dynamic_sections): New.
1775 (elf64_x86_64_copy_indirect_symbol): New.
1776 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
1777 relocs, .got or .relgot here but do it in allocate_dynrelocs.
1778 Reference count possible .plt and .got entries. Don't test input
1779 section SEC_READONLY here to try to avoid copy relocs, and keep
1780 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
1781 DF_TEXTREL here. Delay setting of variables until needed. Cache
1782 pointer to "sreloc" section in elf_section_data. Tweak condition
1783 under which .got created. Report files with bad relocation
1784 section names.
1785 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1786 Reference count possible .plt entries. Don't deallocate .got and
1787 .relgot space here.
1788 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
1789 do copy reloc processing for weakdefs. Remove redundant casts and
1790 aborts. Delay setting of vars until needed. Move creation of
1791 dynamic symbols and allocation of .plt and .rela.plt to
1792 allocate_dynrelocs. Replace BFD_ASSERT with abort.
1793 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1794 (allocate_dynrelocs): New.
1795 (readonly_dynrelocs): New.
1796 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
1797 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
1798 Zero out the dynamic allocated content space.
1799 (elf64_x86_64_discard_copies): Removed.
1800 (elf64_x86_64_relocate_section): Make use of dynamic section
1801 short-cuts. Localise vars, and delay setting. Better error
1802 reporting, replace BFD_ASSERT with abort. Check
1803 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
1804 regular object file and tread the weak definition as the normal
1805 one. Don't discard relocs for undefweak or undefined symbols and
1806 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
1807 relocs.
1808 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
1809 symbols that have been forced local. Use same test to decide if
1810 we can use a relative reloc for got as relocate_section. Expand
1811 SHN_UNDEF comment. Move expressions out of function calls.
1812 Replace BFD_ASSERT with abort.
1813 (bfd_elf64_bfd_final_link): Removed.
1814 (elf_backend_copy_indirect_symbol): Define.
1815
ff3a6ee3
TR
18162002-02-20 Tom Rix <trix@redhat.com>
1817
1818 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
1819 (_bfd_xcoff_reloc_type_lookup): Use it.
1820 * coff64-rs6000.c (xcoff64_howto_table): Same.
1821 (xcoff64_reloc_type_lookup): Same.
c434dee6 1822
a68d41fb
AM
18232002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1824
1825 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
1826 little endian.
1827
befc3abb
MS
18282002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1829
1830 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
1831 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
1832 * bfd-in2.h: Regenerate.
1833 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
1834 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
1835 with "s390:64-bit".
1836 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
1837 (elf_s390_reloc_type_lookup): Likewise.
1838 (elf_s390_check_relocs): Likewise.
1839 (elf_s390_gc_sweep_hook): Likewise.
1840 (elf_s390_relocate_section): Likewise.
1841 (elf_s390_object_p): Use renamed architecture define.
1842 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
1843
6eeeec9b
FCE
18442002-02-19 Frank Ch. Eigler <fche@redhat.com>
1845
1846 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
1847
0bb2d96a
JJ
18482002-02-19 Jakub Jelinek <jakub@redhat.com>
1849
1850 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
1851 absptr -> pcrel optimization for shared libs.
1852 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
1853 library cannot be converted to pcrel.
1854 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
1855 relative.
1856 * elf32-i386.c (elf_i386_relocate_section): If
1857 _bfd_elf_section_offset returned -2, skip, but make sure the
1858 relocation is installed.
1859 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
1860 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1861 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1862 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1863 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1864 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1865 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1866 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1867 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1868 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1869 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1870 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1871 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1872 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1873 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
1874 _bfd_elf_section_offset returning -2 the same way as -1.
1875 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
1876 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
1877 and BFD_ASSERT.
1878 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
1879
69f284c7
TR
18802002-02-18 Tom Rix <trix@redhat.com>
1881
1882 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
1883 (bfd_xcoff_size_dynamic_sections): Same.
1884 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
1885 (bfd_xcoff_size_dynamic_sections): Same.
1886 * coff-rs6000.c (xcoff_generate_rtinit): Same.
1887 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
1888 * libxcoff.h (struct xcoff_backend_data_rec): Same.
1889 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
1890 * bfd-in2.h: Regenerate.
1891
82bd7b59
AM
18922002-02-18 Alan Modra <amodra@bigpond.net.au>
1893
1894 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
1895 (struct ppc_link_hash_table): Add sfpr.
1896 (ppc64_elf_link_hash_table_create): Init it.
1897 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
1898 .glink out to..
1899 (create_linkage_sections): ..here. Make .sfpr too.
1900 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
1901 dynobj early.
1902 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
1903 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
1904 ._restf* functions, and create as needed.
1905 (func_desc_adjust): Only force_local for shared libs.
1906
ef1355e8
NC
19072002-02-18 David O'Brien <obrien@FreeBSD.org>
1908
1909 * configure.in: Bump version number post 2.12 branching.
1910 * configure: Regenerate.
1911
dfa36a69
HPN
19122002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1913
1914 * mmo.c: Correct and improve comments.
1915 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
1916 zero-pad. Use input to fill up non-empty bfd buffer.
1917 (mmo_flush_chunk): New function.
1918 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
1919 changed. Don't emit location specifier if VMA is same as
1920 *LAST_VMAP after omitting leading zero contents. Call
1921 mmo_flush_chunk before emitting location specifier.
1922 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
1923 with mmo_write_loc_chunk calls.
1924 (mmo_internal_write_section): Call mmo_flush_chunk after
1925 mmo_write_chunk.
1926 (mmo_write_symbols_and_terminator): Move :Main to first position
1927 in symbol array. Add faked one if it does not exist if there are
1928 other symbols. Don't add it if there are no symbols at all. Move
1929 out test for value of :Main from symbol loop. Rename table
1930 fakemain to maintable and variable mainsym to fakemain.
1931
ccf00ab6
RH
19322002-02-15 Richard Henderson <rth@redhat.com>
1933
1934 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
1935 section with no got matches any got. Simplify error generaion.
1936
88eaccc2
AM
19372002-02-15 Alan Modra <amodra@bigpond.net.au>
1938
fd96f80f
AM
1939 Support arbitrary length fill patterns.
1940 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
1941 (_bfd_default_link_order): Remove bfd_fill_link_order code.
1942 Call default_data_link_order.
1943 (default_fill_link_order): Delete.
1944 (default_data_link_order): New function.
1945 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
1946 of bfd_fill_link_order with bfd_data_link_order.
1947 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
1948 * elf64-mips.c (mips_elf64_final_link): Likewise.
1949
88eaccc2
AM
1950 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
1951 Correct value returned in "end" for "0x<non-hex>".
1952
e2fd756b
NC
19532002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
1954
1955 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
1956 (scan): Test against 'mach' field in info structure.
1957
edd29cf9
AM
19582002-02-14 Alan Modra <amodra@bigpond.net.au>
1959
1960 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
1961
1e30956e 19622002-02-14 Matt Fredette <fredette@netbsd.org>
76f57f3a
JT
1963
1964 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
1965 EF_M68000.
1966
bf36db18
NC
19672002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
1968
1969 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
edd29cf9
AM
1970 non-zero physical addresses when adjusting the LMAs of new
1971 sections.
bf36db18 1972
189c6563
AM
19732002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1974
1975 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
1976 from _bfd_elf_hppa_gen_reloc_type.
1977 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
1978 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
1979 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
1980 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
1981
e948afaf
AO
19822002-02-12 Alexandre Oliva <aoliva@redhat.com>
1983
1984 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
1985 loading its contents if there's nothing to do in it.
1986
19397422
AM
19872002-02-12 Alan Modra <amodra@bigpond.net.au>
1988
0ad3a73b
AM
1989 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
1990 64k boundary.
1991
19397422
AM
1992 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
1993 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
1994 (ppc64_elf_finish_dynamic_sections): Set values for them.
1995
51316059
MS
19962002-02-11 Michael Snyder <msnyder@redhat.com>
1997
1998 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
1999 * elf.c (elfcore_grok_pstatus): Add prototype.
2000 (elfcore_grok_lwpstatus): Add prototype.
2001 (elfcore_write_lwpstatus): New function.
2002 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
2003
518313c3
AO
20042002-02-11 Alexandre Oliva <aoliva@redhat.com>
2005
2006 * elf32-sh.c: Added missing prototypes.
2007 * elf32-sh64.c: Likewise.
2008 (sh_elf_align_loads): Mark unused args as such.
2009 * elf64-sh64.c: Added missing prototypes.
2010 (struct elf_sh64_link_hash_entry): Fix typo.
2011 (sh_elf64_relocate_section): Fix info argument passed to
2012 _bfd_elf_section_offset.
2013
2c73f9d8
AM
20142002-02-11 Alan Modra <amodra@bigpond.net.au>
2015
2016 * Makefile.am: "make dep-am".
2017 * Makefile.in: Regenerate.
2018 * aclocal.m4: Regenerate.
2019 * config.in: Regenerate.
2020 * configure: Regenerate.
2021
d426c6b0
DJ
20222002-02-10 Daniel Jacobowitz <drow@mvista.com>
2023
2024 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
2025 variable warnings.
2026 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
2027 comparison warning.
2028 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
2029 cast warnings for the common case.
2030
e58ee0cd
HPN
20312002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
2032
2033 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
2034 vectors.
2035 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
2036 vectors.
2037
7793f4d0
RH
20382002-02-09 Richard Henderson <rth@redhat.com>
2039
2040 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
2041 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
2042 (elf64_alpha_relocate_section): Likewise.
2043 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
2044 * bfd-in2.h, libbfd.h: Rebuild.
2045
7e799044
HPN
20462002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2047
2048 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
2049 that base-plus-offset reloc accounting is consistent.
2050 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
2051 up to date for undefined symbols.
2052
027d73eb
EC
20532002-02-08 Eric Christopher <echristo@redhat.com>
2054
2055 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2056
2057 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
2058 sections for the O32 ABI.
2059
517662d4
CD
20602002-02-08 Chris Demetriou <cgd@broadcom.com>
2061
2062 * elf32-arm.h: Fix formatting of _("...").
2063 * elf32-d10v.c: Likewise.
2064 * elf32-m68k.c: Likewise.
2065 * elf32-mips.c: Likewise.
2066
5e37cc46
NC
20672002-02-08 Ivan Guzvinec <ivang@opencores.org>
2068
2069 * coff-or32.c: Fix compile time warning messages.
2070
fbca6ad9
AO
20712002-02-08 Alexandre Oliva <aoliva@redhat.com>
2072
2073 Contribute sh64-elf.
2074 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
2075 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
2076 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
2077 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
2078 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
2079 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
2080 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
2081 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
2082 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
2083 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
2084 New relocs.
2085 * libbfd.h, bfd-in2.h: Rebuilt.
2086 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
2087 (sh_reloc_map): Map them.
2088 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2089 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
2090 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
2091 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2092 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
2093 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
2094 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
2095 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
2096 datalabel_got_offset.
2097 (sh_elf_link_hash_newfunc): Initialize it.
2098 (sh_elf_relocate_section): Augment the scope of
2099 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
2100 GOT and GOTOFF handling to new SHmedia relocation types. Support
2101 GOT_BIAS.
2102 (sh_elf_check_relocs): Likewise.
2103 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
2104 PLT entries using movi_shori_putval. Support GOT_BIAS.
2105 (sh_elf_finish_dynamic_sections): Likewise.
2106 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
2107 relocation, it's now done by the caller.
2108 (GOT_BIAS): New.
2109 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
2110 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
2111 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
2112 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
2113 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
2114 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
2115 sh64_elf64_hash_table): New.
2116 (sh_elf64_howto_table): Introduce new relocs.
2117 (sh_elf64_info_to_howto): Accept new PIC relocs.
2118 (sh_elf64_relocate_section): Augment the scope of
2119 seen_stt_datalabel. Support new PIC relocs.
2120 (sh_elf64_check_relocs): Support new PIC relocs.
2121 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
2122 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
2123 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
2124 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
2125 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
2126 movi_shori_putval, movi_3shori_putval,
2127 sh64_elf64_create_dynamic_sections,
2128 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
2129 sh64_elf64_size_dynamic_sections,
2130 sh64_elf64_finish_dynamic_symbol,
2131 sh64_elf64_finish_dynamic_sections): New.
2132 (elf_backend_create_dynamic-sections,
2133 bfd_elf64_bfd_link_hash_table_create,
2134 elf_backend_adjust_dynamic_symbol,
2135 elf_backend_size_dynamic_sections,
2136 elf_backend_finish_dynamic_symbol,
2137 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2138 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2139 elf_backend_got_header_size, elf_backend_plt_header_size):
2140 Define.
2141 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
2142 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
2143 match official numbers and names; moved unmaching ones to the
2144 range 0xf2-0xff.
2145 * elf32-sh64.c, elf64-sh64.c: Likewise.
2146 2001-03-12 DJ Delorie <dj@redhat.com>
2147 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
2148 sections.
2149 2001-03-12 DJ Delorie <dj@redhat.com>
2150 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
2151 be aligned.
2152 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
2153 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2154 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
2155 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
2156 .cranges section with SEC_SORT_ENTRIES set.
2157 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
2158 incoming sorted .cranges section.
2159 (sh64_bfd_elf_copy_private_section_data): New.
2160 (sh64_elf_final_write_processing): Only sort .cranges and modify
2161 start address if called by linker.
2162 2001-01-08 Ben Elliston <bje@redhat.com>
2163 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
2164 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
2165 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
2166 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2167 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
2168 line. Add comments before all entries.
2169 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
2170 comment.
2171 (sh_elf64_reloc): Correct head comment.
2172 (sh_elf64_relocate_section): Correct spacing.
2173 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
2174 instead call reloc_dangerous callback.
2175 <case R_SH_SHMEDIA_CODE>: New case.
2176 (sh_elf64_gc_mark_hook): Correct spacing.
2177 (sh_elf64_check_relocs): Ditto.
2178 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
2179 New case.
2180 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
2181 functions.
2182 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
2183 clarify describing comment. Add comments before all entries.
2184 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
2185 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
2186 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2187 Sort .cranges section in final link. Prepare to set bit 0 on
2188 entry address.
2189 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
2190 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
2191 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
2192 .cranges section.
2193 (sh64_backend_section_from_shdr): New, to recognize
2194 SHT_SH5_CR_SORTED on incoming .cranges section.
2195 (elf_backend_section_from_shdr): Define.
2196 (sh64_elf_final_write_processing): Sort outgoing .cranges
2197 section. (New, temporarily disabled:) Set bit 0 on entry address
2198 according to ISA type.
2199 (sh64_find_section_for_address): New.
2200 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
2201 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
2202 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
2203 bfd_malloc, not xmalloc.
2204 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
2205 global.
2206 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
2207 temporarily disabled) setting bit 0 on entry address.
2208 (elf_backend_final_write_processing): Define.
2209 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
2210 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
2211 be a proper relocation for PTA and PTB rather than a marker.
2212 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
2213 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
2214 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
2215 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
2216 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
2217 Zero src_mask.
2218 * elf64-sh64.c: Ditto.
2219 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
2220 * elf32-sh64.c: Include opcodes/sh64-opc.h
2221 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
2222 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
2223 parameters. No unused parameters. Caller changed.
2224 <case R_SH_PT_16>: New case.
2225 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
2226 * Makefile.in: Regenerate.
2227 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2228 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
2229 all code sections.
2230 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2231 (sh64_elf_merge_private_data): Ditto.
2232 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
2233 to access stored section flags.
2234 (sh64_elf_final_write_processing): Return immediately unless
2235 called by linker. Use sh64_elf_section_data (cranges) to get size
2236 of linker-generated cranges entries.
2237 (sh64_elf_copy_private_data): Add missing "return true".
2238 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2239 (sh_elf64_merge_private_data): Ditto.
2240 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
2241 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
2242 elf64-sh64.c:sh64_elf_fake_sections.
2243 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
2244 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2245 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
2246 (sh64_elf_final_write_processing): New.
2247 (elf_backend_final_write_processing): Define.
2248 (sh64_elf_fake_sections): Get header flags from tdata field.
2249 (sh64_elf_copy_private_data): Do not call
2250 sh64_elf_copy_private_data_internal, just copy e_flags field.
2251 (sh64_elf_merge_private_data): Do not call
2252 sh64_elf_copy_private_data_internal.
2253 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2254 Remove EF_SH64_ABI64, let ELF size make difference.
2255 Remove SH64-specific BFD section flag.
2256 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
2257 containing SHmedia through elf_section_data (asect)->tdata
2258 non-zero, not using a BFD section flag.
2259 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
2260 (sh64_elf_merge_private_data): Similar.
2261 (elf_backend_section_flags): Don't define.
2262 (sh64_elf_backend_section_flags): Delete.
2263 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
2264 not EF_SH64_ABI64.
2265 (sh_elf64_merge_private_data): Similar.
2266 * section.c (Section flags definitions): Don't define
2267 SEC_SH_ISA_SHMEDIA.
2268 (bfd-in2.h): Regenerate.
2269 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
2270 Make DataLabel references work with partial linking.
2271 * elf32-sh64.c: Fix formatting.
2272 (sh64_elf_link_output_symbol_hook): New.
2273 (elf_backend_link_output_symbol_hook): Define to
2274 sh64_elf_link_output_symbol_hook.
2275 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
2276 undefined if partial linking. Adjust sanity check.
2277 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
2278 (elf_backend_link_output_symbol_hook): Define to
2279 sh64_elf64_link_output_symbol_hook.
2280 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
2281 undefined if partial linking. Adjust sanity check.
2282 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
2283 Implement semantics for inter-file DataLabel references.
2284 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
2285 (sh64_elf64_add_symbol_hook): New.
2286 (sh_elf64_relocate_section): If passing an indirect symbol with
2287 st_type STT_DATALABEL on the way to a symbol with st_other
2288 STO_SH5_ISA32, do not bitor 1 to the relocation.
2289 (elf_backend_add_symbol_hook): Define to
2290 sh64_elf64_add_symbol_hook.
2291 * elf64-sh32.c: Tweak comments.
2292 (DATALABEL_SUFFIX): Define.
2293 (sh64_elf_add_symbol_hook): New.
2294 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
2295 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
2296 symbol with st_type STT_DATALABEL on the way to a symbol with
2297 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
2298 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
2299 Pass through STT_DATALABEL.
2300 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
2301 (elf_backend_get_symbol_type): Define.
2302 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
2303 (elf_backend_get_symbol_type): Define.
2304 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2305 * elf32-sh64.c: Tweak comments.
2306 (sh64_elf_copy_private_data_internal): Add prototype.
2307 (bfd_elf32_bfd_set_private_flags): Define.
2308 (sh64_elf_copy_private_data_internal): Compare machine name, not
2309 textual BFD target name, to check whether to copy section flag
2310 SHF_SH5_ISA32.
2311 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
2312 Tweak section-contents-type-mismatch message.
2313 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
2314 Validize reloc-types.
2315 * elf64-sh64.c: New file.
2316 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
2317 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
2318 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
2319 Regenerate dependencies.
2320 * Makefile.in: Regenerate.
2321 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
2322 bfd_elf64_sh64l_vec.
2323 * configure.in: Handle bfd_elf64_sh64_vec and
2324 bfd_elf64_sh64l_vec.
2325 * configure: Regenerate.
2326 * po/POTFILES.in: Regenerate.
2327 * po/bfd.pot: Regenerate.
2328 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2329 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
2330 anything else but EF_SH64 and EF_SH64_ABI64.
2331 (sh64_elf_merge_private_data): Emit error for anything else but
2332 EF_SH64 and EF_SH64_ABI64.
2333 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
2334 from targ_selvecs.
2335 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
2336 bfd_elf32_sh64l_vec as a temporary measure.
2337 * configure: Regenerate.
2338 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
2339 * cpu-sh.c (arch_info_struct): Include sh5 item
2340 unconditionalized.
2341 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
2342 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
2343 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
2344 * elf32-sh64.c: Tweak comments.
2345 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
2346 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
2347 (sh64_elf_copy_private_data_internal): Wrap long line.
2348 (sh64_elf_merge_private_data): Rewrite to allow objects from
2349 SH64 subsets to be linked together.
2350 (INCLUDE_SHMEDIA): Define.
2351 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
2352 Parenthesize plus-expression inside or-expression.
2353 <global symbol>: Ditto.
2354 (sh_elf_set_mach_from_flags): Remove code refusing
2355 deleted EF_SH64_32BIT_ABI flag.
2356 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
2357 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
2358 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
2359 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
2360 (sh_elf_relocate_section) <local symbol>: Or 1 in
2361 calculation of relocation if sym->st_other & STO_SH5_ISA32.
2362 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
2363 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
2364 relocation.
2365 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2366 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
2367 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
2368 Regenerate dependencies.
2369 * Makefile.in: Regenerate.
2370 * archures.c: Add bfd_mach_sh5.
2371 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
2372 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
2373 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
2374 * configure: Regenerate.
2375 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
2376 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
2377 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
2378 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
2379 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
2380 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
2381 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
2382 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
2383 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
2384 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
2385 in item for SH5.
2386 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
2387 for SHmedia relocs.
2388 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
2389 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
2390 shmedia_prepare_reloc, goto final_link_relocate if it returns
2391 non-zero, else fail as before.
2392 (sh_elf_set_mach_from_flags): Provide function only if not defined
2393 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
2394 (sh_elf_set_private_flags): Provide function only if not defined
2395 as a macro.
2396 (sh_elf_copy_private_data): Similar.
2397 (sh_elf_merge_private_data): Similar.
2398 * section.c (SEC_SH_ISA_SHMEDIA): New.
2399 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
2400 * elf32-sh64.c: New file.
2401 * libbfd.h: Regenerate.
2402 * bfd-in2.h: Regenerate.
2403 * po/POTFILES.in: Regenerate.
2404 * po/bfd.pot: Regenerate.
2405 * bfd-in2.h: Regenerate.
2406 * libbfd.h: Regenerate.
2407
e108f470
DJ
24082002-02-07 Daniel Jacobowitz <drow@mvista.com>
2409
2410 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
2411 been included, not drag it in.
2412 * bfd-in2.h: Regenerate.
2413
259d18a3
L
24142002-02-06 H.J. Lu (hjl@gnu.org)
2415
2416 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
2417 the mach and ISA fields if necessary.
2418
f13b834e
NC
24192002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2420
2421 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
2422 ARM architecture when an F_ARM_5 flag is detected, since we cannot
2423 be sure exactly which architecture this represents.
2424
82f6addb
NC
24252002-02-05 Nick Clifton <nickc@redhat.com>
2426
2427 * po/tr.po: Updated translation.
2428
899f54f5
AM
24292002-02-05 Alan Modra <amodra@bigpond.net.au>
2430
2431 From Jimi X <jimix@watson.ibm.com>
2432 * archures (bfd_mach_ppc64): Define.
2433 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
2434 (bfd_powerpc_arch): Define.
2435 * bfd-in2.h: Regenerate.
2436 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
2437 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
2438 (bfd_powerpc_archs): Add default powerpc64 arch.
2439
248866a8
AM
24402002-02-05 Alan Modra <amodra@bigpond.net.au>
2441
2442 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
2443 against section syms in readonly sections. Don't do the global
2444 sym check if we find one.
2445 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
2446 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
0a6958db 2447 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
248866a8
AM
2448 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
2449 (elf_s390_grok_prstatus): Add missing prototype.
2450
4fa5c2a8
HPN
24512002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2452
2453 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
2454 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
2455 Call bfd_get_section_by_name only once. Initialize
2456 bpodata->n_bpo_relocs_this_section.
2457 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
2458 referring to DSOs.
2459 (bpo_reloc_request_sort_fn): Don't use difference of values as
2460 return-value.
2461
537c972e
DB
24622002-02-02 David O'Brien <obrien@FreeBSD>
2463
2464 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
2465 version 4.5 and later the same as 5-CURRENT.
2466 * configure: Re-generate.
2467
006336b8
JT
24682002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2469
2470 * config.bfd (hppa*-*-netbsd*): New target.
2471
6c571f00
PT
24722002-01-31 Philipp Thomas <pthomas@suse.de>
2473
19397422
AM
2474 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
2475 to front of message. Unify messages with elf32-arm.h. Use
2476 commas where neccessary.
2477 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
2478 ERROR in messages. Unify messages with coff-arm.c. Correct
2479 VFP/FPA error message.
2480 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
2481 APCS-32 for translation.
6c571f00 2482
930b4cb2
HPN
24832002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2484
2485 Perform on-demand global register allocation from
2486 R_MMIX_BASE_PLUS_OFFSET relocs.
2487 * elf64-mmix.c (struct bpo_reloc_section_info, struct
2488 bpo_reloc_request, struct bpo_greg_section_info): New.
2489 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
2490 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
2491 _bfd_mmix_check_all_relocs,
2492 _bfd_mmix_prepare_linker_allocated_gregs,
2493 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
2494 (elf_mmix_howto_table): Correct src_mask for most relocs.
2495 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
2496 case.
2497 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
2498 case. Fix typo in comment. New label do_mmix_reloc.
2499 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
2500 store first object file with a base-plus-offset reloc. Call
2501 mmix_elf_check_common_relocs for the part common with mmo.
2502 (mmix_elf_final_link): Write out linker-allocated register
2503 contents section.
2504 (elf_backend_gc_sweep_hook): Define.
2505 (bfd_elf64_bfd_relax_section): Define.
2506
2507 * mmo.c: Don't include <ctype.h>
2508 (mmo_init): Correct init-once logic.
2509
3e36d993
TR
25102002-02-01 Tom Rix <trix@redhat.com>
2511
2512 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
2513
ba323545
AM
25142002-02-01 Alan Modra <amodra@bigpond.net.au>
2515
2516 * Makefile.am: Run "make dep-am"
2517 * Makefile.in: Regenerate.
2518
012884d6
DB
25192002-01-31 David O'Brien <obrien@FreeBSD>
2520
2521 * configure.in: Recognize the differences in core files from FreeBSD
2522 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
2523 5-CURRENT.
2524 * configure: Regenerate.
2525
3b16e843
NC
25262002-01-31 Ivan Guzvinec <ivang@opencores.org>
2527
2528 * coff-or32.c: New file.
2529 * cpu-or32.c: New file.
2530 * elf32-or32.c: New file.
2531 * archures.c: Add support for or32.
2532 * targets.c: Add support for or32.
2533 * bfd-in2.h: Regenerate.
7dc0ab31 2534 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
3b16e843
NC
2535 coff_write_object_contents): Add support for or32.
2536 * config.bfd: Add target.
2537 * configure.in: Add support for or32.
2538 * configure: Regenerate.
2539 * Makefile.am: Add support for or32.
2540 * Makefile.in: Regenerate.
3b16e843
NC
2541 * po/SRC-POTFILES.in: Add or32 files.
2542 * po/bfd.pot: Regenerate.
7dc0ab31 2543
caf8ca8e
NC
25442002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
2545 Don Lindsay <lindsayd@cisco.com>
2546
2547 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
2548 false' with a return of a bfd_reloc_ error code.
2549
e5dfef09
HPN
25502002-01-31 Hans-Peter Nilsson <hp@axis.com>
2551
2552 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
2553 unexport unreferenced symbols when --export-dynamic. Call
2554 _bfd_elf_strtab_delref when unexporting.
2555
4e4770d0
DJ
25562002-01-30 Daniel Jacobowitz <drow@mvista.com>
2557
2558 * bfd-in.h: Include <stdbool.h> if it is available.
2559 * bfd-in2.h: Regenerated.
2560
e1fa50e7
AM
25612002-01-31 Alan Modra <amodra@bigpond.net.au>
2562
2563 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
2564 not go via the plt.
2565
b5f79c76
NC
25662002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
2567
b5f79c76
NC
2568 * archures.c: Tidy up formatting of embedded comments.
2569 * bfd.c: Tidy up formatting of embedded comments.
7dc0ab31 2570 * bfd-in.h: Fix formatting of comments.
b5f79c76
NC
2571 * reloc.c: Tidy up formatting of ordinary & embedded comments.
2572 * section.c: Tidy up formatting of embedded comments.
2573 * syms.c: Tidy up formatting of embedded comments.
2574 * targets.c: Tidy up formatting of embedded comments.
2575
2576 * bfd-in2.h: Regenerate.
2577
ca09e32b
NC
25782002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
2579
2580 * vms-tir.c (cmd_name): New function.
2581 (tir_cmd_name): New function.
2582 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
2583 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
2584 Fix formatting.
7dc0ab31 2585
ca09e32b
NC
2586 * peXXigen.c (pe_print_idata): Rearrange message to aid in
2587 translation.
2588 (pe_print_pdata): Rearrange message to aid in translation.
2589
2590 * libbfd.c (warn_deprecated): Rearrange error message to aid in
2591 translation.
2592
2593 * ihex.c (ihex_write_object_contents): Fix spelling typo.
2594
2595 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
2596
2597 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
2598 message to aid in translation.
2599
2600 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
2601 to aid in translation.
2602
2603 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
2604
7dc0ab31 26052002-01-30 Philipp Thomas <pthomas@suse.de>
ae1a89b7
PT
2606
2607 * coff-arm.c, elf32-elf.h: Unify messages.
2608
05f64ac6
NC
26092002-01-30 Nick Clifton <nickc@redhat.com>
2610
2611 * po/sv.po: Updated translation.
2612
f5a3e38a
NC
26132002-01-30 Philipp Thomas <pthomas@suse.de>
2614
2615 * dwarf2.c (read_abbrev): Use full section name in error message.
2616 (decode_line_info): Likewise.
661a3fd4
NC
2617
2618 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
2619 message.
2620
d926e03d
AM
26212002-01-30 Alan Modra <amodra@bigpond.net.au>
2622
2623 * elf64-ppc.c (func_desc_adjust): Only provide missing function
2624 descriptor symbols for undefined function code syms. Clear
2625 ELF_LINK_NON_ELF so that they can stay weak.
2626
030d18fb 26272002-01-29 Chris Demetriou <cgd@broadcom.com>
7dc0ab31 2628 Mitch Lichtenberg <mpl@broadcom.com>
030d18fb
CD
2629
2630 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
2631 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
2632 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
2633 generation.
2634 * bfd-in2.h: Regenerate.
2635
fcc76bea
CD
26362002-01-29 Chris Demetriou <cgd@broadcom.com>
2637
2638 * elf32-mips.c: Add additional comments about HI16 relocation
2639 processing.
2640 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
2641 pc-relative relocations. (Reverts change made on 2001-10-31.)
2642 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
2643 for pc-relative relocations.
2644 (mips_elf_calculate_relocation): Add a comment about a kludge
2645 in the R_MIPS_GNU_REL_HI16 handling.
2646 (_bfd_mips_elf_relocate_section): Implement that kludge;
2647 adjust pc-relative HI16 relocation for difference in HI16 and
2648 LO16 addresses, since it can't easily be done in
2649 mips_elf_calculate_relocation.
2650
f9cd9119
MS
26512002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
2652
2653 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
2654 relocations with PC32 relocations for undefined or weak symbols.
2655 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
2656 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
2657
702248bb
JT
26582002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
2659
2660 * elfcore.h (elf_core_file_p): Improve comment for last change.
2661
4867be41
DJ
26622002-01-27 Daniel Jacobowitz <drow@mvista.com>
2663
2664 * configure: Regenerated.
2665
a94cef6a
JT
26662002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
2667
2668 * elfcore.h (elf_core_file_p): Set the machine architecture
2669 before processing the program headers.
2670
7562a296
HPN
26712002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2672
966abd70
HPN
2673 * configure.in <64-bit configuration>: If using gcc, check and
2674 emit error for egcs-1.1.2.
2675 * configure: Regenerate.
2676
e8eab623
NC
26772002-01-26 Egor Duda <deo@logos-m.ru>
2678
2679 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
2680 as possible to avoid stack corruption.
2681
73896efb
RH
26822002-01-26 Richard Henderson <rth@redhat.com>
2683
2684 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
2685 for non-allocated sections.
2686
26872002-01-25 Mark Kettenis <kettenis@gnu.org>
c106e334
MK
2688
2689 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
2690 prstat.pr_reg even if it is a struct.
2691
73896efb 26922002-01-25 Steve Ellcey <sje@cup.hp.com>
254ed743
NC
2693
2694 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
2695
3d66c4f7
NC
26962002-01-25 Philipp Thomas <pthomas@suse.de>
2697
2698 * coffgen.c (coff_print_symbol): Don't mark info message
2699 for translation.
2700
9460ecda
NC
27012002-01-25 Nick Clifton <nickc@redhat.com>
2702
2703 * po/fr.po: Updated translation.
2704 * po/es.po: Updated translation.
2705
cc9ff76a
AM
27062002-01-25 Philipp Thomas <pthomas@suse.de>
2707
2708 * coff-alpha.c (alpha_relocate_section): Unify warning message
2709 for GP relative relocations without GP defined.
2710 * coff-mips.c (mips_relocate_section): Likewise.
2711
c68836a9
AM
27122002-01-25 Alan Modra <amodra@bigpond.net.au>
2713
2714 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
2715 unsigned overflow when new_offset < old_offset.
2716
e8eab623 27172002-01-24 Philipp Thomas <pthomas@suse.de>
391154e9
NC
2718
2719 * bfd.c (_bfd_abort): Fix typo.
2720
8ba89f17
RH
27212002-01-23 Richard Henderson <rth@redhat.com>
2722
2723 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
2724 plt entries for undefweak symbols.
2725
c6953948
NC
27262002-01-23 Steve Ellcey <sje@cup.hp.com>
2727
2728 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
2729 DEFAULT_VECTOR.
2730 (bfd_elf64_ia64_hpux_big_vec): Ditto.
2731 (bfd_elf32_h8300_vec): Ditto.
2732
41bd81ab
AM
27332002-01-23 Alan Modra <amodra@bigpond.net.au>
2734
2735 * elf64-ppc.c: Remove stale part of ABI comment.
2736 (NO_OPD_RELOCS): Define.
2737 (ppc64_elf_check_relocs): Use it.
2738 (ppc64_elf_relocate_section): Here too.
2739 (build_one_stub): Don't point function syms at the stub. Instead,
2740 hijack plt.offset.
2741 (ppc64_elf_relocate_section): Check whether REL24 relocs should
2742 really go to the stub. Make all dynamic relocs in opd against
2743 locals.
2744 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
2745 plt.offset.
2746
f304919d
RH
27472002-01-22 Richard Henderson <rth@redhat.com>
2748
2749 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
2750
c0ef99a7
AM
27512002-01-22 Alan Modra <amodra@bigpond.net.au>
2752
60ee0d4a
AM
2753 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
2754 TOC_BASE_OFF adjustment.
2755
c0ef99a7
AM
2756 * Makefile.am: Run "make dep-am".
2757 * Makefile.in: Regenerate.
2758 * po/SRC-POTFILES.in: Regenerate.
2759
64328b46
AM
27602002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
2761
2762 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
2763 host defines.
2764
59953665 27652002-01-21 Hans-Peter Nilsson <hp@axis.com>
58255df3
HPN
2766
2767 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
2768 Check for and emit error if sgot is NULL at this point.
2769
9596feea
JT
27702002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2771
2772 * config.bfd (ia64*-*-netbsd*): New target.
2773
7b45c6e1
AM
27742002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
2775
2776 * som.c (som_write_space_strings): Comment typo fix.
2777
e5094212
AM
27782002-01-21 Alan Modra <amodra@bigpond.net.au>
2779
e86ce104
AM
2780 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
2781 is_func_descriptor fields.
2782 (link_hash_newfunc): Init them.
2783 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
2784 dot are candidates for plt entries. When processing .opd relocs,
2785 set function descriptor strings to point inside function code
2786 string, and set new ppc_link_hash_entry fields.
2787 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
2788 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
2789 function descriptors. It's now done in..
2790 (func_desc_adjust): New.
2791 (ppc64_elf_func_desc_adjust): New.
2792 (define elf_backend_always_size_sections): Define.
2793 (ppc64_elf_hide_symbol): New.
2794 (define elf_backend_hide_symbol): Define.
2795 (allocate_dynrelocs): Remove code looking up function descriptors
2796 as that has been done earlier.
2797 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
2798 table.
2799 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
2800 up function descriptor.
2801 (build_one_stub): Look up the function code sym. Check for
2802 invalid plt offsets.
2803 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
2804 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
2805
e5094212
AM
2806 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
2807 boolean param.
2808 (_bfd_elf_link_hash_hide_symbol): Likewise.
2809 * elflink.h (elf_link_add_object_symbols): Adjust call to
2810 elf_backend_hide_symbol.
2811 (elf_fix_symbol_flags): Likewise.
2812 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
2813 than bfd_alloc.
2814 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
2815 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
2816 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2817 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
2818 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
2819 and adjust to suit.
2820 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
2821 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
2822 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2823
40b8271b
AM
28242002-01-18 Alan Modra <amodra@bigpond.net.au>
2825
2826 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
2827 dynamic function descriptor symbol, not the associated function
2828 symbol.
2829
55baa95b
EC
28302002-01-17 Eric Christopher <echristo@redhat.com>
2831
2832 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
2833
328577ad
NC
28342002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2835
2836 * po/bfd.pot: Regenerate.
2837 * po/fr.po: Regenerate.
2838
af746e92
AM
28392002-01-17 Alan Modra <amodra@bigpond.net.au>
2840
2841 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
2842 Remove "Elf_Internal_Shdr *" param.
2843 (_bfd_mips_elf_section_from_bfd_section): Ditto.
2844 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
2845 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
2846 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
2847 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
2848 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
2849 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
2850 function to override special sections. Remove hdr arg from
2851 backend call, and don't loop.
2852
175e9962
EC
28532002-01-16 Eric Christopher <echristo@redhat.com>
2854
2855 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
2856 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
2857 relocations requiring gp0 and gp.
2858
96a846ea
RE
28592002-01-16 Richard Earnshaw <rearnsha@arm.com>
2860
175e9962 2861 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
96a846ea
RE
2862 EF_ARM_VFP_FLOAT.
2863 (elf32_arm_print_private_bfd_data): Likewise.
2864
af3ae48d
NC
28652002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
2866
2867 * po/tr.po: Import new version.
2868
10ed1bba
AM
28692002-01-16 Alan Modra <amodra@bigpond.net.au>
2870
2871 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
2872 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
2873 (ORI_R0_R0_0): Correct.
2874
5d1634d7
AM
28752002-01-16 Alan Modra <amodra@bigpond.net.au>
2876
2877 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
2878 when plt_not_loaded.
2879 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
2880 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
2881 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
2882 (ppc64_elf_glink_code): Delete.
2883 (PPC64_ELF_GLINK_SIZE): Delete.
2884 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
2885 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
2886 ORI_R0_R0_0): Define.
2887 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
2888 (struct ppc_link_hash_table): Add sstub and plt_overflow.
2889 (ppc64_elf_link_hash_table_create): Init them.
2890 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
2891 Don't copy to shared lib.
2892 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
2893 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
2894 (allocate_dynrelocs <plt>): Don't change function sym here. Make
2895 room for .stub and .glink code.
2896 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
2897 DT_PPC64_GLINK.
2898 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
2899 bfd_elf64_bfd_final_link.
2900 (bfd_elf64_bfd_final_link): Don't define.
2901 (ppc64_elf_size_stubs): New.
2902 (build_plt_stub): New.
2903 (build_one_stub): New.
2904 (ppc64_elf_build_stubs): New.
2905 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
2906 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
2907 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
2908 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
2909 case output sections not separate. Adjust DT_RELASZ to not
2910 include plt relocs. Set reserved got entry. Set got and plt
2911 entry size.
2912 (elf_backend_got_header_size): Set to 8.
2913 * elf64-ppc.h: New file.
2914
c601ffdb
AM
29152002-01-16 Alan Modra <amodra@bigpond.net.au>
2916
2917 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
2918 sections, use bfd_section_list_remove.
2919 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2920 * elflink.h (elf_link_add_object_symbols): When removing all
2921 sections, use bfd_section_list_clear.
2922
8fb4cb7f
NC
29232002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2924
2925 * po/sv.po: New file: Swedish translation.
2926 * configure.in (ALL_LINGUAS): Add sv.
2927 * configure: Regenerate.
2928
d3c456e9
JJ
29292002-01-15 Jakub Jelinek <jakub@redhat.com>
2930
2931 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
2932 * elf.c (merge_sections_remove_hook): New function.
2933 (_bfd_elf_merge_sections): Pass it as 3rd argument to
2934 _bfd_merge_sections.
2935 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
2936 * libbfd.h: Rebuilt.
2937 * merge.c (_bfd_merge_sections): Add remove_hook argument.
2938 Call remove_hook if a SEC_EXCLUDE section is encountered.
2939
1f7fd478
NC
29402002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2941
2942 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
2943 (xstormy16_reloc_map): Initialise new field with correct howto
2944 table.
2945 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
2946 howto entry.
2947
b87011e9
MS
29482002-01-10 Michael Snyder <msnyder@redhat.com>
2949
2950 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
2951 (elfcore_write_pstatus): Use long instead of pid_t;
2952 * elf-bfd.h: Change prototypes to use long instead of pid_t;
2953
175e9962 29542002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
b4db1224
JT
2955
2956 * elf.c: Update copyright years.
2957 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
2958 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
2959
7c76fa91
MS
29602002-01-08 Michael Snyder <msnyder@redhat.com>
2961
2962 Add capability to write corefile note sections, for gdb.
2963 * elf.c (elfcore_write_note): New function.
2964 (elfcore_write_prpsinfo): New function.
2965 (elfcore_write_prstatus): New function.
2966 (elfcore_write_pstatus): New function.
2967 (elfcore_write_prfpreg): New function.
2968 (elfcore_write_prxfpreg): New function.
97996af6 2969 * elf-bfd.h: Add prototypes for above functions.
7c76fa91 2970
e1fddb6b
AO
29712002-01-08 Alexandre Oliva <aoliva@redhat.com>
2972
2973 * elf.c (elf_fake_sections): Propagate errors from
2974 elf_backend_fake_section.
2975
8d05742f
JT
29762002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2977
2978 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
2979 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
2980 (elf32-sh-nbsd.lo): New rule.
2981 * Makefile.in: Regenerate.
2982 * config.bfd (sh*le-*-netbsdelf*): New target.
2983 (sh*-*-netbsdelf*): New target.
2984 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
2985 (bfd_elf32_shnbsd_vec): New vector.
2986 (bfd_elf32_shlnbsd_vec): New vector.
2987 * configure: Regenerate.
2988 * elf32-sh-nbsd.c: New file.
2989 * targets.c: Update copyright years.
175e9962 2990 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
8d05742f
JT
2991 bfd_elf32_shnbsd_vec.
2992
1dba4cb4
AH
29932002-01-07 Aldy Hernandez <aldyh@redhat.com>
2994
2995 * coff-rs6000.c (READ20): Use bfd_scan_vma.
2996
47b22aef
GK
29972002-01-07 Geoffrey Keating <geoffk@redhat.com>
2998
2999 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
3000 of a symbol in a section that will be deleted.
3001
be2d1673
NC
30022002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3003
3004 * po/es.po: New file: Spanish translation.
3005 * configure.in (ALL_LINGUAS): Add es.
3006 * configure: Regenerate.
3007
d9cf1b54
AM
30082002-01-06 Steve Ellcey <sje@cup.hp.com>
3009
3010 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
3011 argument so we can handle HP-UX specially.
3012 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
3013 (elfNN_hpux_backend_section_from_bfd_section): New for support
3014 of SHN_IA_64_ANSI_COMMON.
3015 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
3016 (is_unwind_section_name): Add special HP-UX support.
3017 (elfNN_ia64_section_from_shdr): Add support for more sections.
3018 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
3019 add support for more sections.
3020 (elfNN_ia64_additional_program_headers): Modify
3021 is_unwind_section_name call.
3022 (elfNN_ia64_modify_segment_map): Remove assumption that there is
3023 only one unwind section in segment.
3024
3f3c5c34
AM
30252002-01-06 Alan Modra <amodra@bigpond.net.au>
3026
3027 * syms.c (_bfd_generic_make_empty_symbol): New function.
3028 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
3029 _bfd_generic_make_empty_symbol.
3030 * libbfd.h: Regenerate.
3031 * bfd-in2.h: Regenerate.
3032 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
3033 (hppabsd_core_get_symtab_upper_bound): Don't define.
3034 (hppabsd_core_get_symtab): Likewise.
3035 (hppabsd_core_print_symbol): Likewise.
3036 (hppabsd_core_get_symbol_info): Likewise.
3037 (hppabsd_core_bfd_is_local_label_name): Likewise.
3038 (hppabsd_core_get_lineno): Likewise.
3039 (hppabsd_core_find_nearest_line): Likewise.
3040 (hppabsd_core_bfd_make_debug_symbol): Likewise.
3041 (hppabsd_core_read_minisymbols): Likewise.
3042 (hppabsd_core_minisymbol_to_symbol): Likewise.
3043 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
3044 Formatting fixes.
3045 * hpux-core.c: Similarly.
3046 * irix-core.c: Similarly.
3047 * osf-core.c: Similarly.
3048 * sco5-core.c: Similarly.
3049 * binary.c (binary_make_empty_symbol): Remove function, define as
3050 _bfd_generic_make_empty_symbol.
3051 * ihex.c (ihex_make_empty_symbol): Likewise.
3052 * mmo.c (mmo_make_empty_symbol): Likewise.
3053 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
3054 * srec.c (srec_make_empty_symbol): Likewise.
3055 * versados.c (versados_make_empty_symbol): Likewise.
3056 * vms.c (_bfd_vms_make_empty_symbol): Remove.
3057 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
3058 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
3059 rather than _bfd_vms_make_empty_symbol.
3060 * vms-misc.c (new_symbol): Likewise.
3061
3f0a7f7f
AM
30622002-01-05 Alan Modra <amodra@bigpond.net.au>
3063
9e7b37b3
AM
3064 * section.c (bfd_section_init): Remove unnecessary initialisations.
3065 (bfd_section_list_clear): New function.
3066 (bfd_section_list_remove, bfd_section_list_insert): New macros.
3067 (_bfd_strip_section_from_output): Use them.
3068 * coffcode.h (coff_set_alignment_hook): Likewise.
3069 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
3070 * elf64-mips.c (mips_elf64_final_link): Likewise.
3071 * elf64-mmix.c (mmix_elf_final_link): Likewise.
3072 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3073 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
3074 * bfd-in2.h: Regenerate.
3075
3076 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
3077 rather than doing our own section handling. Clean up after errors
3078 with bfd_release and bfd_section_list_clear. Handle unexpected
3079 flags.
3080 * aoutf1.h (sunos4_core_file_p): Likewise.
3081 * aix386-core.c (aix386_core_file_p): Likewise.
3082 * cisco-core.c (cisco_core_file_validate): Likewise.
3083 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
3084 * trad-core.c (trad_unix_core_file_p): Likewise.
3085
3086 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
3087 with bfd_release and bfd_section_list_clear.
3088 * hpux-core.c (hpux_core_core_file_p): Likewise.
3089 * irix-core.c (irix_core_core_file_p): Likewise.
3090 * lynx-core.c (lynx_core_file_p): Likewise.
3091 * osf-core.c (osf_core_core_file_p): Likewise.
3092 * rs6000-core.c (rs6000coff_core_p): Likewise.
3093 * sco5-core.c (sco5_core_file_p): Likewise.
3094
3f0a7f7f
AM
3095 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
3096 sign extension adjustments without conditionals.
3097
a3aa38ee
JJ
30982002-01-04 Jakub Jelinek <jakub@redhat.com>
3099
3100 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
3101 CIE at .eh_frame start is removed due to no FDEs referencing it.
3102
8a8b2d4b
AJ
31032002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3104
3105 * config.bfd (x86_64-*-netbsd*): New target.
3106 * configure.in (x86_64-*-netbsd*): Set COREFILE
3107 to netbsd-core.lo.
3108 * configure: Regenerated.
3109
04b5af89
TR
31102002-01-03 Tom Rix <trix@redhat.com>
3111
3112 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
3113 for recent bfd_make_section_anyway change.
3114
51c5503b
NC
31152002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
3116
3117 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3118 R_ARM_THM_PC11 reloc.
3119
07f7c046
NC
31202002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3121
3122 * configure.in (LINGUAS): Add ja.
3123 * configure: Regenerate.
3124 * po/ja.po: Import from translation project's web site.
3125
5eefb65f
NC
31262002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3127
3128 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
3129 messages to ease translation into other languages.
3130
39e90f10 3131For older changes see ChangeLog-0001
56882138
AM
3132\f
3133Local Variables:
3134mode: change-log
3135left-margin: 8
3136fill-column: 74
3137version-control: never
3138End: