* opncls.c (_bfd_new_bfd_contained_in): Check return value of
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
301e3139
AM
12002-05-04 Bob Byrnes <byrnes@curl.com>
2
3 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
4 _bfd_new_bfd.
5
7c5fcef7
L
62002-05-03 H.J. Lu (hjl@gnu.org)
7
8 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
9 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
10 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
11 to hide a global symbol.
12 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
13 forced_local to true.
14
84de6048
RH
152002-05-02 Richard Henderson <rth@redhat.com>
16
17 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
18 vs SHN_UNDEF to zero.
19
805fc799
AM
202002-05-02 Alan Modra <amodra@bigpond.net.au>
21
c061c2d8
AM
22 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
23 16 bit reloc.
24 <R_PPC64_SECTOFF_DS>: Likewise.
25 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
26 SECTOFF reloc.
27 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
28 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
29 SECTOFF reloc.
30
805fc799
AM
31 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
32 (ppc64_elf_ha_reloc): New function.
33 (ppc64_elf_brtaken_reloc): New function.
34 (ppc64_elf_sectoff_reloc): New function.
35 (ppc64_elf_sectoff_ha_reloc): New function.
36 (ppc64_elf_toc_reloc): New function.
37 (ppc64_elf_toc_ha_reloc): New function.
38 (ppc64_elf_toc64_reloc): New function.
39 (ppc64_elf_unhandled_reloc): New function.
40 (ppc64_elf_howto_raw): Use the above.
41 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
42 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
43 <R_PPC64_SECTOFF_DS>: Likewise.
44 (IS_ABSOLUTE_RELOC): Update.
45 (struct ppc_link_hash_table): Add have_undefweak.
46 (ppc64_elf_link_hash_table_create): Init.
47 (func_desc_adjust): Set have_undefweak.
48 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
49 add the .sfpr blr when have_undefweak.
50 (ppc64_elf_setup_section_lists): Check hash table flavour.
51 (ppc64_elf_next_input_section): Move output_section->owner test to
52 ppc64elf.em.
53 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
54 and relocatable test. Return TOCstart and don't set elf_gp.
55 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
56 offset calculation. Add assert on weak sym branch tweaks.
57 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
58 (ppc64_elf_toc): Declare.
59 (ppc64_elf_next_input_section): Update.
60
818c39a3
AM
612002-05-01 Alan Modra <amodra@bigpond.net.au>
62
63 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
64 file_name.
65
721956f4
AM
662002-05-01 Alan Modra <amodra@bigpond.net.au>
67
68 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
69 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
70 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
71 call branches. Correct undefined weak destination.
72 (ppc64_elf_func_desc_adjust): Always create at least one blr in
73 .sfpr, and correct case where either only savef* or restf* is
74 needed.
75
76 Long branch stubs, multiple stub sections.
77 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
78 (ppc64_elf_next_input_section): Declare.
79 * elf64-ppc.c: Move linker-only prototypes.
80 (STUB_SUFFIX): Define.
81 (enum ppc_stub_type): New.
82 (struct ppc_stub_hash_entry): New.
83 (struct ppc_branch_hash_entry): New.
84 (struct ppc_link_hash_entry): Add stub_cache, oh.
85 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
86 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
87 Rename plt_overflow to stub_error.
88 (ppc_stub_hash_lookup): Define.
89 (ppc_branch_hash_lookup): Define.
90 (stub_hash_newfunc): New function.
91 (branch_hash_newfunc): New function.
92 (link_hash_newfunc): Init new fields.
93 (ppc64_elf_link_hash_table_create): Likewise.
94 (ppc64_elf_link_hash_table_free): New function.
95 (ppc_stub_name): New function.
96 (ppc_get_stub_entry): New function.
97 (ppc_add_stub): New function.
98 (create_linkage_sections): Use bfd_make_section_anyway. Create
99 .branch_lt and .rela.branch_lt sections. Don't create .stub.
100 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
101 and set up for plt call stubs. Link func and func desc syms.
102 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
103 (func_desc_adjust): Avoid hash lookup when func desc sym available
104 via shortcut, and set links when processing.
105 (ppc64_elf_hide_symbol): Likewise.
106 (allocate_dynrelocs): Don't allocate stub section here.
107 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
108 Remove sstub code.
109 (ppc_type_of_stub): New function.
110 (build_one_stub): Delete.
111 (ppc_build_one_stub): New function.
112 (ppc_size_one_stub): New function.
113 (ppc64_elf_setup_section_lists): New function.
114 (ppc64_elf_next_input_section): New function.
115 (group_sections): New function.
116 (get_local_syms): New function.
117 (ppc64_elf_size_stubs): Rewrite.
118 (ppc64_elf_build_stubs): Rewrite.
119 (ppc64_elf_relocate_section): Look up stub entry for REL24
120 relocs. Don't propagate REL14* to dynamic objects. Look for long
121 branch stubs if REL14* or REL24 relocs won't reach.
122 (bfd_elf64_bfd_link_hash_table_free): Define.
123
09c2219b
MM
1242002-04-30 Mark Mitchell <mark@codesourcery.com>
125
126 * bfd/config.bfd: Add support for powerpc-*-windiss.
127
07b678c0
TR
1282002-04-30 Tom Rix <trix@redhat.com>
129
130 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
131 symbol names into the hash table.
132
dbe341c6
TR
1332002-04-28 Tom Rix <trix@redhat.com>
134
135 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
136 calulating relocations.
137 (xcoff_complain_overflow) : Function table for relocation errors.
138 (xcoff_ppc_relocate_section): Use relocation and complain function
139 tables.
140 (xcoff_complain_overflow_unsigned_func): New complain function.
141 (xcoff_complain_overflow_signed_func): Same.
142 (xcoff_complain_overflow_bitfield_func): Same.
143 (xcoff_complain_overflow_dont_func): Same.
144 (xcoff_reloc_type_crel): New recot function.
145 (xcoff_reloc_type_br): Same.
146 (xcoff_reloc_type_ba): Same.
147 (xcoff_reloc_type_toc): Same.
148 (xcoff_reloc_type_rel): Same.
149 (xcoff_reloc_type_neg): Same.
150 (xcoff_reloc_type_pos): Same.
151 (xcoff_reloc_type_fail): Same.
152 (xcoff_reloc_type_noop): Same.
153 * libxcoff.h : Declare common parts for xcoff64.
154 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
155 and complain function tables.
156
985142a4
AM
1572002-04-28 Alan Modra <amodra@bigpond.net.au>
158
159 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
160 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
161
eba91044
AM
1622002-04-26 Alan Modra <amodra@bigpond.net.au>
163
e54fdaa5
AM
164 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
165 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
166
a50c1845
AM
167 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
168 same as the output before calling elf_link_input_bfd.
169
eba91044
AM
170 * coffcode.h (coff_compute_section_file_positions): Set
171 section_tail after shuffling section list.
172
3c25c5f6
NC
1732002-04-24 Christian Groessler <chris@groessler.org>
174
175 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
176 addresses are 23bit with a special layout, not plain 32bit
177 values. Prevent relocation of immediate values.
178
40d32fc6
CD
1792002-04-24 Chris G. Demetriou <cgd@broadcom.com>
180
181 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
182 MIPS-16 ASE flags are set, print something to indicate that.
183
067fa4a6
AM
1842002-04-23 Alan Modra <amodra@bigpond.net.au>
185
186 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
187 under which a plt call stub is used.
188 (final_link_relocate): Similarly.
189 (allocate_plt_static): Clear h-plabel except when plt entry is
190 exclusively used for a plabel.
191 (allocate_dynrelocs): Use the above to simplify plt sizing.
192 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
193 (elf32_hppa_link_hash_table_create): Init.
194 (BL22_RP): Define.
195 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
196 (elf32_hppa_check_relocs): Set has_22bit_branch.
197
198 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
199 (final_link_relocate): Likewise.
200
af40ce3c
JJ
2012002-04-22 Jakub Jelinek <jakub@redhat.com>
202
203 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
204 search table if some FDE is DW_EH_PE_aligned encoded either.
205 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
206
09ae86c2
JJ
2072002-04-22 Richard Smith <richard@ex-parrot.com>
208 Jakub Jelinek <jakub@redhat.com>
209
210 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
211 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
212 encoded personality.
213 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
214 for CIE/FDE removal.
215
deeb2cd7
TR
2162002-04-20 Tom Rix <trix@redhat.com>
217
218 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
219
99dc0092
AM
2202002-04-20 Alan Modra <amodra@bigpond.net.au>
221
aa3d5824
AM
222 * archures.c (bfd_lookup_arch): Move the list order comment..
223 (struct bfd_arch_info): ..to where it belongs.
224 * bfd-in2.h: Regenerate.
225
99dc0092
AM
226 * archures.c (bfd_lookup_arch): Add comment on list order.
227 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
228 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
229 is always at head of list.
230
7831a775
NC
2312002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
232
233 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
234 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
235 definition of these functions for ARM_WINCE builds as they are
236 not used.
237 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
238 for ARM_WINCE builds.
239
2402002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
241
242 * coff-arm.c (bfd_arm_process_before_allocation):
243
2442002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
245
246 * cpu-sh.c (scan_mach): Delete.
247 (arch_info_struct): Replace scan_mach with bfd_default_scan.
248 (bfd_sh_arch): Likewise.
249
3d8dbe36
NC
2502002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
251
252 * ihex.c (ihex_write_object_contents): Fix check for records
253 crossing 64K boundaries.
254
4ab82700
AM
2552002-04-16 Alan Modra <amodra@bigpond.net.au>
256
257 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
258 type rather than just assuming entries are ELF.
259 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
260 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
261 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
262 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
263 rather than elf_link_hash_entry.
264
036fe0fe
RH
2652002-04-15 Richard Henderson <rth@redhat.com>
266
267 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
268 n32 binaries.
269
c4f3d130
NC
2702002-04-15 Michael Snyder <msnyder@redhat.com>
271
272 * opncls.c (bfd_close): Write contents if writeable.
273 Minor formatting tidy-ups.
274
4ab82700 2752002-04-15 Alan Modra <amodra@bigpond.net.au>
27242387
AM
276
277 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
278
0c04d169
MS
2792002-04-12 Michael Snyder <msnyder@redhat.com>
280
281 * bfd-in.h (bfd_get_section_lma): New access macro.
282 Minor white-space fix-up.
283
89d4966f
AM
2842002-04-12 Alan Modra <amodra@bigpond.net.au>
285
286 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
287 header pad.
288
8d0da3c2
DD
2892002-04-09 DJ Delorie <dj@redhat.com>
290
291 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
292
05793179
NC
2932002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
294
295 * coffcode.h (coff_read_word): New.
296 (coff_compute_checksum): New.
297 (coff_apply_checksum): New.
298 (coff_write_object_contents): Call coff_apply_checksum () to
299 apply checksum to PE image.
300
46fe4e66
AM
3012002-04-08 Randolph Chung <tausq@debian.org>
302
303 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
304 (elf32_hppa_final_link): Split out sorting logic to..
305 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
306 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
307
3b5b409c
AC
3082002-04-07 Andrew Cagney <ac131313@redhat.com>
309
310 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
311 pattern.
312 * configure: Re-generate.
313
ac7b6ceb
AC
3142002-04-07 Andrew Cagney <ac131313@redhat.com>
315
316 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
317 is greater or equal to 4.3.3.
318 * configure: Regenerate.
319 Fix PR gdb/344.
320
44aa49bb
HPN
3212002-04-05 Hans-Peter Nilsson <hp@axis.com>
322
323 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
324 R_CRIS_32_PCREL>: Fix typo in name.
325 (cris_elf_check_relocs): Always create .rela.got here when
326 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
327 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
328 assume it's created.
329
e2d34d7d
DJ
3302002-04-04 Daniel Jacobowitz <drow@mvista.com>
331
332 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
333 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
334 define.
335 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
336 * bfd.c (bfd_link_hash_table_free): Define.
337 * binary.c (binary_bfd_link_hash_table_free): Define.
338 * bout.c (b_out_bfd_link_hash_table_free): Define.
339 * coff-rs6000.c (rs6000coff_vec): Include
340 _bfd_generic_link_hash_table_free.
341 (pmac_xcoff_vec): Likewise.
342 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
343 (aix5coff64_vec): Likewise.
344 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
345 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
346 (bfd_elf32_bfd_link_hash_table_free): Define.
347 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
348 (bfd_elf32_bfd_link_hash_table_free): Define.
349 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
350 define.
351 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
352 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
353 * ieee.c (ieee_bfd_link_hash_table_free): Define.
354 * ihex.c (ihex_bfd_link_hash_table_free): Define.
355 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
356 (_bfd_generic_link_hash_table_free): Add prototype.
357 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
358 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
359 * linker.c (_bfd_generic_link_hash_table_free): New function.
360 * mmo.c (mmo_bfd_link_hash_table_free): Define.
361 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
362 * oasys.c (oasys_bfd_link_hash_table_free): Define.
363 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
364 * som.c (som_bfd_link_hash_table_free): Define.
365 * srec.c (srec_bfd_link_hash_table_free): Define.
366 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
367 * versados.c (versados_bfd_link_hash_table_free): Define.
368 * vms.c (vms_bfd_link_hash_table_free): New function.
369 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
370
371 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
372 instead of bfd_alloc.
373 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
374 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
375 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
376 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
377 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
378 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
379 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
380 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
381 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
382 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
383 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
384 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
385 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
386 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
387 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
388 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
389 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
390 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
391 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
392 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
393 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
394 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
395 * m68klinux.c (linux_link_hash_table_create): Likewise.
396 * sparclinux.c (linux_link_hash_table_create): Likewise.
397 * sunos.c (sunos_link_hash_table_create): Likewise.
398 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
399
400 * targets.c: Add _bfd_link_hash_table_free to xvec.
401
402 * bfd-in2.h: Regenerate.
403 * libbfd.h: Regenerate.
404 * libcoff.h: Regenerate.
405
830629ab
AM
4062002-04-04 Alan Modra <amodra@bigpond.net.au>
407
408 * dep-in.sed: Cope with absolute paths.
409 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
410 Run "make dep-am".
411 * Makefile.in: Regenerate.
412 * coff-arm.c: Fix copyright date.
413 * cpu-h8300.c: Likewise.
414 * cpu-i370.c: Likewise.
415 * cpu-s390.c: Likewise.
416 * cpu-mips.c: Likewise.
417 * po/SRC-POTFILES.in: Regenerate.
418
c6e90b02
TS
4192002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
420
421 * Makefile.am: Add elfxx-mips.c to the known backends.
422 (elf32-mips.lo): remove dependency to coff/external.h.
423 * Makefile.in: Regenerate.
424 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
425 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
426 accordingly.
427 * configure: Regenerate.
428 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
429 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
430 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
431 MIPS specific backend functions.
432 * elf32-mips.c: Moved most code to elfxx-mips.c.
433 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
434 static.
435 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
436 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
437 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
438 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
439 interface to allow selection of the right REL or RELA howto table.
440 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
441 static. Let it refuse n32 objects.
442 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
443 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
444 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
445 (elf32_mips_ignore_discarded_relocs): Rename from
446 _bfd_elf32_mips_ignore_discarded_relocs.
447 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
448 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
449 (elf_mips_howto_table_rela): Remove.
450 * elf64-mips.c: Moved most code to elfxx-mips.c.
451 (bfd_elf64_bfd_reloc_type_lookup): Make static.
452 (mips_elf64_rtype_to_howto): New function.
453 (mips_elf64_object_p): Likewise.
454 (elf64_mips_irix_compat): Likewise.
455 * elfxx-mips.c: New file containing common code merged together from
456 elf32-mips.c and elf64-mips.c.
457 * elfxx-mips.h: New file containing MIPS specific prototypes from
458 elf-bfd.h.
459 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
460 elf_backend_mips_rtype_to_howto.
461
d8dce692
AM
4622002-04-04 Alan Modra <amodra@bigpond.net.au>
463
464 * srec.c (MAXCHUNK, Chunk): Revise comments.
465 (srec_write_record): Correct buffer size.
466 (srec_write_header): Do without intermediate buffer.
467 (srec_write_section): Validate Chunk.
468 (srec_write_terminator): Pass NULL instead of dummy buffer.
469 (srec_write_symbols): Pass file and symbol names directly to
470 bfd_bwrite so sprintf won't overflow buffer.
471
b88a866a
JJ
4722002-04-03 Jakub Jelinek <jakub@redhat.com>
473
474 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
475 PC relative relocs against hidden symbols.
476 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
477
d7866f04
AM
4782002-04-03 Alan Modra <amodra@bigpond.net.au>
479
480 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
481 LMAs, loop over segments until p_vaddr and p_memsz specify an
482 extent enclosing the section.
483
9e81ee67
NC
4842002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
485
486 * ihex.c (ihex_write_object_contents): Do not allow records to
487 cross a 64K boundary - wrap if necessary.
488
d2b64500
JT
4892002-04-01 Nathan Williams <nathanw@wasabisystems.com>
490
491 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
492 which caused the returned LWP ID to always be 0.
493
e36f7d53
RH
4942002-04-01 Richard Henderson <rth@redhat.com>
495
496 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
497 (elf32_sparc_relocate_section): Use it to figure out when to
498 initialize .got entries.
499 * elf64-sparc.c: Similarly.
500
e92d460e
AM
5012002-03-28 Alan Modra <amodra@bigpond.net.au>
502
503 * linker.c (link_action): Ignore duplicate warning syms.
504 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
505 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
506 (elf_adjust_dynamic_symbol): Likewise.
507 (elf_export_symbol): Likewise.
508 (elf_link_find_version_dependencies): Likewise.
509 (elf_link_assign_sym_version): Likewise.
510 (elf_link_sec_merge_syms): Likewise.
511 (elf_link_output_extsym): Likewise.
512 (elf_gc_sweep_symbol): Likewise.
513 (elf_gc_propagate_vtable_entries_used): Likewise.
514 (elf_gc_smash_unused_vtentry_relocs): Likewise.
515 (elf_gc_allocate_got_offsets): Likewise.
516 (elf_collect_hash_codes): Likewise.
517 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
518 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
519 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
520 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
521 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
522 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
523 (elf_cris_discard_excess_dso_dynamics): Likewise.
524 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
525 (mark_PIC_calls): Likewise.
526 (allocate_plt_static): Likewise.
527 (allocate_dynrelocs): Likewise.
528 (readonly_dynrelocs): Likewise.
529 * elf32-i386.c (allocate_dynrelocs): Likewise.
530 (readonly_dynrelocs): Likewise.
531 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
532 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
533 * elf32-mips.c (mips_elf_output_extsym): Likewise.
534 (mips_elf_sort_hash_table_f): Likewise.
535 (mips_elf_check_mips16_stubs): Likewise.
536 * elf32-s390.c (allocate_dynrelocs): Likewise.
537 (readonly_dynrelocs): Likewise.
538 * elf32-sh.c (sh_elf_discard_copies): Likewise.
539 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
540 (xstormy16_relax_plt_realloc): Likewise.
541 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
542 (elf64_alpha_output_extsym): Likewise.
543 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
544 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
545 (mips_elf64_check_mips16_stubs): Likewise.
546 (mips_elf64_output_extsym): Likewise.
547 * elf64-ppc.c (func_desc_adjust): Likewise.
548 (allocate_dynrelocs): Likewise.
549 (readonly_dynrelocs): Likewise.
550 * elf64-s390.c (allocate_dynrelocs): Likewise.
551 (readonly_dynrelocs): Likewise.
552 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
553 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
554 (readonly_dynrelocs): Likewise.
555 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
556 * aoutx.h (aout_link_write_other_symbol): Likewise.
557 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
558 (_bfd_coff_write_global_sym): Likewise.
559 * i386linux.c (linux_tally_symbols): Likewise.
560 * m68klinux.c (linux_tally_symbols): Likewise.
561 * sparclinux.c (linux_tally_symbols): Likewise.
562 * pdp11.c (aout_link_write_other_symbol): Likewise.
563 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
564 * xcofflink.c (xcoff_build_ldsyms): Likewise.
565 (xcoff_write_global_symbol): Likewise.
566
567 * cofflink.c (_bfd_coff_final_link): Formatting.
568 * cpu-mips.c (mips_compatible): Make static, prototype.
569 * elf32-i386.c (elf_i386_check_relocs): Formatting.
570 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
571 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
572 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
573 (mips_elf64_final_link): Likewise.
574 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
575 prototype.
576
2106126f
NC
5772002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
578
579 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
580 (SWAP_OUT_RELOC_OFFSET): Define.
581
b99d1833
AM
5822002-03-27 Gregory Steuck <greg@nest.cx>
583
584 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
585 terminating NULL if empty symbol table.
586 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
587
ad43ed4c
L
5882002-03-26 H.J. Lu (hjl@gnu.org)
589
590 * elflink.h (elf_link_input_bfd): Revert the last change since
591 the gcc exception handling isn't fixed yet.
592
3851fca4
L
5932002-03-26 H.J. Lu (hjl@gnu.org)
594
595 * elflink.h (elf_link_input_bfd): Complain about relocations
596 against local symbols in discarded sections.
597
b91afed7
AM
5982002-03-26 Alan Modra <amodra@bigpond.net.au>
599
600 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
601
dba143ef
AM
6022002-03-23 Alan Modra <amodra@bigpond.net.au>
603
604 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
605 section file offset for !SEC_LOAD sections.
606
ee29b9fb
RE
6072002-03-21 Richard Earnshaw <rearnsha@arm.com>
608
830629ab
AM
609 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
610 <case R_ARM_GOT>): Handle relocations to Thumb functions.
ee29b9fb 611
54327882
AM
6122002-03-21 Alan Modra <amodra@bigpond.net.au>
613
614 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
615 Whitespace changes.
616 * archive.c: Update copyright date.
617 * bfd-in2.h: Regenerate.
618 * libbfd.h: Regenerate.
619 * Makefile.am: Run "make dep-am"
620 * Makefile.in: Regenerate.
621 * po/SRC-POTFILES.in: Regenerate.
622
1ee24f27
DJ
6232002-03-20 Daniel Jacobowitz <drow@mvista.com>
624
625 * dwarf2.c (struct funcinfo): Move up.
626 (lookup_address_in_function_table): New argument function_ptr.
627 Set it.
628 (lookup_address_in_line_table): New argument function. If function
629 is non-NULL, use it to handle ``addr'' before the first line note of
630 the function.
631 (comp_unit_find_nearest_line): Update and swap calls to
632 lookup_address_in_function_table and lookup_address_in_line_table.
633 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
634 N_SLINE encountered if we see an N_FUN before any N_SLINE.
635
51b9608c
TR
6362002-03-20 Tom Rix <trix@redhat.com>
637
638 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
639 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
640 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
641
789c90aa
TR
6422002-03-19 Tom Rix <trix@redhat.com>
643
644 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
645 dynamic objects in archives.
646
1da54d81
HPN
6472002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
648
649 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
650 STT_NOTYPE symbols to STT_OBJECT.
651
7831a775 6522002-03-18 Jan Hubicka <jh@suse.cz>
beb43bb9
JH
653
654 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
655
eb1e0e80
NC
6562002-03-18 Tom Rix <trix@redhat.com>
657
658 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
659 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
660 * coff-rs6000 (do_pad) : New function for archive padding.
661 (do_copy) : New function for object file copying in archives.
662 (do_shared_object_padding) : New function for padding shared
663 objects to their text section alignment in archives.
664 (bfd_xcoff_ar_achive_set_magic) : Stub.
665 (xcoff_write_armap_big) : Use do_copy and do_pad.
666 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
667 do_copy and do_pad.
668 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
669 bfd_xcoff_magic_number.
670 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
671 fop.
672 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
673 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
674 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
675 * rs6000-core.c : Update copyright date.
676 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
677 csectpp.
678 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
679 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
680 (coff_set_flags) : Use bfd_xcoff_magic_number.
681 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
682 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
683 * Makefile.am : Same.
684 * config.bfd : Same.
685 * targets.c : Same.
686 * configure : Regnerate.
687 * Makefile.in : Same.
688 * bfd-in2.h : Same.
689
a1c259a1
NC
6902002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
691
692 * po/fr.po: Updated version.
693
4dae1ae7
AM
6942002-03-18 Alan Modra <amodra@bigpond.net.au>
695
696 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
697 * libbfd.h: Regenerate.
698 * archive.c (coff_write_armap): Pass on failures from
699 bfd_write_bigendian_4byte_int.
700
36b4f6e7
L
7012002-03-14 H.J. Lu <hjl@gnu.org>
702
703 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
704 error to bfd_error_nonrepresentable_section for reinit_array
705 section in DSO.
706
a1aefc76
NC
7072002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
708
a181be0a
NC
709 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
710 OR it in rather than replacing previously selected flags.
711
a1aefc76
NC
712 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
713 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
714
c119f9b8
AM
7152002-03-14 Alan Modra <amodra@bigpond.net.au>
716
717 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
718 (N): Use the above.
719 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
720 ensure reloc size matches before calling elf_link_input_bfd.
721 Add an assert to check reloc size when counting output relocs.
722
c295a511
NC
7232002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
724
725 * mmo.c (mmo_get_loc): Return NULL rather than false.
726
9ce88e60
NC
7272002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
728
729 * po/fr.po: Updated version.
730
4ddafab0
AM
7312002-03-13 Alan Modra <amodra@bigpond.net.au>
732
b74fa2cd
AM
733 * archures.c (bfd_default_compatible): Test bits_per_word.
734 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
735 bfd_default_compatible.
736 * cpu-i370.c (i370_compatible): Likewise.
737 * cpu-sparc.c (sparc_compatible): Likewise.
738 * cpu-h8300.c (compatible): Test in->arch == out->arch.
739
40b829d4
AM
740 * elflink.h: Formatting fixes.
741 (elf_link_output_extsym): Merge undefined and undef weak cases.
742
4ddafab0
AM
743 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
744 when word size of input matches output word size.
745
dd53c801
AJ
7462002-03-12 Andreas Jaeger <aj@suse.de>
747
748 * cpu-i386.c (i386_compatible): New. Use it instead of
749 bfd_default_compatible.
750
aa066ac8
L
7512002-03-07 H.J. Lu (hjl@gnu.org)
752
753 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
754 as the type for bfd_reloc_val.
755
1bf42538
JL
7562002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
757
758 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
759 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
760 (elf_hppa_final_link_relocate): Correct relocations for indirect
761 references to local data through the DLT. Fix .opd creation for
762 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
763 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
764 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
765 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
766 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
767 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
768 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
769
86eaf01e
JJ
7702002-03-05 Jakub Jelinek <jakub@redhat.com>
771
772 * merge.c (_bfd_merge_sections): Don't segfault if there
773 is nothing to merge due to GC.
774
c44233aa
AM
7752002-03-05 Alan Modra <amodra@bigpond.net.au>
776
039cc25f
AM
777 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
778 symbols that have been forced local.
779
c44233aa
AM
780 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
781 to output forced local syms for non-shared link.
782 (elf_link_output_extsym): Tweak condition for calling backend
783 adjust_dynamic_symbol so that previous behaviour is kept.
784 Whitespace changes throughout file.
785
25e27870
L
7862002-03-04 H.J. Lu <hjl@gnu.org>
787
788 * elf.c (bfd_section_from_shdr): Handle special sections,
789 .init_array, .fini_array and .preinit_array.
790 (elf_fake_sections): Likewise.
791
792 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
793 DT entry only if the section is in output for .init_array,
794 .fini_array and .preinit_array. Complain about .preinit_array
795 section in DSO.
796 (elf_bfd_final_link): Warn zero size for .init_array,
797 .fini_array and .preinit_array sections.
798
799 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
800 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
801 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
802 .preinit_array.
803
bb2a49f2
AM
8042002-03-04 Alan Modra <amodra@bigpond.net.au>
805
806 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
807 * configure: Regenerate.
808
38487e5e
TR
8092002-03-02 Tom Rix <trix@redhat.com>
810
c44233aa
AM
811 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
812 symbolic equiv.
38487e5e
TR
813 * coff-rs6000.c (xcoff_howto_table): Same.
814
30831527
RH
8152002-03-01 David Mosberger <davidm@hpl.hp.com>
816
817 * elflink.h (size_dynamic_sections): If section named
818 ".preinit_array" exists, create DT_PREINIT_ARRAY and
819 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
820 ".init_array" and ".fini_array".
821 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
822 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
823 DT_FINI_ARRAY.
824
c8e5ddc8
AM
8252002-02-26 Andrew Macleod <amacleod@cygnus.com>
826
827 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
828 dynsyms.
829
96e0dda4
AM
8302002-02-25 Alan Modra <amodra@bigpond.net.au>
831
1c5b6bf8
AM
832 * elf64-hppa.h: Update copyright date.
833
96e0dda4
AM
834 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
835 (ppc64_elf_relocate_section): Don't generate power4 style branch
836 hints for *_BRTAKEN and *_BRNTAKEN relocs.
837
0fb19cbc
JJ
8382002-02-22 Jakub Jelinek <jakub@redhat.com>
839
840 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
841 last patch.
842 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
843
c434dee6
AJ
8442002-02-21 Andreas Jaeger <aj@suse.de>
845
846 * elf64-x86-64.c: Major rework that introduces all recent changes
847 to the x86-64 backend. Get a closer match to elf32-i386.
848 (struct elf64_x86_64_dyn_relocs): Rename from
849 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
850 all users.
851 (struct elf64_x86_64_link_hash_table): Add short cuts to some
852 sections.
853 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
854 remove casts, initialize new hash members.
855 (create_got_section): New.
856 (elf64_x86_64_create_dynamic_sections): New.
857 (elf64_x86_64_copy_indirect_symbol): New.
858 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
859 relocs, .got or .relgot here but do it in allocate_dynrelocs.
860 Reference count possible .plt and .got entries. Don't test input
861 section SEC_READONLY here to try to avoid copy relocs, and keep
862 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
863 DF_TEXTREL here. Delay setting of variables until needed. Cache
864 pointer to "sreloc" section in elf_section_data. Tweak condition
865 under which .got created. Report files with bad relocation
866 section names.
867 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
868 Reference count possible .plt entries. Don't deallocate .got and
869 .relgot space here.
870 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
871 do copy reloc processing for weakdefs. Remove redundant casts and
872 aborts. Delay setting of vars until needed. Move creation of
873 dynamic symbols and allocation of .plt and .rela.plt to
874 allocate_dynrelocs. Replace BFD_ASSERT with abort.
875 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
876 (allocate_dynrelocs): New.
877 (readonly_dynrelocs): New.
878 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
879 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
880 Zero out the dynamic allocated content space.
881 (elf64_x86_64_discard_copies): Removed.
882 (elf64_x86_64_relocate_section): Make use of dynamic section
883 short-cuts. Localise vars, and delay setting. Better error
884 reporting, replace BFD_ASSERT with abort. Check
885 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
886 regular object file and tread the weak definition as the normal
887 one. Don't discard relocs for undefweak or undefined symbols and
888 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
889 relocs.
890 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
891 symbols that have been forced local. Use same test to decide if
892 we can use a relative reloc for got as relocate_section. Expand
893 SHN_UNDEF comment. Move expressions out of function calls.
894 Replace BFD_ASSERT with abort.
895 (bfd_elf64_bfd_final_link): Removed.
896 (elf_backend_copy_indirect_symbol): Define.
897
ff3a6ee3
TR
8982002-02-20 Tom Rix <trix@redhat.com>
899
900 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
901 (_bfd_xcoff_reloc_type_lookup): Use it.
902 * coff64-rs6000.c (xcoff64_howto_table): Same.
903 (xcoff64_reloc_type_lookup): Same.
c434dee6 904
a68d41fb
AM
9052002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
906
907 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
908 little endian.
909
befc3abb
MS
9102002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
911
912 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
913 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
914 * bfd-in2.h: Regenerate.
915 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
916 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
917 with "s390:64-bit".
918 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
919 (elf_s390_reloc_type_lookup): Likewise.
920 (elf_s390_check_relocs): Likewise.
921 (elf_s390_gc_sweep_hook): Likewise.
922 (elf_s390_relocate_section): Likewise.
923 (elf_s390_object_p): Use renamed architecture define.
924 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
925
6eeeec9b
FCE
9262002-02-19 Frank Ch. Eigler <fche@redhat.com>
927
928 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
929
0bb2d96a
JJ
9302002-02-19 Jakub Jelinek <jakub@redhat.com>
931
932 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
933 absptr -> pcrel optimization for shared libs.
934 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
935 library cannot be converted to pcrel.
936 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
937 relative.
938 * elf32-i386.c (elf_i386_relocate_section): If
939 _bfd_elf_section_offset returned -2, skip, but make sure the
940 relocation is installed.
941 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
942 * elf32-cris.c (cris_elf_relocate_section): Likewise.
943 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
944 * elf32-i370.c (i370_elf_relocate_section): Likewise.
945 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
946 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
947 * elf32-s390.c (elf_s390_relocate_section): Likewise.
948 * elf32-sh.c (sh_elf_relocate_section): Likewise.
949 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
950 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
951 * elf64-s390.c (elf_s390_relocate_section): Likewise.
952 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
953 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
954 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
955 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
956 _bfd_elf_section_offset returning -2 the same way as -1.
957 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
958 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
959 and BFD_ASSERT.
960 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
961
69f284c7
TR
9622002-02-18 Tom Rix <trix@redhat.com>
963
964 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
965 (bfd_xcoff_size_dynamic_sections): Same.
966 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
967 (bfd_xcoff_size_dynamic_sections): Same.
968 * coff-rs6000.c (xcoff_generate_rtinit): Same.
969 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
970 * libxcoff.h (struct xcoff_backend_data_rec): Same.
971 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
972 * bfd-in2.h: Regenerate.
973
82bd7b59
AM
9742002-02-18 Alan Modra <amodra@bigpond.net.au>
975
976 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
977 (struct ppc_link_hash_table): Add sfpr.
978 (ppc64_elf_link_hash_table_create): Init it.
979 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
980 .glink out to..
981 (create_linkage_sections): ..here. Make .sfpr too.
982 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
983 dynobj early.
984 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
985 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
986 ._restf* functions, and create as needed.
987 (func_desc_adjust): Only force_local for shared libs.
988
ef1355e8
NC
9892002-02-18 David O'Brien <obrien@FreeBSD.org>
990
991 * configure.in: Bump version number post 2.12 branching.
992 * configure: Regenerate.
993
dfa36a69
HPN
9942002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
995
996 * mmo.c: Correct and improve comments.
997 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
998 zero-pad. Use input to fill up non-empty bfd buffer.
999 (mmo_flush_chunk): New function.
1000 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
1001 changed. Don't emit location specifier if VMA is same as
1002 *LAST_VMAP after omitting leading zero contents. Call
1003 mmo_flush_chunk before emitting location specifier.
1004 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
1005 with mmo_write_loc_chunk calls.
1006 (mmo_internal_write_section): Call mmo_flush_chunk after
1007 mmo_write_chunk.
1008 (mmo_write_symbols_and_terminator): Move :Main to first position
1009 in symbol array. Add faked one if it does not exist if there are
1010 other symbols. Don't add it if there are no symbols at all. Move
1011 out test for value of :Main from symbol loop. Rename table
1012 fakemain to maintable and variable mainsym to fakemain.
1013
ccf00ab6
RH
10142002-02-15 Richard Henderson <rth@redhat.com>
1015
1016 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
1017 section with no got matches any got. Simplify error generaion.
1018
88eaccc2
AM
10192002-02-15 Alan Modra <amodra@bigpond.net.au>
1020
fd96f80f
AM
1021 Support arbitrary length fill patterns.
1022 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
1023 (_bfd_default_link_order): Remove bfd_fill_link_order code.
1024 Call default_data_link_order.
1025 (default_fill_link_order): Delete.
1026 (default_data_link_order): New function.
1027 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
1028 of bfd_fill_link_order with bfd_data_link_order.
1029 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
1030 * elf64-mips.c (mips_elf64_final_link): Likewise.
1031
88eaccc2
AM
1032 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
1033 Correct value returned in "end" for "0x<non-hex>".
1034
e2fd756b
NC
10352002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
1036
1037 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
1038 (scan): Test against 'mach' field in info structure.
1039
edd29cf9
AM
10402002-02-14 Alan Modra <amodra@bigpond.net.au>
1041
1042 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
1043
1e30956e 10442002-02-14 Matt Fredette <fredette@netbsd.org>
76f57f3a
JT
1045
1046 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
1047 EF_M68000.
1048
bf36db18
NC
10492002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
1050
1051 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
edd29cf9
AM
1052 non-zero physical addresses when adjusting the LMAs of new
1053 sections.
bf36db18 1054
189c6563
AM
10552002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1056
1057 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
1058 from _bfd_elf_hppa_gen_reloc_type.
1059 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
1060 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
1061 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
1062 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
1063
e948afaf
AO
10642002-02-12 Alexandre Oliva <aoliva@redhat.com>
1065
1066 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
1067 loading its contents if there's nothing to do in it.
1068
19397422
AM
10692002-02-12 Alan Modra <amodra@bigpond.net.au>
1070
0ad3a73b
AM
1071 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
1072 64k boundary.
1073
19397422
AM
1074 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
1075 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
1076 (ppc64_elf_finish_dynamic_sections): Set values for them.
1077
51316059
MS
10782002-02-11 Michael Snyder <msnyder@redhat.com>
1079
1080 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
1081 * elf.c (elfcore_grok_pstatus): Add prototype.
1082 (elfcore_grok_lwpstatus): Add prototype.
1083 (elfcore_write_lwpstatus): New function.
1084 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
1085
518313c3
AO
10862002-02-11 Alexandre Oliva <aoliva@redhat.com>
1087
1088 * elf32-sh.c: Added missing prototypes.
1089 * elf32-sh64.c: Likewise.
1090 (sh_elf_align_loads): Mark unused args as such.
1091 * elf64-sh64.c: Added missing prototypes.
1092 (struct elf_sh64_link_hash_entry): Fix typo.
1093 (sh_elf64_relocate_section): Fix info argument passed to
1094 _bfd_elf_section_offset.
1095
2c73f9d8
AM
10962002-02-11 Alan Modra <amodra@bigpond.net.au>
1097
1098 * Makefile.am: "make dep-am".
1099 * Makefile.in: Regenerate.
1100 * aclocal.m4: Regenerate.
1101 * config.in: Regenerate.
1102 * configure: Regenerate.
1103
d426c6b0
DJ
11042002-02-10 Daniel Jacobowitz <drow@mvista.com>
1105
1106 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
1107 variable warnings.
1108 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
1109 comparison warning.
1110 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
1111 cast warnings for the common case.
1112
e58ee0cd
HPN
11132002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
1114
1115 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
1116 vectors.
1117 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
1118 vectors.
1119
7793f4d0
RH
11202002-02-09 Richard Henderson <rth@redhat.com>
1121
1122 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
1123 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
1124 (elf64_alpha_relocate_section): Likewise.
1125 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
1126 * bfd-in2.h, libbfd.h: Rebuild.
1127
7e799044
HPN
11282002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1129
1130 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
1131 that base-plus-offset reloc accounting is consistent.
1132 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
1133 up to date for undefined symbols.
1134
027d73eb
EC
11352002-02-08 Eric Christopher <echristo@redhat.com>
1136
1137 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1138
1139 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
1140 sections for the O32 ABI.
1141
517662d4
CD
11422002-02-08 Chris Demetriou <cgd@broadcom.com>
1143
1144 * elf32-arm.h: Fix formatting of _("...").
1145 * elf32-d10v.c: Likewise.
1146 * elf32-m68k.c: Likewise.
1147 * elf32-mips.c: Likewise.
1148
5e37cc46
NC
11492002-02-08 Ivan Guzvinec <ivang@opencores.org>
1150
1151 * coff-or32.c: Fix compile time warning messages.
1152
fbca6ad9
AO
11532002-02-08 Alexandre Oliva <aoliva@redhat.com>
1154
1155 Contribute sh64-elf.
1156 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
1157 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
1158 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
1159 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
1160 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
1161 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
1162 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
1163 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
1164 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
1165 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
1166 New relocs.
1167 * libbfd.h, bfd-in2.h: Rebuilt.
1168 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
1169 (sh_reloc_map): Map them.
1170 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1171 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
1172 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
1173 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1174 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
1175 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
1176 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
1177 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
1178 datalabel_got_offset.
1179 (sh_elf_link_hash_newfunc): Initialize it.
1180 (sh_elf_relocate_section): Augment the scope of
1181 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
1182 GOT and GOTOFF handling to new SHmedia relocation types. Support
1183 GOT_BIAS.
1184 (sh_elf_check_relocs): Likewise.
1185 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
1186 PLT entries using movi_shori_putval. Support GOT_BIAS.
1187 (sh_elf_finish_dynamic_sections): Likewise.
1188 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
1189 relocation, it's now done by the caller.
1190 (GOT_BIAS): New.
1191 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
1192 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
1193 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
1194 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
1195 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
1196 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
1197 sh64_elf64_hash_table): New.
1198 (sh_elf64_howto_table): Introduce new relocs.
1199 (sh_elf64_info_to_howto): Accept new PIC relocs.
1200 (sh_elf64_relocate_section): Augment the scope of
1201 seen_stt_datalabel. Support new PIC relocs.
1202 (sh_elf64_check_relocs): Support new PIC relocs.
1203 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
1204 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
1205 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
1206 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
1207 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
1208 movi_shori_putval, movi_3shori_putval,
1209 sh64_elf64_create_dynamic_sections,
1210 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
1211 sh64_elf64_size_dynamic_sections,
1212 sh64_elf64_finish_dynamic_symbol,
1213 sh64_elf64_finish_dynamic_sections): New.
1214 (elf_backend_create_dynamic-sections,
1215 bfd_elf64_bfd_link_hash_table_create,
1216 elf_backend_adjust_dynamic_symbol,
1217 elf_backend_size_dynamic_sections,
1218 elf_backend_finish_dynamic_symbol,
1219 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1220 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1221 elf_backend_got_header_size, elf_backend_plt_header_size):
1222 Define.
1223 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1224 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
1225 match official numbers and names; moved unmaching ones to the
1226 range 0xf2-0xff.
1227 * elf32-sh64.c, elf64-sh64.c: Likewise.
1228 2001-03-12 DJ Delorie <dj@redhat.com>
1229 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
1230 sections.
1231 2001-03-12 DJ Delorie <dj@redhat.com>
1232 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
1233 be aligned.
1234 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
1235 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1236 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
1237 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
1238 .cranges section with SEC_SORT_ENTRIES set.
1239 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
1240 incoming sorted .cranges section.
1241 (sh64_bfd_elf_copy_private_section_data): New.
1242 (sh64_elf_final_write_processing): Only sort .cranges and modify
1243 start address if called by linker.
1244 2001-01-08 Ben Elliston <bje@redhat.com>
1245 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
1246 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
1247 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
1248 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1249 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
1250 line. Add comments before all entries.
1251 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
1252 comment.
1253 (sh_elf64_reloc): Correct head comment.
1254 (sh_elf64_relocate_section): Correct spacing.
1255 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
1256 instead call reloc_dangerous callback.
1257 <case R_SH_SHMEDIA_CODE>: New case.
1258 (sh_elf64_gc_mark_hook): Correct spacing.
1259 (sh_elf64_check_relocs): Ditto.
1260 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
1261 New case.
1262 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
1263 functions.
1264 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
1265 clarify describing comment. Add comments before all entries.
1266 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
1267 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
1268 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1269 Sort .cranges section in final link. Prepare to set bit 0 on
1270 entry address.
1271 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
1272 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
1273 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
1274 .cranges section.
1275 (sh64_backend_section_from_shdr): New, to recognize
1276 SHT_SH5_CR_SORTED on incoming .cranges section.
1277 (elf_backend_section_from_shdr): Define.
1278 (sh64_elf_final_write_processing): Sort outgoing .cranges
1279 section. (New, temporarily disabled:) Set bit 0 on entry address
1280 according to ISA type.
1281 (sh64_find_section_for_address): New.
1282 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
1283 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
1284 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
1285 bfd_malloc, not xmalloc.
1286 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
1287 global.
1288 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
1289 temporarily disabled) setting bit 0 on entry address.
1290 (elf_backend_final_write_processing): Define.
1291 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1292 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
1293 be a proper relocation for PTA and PTB rather than a marker.
1294 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
1295 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
1296 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
1297 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
1298 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
1299 Zero src_mask.
1300 * elf64-sh64.c: Ditto.
1301 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
1302 * elf32-sh64.c: Include opcodes/sh64-opc.h
1303 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
1304 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
1305 parameters. No unused parameters. Caller changed.
1306 <case R_SH_PT_16>: New case.
1307 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
1308 * Makefile.in: Regenerate.
1309 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1310 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
1311 all code sections.
1312 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1313 (sh64_elf_merge_private_data): Ditto.
1314 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
1315 to access stored section flags.
1316 (sh64_elf_final_write_processing): Return immediately unless
1317 called by linker. Use sh64_elf_section_data (cranges) to get size
1318 of linker-generated cranges entries.
1319 (sh64_elf_copy_private_data): Add missing "return true".
1320 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1321 (sh_elf64_merge_private_data): Ditto.
1322 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
1323 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
1324 elf64-sh64.c:sh64_elf_fake_sections.
1325 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
1326 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1327 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
1328 (sh64_elf_final_write_processing): New.
1329 (elf_backend_final_write_processing): Define.
1330 (sh64_elf_fake_sections): Get header flags from tdata field.
1331 (sh64_elf_copy_private_data): Do not call
1332 sh64_elf_copy_private_data_internal, just copy e_flags field.
1333 (sh64_elf_merge_private_data): Do not call
1334 sh64_elf_copy_private_data_internal.
1335 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1336 Remove EF_SH64_ABI64, let ELF size make difference.
1337 Remove SH64-specific BFD section flag.
1338 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
1339 containing SHmedia through elf_section_data (asect)->tdata
1340 non-zero, not using a BFD section flag.
1341 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
1342 (sh64_elf_merge_private_data): Similar.
1343 (elf_backend_section_flags): Don't define.
1344 (sh64_elf_backend_section_flags): Delete.
1345 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
1346 not EF_SH64_ABI64.
1347 (sh_elf64_merge_private_data): Similar.
1348 * section.c (Section flags definitions): Don't define
1349 SEC_SH_ISA_SHMEDIA.
1350 (bfd-in2.h): Regenerate.
1351 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
1352 Make DataLabel references work with partial linking.
1353 * elf32-sh64.c: Fix formatting.
1354 (sh64_elf_link_output_symbol_hook): New.
1355 (elf_backend_link_output_symbol_hook): Define to
1356 sh64_elf_link_output_symbol_hook.
1357 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
1358 undefined if partial linking. Adjust sanity check.
1359 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
1360 (elf_backend_link_output_symbol_hook): Define to
1361 sh64_elf64_link_output_symbol_hook.
1362 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
1363 undefined if partial linking. Adjust sanity check.
1364 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
1365 Implement semantics for inter-file DataLabel references.
1366 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
1367 (sh64_elf64_add_symbol_hook): New.
1368 (sh_elf64_relocate_section): If passing an indirect symbol with
1369 st_type STT_DATALABEL on the way to a symbol with st_other
1370 STO_SH5_ISA32, do not bitor 1 to the relocation.
1371 (elf_backend_add_symbol_hook): Define to
1372 sh64_elf64_add_symbol_hook.
1373 * elf64-sh32.c: Tweak comments.
1374 (DATALABEL_SUFFIX): Define.
1375 (sh64_elf_add_symbol_hook): New.
1376 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
1377 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
1378 symbol with st_type STT_DATALABEL on the way to a symbol with
1379 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
1380 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
1381 Pass through STT_DATALABEL.
1382 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
1383 (elf_backend_get_symbol_type): Define.
1384 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
1385 (elf_backend_get_symbol_type): Define.
1386 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1387 * elf32-sh64.c: Tweak comments.
1388 (sh64_elf_copy_private_data_internal): Add prototype.
1389 (bfd_elf32_bfd_set_private_flags): Define.
1390 (sh64_elf_copy_private_data_internal): Compare machine name, not
1391 textual BFD target name, to check whether to copy section flag
1392 SHF_SH5_ISA32.
1393 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
1394 Tweak section-contents-type-mismatch message.
1395 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
1396 Validize reloc-types.
1397 * elf64-sh64.c: New file.
1398 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
1399 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
1400 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
1401 Regenerate dependencies.
1402 * Makefile.in: Regenerate.
1403 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
1404 bfd_elf64_sh64l_vec.
1405 * configure.in: Handle bfd_elf64_sh64_vec and
1406 bfd_elf64_sh64l_vec.
1407 * configure: Regenerate.
1408 * po/POTFILES.in: Regenerate.
1409 * po/bfd.pot: Regenerate.
1410 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1411 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
1412 anything else but EF_SH64 and EF_SH64_ABI64.
1413 (sh64_elf_merge_private_data): Emit error for anything else but
1414 EF_SH64 and EF_SH64_ABI64.
1415 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
1416 from targ_selvecs.
1417 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
1418 bfd_elf32_sh64l_vec as a temporary measure.
1419 * configure: Regenerate.
1420 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
1421 * cpu-sh.c (arch_info_struct): Include sh5 item
1422 unconditionalized.
1423 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
1424 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
1425 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
1426 * elf32-sh64.c: Tweak comments.
1427 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
1428 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
1429 (sh64_elf_copy_private_data_internal): Wrap long line.
1430 (sh64_elf_merge_private_data): Rewrite to allow objects from
1431 SH64 subsets to be linked together.
1432 (INCLUDE_SHMEDIA): Define.
1433 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
1434 Parenthesize plus-expression inside or-expression.
1435 <global symbol>: Ditto.
1436 (sh_elf_set_mach_from_flags): Remove code refusing
1437 deleted EF_SH64_32BIT_ABI flag.
1438 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
1439 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
1440 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
1441 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
1442 (sh_elf_relocate_section) <local symbol>: Or 1 in
1443 calculation of relocation if sym->st_other & STO_SH5_ISA32.
1444 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
1445 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
1446 relocation.
1447 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1448 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
1449 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
1450 Regenerate dependencies.
1451 * Makefile.in: Regenerate.
1452 * archures.c: Add bfd_mach_sh5.
1453 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
1454 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
1455 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
1456 * configure: Regenerate.
1457 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
1458 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
1459 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1460 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
1461 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
1462 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
1463 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
1464 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
1465 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
1466 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
1467 in item for SH5.
1468 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
1469 for SHmedia relocs.
1470 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
1471 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
1472 shmedia_prepare_reloc, goto final_link_relocate if it returns
1473 non-zero, else fail as before.
1474 (sh_elf_set_mach_from_flags): Provide function only if not defined
1475 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
1476 (sh_elf_set_private_flags): Provide function only if not defined
1477 as a macro.
1478 (sh_elf_copy_private_data): Similar.
1479 (sh_elf_merge_private_data): Similar.
1480 * section.c (SEC_SH_ISA_SHMEDIA): New.
1481 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
1482 * elf32-sh64.c: New file.
1483 * libbfd.h: Regenerate.
1484 * bfd-in2.h: Regenerate.
1485 * po/POTFILES.in: Regenerate.
1486 * po/bfd.pot: Regenerate.
1487 * bfd-in2.h: Regenerate.
1488 * libbfd.h: Regenerate.
1489
e108f470
DJ
14902002-02-07 Daniel Jacobowitz <drow@mvista.com>
1491
1492 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
1493 been included, not drag it in.
1494 * bfd-in2.h: Regenerate.
1495
259d18a3
L
14962002-02-06 H.J. Lu (hjl@gnu.org)
1497
1498 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
1499 the mach and ISA fields if necessary.
1500
f13b834e
NC
15012002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1502
1503 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
1504 ARM architecture when an F_ARM_5 flag is detected, since we cannot
1505 be sure exactly which architecture this represents.
1506
82f6addb
NC
15072002-02-05 Nick Clifton <nickc@redhat.com>
1508
1509 * po/tr.po: Updated translation.
1510
899f54f5
AM
15112002-02-05 Alan Modra <amodra@bigpond.net.au>
1512
1513 From Jimi X <jimix@watson.ibm.com>
1514 * archures (bfd_mach_ppc64): Define.
1515 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
1516 (bfd_powerpc_arch): Define.
1517 * bfd-in2.h: Regenerate.
1518 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
1519 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
1520 (bfd_powerpc_archs): Add default powerpc64 arch.
1521
248866a8
AM
15222002-02-05 Alan Modra <amodra@bigpond.net.au>
1523
1524 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
1525 against section syms in readonly sections. Don't do the global
1526 sym check if we find one.
1527 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1528 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
0a6958db 1529 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
248866a8
AM
1530 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1531 (elf_s390_grok_prstatus): Add missing prototype.
1532
4fa5c2a8
HPN
15332002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1534
1535 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
1536 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
1537 Call bfd_get_section_by_name only once. Initialize
1538 bpodata->n_bpo_relocs_this_section.
1539 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
1540 referring to DSOs.
1541 (bpo_reloc_request_sort_fn): Don't use difference of values as
1542 return-value.
1543
537c972e
DB
15442002-02-02 David O'Brien <obrien@FreeBSD>
1545
1546 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
1547 version 4.5 and later the same as 5-CURRENT.
1548 * configure: Re-generate.
1549
006336b8
JT
15502002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1551
1552 * config.bfd (hppa*-*-netbsd*): New target.
1553
6c571f00
PT
15542002-01-31 Philipp Thomas <pthomas@suse.de>
1555
19397422
AM
1556 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
1557 to front of message. Unify messages with elf32-arm.h. Use
1558 commas where neccessary.
1559 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
1560 ERROR in messages. Unify messages with coff-arm.c. Correct
1561 VFP/FPA error message.
1562 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
1563 APCS-32 for translation.
6c571f00 1564
930b4cb2
HPN
15652002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1566
1567 Perform on-demand global register allocation from
1568 R_MMIX_BASE_PLUS_OFFSET relocs.
1569 * elf64-mmix.c (struct bpo_reloc_section_info, struct
1570 bpo_reloc_request, struct bpo_greg_section_info): New.
1571 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
1572 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
1573 _bfd_mmix_check_all_relocs,
1574 _bfd_mmix_prepare_linker_allocated_gregs,
1575 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
1576 (elf_mmix_howto_table): Correct src_mask for most relocs.
1577 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
1578 case.
1579 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
1580 case. Fix typo in comment. New label do_mmix_reloc.
1581 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
1582 store first object file with a base-plus-offset reloc. Call
1583 mmix_elf_check_common_relocs for the part common with mmo.
1584 (mmix_elf_final_link): Write out linker-allocated register
1585 contents section.
1586 (elf_backend_gc_sweep_hook): Define.
1587 (bfd_elf64_bfd_relax_section): Define.
1588
1589 * mmo.c: Don't include <ctype.h>
1590 (mmo_init): Correct init-once logic.
1591
3e36d993
TR
15922002-02-01 Tom Rix <trix@redhat.com>
1593
1594 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
1595
ba323545
AM
15962002-02-01 Alan Modra <amodra@bigpond.net.au>
1597
1598 * Makefile.am: Run "make dep-am"
1599 * Makefile.in: Regenerate.
1600
012884d6
DB
16012002-01-31 David O'Brien <obrien@FreeBSD>
1602
1603 * configure.in: Recognize the differences in core files from FreeBSD
1604 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
1605 5-CURRENT.
1606 * configure: Regenerate.
1607
3b16e843
NC
16082002-01-31 Ivan Guzvinec <ivang@opencores.org>
1609
1610 * coff-or32.c: New file.
1611 * cpu-or32.c: New file.
1612 * elf32-or32.c: New file.
1613 * archures.c: Add support for or32.
1614 * targets.c: Add support for or32.
1615 * bfd-in2.h: Regenerate.
7dc0ab31 1616 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
3b16e843
NC
1617 coff_write_object_contents): Add support for or32.
1618 * config.bfd: Add target.
1619 * configure.in: Add support for or32.
1620 * configure: Regenerate.
1621 * Makefile.am: Add support for or32.
1622 * Makefile.in: Regenerate.
3b16e843
NC
1623 * po/SRC-POTFILES.in: Add or32 files.
1624 * po/bfd.pot: Regenerate.
7dc0ab31 1625
caf8ca8e
NC
16262002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
1627 Don Lindsay <lindsayd@cisco.com>
1628
1629 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
1630 false' with a return of a bfd_reloc_ error code.
1631
e5dfef09
HPN
16322002-01-31 Hans-Peter Nilsson <hp@axis.com>
1633
1634 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
1635 unexport unreferenced symbols when --export-dynamic. Call
1636 _bfd_elf_strtab_delref when unexporting.
1637
4e4770d0
DJ
16382002-01-30 Daniel Jacobowitz <drow@mvista.com>
1639
1640 * bfd-in.h: Include <stdbool.h> if it is available.
1641 * bfd-in2.h: Regenerated.
1642
e1fa50e7
AM
16432002-01-31 Alan Modra <amodra@bigpond.net.au>
1644
1645 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
1646 not go via the plt.
1647
b5f79c76
NC
16482002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1649
b5f79c76
NC
1650 * archures.c: Tidy up formatting of embedded comments.
1651 * bfd.c: Tidy up formatting of embedded comments.
7dc0ab31 1652 * bfd-in.h: Fix formatting of comments.
b5f79c76
NC
1653 * reloc.c: Tidy up formatting of ordinary & embedded comments.
1654 * section.c: Tidy up formatting of embedded comments.
1655 * syms.c: Tidy up formatting of embedded comments.
1656 * targets.c: Tidy up formatting of embedded comments.
1657
1658 * bfd-in2.h: Regenerate.
1659
ca09e32b
NC
16602002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1661
1662 * vms-tir.c (cmd_name): New function.
1663 (tir_cmd_name): New function.
1664 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
1665 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
1666 Fix formatting.
7dc0ab31 1667
ca09e32b
NC
1668 * peXXigen.c (pe_print_idata): Rearrange message to aid in
1669 translation.
1670 (pe_print_pdata): Rearrange message to aid in translation.
1671
1672 * libbfd.c (warn_deprecated): Rearrange error message to aid in
1673 translation.
1674
1675 * ihex.c (ihex_write_object_contents): Fix spelling typo.
1676
1677 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
1678
1679 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
1680 message to aid in translation.
1681
1682 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
1683 to aid in translation.
1684
1685 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
1686
7dc0ab31 16872002-01-30 Philipp Thomas <pthomas@suse.de>
ae1a89b7
PT
1688
1689 * coff-arm.c, elf32-elf.h: Unify messages.
1690
05f64ac6
NC
16912002-01-30 Nick Clifton <nickc@redhat.com>
1692
1693 * po/sv.po: Updated translation.
1694
f5a3e38a
NC
16952002-01-30 Philipp Thomas <pthomas@suse.de>
1696
1697 * dwarf2.c (read_abbrev): Use full section name in error message.
1698 (decode_line_info): Likewise.
661a3fd4
NC
1699
1700 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
1701 message.
1702
d926e03d
AM
17032002-01-30 Alan Modra <amodra@bigpond.net.au>
1704
1705 * elf64-ppc.c (func_desc_adjust): Only provide missing function
1706 descriptor symbols for undefined function code syms. Clear
1707 ELF_LINK_NON_ELF so that they can stay weak.
1708
030d18fb 17092002-01-29 Chris Demetriou <cgd@broadcom.com>
7dc0ab31 1710 Mitch Lichtenberg <mpl@broadcom.com>
030d18fb
CD
1711
1712 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
1713 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
1714 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
1715 generation.
1716 * bfd-in2.h: Regenerate.
1717
fcc76bea
CD
17182002-01-29 Chris Demetriou <cgd@broadcom.com>
1719
1720 * elf32-mips.c: Add additional comments about HI16 relocation
1721 processing.
1722 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
1723 pc-relative relocations. (Reverts change made on 2001-10-31.)
1724 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
1725 for pc-relative relocations.
1726 (mips_elf_calculate_relocation): Add a comment about a kludge
1727 in the R_MIPS_GNU_REL_HI16 handling.
1728 (_bfd_mips_elf_relocate_section): Implement that kludge;
1729 adjust pc-relative HI16 relocation for difference in HI16 and
1730 LO16 addresses, since it can't easily be done in
1731 mips_elf_calculate_relocation.
1732
f9cd9119
MS
17332002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
1734
1735 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
1736 relocations with PC32 relocations for undefined or weak symbols.
1737 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
1738 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
1739
702248bb
JT
17402002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
1741
1742 * elfcore.h (elf_core_file_p): Improve comment for last change.
1743
4867be41
DJ
17442002-01-27 Daniel Jacobowitz <drow@mvista.com>
1745
1746 * configure: Regenerated.
1747
a94cef6a
JT
17482002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
1749
1750 * elfcore.h (elf_core_file_p): Set the machine architecture
1751 before processing the program headers.
1752
7562a296
HPN
17532002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1754
966abd70
HPN
1755 * configure.in <64-bit configuration>: If using gcc, check and
1756 emit error for egcs-1.1.2.
1757 * configure: Regenerate.
1758
e8eab623
NC
17592002-01-26 Egor Duda <deo@logos-m.ru>
1760
1761 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
1762 as possible to avoid stack corruption.
1763
73896efb
RH
17642002-01-26 Richard Henderson <rth@redhat.com>
1765
1766 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
1767 for non-allocated sections.
1768
17692002-01-25 Mark Kettenis <kettenis@gnu.org>
c106e334
MK
1770
1771 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
1772 prstat.pr_reg even if it is a struct.
1773
73896efb 17742002-01-25 Steve Ellcey <sje@cup.hp.com>
254ed743
NC
1775
1776 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
1777
3d66c4f7
NC
17782002-01-25 Philipp Thomas <pthomas@suse.de>
1779
1780 * coffgen.c (coff_print_symbol): Don't mark info message
1781 for translation.
1782
9460ecda
NC
17832002-01-25 Nick Clifton <nickc@redhat.com>
1784
1785 * po/fr.po: Updated translation.
1786 * po/es.po: Updated translation.
1787
cc9ff76a
AM
17882002-01-25 Philipp Thomas <pthomas@suse.de>
1789
1790 * coff-alpha.c (alpha_relocate_section): Unify warning message
1791 for GP relative relocations without GP defined.
1792 * coff-mips.c (mips_relocate_section): Likewise.
1793
c68836a9
AM
17942002-01-25 Alan Modra <amodra@bigpond.net.au>
1795
1796 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
1797 unsigned overflow when new_offset < old_offset.
1798
e8eab623 17992002-01-24 Philipp Thomas <pthomas@suse.de>
391154e9
NC
1800
1801 * bfd.c (_bfd_abort): Fix typo.
1802
8ba89f17
RH
18032002-01-23 Richard Henderson <rth@redhat.com>
1804
1805 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
1806 plt entries for undefweak symbols.
1807
c6953948
NC
18082002-01-23 Steve Ellcey <sje@cup.hp.com>
1809
1810 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
1811 DEFAULT_VECTOR.
1812 (bfd_elf64_ia64_hpux_big_vec): Ditto.
1813 (bfd_elf32_h8300_vec): Ditto.
1814
41bd81ab
AM
18152002-01-23 Alan Modra <amodra@bigpond.net.au>
1816
1817 * elf64-ppc.c: Remove stale part of ABI comment.
1818 (NO_OPD_RELOCS): Define.
1819 (ppc64_elf_check_relocs): Use it.
1820 (ppc64_elf_relocate_section): Here too.
1821 (build_one_stub): Don't point function syms at the stub. Instead,
1822 hijack plt.offset.
1823 (ppc64_elf_relocate_section): Check whether REL24 relocs should
1824 really go to the stub. Make all dynamic relocs in opd against
1825 locals.
1826 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
1827 plt.offset.
1828
f304919d
RH
18292002-01-22 Richard Henderson <rth@redhat.com>
1830
1831 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
1832
c0ef99a7
AM
18332002-01-22 Alan Modra <amodra@bigpond.net.au>
1834
60ee0d4a
AM
1835 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
1836 TOC_BASE_OFF adjustment.
1837
c0ef99a7
AM
1838 * Makefile.am: Run "make dep-am".
1839 * Makefile.in: Regenerate.
1840 * po/SRC-POTFILES.in: Regenerate.
1841
64328b46
AM
18422002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
1843
1844 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
1845 host defines.
1846
59953665 18472002-01-21 Hans-Peter Nilsson <hp@axis.com>
58255df3
HPN
1848
1849 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
1850 Check for and emit error if sgot is NULL at this point.
1851
9596feea
JT
18522002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1853
1854 * config.bfd (ia64*-*-netbsd*): New target.
1855
7b45c6e1
AM
18562002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
1857
1858 * som.c (som_write_space_strings): Comment typo fix.
1859
e5094212
AM
18602002-01-21 Alan Modra <amodra@bigpond.net.au>
1861
e86ce104
AM
1862 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
1863 is_func_descriptor fields.
1864 (link_hash_newfunc): Init them.
1865 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
1866 dot are candidates for plt entries. When processing .opd relocs,
1867 set function descriptor strings to point inside function code
1868 string, and set new ppc_link_hash_entry fields.
1869 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
1870 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
1871 function descriptors. It's now done in..
1872 (func_desc_adjust): New.
1873 (ppc64_elf_func_desc_adjust): New.
1874 (define elf_backend_always_size_sections): Define.
1875 (ppc64_elf_hide_symbol): New.
1876 (define elf_backend_hide_symbol): Define.
1877 (allocate_dynrelocs): Remove code looking up function descriptors
1878 as that has been done earlier.
1879 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
1880 table.
1881 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
1882 up function descriptor.
1883 (build_one_stub): Look up the function code sym. Check for
1884 invalid plt offsets.
1885 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
1886 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
1887
e5094212
AM
1888 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
1889 boolean param.
1890 (_bfd_elf_link_hash_hide_symbol): Likewise.
1891 * elflink.h (elf_link_add_object_symbols): Adjust call to
1892 elf_backend_hide_symbol.
1893 (elf_fix_symbol_flags): Likewise.
1894 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
1895 than bfd_alloc.
1896 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
1897 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
1898 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1899 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
1900 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
1901 and adjust to suit.
1902 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
1903 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
1904 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1905
40b8271b
AM
19062002-01-18 Alan Modra <amodra@bigpond.net.au>
1907
1908 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
1909 dynamic function descriptor symbol, not the associated function
1910 symbol.
1911
55baa95b
EC
19122002-01-17 Eric Christopher <echristo@redhat.com>
1913
1914 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
1915
328577ad
NC
19162002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1917
1918 * po/bfd.pot: Regenerate.
1919 * po/fr.po: Regenerate.
1920
af746e92
AM
19212002-01-17 Alan Modra <amodra@bigpond.net.au>
1922
1923 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
1924 Remove "Elf_Internal_Shdr *" param.
1925 (_bfd_mips_elf_section_from_bfd_section): Ditto.
1926 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
1927 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
1928 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
1929 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
1930 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
1931 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
1932 function to override special sections. Remove hdr arg from
1933 backend call, and don't loop.
1934
175e9962
EC
19352002-01-16 Eric Christopher <echristo@redhat.com>
1936
1937 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
1938 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
1939 relocations requiring gp0 and gp.
1940
96a846ea
RE
19412002-01-16 Richard Earnshaw <rearnsha@arm.com>
1942
175e9962 1943 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
96a846ea
RE
1944 EF_ARM_VFP_FLOAT.
1945 (elf32_arm_print_private_bfd_data): Likewise.
1946
af3ae48d
NC
19472002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
1948
1949 * po/tr.po: Import new version.
1950
10ed1bba
AM
19512002-01-16 Alan Modra <amodra@bigpond.net.au>
1952
1953 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
1954 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
1955 (ORI_R0_R0_0): Correct.
1956
5d1634d7
AM
19572002-01-16 Alan Modra <amodra@bigpond.net.au>
1958
1959 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
1960 when plt_not_loaded.
1961 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
1962 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
1963 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
1964 (ppc64_elf_glink_code): Delete.
1965 (PPC64_ELF_GLINK_SIZE): Delete.
1966 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
1967 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
1968 ORI_R0_R0_0): Define.
1969 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
1970 (struct ppc_link_hash_table): Add sstub and plt_overflow.
1971 (ppc64_elf_link_hash_table_create): Init them.
1972 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
1973 Don't copy to shared lib.
1974 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
1975 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
1976 (allocate_dynrelocs <plt>): Don't change function sym here. Make
1977 room for .stub and .glink code.
1978 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
1979 DT_PPC64_GLINK.
1980 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
1981 bfd_elf64_bfd_final_link.
1982 (bfd_elf64_bfd_final_link): Don't define.
1983 (ppc64_elf_size_stubs): New.
1984 (build_plt_stub): New.
1985 (build_one_stub): New.
1986 (ppc64_elf_build_stubs): New.
1987 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
1988 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
1989 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
1990 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
1991 case output sections not separate. Adjust DT_RELASZ to not
1992 include plt relocs. Set reserved got entry. Set got and plt
1993 entry size.
1994 (elf_backend_got_header_size): Set to 8.
1995 * elf64-ppc.h: New file.
1996
c601ffdb
AM
19972002-01-16 Alan Modra <amodra@bigpond.net.au>
1998
1999 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
2000 sections, use bfd_section_list_remove.
2001 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2002 * elflink.h (elf_link_add_object_symbols): When removing all
2003 sections, use bfd_section_list_clear.
2004
8fb4cb7f
NC
20052002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2006
2007 * po/sv.po: New file: Swedish translation.
2008 * configure.in (ALL_LINGUAS): Add sv.
2009 * configure: Regenerate.
2010
d3c456e9
JJ
20112002-01-15 Jakub Jelinek <jakub@redhat.com>
2012
2013 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
2014 * elf.c (merge_sections_remove_hook): New function.
2015 (_bfd_elf_merge_sections): Pass it as 3rd argument to
2016 _bfd_merge_sections.
2017 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
2018 * libbfd.h: Rebuilt.
2019 * merge.c (_bfd_merge_sections): Add remove_hook argument.
2020 Call remove_hook if a SEC_EXCLUDE section is encountered.
2021
1f7fd478
NC
20222002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2023
2024 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
2025 (xstormy16_reloc_map): Initialise new field with correct howto
2026 table.
2027 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
2028 howto entry.
2029
b87011e9
MS
20302002-01-10 Michael Snyder <msnyder@redhat.com>
2031
2032 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
2033 (elfcore_write_pstatus): Use long instead of pid_t;
2034 * elf-bfd.h: Change prototypes to use long instead of pid_t;
2035
175e9962 20362002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
b4db1224
JT
2037
2038 * elf.c: Update copyright years.
2039 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
2040 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
2041
7c76fa91
MS
20422002-01-08 Michael Snyder <msnyder@redhat.com>
2043
2044 Add capability to write corefile note sections, for gdb.
2045 * elf.c (elfcore_write_note): New function.
2046 (elfcore_write_prpsinfo): New function.
2047 (elfcore_write_prstatus): New function.
2048 (elfcore_write_pstatus): New function.
2049 (elfcore_write_prfpreg): New function.
2050 (elfcore_write_prxfpreg): New function.
97996af6 2051 * elf-bfd.h: Add prototypes for above functions.
7c76fa91 2052
e1fddb6b
AO
20532002-01-08 Alexandre Oliva <aoliva@redhat.com>
2054
2055 * elf.c (elf_fake_sections): Propagate errors from
2056 elf_backend_fake_section.
2057
8d05742f
JT
20582002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2059
2060 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
2061 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
2062 (elf32-sh-nbsd.lo): New rule.
2063 * Makefile.in: Regenerate.
2064 * config.bfd (sh*le-*-netbsdelf*): New target.
2065 (sh*-*-netbsdelf*): New target.
2066 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
2067 (bfd_elf32_shnbsd_vec): New vector.
2068 (bfd_elf32_shlnbsd_vec): New vector.
2069 * configure: Regenerate.
2070 * elf32-sh-nbsd.c: New file.
2071 * targets.c: Update copyright years.
175e9962 2072 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
8d05742f
JT
2073 bfd_elf32_shnbsd_vec.
2074
1dba4cb4
AH
20752002-01-07 Aldy Hernandez <aldyh@redhat.com>
2076
2077 * coff-rs6000.c (READ20): Use bfd_scan_vma.
2078
47b22aef
GK
20792002-01-07 Geoffrey Keating <geoffk@redhat.com>
2080
2081 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
2082 of a symbol in a section that will be deleted.
2083
be2d1673
NC
20842002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2085
2086 * po/es.po: New file: Spanish translation.
2087 * configure.in (ALL_LINGUAS): Add es.
2088 * configure: Regenerate.
2089
d9cf1b54
AM
20902002-01-06 Steve Ellcey <sje@cup.hp.com>
2091
2092 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
2093 argument so we can handle HP-UX specially.
2094 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
2095 (elfNN_hpux_backend_section_from_bfd_section): New for support
2096 of SHN_IA_64_ANSI_COMMON.
2097 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
2098 (is_unwind_section_name): Add special HP-UX support.
2099 (elfNN_ia64_section_from_shdr): Add support for more sections.
2100 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
2101 add support for more sections.
2102 (elfNN_ia64_additional_program_headers): Modify
2103 is_unwind_section_name call.
2104 (elfNN_ia64_modify_segment_map): Remove assumption that there is
2105 only one unwind section in segment.
2106
3f3c5c34
AM
21072002-01-06 Alan Modra <amodra@bigpond.net.au>
2108
2109 * syms.c (_bfd_generic_make_empty_symbol): New function.
2110 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
2111 _bfd_generic_make_empty_symbol.
2112 * libbfd.h: Regenerate.
2113 * bfd-in2.h: Regenerate.
2114 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
2115 (hppabsd_core_get_symtab_upper_bound): Don't define.
2116 (hppabsd_core_get_symtab): Likewise.
2117 (hppabsd_core_print_symbol): Likewise.
2118 (hppabsd_core_get_symbol_info): Likewise.
2119 (hppabsd_core_bfd_is_local_label_name): Likewise.
2120 (hppabsd_core_get_lineno): Likewise.
2121 (hppabsd_core_find_nearest_line): Likewise.
2122 (hppabsd_core_bfd_make_debug_symbol): Likewise.
2123 (hppabsd_core_read_minisymbols): Likewise.
2124 (hppabsd_core_minisymbol_to_symbol): Likewise.
2125 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
2126 Formatting fixes.
2127 * hpux-core.c: Similarly.
2128 * irix-core.c: Similarly.
2129 * osf-core.c: Similarly.
2130 * sco5-core.c: Similarly.
2131 * binary.c (binary_make_empty_symbol): Remove function, define as
2132 _bfd_generic_make_empty_symbol.
2133 * ihex.c (ihex_make_empty_symbol): Likewise.
2134 * mmo.c (mmo_make_empty_symbol): Likewise.
2135 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
2136 * srec.c (srec_make_empty_symbol): Likewise.
2137 * versados.c (versados_make_empty_symbol): Likewise.
2138 * vms.c (_bfd_vms_make_empty_symbol): Remove.
2139 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
2140 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
2141 rather than _bfd_vms_make_empty_symbol.
2142 * vms-misc.c (new_symbol): Likewise.
2143
3f0a7f7f
AM
21442002-01-05 Alan Modra <amodra@bigpond.net.au>
2145
9e7b37b3
AM
2146 * section.c (bfd_section_init): Remove unnecessary initialisations.
2147 (bfd_section_list_clear): New function.
2148 (bfd_section_list_remove, bfd_section_list_insert): New macros.
2149 (_bfd_strip_section_from_output): Use them.
2150 * coffcode.h (coff_set_alignment_hook): Likewise.
2151 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
2152 * elf64-mips.c (mips_elf64_final_link): Likewise.
2153 * elf64-mmix.c (mmix_elf_final_link): Likewise.
2154 * sunos.c (sunos_add_dynamic_symbols): Likewise.
2155 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
2156 * bfd-in2.h: Regenerate.
2157
2158 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
2159 rather than doing our own section handling. Clean up after errors
2160 with bfd_release and bfd_section_list_clear. Handle unexpected
2161 flags.
2162 * aoutf1.h (sunos4_core_file_p): Likewise.
2163 * aix386-core.c (aix386_core_file_p): Likewise.
2164 * cisco-core.c (cisco_core_file_validate): Likewise.
2165 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
2166 * trad-core.c (trad_unix_core_file_p): Likewise.
2167
2168 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
2169 with bfd_release and bfd_section_list_clear.
2170 * hpux-core.c (hpux_core_core_file_p): Likewise.
2171 * irix-core.c (irix_core_core_file_p): Likewise.
2172 * lynx-core.c (lynx_core_file_p): Likewise.
2173 * osf-core.c (osf_core_core_file_p): Likewise.
2174 * rs6000-core.c (rs6000coff_core_p): Likewise.
2175 * sco5-core.c (sco5_core_file_p): Likewise.
2176
3f0a7f7f
AM
2177 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
2178 sign extension adjustments without conditionals.
2179
a3aa38ee
JJ
21802002-01-04 Jakub Jelinek <jakub@redhat.com>
2181
2182 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
2183 CIE at .eh_frame start is removed due to no FDEs referencing it.
2184
8a8b2d4b
AJ
21852002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2186
2187 * config.bfd (x86_64-*-netbsd*): New target.
2188 * configure.in (x86_64-*-netbsd*): Set COREFILE
2189 to netbsd-core.lo.
2190 * configure: Regenerated.
2191
04b5af89
TR
21922002-01-03 Tom Rix <trix@redhat.com>
2193
2194 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
2195 for recent bfd_make_section_anyway change.
2196
51c5503b
NC
21972002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
2198
2199 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
2200 R_ARM_THM_PC11 reloc.
2201
07f7c046
NC
22022002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2203
2204 * configure.in (LINGUAS): Add ja.
2205 * configure: Regenerate.
2206 * po/ja.po: Import from translation project's web site.
2207
5eefb65f
NC
22082002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2209
2210 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
2211 messages to ease translation into other languages.
2212
39e90f10 2213For older changes see ChangeLog-0001
56882138
AM
2214\f
2215Local Variables:
2216mode: change-log
2217left-margin: 8
2218fill-column: 74
2219version-control: never
2220End:
This page took 0.167858 seconds and 4 git commands to generate.