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