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