* configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
64328b46
AM
12002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
2
3 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
4 host defines.
5
59953665 62002-01-21 Hans-Peter Nilsson <hp@axis.com>
58255df3
HPN
7
8 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
9 Check for and emit error if sgot is NULL at this point.
10
9596feea
JT
112002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
12
13 * config.bfd (ia64*-*-netbsd*): New target.
14
7b45c6e1
AM
152002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
16
17 * som.c (som_write_space_strings): Comment typo fix.
18
e5094212
AM
192002-01-21 Alan Modra <amodra@bigpond.net.au>
20
e86ce104
AM
21 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
22 is_func_descriptor fields.
23 (link_hash_newfunc): Init them.
24 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
25 dot are candidates for plt entries. When processing .opd relocs,
26 set function descriptor strings to point inside function code
27 string, and set new ppc_link_hash_entry fields.
28 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
29 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
30 function descriptors. It's now done in..
31 (func_desc_adjust): New.
32 (ppc64_elf_func_desc_adjust): New.
33 (define elf_backend_always_size_sections): Define.
34 (ppc64_elf_hide_symbol): New.
35 (define elf_backend_hide_symbol): Define.
36 (allocate_dynrelocs): Remove code looking up function descriptors
37 as that has been done earlier.
38 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
39 table.
40 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
41 up function descriptor.
42 (build_one_stub): Look up the function code sym. Check for
43 invalid plt offsets.
44 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
45 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
46
e5094212
AM
47 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
48 boolean param.
49 (_bfd_elf_link_hash_hide_symbol): Likewise.
50 * elflink.h (elf_link_add_object_symbols): Adjust call to
51 elf_backend_hide_symbol.
52 (elf_fix_symbol_flags): Likewise.
53 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
54 than bfd_alloc.
55 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
56 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
57 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
58 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
59 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
60 and adjust to suit.
61 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
62 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
63 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
64
40b8271b
AM
652002-01-18 Alan Modra <amodra@bigpond.net.au>
66
67 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
68 dynamic function descriptor symbol, not the associated function
69 symbol.
70
55baa95b
EC
712002-01-17 Eric Christopher <echristo@redhat.com>
72
73 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
74
328577ad
NC
752002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
76
77 * po/bfd.pot: Regenerate.
78 * po/fr.po: Regenerate.
79
af746e92
AM
802002-01-17 Alan Modra <amodra@bigpond.net.au>
81
82 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
83 Remove "Elf_Internal_Shdr *" param.
84 (_bfd_mips_elf_section_from_bfd_section): Ditto.
85 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
86 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
87 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
88 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
89 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
90 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
91 function to override special sections. Remove hdr arg from
92 backend call, and don't loop.
93
175e9962
EC
942002-01-16 Eric Christopher <echristo@redhat.com>
95
96 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
97 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
98 relocations requiring gp0 and gp.
99
96a846ea
RE
1002002-01-16 Richard Earnshaw <rearnsha@arm.com>
101
175e9962 102 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
96a846ea
RE
103 EF_ARM_VFP_FLOAT.
104 (elf32_arm_print_private_bfd_data): Likewise.
105
af3ae48d
NC
1062002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
107
108 * po/tr.po: Import new version.
109
10ed1bba
AM
1102002-01-16 Alan Modra <amodra@bigpond.net.au>
111
112 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
113 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
114 (ORI_R0_R0_0): Correct.
115
5d1634d7
AM
1162002-01-16 Alan Modra <amodra@bigpond.net.au>
117
118 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
119 when plt_not_loaded.
120 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
121 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
122 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
123 (ppc64_elf_glink_code): Delete.
124 (PPC64_ELF_GLINK_SIZE): Delete.
125 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
126 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
127 ORI_R0_R0_0): Define.
128 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
129 (struct ppc_link_hash_table): Add sstub and plt_overflow.
130 (ppc64_elf_link_hash_table_create): Init them.
131 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
132 Don't copy to shared lib.
133 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
134 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
135 (allocate_dynrelocs <plt>): Don't change function sym here. Make
136 room for .stub and .glink code.
137 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
138 DT_PPC64_GLINK.
139 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
140 bfd_elf64_bfd_final_link.
141 (bfd_elf64_bfd_final_link): Don't define.
142 (ppc64_elf_size_stubs): New.
143 (build_plt_stub): New.
144 (build_one_stub): New.
145 (ppc64_elf_build_stubs): New.
146 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
147 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
148 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
149 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
150 case output sections not separate. Adjust DT_RELASZ to not
151 include plt relocs. Set reserved got entry. Set got and plt
152 entry size.
153 (elf_backend_got_header_size): Set to 8.
154 * elf64-ppc.h: New file.
155
c601ffdb
AM
1562002-01-16 Alan Modra <amodra@bigpond.net.au>
157
158 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
159 sections, use bfd_section_list_remove.
160 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
161 * elflink.h (elf_link_add_object_symbols): When removing all
162 sections, use bfd_section_list_clear.
163
8fb4cb7f
NC
1642002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
165
166 * po/sv.po: New file: Swedish translation.
167 * configure.in (ALL_LINGUAS): Add sv.
168 * configure: Regenerate.
169
d3c456e9
JJ
1702002-01-15 Jakub Jelinek <jakub@redhat.com>
171
172 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
173 * elf.c (merge_sections_remove_hook): New function.
174 (_bfd_elf_merge_sections): Pass it as 3rd argument to
175 _bfd_merge_sections.
176 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
177 * libbfd.h: Rebuilt.
178 * merge.c (_bfd_merge_sections): Add remove_hook argument.
179 Call remove_hook if a SEC_EXCLUDE section is encountered.
180
1f7fd478
NC
1812002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
182
183 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
184 (xstormy16_reloc_map): Initialise new field with correct howto
185 table.
186 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
187 howto entry.
188
b87011e9
MS
1892002-01-10 Michael Snyder <msnyder@redhat.com>
190
191 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
192 (elfcore_write_pstatus): Use long instead of pid_t;
193 * elf-bfd.h: Change prototypes to use long instead of pid_t;
194
175e9962 1952002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
b4db1224
JT
196
197 * elf.c: Update copyright years.
198 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
199 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
200
7c76fa91
MS
2012002-01-08 Michael Snyder <msnyder@redhat.com>
202
203 Add capability to write corefile note sections, for gdb.
204 * elf.c (elfcore_write_note): New function.
205 (elfcore_write_prpsinfo): New function.
206 (elfcore_write_prstatus): New function.
207 (elfcore_write_pstatus): New function.
208 (elfcore_write_prfpreg): New function.
209 (elfcore_write_prxfpreg): New function.
97996af6 210 * elf-bfd.h: Add prototypes for above functions.
7c76fa91 211
e1fddb6b
AO
2122002-01-08 Alexandre Oliva <aoliva@redhat.com>
213
214 * elf.c (elf_fake_sections): Propagate errors from
215 elf_backend_fake_section.
216
8d05742f
JT
2172002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
218
219 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
220 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
221 (elf32-sh-nbsd.lo): New rule.
222 * Makefile.in: Regenerate.
223 * config.bfd (sh*le-*-netbsdelf*): New target.
224 (sh*-*-netbsdelf*): New target.
225 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
226 (bfd_elf32_shnbsd_vec): New vector.
227 (bfd_elf32_shlnbsd_vec): New vector.
228 * configure: Regenerate.
229 * elf32-sh-nbsd.c: New file.
230 * targets.c: Update copyright years.
175e9962 231 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
8d05742f
JT
232 bfd_elf32_shnbsd_vec.
233
1dba4cb4
AH
2342002-01-07 Aldy Hernandez <aldyh@redhat.com>
235
236 * coff-rs6000.c (READ20): Use bfd_scan_vma.
237
47b22aef
GK
2382002-01-07 Geoffrey Keating <geoffk@redhat.com>
239
240 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
241 of a symbol in a section that will be deleted.
242
be2d1673
NC
2432002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
244
245 * po/es.po: New file: Spanish translation.
246 * configure.in (ALL_LINGUAS): Add es.
247 * configure: Regenerate.
248
d9cf1b54
AM
2492002-01-06 Steve Ellcey <sje@cup.hp.com>
250
251 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
252 argument so we can handle HP-UX specially.
253 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
254 (elfNN_hpux_backend_section_from_bfd_section): New for support
255 of SHN_IA_64_ANSI_COMMON.
256 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
257 (is_unwind_section_name): Add special HP-UX support.
258 (elfNN_ia64_section_from_shdr): Add support for more sections.
259 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
260 add support for more sections.
261 (elfNN_ia64_additional_program_headers): Modify
262 is_unwind_section_name call.
263 (elfNN_ia64_modify_segment_map): Remove assumption that there is
264 only one unwind section in segment.
265
3f3c5c34
AM
2662002-01-06 Alan Modra <amodra@bigpond.net.au>
267
268 * syms.c (_bfd_generic_make_empty_symbol): New function.
269 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
270 _bfd_generic_make_empty_symbol.
271 * libbfd.h: Regenerate.
272 * bfd-in2.h: Regenerate.
273 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
274 (hppabsd_core_get_symtab_upper_bound): Don't define.
275 (hppabsd_core_get_symtab): Likewise.
276 (hppabsd_core_print_symbol): Likewise.
277 (hppabsd_core_get_symbol_info): Likewise.
278 (hppabsd_core_bfd_is_local_label_name): Likewise.
279 (hppabsd_core_get_lineno): Likewise.
280 (hppabsd_core_find_nearest_line): Likewise.
281 (hppabsd_core_bfd_make_debug_symbol): Likewise.
282 (hppabsd_core_read_minisymbols): Likewise.
283 (hppabsd_core_minisymbol_to_symbol): Likewise.
284 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
285 Formatting fixes.
286 * hpux-core.c: Similarly.
287 * irix-core.c: Similarly.
288 * osf-core.c: Similarly.
289 * sco5-core.c: Similarly.
290 * binary.c (binary_make_empty_symbol): Remove function, define as
291 _bfd_generic_make_empty_symbol.
292 * ihex.c (ihex_make_empty_symbol): Likewise.
293 * mmo.c (mmo_make_empty_symbol): Likewise.
294 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
295 * srec.c (srec_make_empty_symbol): Likewise.
296 * versados.c (versados_make_empty_symbol): Likewise.
297 * vms.c (_bfd_vms_make_empty_symbol): Remove.
298 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
299 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
300 rather than _bfd_vms_make_empty_symbol.
301 * vms-misc.c (new_symbol): Likewise.
302
3f0a7f7f
AM
3032002-01-05 Alan Modra <amodra@bigpond.net.au>
304
9e7b37b3
AM
305 * section.c (bfd_section_init): Remove unnecessary initialisations.
306 (bfd_section_list_clear): New function.
307 (bfd_section_list_remove, bfd_section_list_insert): New macros.
308 (_bfd_strip_section_from_output): Use them.
309 * coffcode.h (coff_set_alignment_hook): Likewise.
310 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
311 * elf64-mips.c (mips_elf64_final_link): Likewise.
312 * elf64-mmix.c (mmix_elf_final_link): Likewise.
313 * sunos.c (sunos_add_dynamic_symbols): Likewise.
314 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
315 * bfd-in2.h: Regenerate.
316
317 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
318 rather than doing our own section handling. Clean up after errors
319 with bfd_release and bfd_section_list_clear. Handle unexpected
320 flags.
321 * aoutf1.h (sunos4_core_file_p): Likewise.
322 * aix386-core.c (aix386_core_file_p): Likewise.
323 * cisco-core.c (cisco_core_file_validate): Likewise.
324 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
325 * trad-core.c (trad_unix_core_file_p): Likewise.
326
327 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
328 with bfd_release and bfd_section_list_clear.
329 * hpux-core.c (hpux_core_core_file_p): Likewise.
330 * irix-core.c (irix_core_core_file_p): Likewise.
331 * lynx-core.c (lynx_core_file_p): Likewise.
332 * osf-core.c (osf_core_core_file_p): Likewise.
333 * rs6000-core.c (rs6000coff_core_p): Likewise.
334 * sco5-core.c (sco5_core_file_p): Likewise.
335
3f0a7f7f
AM
336 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
337 sign extension adjustments without conditionals.
338
a3aa38ee
JJ
3392002-01-04 Jakub Jelinek <jakub@redhat.com>
340
341 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
342 CIE at .eh_frame start is removed due to no FDEs referencing it.
343
8a8b2d4b
AJ
3442002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
345
346 * config.bfd (x86_64-*-netbsd*): New target.
347 * configure.in (x86_64-*-netbsd*): Set COREFILE
348 to netbsd-core.lo.
349 * configure: Regenerated.
350
04b5af89
TR
3512002-01-03 Tom Rix <trix@redhat.com>
352
353 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
354 for recent bfd_make_section_anyway change.
355
51c5503b
NC
3562002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
357
358 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
359 R_ARM_THM_PC11 reloc.
360
07f7c046
NC
3612002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
362
363 * configure.in (LINGUAS): Add ja.
364 * configure: Regenerate.
365 * po/ja.po: Import from translation project's web site.
366
5eefb65f
NC
3672002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
368
369 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
370 messages to ease translation into other languages.
371
39e90f10 372For older changes see ChangeLog-0001
56882138
AM
373\f
374Local Variables:
375mode: change-log
376left-margin: 8
377fill-column: 74
378version-control: never
379End:
This page took 0.075238 seconds and 4 git commands to generate.