a5c3bd1cdb3f60357d79d7c2dedc478c88333048
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2004-04-17 Brian Ford <ford@vss.fsi.com>
2
3 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
4 filepos for the SizeOfHeaders field.
5 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
6 overflow.
7 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
8
9 2004-04-16 Alan Modra <amodra@bigpond.net.au>
10
11 * simple.c (bfd_simple_get_relocated_section_contents): Don't
12 change reloc_done. Set and restore _cooked_size.
13 (RETURN): Delete.
14
15 2004-04-15 Mark Kettenis <kettenis@gnu.org>
16
17 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
18 core files.
19
20 2004-04-15 Nick Clifton <nickc@redhat.com>
21
22 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
23
24 2004-04-15 Alan Modra <amodra@bigpond.net.au>
25
26 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
27
28 2004-04-15 H.J. Lu <hongjiu.lu@intel.com>
29
30 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
31 when it is a definition.
32
33 2004-04-14 Alan Modra <amodra@bigpond.net.au>
34
35 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
36 when statically linking PIC code.
37 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
38
39 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
40
41 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
42 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
43 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
44 * configure: Regenerate.
45
46 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
47
48 * elflink.c: Include libiberty.h.
49 * Makefile.am (elflink.lo): Depend on libiberty.h.
50 * Makefile.in: Regenerate.
51
52 2004-04-06 Daniel Jacobowitz <drow@mvista.com>
53
54 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
55 ".MIPS.stubs".
56
57 2004-04-05 H.J. Lu <hongjiu.lu@intel.com>
58
59 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
60 reserve the memory for dynamic linker
61
62 2004-04-05 Mark Kettenis <kettenis@gnu.org>
63
64 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
65 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
66
67 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
68
69 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
70 RELOC_FOR_GLOBAL_SYMBOL.
71 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
72
73 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
74
75 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
76 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
77
78 2004-04-01 Paul Brook <paul@codesourcery.com>
79
80 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
81 * elf32-arm.h (struct elf32_elf_section_map): New.
82 (struct _arm_elf_section_data): New.
83 (elf32_arm_section_data): Define.
84 (struct elf32_arm_link_hash_table): Add byteswap_code.
85 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
86 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
87 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
88 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
89 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
90 (bfd_elf32_new_section_hook, elf_backend_write_section,
91 elf_backend_link_output_symbol_hook): Define.
92
93 2004-04-01 Andy Chittenden <achittenden@bluearc.com>
94
95 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
96 that keeps the characters in a B_INCL..B_EINCL range.
97 (_bfd_link_section_stabs): When computing the sum of the
98 characters in a B_INCL..B_EINCL range also keep a copy of those
99 characters. Use this information to distinguish between
100 include sections that have the same sum and the same length
101 but which are nevertheless unique.
102
103 2004-03-31 Paul Brook <paul@codesourcery.com>
104
105 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
106 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
107
108 2004-03-31 Andy Chittenden <achittenden@bluearc.com>
109
110 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
111 to 'sum_chars' and add field 'num_chars'.
112 (_bfd_link_section_stabs): When computing the sum of the
113 characters in a B_INCL..B_EINCL range also keep a count of the
114 number of characters. Use this information to help distinguish
115 between include sections when have the same sum but which
116 nevertheless are still unique.
117
118 2004-03-31 Mattias EngdegÄrd <mattias@virtutech.se>
119
120 * stabs.c (_bfd_link_section_stabs): Do not skip N_EXCL stabs.
121
122 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
123 Tomer Levi <Tomer.Levi@nsc.com>
124
125 * Makefile.am (ALL_MACHINES): Add cpu-cr16c.lo.
126 (ALL_MACHINES_CFILES): Add cpu-cr16c.c.
127 (BFD32_BACKENDS): Add elf32-cr16c.lo.
128 (BFD32_BACKENDS_CFILES): Add elf32-cr16c.c.
129 (cpu-cr16c.lo): New target.
130 (elf32-cr16c.lo): Likewise.
131 * Makefile.in: Regenerate.
132 * archures.c (bfd_architecture): Add bfd_{arch,mach}_cr16c.
133 (bfd_archures_list): Add bfd_cr16c_arch.
134 * config.bfd: Handle cr16c-*-elf*.
135 * configure.in: Handle bfd_elf32_cr16c_vec.
136 * configure: Regenerate.
137 * reloc.c: Add BFD_RELOC_16C_NUM08, BFD_RELOC_16C_NUM08_C,
138 BFD_RELOC_16C_NUM16, BFD_RELOC_16C_NUM16_C,
139 BFD_RELOC_16C_NUM32, BFD_RELOC_16C_NUM32_C,
140 BFD_RELOC_16C_DISP04, BFD_RELOC_16C_DISP04_C,
141 BFD_RELOC_16C_DISP08, BFD_RELOC_16C_DISP08_C,
142 BFD_RELOC_16C_DISP16, BFD_RELOC_16C_DISP16_C,
143 BFD_RELOC_16C_DISP24, BFD_RELOC_16C_DISP24_C,
144 BFD_RELOC_16C_DISP24a, BFD_RELOC_16C_DISP24a_C,
145 BFD_RELOC_16C_REG04, BFD_RELOC_16C_REG04_C,
146 BFD_RELOC_16C_REG04a, BFD_RELOC_16C_REG04a_C,
147 BFD_RELOC_16C_REG14, BFD_RELOC_16C_REG14_C,
148 BFD_RELOC_16C_REG16, BFD_RELOC_16C_REG16_C,
149 BFD_RELOC_16C_REG20, BFD_RELOC_16C_REG20_C,
150 BFD_RELOC_16C_ABS20, BFD_RELOC_16C_ABS20_C,
151 BFD_RELOC_16C_ABS24, BFD_RELOC_16C_ABS24_C,
152 BFD_RELOC_16C_IMM04, BFD_RELOC_16C_IMM04_C,
153 BFD_RELOC_16C_IMM16, BFD_RELOC_16C_IMM16_C,
154 BFD_RELOC_16C_IMM20, BFD_RELOC_16C_IMM20_C,
155 BFD_RELOC_16C_IMM24, BFD_RELOC_16C_IMM24_C,
156 BFD_RELOC_16C_IMM32, BFD_RELOC_16C_IMM32_C.
157 * targets.c (bfd_elf32_cr16c_vec): Declare.
158 (bfd_target_vector): Add bfd_elf32_cr16c_vec.
159 * cpu-cr16c.c: New file.
160 * elf32-cr16c.c: Likewise.
161 * libbfd.h: Regenerate.
162 * bfd-in2.h: Likewise.
163
164 2004-03-30 Jakub Jelinek <jakub@redhat.com>
165
166 * elf.c (map_sections_to_segments): Fix handling of .tbss.
167
168 2004-03-27 Alan Modra <amodra@bigpond.net.au>
169
170 * Makefile.am: Remove all mention of elflink.h.
171 * Makefile.in: Regenerate.
172 * bfd-in.h (bfd_elf_discard_info): Declare.
173 (bfd_elf32_discard_info, bfd_elf64_discard_info): Delete.
174 * bfd-in2.h: Regenerate.
175 * elf-bfd.h (bfd_elf32_print_symbol, bfd_elf64_print_symbol,
176 bfd_elf32_link_record_dynamic_symbol,
177 bfd_elf64_link_record_dynamic_symbol,
178 _bfd_elf_link_record_dynamic_symbol, bfd_elf32_bfd_final_link,
179 bfd_elf64_bfd_final_link, elf_link_record_local_dynamic_symbol,
180 _bfd_elf32_link_record_local_dynamic_symbol,
181 _bfd_elf64_link_record_local_dynamic_symbol,
182 _bfd_elf32_gc_sections, _bfd_elf32_gc_common_finalize_got_offsets,
183 _bfd_elf32_gc_common_final_link, _bfd_elf64_gc_common_final_link,
184 _bfd_elf32_gc_record_vtinherit, _bfd_elf32_gc_record_vtentry,
185 _bfd_elf64_gc_sections, _bfd_elf64_gc_common_finalize_got_offsets,
186 _bfd_elf64_gc_record_vtinherit, _bfd_elf64_gc_record_vtentry,
187 _bfd_elf32_reloc_symbol_deleted_p,
188 _bfd_elf64_reloc_symbol_deleted_p): Delete.
189 (bfd_elf_link_record_dynamic_symbol,
190 bfd_elf_link_record_local_dynamic_symbol,
191 bfd_elf_final_link, bfd_elf_gc_sections,
192 bfd_elf_gc_record_vtinherit, bfd_elf_gc_record_vtentry,
193 bfd_elf_gc_common_finalize_got_offsets, bfd_elf_gc_common_final_link,
194 bfd_elf_reloc_symbol_deleted_p): Declare.
195 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
196 * elf32-arm.h: Update for changed function names. Remove local
197 WILL_CALL_FINISH_DYNAMIC_SECTION define.
198 * elf-hppa.h, elf-m10300.c, elf32-cris.c, elf32-d10v.c, elf32-dlx.c,
199 * elf32-fr30.c, elf32-frv.c, elf32-h8300.c, elf32-hppa.c, elf32-i386.c,
200 * elf32-iq2000.c, elf32-m32r.c, elf32-m68hc1x.c, elf32-m68k.c,
201 * elf32-mcore.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
202 * elf32-sh.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
203 * elf32-xstormy16.c, elf32-xtensa.c, elf64-alpha.c, elf64-hppa.c,
204 * elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
205 * elf64-x86-64.c, elfxx-ia64.c, elfxx-mips.c, elfxx-target.h: Likewise.
206 * elfxx-target.h (bfd_elfNN_bfd_final_link): Define.
207 (bfd_elfNN_print_symbol): Define.
208 * elfcode.h: Don't include elflink.h.
209 (elf_bfd_discard_info, elf_reloc_symbol_deleted_p,
210 elf_link_record_dynamic_symbol, elf_bfd_final_link, elf_gc_sections,
211 elf_gc_common_finalize_got_offsets, elf_gc_common_final_link,
212 elf_gc_record_vtinherit, elf_gc_record_vtentry,
213 elf_link_record_local_dynamic_symbol): Don't define.
214 * elflink.c: Update for changed function names. Move elflink.h
215 code here.
216 * elflink.h: Delete file.
217 * po/SRC-POTFILES.in: Regenerate.
218 * po/bfd.pot: Regenerate.
219
220 2004-03-27 Alan Modra <amodra@bigpond.net.au>
221
222 * elf64-mmix.c (mmix_elf_relocate_section): Restore code setting
223 "name" for global syms accidentally removed in 2004-03-20 change.
224
225 2004-03-27 Alan Modra <amodra@bigpond.net.au>
226
227 * elf-bfd.h (struct elf_reloc_cookie): Add r_sym_shift field.
228 * elflink.h: Replace all occurrences of sizeof (Elf_External_*)
229 where Elf_External_* is different for 64 and 32 bit, with
230 corresponding elf_size_info field.
231 (struct elf_final_link_info): Use "bfd_byte *" instead
232 of "Elf_External_Sym *" for external_syms and symbuf.
233 (elf_link_adjust_relocs): Set up r_type_mask and r_sym_shift local
234 vars and use instead of ELF_R_INFO and ELF_R_TYPE macros.
235 (struct elf_link_sort_rela): Add "sym_mask" alias for "offset".
236 (elf_link_sort_cmp1): Use sym_mask field instead of ELF_R_SYM.
237 (elf_link_sort_cmp2): Adjust.
238 (elf_link_sort_relocs): Set up r_sym_mask local var instead of
239 using ELF_R_SYM macro. Set u.sym_mask.
240 (elf_bfd_final_link): Call _bfd_elf_stringtab_init instead of macro
241 version, elf_stringtab_init. Ditto for bfd_section_from_elf_index
242 vs. section_from_elf_index. Adjust Elf_External_Sym pointer
243 arithmetic. Pass bed to elf_link_flush_output_syms. Adjust
244 Elf_External_Dyn pointer arithmentic. Use bed swap_dyn_in and
245 swap_syn_out functions. Rearrange dyn swap in/out switch.
246 (elf_link_output_sym): Adjust Elf_External_Sym pointer arithmentic.
247 Pass bed to elf_link_flush_output_syms. Use bed swap_symbol_out.
248 (elf_link_flush_output_syms): Add elf_backend_data arg.
249 (elf_link_check_versioned_symbol): Likewise.
250 (elf_link_output_extsym): Pass bed to elf_link_check_versioned_symbol.
251 Adjust Elf_External_Sym pointer arithmetic. Use bed swap_symbol_out.
252 (elf_link_input_bfd): Use bfd_section_from_elf_index. Set up
253 r_type_mask and r_sym_shift local vars and use instead of ELF_R_SYM,
254 ELF_R_TYPE and ELF_R_INFO macros.
255 (elf_reloc_link_order): Select ELF32_R_INFO or ELF64_R_INFO invocation
256 based on size rather than using ELF_R_INFO.
257 (elf_gc_mark): Set up r_sym_shift local var and use instead of
258 ELF_R_SYM macro.
259 (struct alloc_got_off_arg): New.
260 (elf_gc_common_finalize_got_offsets): Use elf_size_info instead of
261 ARCH_SIZE. Pass get entry size down to elf_gc_allocate_got_offsets.
262 (elf_gc_allocate_got_offsets): Adjust.
263 (elf_reloc_symbol_deleted_p): Usee cookie.r_sym_shift instead of
264 ELF_R_SYM. Use bfd_section_from_elf_index.
265 (elf_bfd_discard_info): Set cookie.r_sym_shift.
266 * elfcode.h (elf_stringtab_init, section_from_elf_index): Delete.
267 (elf_slurp_symbol_table): Use bfd_section_from_elf_index.
268
269 2004-03-26 Stan Shebs <shebs@apple.com>
270
271 Remove MPW support, no longer used.
272 * config.bfd (powerpc-*-mpw*): Remove configuration.
273 * mpw-config.in, mpw-make.sed: Remove files.
274 * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
275
276 2004-03-26 Alan Modra <amodra@bigpond.net.au>
277
278 * elf64-ppc.c (elf_backend_add_symbol_hook): Define.
279 (ppc64_elf_add_symbol_hook): New function.
280 * elf-bfd.h (struct elf_backend_data <elf_add_symbol_hook>): Remove
281 const from Elf_Internal_Sym param.
282 * elflink.c (elf_link_add_object_symbols): Adjust.
283 * elf-hppa.h (elf_hppa_add_symbol_hook): Adjust.
284 * elf32-frv.c (elf32_frv_add_symbol_hook): Adjust.
285 * elf32-i370.c (elf_backend_add_symbol_hook): Adjust.
286 * elf32-m32r.c (m32r_elf_add_symbol_hook): Adjust.
287 * elf32-m68hc1x.c (elf32_m68hc11_add_symbol_hook): Adjust.
288 * elf32-m68hc1x.h (elf32_m68hc11_add_symbol_hook): Adjust.
289 * elf32-ppc.c (ppc_elf_add_symbol_hook): Adjust.
290 * elf32-sh64.c (sh64_elf_add_symbol_hook): Adjust.
291 * elf32-v850.c (v850_elf_add_symbol_hook): Adjust.
292 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Adjust.
293 * elf64-mmix.c (mmix_elf_add_symbol_hook): Adjust.
294 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Adjust.
295 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Adjust.
296 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Adjust.
297 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Adjust.
298 * elfxx-mips.h (_bfd_mips_elf_add_symbol_hook): Adjust.
299
300 2004-03-26 Alan Modra <amodra@bigpond.net.au>
301
302 * elfxx-target.h (bfd_elfNN_bfd_link_add_symbols): Define.
303 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): Delete.
304 (_bfd_elf_sort_symbol, _bfd_elf_add_dt_needed_tag): Delete.
305 (_bfd_elf_finalize_dynstr, bfd_elf32_bfd_link_add_symbols): Delete.
306 (bfd_elf64_bfd_link_add_symbols): Delete.
307 (bfd_elf_link_add_symbols): Declare.
308 * elfcode.h (elf_bfd_link_add_symbols): Delete.
309 * elflink.c: Include safe-ctype.h.
310 (elf_add_dt_needed_tag): Rename from _bfd_elf_add_dt_needed_tag,
311 make static.
312 (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static.
313 (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make
314 static.
315 (elf_link_add_archive_symbols): Rename from
316 _bfd_elf_link_add_archive_symbols, make static.
317 (elf_link_add_object_symbols): New function. Corresponding
318 elflink.h function converted to use elf_size_info.
319 (bfd_elf_link_add_symbols): Likewise.
320 (bfd_elf_size_dynamic_sections): Adjust.
321 * elflink.h (elf_bfd_link_add_symbols): Delete.
322 (elf_link_add_object_symbols): Delete.
323 * elf32-gen.c (elf32_generic_link_add_symbols): Call
324 bfd_elf_link_add_symbols.
325 * elf64-gen.c (elf64_generic_link_add_symbols): Likewise.
326
327 2004-03-25 Alan Modra <amodra@bigpond.net.au>
328
329 * elflink.h (elf_link_add_object_symbols): Add DT_NEEDED for as-needed
330 and chained shared libs only if dynsym. Clear dynsym on forced-local.
331
332 * elf-bfd.h (_bfd_elf_add_dynamic_entry): Declare.
333 (bfd_elf32_add_dynamic_entry, bfd_elf64_add_dynamic_entry): Delete.
334 (_bfd_elf_add_dt_needed_tag): Declare.
335 (_bfd_elf_sort_symbol): Declare.
336 (_bfd_elf_finalize_dynstr): Declare.
337 (RELOC_FOR_GLOBAL_SYM): Formatting.
338 * elfcode.h (elf_add_dynamic_entry): Delete.
339 * elflink.c (_bfd_elf_add_dynamic_entry): New function. Corresponding
340 elflink.h function converted to use elf_size_info.
341 (_bfd_elf_add_dt_needed_tag): Likewise.
342 (_bfd_elf_sort_symbol): Likewise.
343 (_bfd_elf_finalize_dynstr): Likewise.
344 (compute_bucket_count): Likewise.
345 (bfd_elf_size_dynamic_sections): Likewise. Check result of
346 _bfd_elf_strtab_add before calling _bfd_elf_strtab_addref.
347 (elf_adjust_dynstr_offsets, elf_collect_hash_codes): Moved from..
348 * elflink.h: ..here.
349 (sort_symbol, add_dt_needed_tag): Delete.
350 (elf_add_dynamic_entry, elf_finalize_dynstr): Delete.
351 (compute_bucket_count, NAME(bfd_elf,size_dynamic_sections)): Delete.
352 Update all users.
353 * elf32-arm.h (add_dynamic_entry): Update. Remove casts.
354 * elf32-cris.c (add_dynamic_entry): Likewise.
355 * elf32-hppa.c (add_dynamic_entry): Likewise.
356 * elf32-i370.c (add_dynamic_entry): Likewise.
357 * elf32-i386.c (add_dynamic_entry): Likewise.
358 * elf32-m32r.c (add_dynamic_entry): Likewise.
359 * elf32-m68k.c (add_dynamic_entry): Likewise.
360 * elf32-ppc.c (add_dynamic_entry): Likewise.
361 * elf32-s390.c (add_dynamic_entry): Likewise.
362 * elf32-sh.c (add_dynamic_entry): Likewise.
363 * elf32-sparc.c (add_dynamic_entry): Likewise.
364 * elf32-vax.c (add_dynamic_entry): Likewise.
365 * elf32-xtensa.c (add_dynamic_entry): Likewise.
366 * elf64-alpha.c (add_dynamic_entry): Likewise.
367 * elf64-hppa.c (add_dynamic_entry): Likewise.
368 * elf64-ppc.c (add_dynamic_entry): Likewise.
369 * elf64-s390.c (add_dynamic_entry): Likewise.
370 * elf64-sparc.c (add_dynamic_entry): Likewise.
371 * elf64-x86-64.c (add_dynamic_entry): Likewise.
372 * elfxx-ia64.c (add_dynamic_entry): Likewise.
373 * elfxx-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
374 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
375 * elf32-frv.c (elf32_frv_size_dynamic_sections): Likewise.
376 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
377
378 2004-03-23 Paul Brook <paul@codesourcery.com>
379
380 * elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
381
382 2004-03-22 Bob Wilson <bob.wilson@acm.org>
383
384 * elf32-xtensa.c (elf_xtensa_check_relocs): Remove code to read
385 literal tables and check for relocs outside of literal pools.
386 (elf_xtensa_make_sym_local): Don't clear ELF_LINK_NON_GOT_REF flag.
387 (elf_xtensa_fix_refcounts): Don't check ELF_LINK_NON_GOT_REF or
388 set DF_TEXTREL.
389 (elf_xtensa_size_dynamic_sections): Don't add DT_TEXTREL entry.
390 (elf_xtensa_relocate_section): Read literal tables and check for
391 dynamic relocations in read-only sections and not in literal pools.
392
393 2004-03-23 Alan Modra <amodra@bigpond.net.au>
394
395 PR 51.
396 * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char.
397
398 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
399
400 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
401 R_CRIS_16_GOTPLT>: Also error if there's no PLT for a symbol
402 not defined by the executable, or defined in a DSO.
403 <eliding run-time relocation of .got>: Initialize GOT entry for a
404 function symbol or ELF_LINK_HASH_NEEDS_PLT statically in an
405 executable.
406 (cris_elf_gc_sweep_hook): Improve fallthrough marking.
407 (elf_cris_try_fold_plt_to_got): Improve head comment. Do not fold
408 a PLT reloc to GOT for an executable.
409 (elf_cris_adjust_dynamic_symbol): Only fold a .got.plt entry with
410 .got for a DSO and explain why.
411 (elf_cris_discard_excess_program_dynamics): Also lose GOT-relocs
412 and unreferenced symbols for which a PLT is defined. Adjust
413 dynamic-symbol pruning correspondingly, to make sure we don't lose
414 a dynamic symbol also defined by a DSO.
415
416 2004-03-22 Alan Modra <amodra@bigpond.net.au>
417
418 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Add input_bfd, input_section
419 and rel args. Group input and output args. Wrap to 80 columns.
420 * elf-m10200.c, elf-m10300.c, elf32-arm.h, elf32-avr.c,
421 elf32-cris.c, elf32-d10v.c, elf32-fr30.c, elf32-h8300.c,
422 elf32-hppa.c, elf32-i386.c, elf32-i860.c, elf32-ip2k.c,
423 elf32-iq2000.c, elf32-m68hc1x.c, elf32-m68k.c, elf32-mcore.c,
424 elf32-msp430.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
425 elf32-sparc.c, elf32-v850.c, elf32-vax.c, elf32-xstormy16.c,
426 elf32-xtensa.c, elf64-alpha.c, elf64-mmix.c, elf64-ppc.c,
427 elf64-s390.c, elf64-sparc.c, elf64-x86-64.c, elfxx-ia64.c: Update
428 RELOC_FOR_GLOBAL_SYMBOL invocation.
429
430 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
431
432 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if
433 unresolved symbols in objects aren't allowed.
434
435 * elf-hppa.h (elf_hppa_relocate_section): Properly handle
436 unresolved symbols.
437 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
438 (elf_hppa_unmark_useless_dynamic_symbols):
439 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
440 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
441 (elf32_hppa_relocate_section): Likewise.
442 * elf32-i370.c (i370_elf_relocate_section): Likewise.
443 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
444 * elf32-sh.c (sh_elf_relocate_section): Likewise.
445 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
446 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
447
448 * elf-m10200.c (mn10200_elf_relocate_section): Use
449 RELOC_FOR_GLOBAL_SYMBOL.
450 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
451 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
452 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
453 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
454 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
455 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Likewise.
456 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
457 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
458 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
459 * elf32-v850.c (v850_elf_relocate_section): Likewise.
460 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
461 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
462
463 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
464
465 * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
466 (final_link_relocate): Likewise.
467 * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
468 R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
469
470 2004-03-19 Alan Modra <amodra@bigpond.net.au>
471
472 * Makefile.am: Run "make dep-am".
473 * Makefile.in: Regenerate.
474 * aclocal.m4: Regenerate.
475 * config.in: Regenerate.
476 * po/bfd.pot: Regenerate.
477
478 2004-03-19 Alan Modra <amodra@bigpond.net.au>
479 H.J. Lu <hongjiu.lu@intel.com>
480
481 * elflink.c (_bfd_elf_merge_symbol): Revert last change. Move
482 type and size change code to where it was previously. Remove
483 dt_needed param. Treat old weak syms as strong if new sym is
484 from a shared lib, even when old sym is from another shared
485 lib. Remove unnecessary tests of oldweak and newweak. Correct
486 comments.
487 (_bfd_elf_add_default_symbol): Remove dt_needed param. Update
488 _bfd_elf_merge_symbol calls.
489 * elflink.h (elf_link_add_object_symbols): Update calls. Remove
490 dt_needed local var. Update comments.
491 * elf-bfd.h (_bfd_elf_merge_symbol): Update prototype.
492 (_bfd_elf_add_default_symbol): Likewise.
493
494 * elflink.c (_bfd_elf_merge_symbol): Reinstate code to handle
495 strong syms in one shared object overriding weak syms in another.
496
497 2004-03-18 Alan Modra <amodra@bigpond.net.au>
498
499 * elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field. Add
500 dyn_lib_class field. Rearrange for better packing.
501 (elf_dt_soname): Delete.
502 (elf_dyn_lib_class): Define.
503 * elf.c (bfd_elf_set_dt_needed_name): Update comment.
504 (bfd_elf_set_dt_needed_soname): Delete.
505 (bfd_elf_set_dyn_lib_class): New function.
506 * elflink.h (add_dt_needed_tag): New function. Split out from..
507 (elf_link_add_object_symbols): ..here. Rename "name" to "soname".
508 Use elf_dyn_lib_class to set dt_needed and add_needed. Move fallback
509 initialization of soname.
510 (elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of
511 elf_dt_soname.
512 * bfd-in.h (enum dynamic_lib_link_class): New.
513 (bfd_elf_set_dt_needed_soname): Delete.
514 (bfd_elf_set_dyn_lib_class): Declare.
515 * bfd-in2.h: Regenerate.
516
517 * elflink.c (_bfd_elf_merge_symbol): Rewrite weak symbol handling.
518 (_bfd_elf_add_default_symbol): Remove indirect BFD_ASSERTs.
519 * elflink.h (elf_link_add_object_symbols): Don't clear dt_needed in
520 symbol loop. Instead use add_needed to flag tag as written.
521
522 2004-03-17 Nathan Sidwell <nathan@codesourcery.com>
523
524 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
525 logic for null_input_bfd detection.
526
527 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
528
529 * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
530
531 2004-03-16 Mark Kettenis <kettenis@gnu.org>
532
533 * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
534 code.
535
536 2004-03-16 Alan Modra <amodra@bigpond.net.au>
537
538 * elflink.c (elf_link_read_relocs_from_section): Don't use
539 NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check..
540 (_bfd_elf_link_read_relocs): ..to here.
541 * elf32-ppc.c (ppc_elf_relax_section): Formatting.
542
543 2004-03-16 Alan Modra <amodra@bigpond.net.au>
544
545 * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override
546 values selected in configure.host. Require both to be defined
547 before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to
548 corresponding BFD_HOST vars with quotes.
549 <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc;
550 Always require BFD_HOST_64_BIT_DEFINED.
551 <file_ptr type>: Find off_t size before emitting message. Combine
552 off_t and ftello64 conditional.
553 * configure: Regenerate.
554
555 2004-03-16 Alan Modra <amodra@bigpond.net.au>
556
557 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
558 aliasing warning. Remove trailing whitespace throughout file.
559
560 2004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
561
562 * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of
563 input_section in calls to get_dyn_name.
564 * elf64-hppa.c (get_dyn_name): Change type of first argument to "bfd *". Use section id of first section in input BFD to build dynamic name for
565 local symbols.
566 (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
567
568 2004-03-15 Alan Modra <amodra@bigpond.net.au>
569
570 * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types.
571 (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here.
572 (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t.
573 (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t.
574 (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t.
575 * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8.
576 (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set
577 when using long.
578 * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t.
579 (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT.
580 (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
581 (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT.
582 (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise.
583 * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t.
584 (read_8_bytes, read_indirect_string, read_address): Likewise.
585 (read_abbrevs, parse_comp_unit): Likewise.
586 * targets.c (struct bfd_target): Likewise.
587 * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use.
588 * hppabsd-core.c: Likewise. Formatting.
589 * hpux-core.c: Likewise.
590 * irix-core.c: Likewise.
591 * netbsd-core.c: Likewise.
592 * osf-core.c: Likewise.
593 * ptrace-core.c: Likewise.
594 * sco5-core.c: Likewise.
595 * trad-core.c: Likewise.
596 * configure: Regenerate.
597 * bfd-in2.h: Regenerate.
598
599 2004-03-15 Alan Modra <amodra@bigpond.net.au>
600
601 * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
602 (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
603 (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
604 (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
605 (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
606 (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
607 (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
608 * libbfd.c: Likewise in function definitions.
609 (bfd_put_8): Mask with 0xff rather than casting to char.
610 (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
611 (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
612 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
613 (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
614 (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
615 (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
616 * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
617 (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
618 (H_GET_64, H_GET_32, H_GET_16): Likewise.
619 (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
620 * archive.c (do_slurp_coff_armap): Update swap prototype.
621 * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
622 (tic54x_getl_signed_32): Likewise.
623 (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
624 * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
625 * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
626 (bfd_getp_signed_32, bfd_putp32): Likewise.
627 * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
628 bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
629 bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
630 bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
631 bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
632 bfd_h_getx_signed_16, bfd_h_putx16.
633 * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
634 * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
635 * hpux-core.c: Likewise.
636 * irix-core.c: Likewise.
637 * netbsd-core.c: Likewise.
638 * osf-core.c: Likewise.
639 * ptrace-core.c: Likewise.
640 * sco5-core.c: Likewise.
641 * trad-core.c: Likewise.
642 * bfd-in2.h: Regenerate.
643
644 2004-03-15 Matt Thomas <matt@3am-software.com>
645
646 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
647 selected.
648
649 2004-03-13 Mark Kettenis <kettenis@gnu.org>
650
651 * config.bfd: Add x86_64-*-openbsd*.
652 * configure.in (x86_64-*-openbsd*): Set COREFILE to
653 netbsd-core.lo.
654 * configure: Regenerate.
655
656 2004-03-12 Nick Clifton <nickc@redhat.com>
657 Dave Murphy <wintermute2k4@ntlworld.com>
658
659 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
660 if the input bfd does not contain any code.
661
662 2004-03-09 Steve Ellcey <sje@cup.hp.com>
663
664 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
665
666 2004-03-05 Fred Fish <fnf@redhat.com>
667
668 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
669 mips16 symbols to be even rather than testing first for even/odd.
670 (_bfd_mips_elf_link_output_symbol_hook): Ditto.
671
672 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
673
674 * elf.c (map_sections_to_segments): Ignore .tbss sections for
675 layout purposes.
676
677 2004-03-03 Alexandre Oliva <aoliva@redhat.com>
678
679 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
680 undefined symbols as hash_new.
681
682 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
683
684 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
685 * cpu-sh.c: Ditto.
686 * elf32-sh.c: Ditto.
687 * bfd-in2.h: Regenerate.
688
689 2004-03-02 Alexandre Oliva <aoliva@redhat.com>
690
691 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
692 dynrelocs.
693 (_frv_count_got_plt_entries): Initialize them.
694 (frv_pic_relocs_info_find): Add insert argument. Adjust all
695 callers.
696 (frv_pic_relocs_info_for_global): Likewise.
697 (frv_pic_relocs_info_for_local): Likewise.
698 (frv_pic_merge_early_relocs_info): New.
699 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
700 another.
701 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
702 Check that we don't exceed the allocated count for entry.
703 (_frv_add_rofixup): Likewise.
704 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
705 (elf32_frv_finish_dynamic_sections): Improve error message in case
706 we emit too few rofixup entries.
707
708 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
709
710 * archures.c (bfd_mach_fr450): New.
711 * bfd-in2.h: Regenerate.
712 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
713 (arch_info_500): Link to it.
714 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
715 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
716 (frv_elf_arch_extension_p): New function.
717 (frv_elf_merge_private_bfd_data): Use it.
718
719 2004-02-28 H.J. Lu <hongjiu.lu@intel.com>
720
721 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
722
723 * elflink.h (is_global_data_symbol_definition): Moved to
724 elflink.c.
725 (elf_link_is_defined_archive_symbol): Likewise.
726 (elf_link_add_archive_symbols): Likewise. Renamed to
727 _bfd_elf_link_add_archive_symbols.
728
729 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
730 of ELF symbol table entry from backend.
731 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
732 instead of elf_link_add_object_symbols.
733
734 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
735
736 * elf-bfd.h (struct elf_backend_data): Added
737 elf_backend_can_make_relative_eh_frame,
738 elf_backend_can_make_lsda_relative_eh_frame and
739 elf_backend_encode_eh_address.
740 (_bfd_elf_encode_eh_address): Declare.
741 (_bfd_elf_can_make_relative): Declare.
742 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
743 hooks to decide whether to attempt to make_relative and
744 make_lsda_relative.
745 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
746 (_bfd_elf_can_make_relative): New.
747 (_bfd_elf_encode_eh_address): New.
748 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
749 (frv_elf_encode_eh_address): New.
750 (elf_backend_can_make_relative_eh_frame): Define.
751 (elf_backend_can_make_lsda_relative_eh_frame): Define.
752 (elf_backend_encode_eh_address): Define.
753 * elfxx-target.h
754 (elf_backend_can_make_relative_eh_frame): Define.
755 (elf_backend_can_make_lsda_relative_eh_frame): Define.
756 (elf_backend_encode_eh_address): Define.
757 (elfNN_bed): Add them.
758
759 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
760
761 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
762 complain_on_overflow to signed.
763
764 2004-02-27 H.J. Lu <hongjiu.lu@intel.com>
765
766 * elflink.h (sort_symbol): New.
767 (elf_link_add_object_symbols): Use a sorted symbol array for
768 weakdef.
769
770 2004-02-27 Jakub Jelinek <jakub@redhat.com>
771
772 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
773 for pc relative relocs.
774 (elf_s390_relocate_section): Likewise.
775 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
776 for pc relative relocs.
777 (elf_s390_relocate_section): Likewise.
778
779 2004-02-26 H.J. Lu <hongjiu.lu@intel.com>
780
781 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
782 count_dyn_reloc.
783
784 2004-02-25 H.J. Lu <hongjiu.lu@intel.com>
785
786 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
787 field to track if a relocation is against readonly section.
788 (count_dyn_reloc): Take a new argument for rent->reltext.
789 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
790 (get_reloc_section): Don't set ia64_info->reltext here.
791 (allocate_dynrel_entries): Set ia64_info->reltext here.
792
793 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
794
795 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
796 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
797 function's descriptor to symbol+offset, and map local undefweak
798 symbol to NULL function descriptor.
799 (elf32_frv_relocate_section): Likewise.
800
801 2004-02-23 Mark Kettenis <kettenis@gnu.org>
802
803 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
804 M_X86_64_NETBSD.
805 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
806 (netbsd_core_file_p): Set architecture from machine ID for
807 selected machines.
808
809 2004-02-23 Jakub Jelinek <jakub@redhat.com>
810
811 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
812 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
813
814 2004-02-21 H.J. Lu <hongjiu.lu@intel.com>
815
816 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
817 symbols with non-default visibility.
818
819 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
820
821 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
822 IMAGE_SCN_MEM_WRITE on known sections only.
823
824 2004-02-20 Jakub Jelinek <jakub@redhat.com>
825
826 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
827 symbols used in PIE relocs.
828
829 2004-02-19 Jakub Jelinek <jakub@redhat.com>
830
831 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
832 .plt sh_entsize.
833
834 2004-02-18 Daniel Jacobowitz <drow@mvista.com>
835
836 * configure.in: Update version to 2.15.90.
837 * configure: Regenerate.
838
839 2004-02-17 Daniel Jacobowitz <drow@mvista.com>
840 Richard Sandiford <rsandifo@redhat.com>
841
842 * elfxx-mips.c (mips_elf_calculate_relocation): Use
843 _bfd_elf_symbol_refs_local_p to decide whether to decay
844 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
845 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
846 relocs if the symbol wasn't defined by a regular object file.
847 Don't check the symbol's dynindx.
848
849 2004-02-16 Andrew Cagney <cagney@redhat.com>
850
851 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
852 @bfd_file_ptr@.
853 * bfd-in2.h: Re-generate.
854
855 2004-02-14 Andrew Cagney <cagney@redhat.com>
856
857 * configure.host (HDEFINES): When hppa*-*-hpux*, define
858 _LARGEFILE64_SOURCE.
859
860 2004-02-13 Andrew Cagney <cagney@redhat.com>
861
862 * elf.c (vma_page_aligned_bias): New function.
863 (assign_file_positions_except_relocs)
864 (assign_file_positions_for_segments): Replace broken modulo
865 arithmetic with call to vma_page_aligned_bias.
866
867 2004-02-11 Andrew Cagney <cagney@redhat.com>
868
869 * bfd-in.h: Update copyright.
870 (bfd_tell): Change return type to file_ptr.
871 * bfd-in2.h: Re-generate.
872 * cache.c: Update copyright.
873 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
874 parameter.
875 (close_one): Use real_ftell.
876 * bfdio.c: Update copyright.
877 (real_ftell, real_fseek): New functions.
878 (bfd_tell): Use real_fseek and real_ftell, change return type to
879 file_ptr.
880 (bfd_seek): Use real_ftell and real_fseek, change type of
881 file_position to a file_ptr.
882 * libbfd-in.h: Update copyright.
883 (real_ftell, real_fseek): Declare.
884 * libbfd.h: Re-generate.
885
886 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
887 fseeko and fseeko64. Determine bfd_file_ptr.
888 * configure: Re-generate.
889 * config.in: Re-generate.
890
891 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
892
893 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
894 * elf32-h8300.c: Likewise.
895
896 2004-02-09 Christian Vogel <vogelchr@vogel.cx>
897 Nick Clifton <nickc@redhat.com>
898
899 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
900 GOT entries with no associated GOT subsection.
901
902 2004-02-09 Richard Sandiford <rsandifo@redhat.com>
903
904 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
905 * elf.c (swap_out_syms): Use it to decide whether local section
906 symbols should be named.
907 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
908 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
909 (elf_backend_name_local_section_symbols): Define.
910 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
911
912 2004-01-30 H.J. Lu <hongjiu.lu@intel.com>
913
914 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
915 (elfNN_ia64_relax_section): Optimize brl to br during the relax
916 finalize pass.
917
918 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
919
920 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
921 to bfd_link_hash_entry passed by reference to
922 _bfd_generic_link_add_one_symbol.
923
924 2004-01-25 H.J. Lu <hongjiu.lu@intel.com>
925
926 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
927 relocations against dynamic symbols.
928
929 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
930
931 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
932 change.
933
934 2004-01-21 Tom Rix <tcrix@worldnet.att.net>
935
936 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
937 * bfd-in2.h, libbfd.h: Rebuilt.
938
939 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
940
941 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
942 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
943 flag has been cleared.
944
945 2004-01-19 Kazu Hirata <kazu@cs.umass.edu>
946
947 * coff-h8300.c: Add and adjust comments about relaxation.
948 * elf32-h8300.c: Likewise.
949
950 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
951
952 * coff-h8300.c: Fix comment typos.
953 * elf32-h8300.c: Likewise.
954
955 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
956
957 * coff-h8300.c: Add comments about relaxation.
958 * elf32-h8300.c: Likewise.
959
960 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
961
962 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
963 throughout.
964 * aclocal.m4: Regenerate.
965 * configure: Regenerate.
966
967 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
968
969 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
970 mips_elf64_rtype_to_howto instead of using howto_table.
971
972 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
973
974 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
975 the .plt section.
976 (elf32_arm_check_relocs): Don't increment the PLT refcount for
977 relocs which would not use the PLT.
978
979 2004-01-13 Alan Modra <amodra@bigpond.net.au>
980
981 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
982 (ppc64_elf_gc_sweep_hook): Likewise.
983 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
984
985 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
986
987 Adds linker relaxation support for bit manipulation insns like
988 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
989 bst, btst, bxor.
990 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
991 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
992 * coff-h8300.c: Opcode for bit manipulation insn is checked in
993 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
994
995 2004-01-12 Alan Modra <amodra@bigpond.net.au>
996
997 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
998
999 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
1000
1001 * elf32-h8300.c: Fix formatting.
1002
1003 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
1004
1005 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
1006 dynamic object is present. Declare r_symndx and h in an inner
1007 scope.
1008 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
1009
1010 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
1011
1012 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
1013 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
1014 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
1015 identically. Do not emit PC24 relocations for shared libraries.
1016 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
1017 identically. Don't adjust pc_count.
1018 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
1019 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
1020 adjust count for branch relocations.
1021 (allocate_dynrelocs): Correct typo in call to
1022 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
1023 PC24 or PLT32 relocs when linking.
1024
1025 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
1026
1027 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
1028 relocation howto with ARM_26 one for consistency.
1029 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
1030 that will be converted to ARM_26D ones, since we always want 'done'
1031 relocations to be reflected in section's data.
1032 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
1033 offset.
1034 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
1035 requested.
1036
1037 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
1038
1039 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
1040 are not partial_inplace during a relocatable link.
1041
1042 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
1043
1044 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
1045 if no dynamic object is present. Declare r_symndx and h in an
1046 inner scope.
1047
1048 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
1049
1050 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
1051 trampoline if it is known out of range.
1052
1053 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1054
1055 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
1056 * elf32-frv.c (_frv_osec_readonly_p): New.
1057 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
1058 undefweak symbol.
1059 (_frv_count_got_plt_entries): Adjust expected count accordingly.
1060 (elf32_frv_relocate_section): Likewise. Error out if attempting
1061 to emit rofixups or dynamic relocs in read-only segments. Use
1062 _bfd_elf_section_offset to adjust r_offsets in rofixups and
1063 dynamic relocations.
1064 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
1065 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
1066 relocations or fixups involving merged sections correctly. Avoid
1067 crash when undefined symbol is referenced by R_FRV_32 or
1068 R_FRV_FUNCDESC_VALUE.
1069 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
1070 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
1071 input section holding local symbol to addend of R_FRV_32 or
1072 R_FRV_FUNCDESC_VALUE dynamic relocation.
1073 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
1074 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
1075 (elf32_frv_always_size_sections): Don't store pointer to
1076 __stacksize symbol in sec_info.
1077 (elf32_frv_modify_segment_map): Look it up here.
1078 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
1079 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
1080 of the lazy PLT entry, not only its offset, as the low word of a
1081 function descriptor.
1082 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
1083 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
1084 if a hash table entry already exists but is not a definition.
1085 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1086 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
1087 (_frv_add_rofixup): Don't inline.
1088 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
1089 for undefweak symbols.
1090 (elf32_frv_relocate_section): Avoid crash while computing
1091 relocation when linking with shared library. Only emit rofixups
1092 and dynamic relocations for alloc&load sections. Mark binaries
1093 with inter-segment relocations for relocation as a unit.
1094 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
1095 (DEFAULT_STACK_SIZE): New.
1096 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
1097 emit rofixups or dynamic relocs when linking dynamic non-PIE
1098 executables.
1099 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
1100 shared libs too. Reserve the last entry for the GOT pointer.
1101 (elf32_frv_finish_dynamic_sections): Emit it.
1102 (elf32_frv_always_size_sections): New.
1103 (elf32_frv_modify_segment_map): New.
1104 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
1105 sections.
1106 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
1107 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
1108 (elf_backend_always_size_sections): New.
1109 (elf_backend_modify_segment_map): New.
1110 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1111 * config.bfd: Added frv-*-*linux*.
1112 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
1113 ABS section, instead of crashing.
1114 (elf32_frv_relocate_section): Don't crash before warning about
1115 different segments in non-PIC relocation.
1116 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
1117 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
1118 relocs to undefweak symbols.
1119 (elf32_frv_relocate_section): Ditto for undefined symbols.
1120 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
1121 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
1122 gotfixup section was created.
1123 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1124 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
1125 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
1126 complain_overflow_signed.
1127 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
1128 have not been allocated.
1129 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
1130 privfd only if dynamic sections were created.
1131 (elf32_frv_relocate_section): Compute gprel_segment, and use it
1132 for GPREL relocs. When linking relocatable FDPIC executables,
1133 emit warnings for relocations that would be illegal on PIE or
1134 shared libraries. Emit rofixup for R_FRV_32 only if input object
1135 is not FDPIC.
1136 (_frv_create_got_section): Define _gp symbol in the rofixup
1137 section.
1138 (elf32_frv_finish_dynamic_sections): If rofixups needed but
1139 dynamic sections missing, error out requesting -melf32frvfd.
1140 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
1141 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
1142 computation of addends from section and global or local symbol
1143 value. Change return type to bfd_boolean, and return a failure if
1144 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
1145 nonzero addend is required.
1146 (elf32_frv_relocate_section): Likewise. Print error for
1147 unsupported nonzero addends.
1148 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1149 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
1150 force everything local.
1151 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
1152 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
1153 (frv_gotfixup_section): New.
1154 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
1155 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
1156 and relocsfdv.
1157 (_frv_add_rofixup): New.
1158 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
1159 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
1160 improve some ugly conditions.
1161 (elf32_frv_relocate_section): Likewise. Reject inter-segment
1162 relocations in fdpic.
1163 (_frv_create_got_section): Create .rofixup.got section.
1164 (struct _frv_dynamic_got_info): Added fixups.
1165 (_frv_count_got_plt_entries): Account in-GOT relocations into
1166 relocs32, relocsfd and relocsfdv. Account them into relocs or
1167 fixups, as appropriate.
1168 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
1169 sizing of gotrel.
1170 (elf32_frv_finish_dynamic_sections): Verify that the right number
1171 of relocations and fixups was generated.
1172 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
1173 relocsfdv.
1174 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
1175 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
1176 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
1177 descriptor of a (formerly-)global symbol is local.
1178 (struct frv_pic_relocs_info): Adjust comments.
1179 (_frv_emit_got_relocs_plt_entries): Adjust.
1180 (elf32_frv_relocate_section): Likewise.
1181 (_frv_count_got_plt_entries): Likewise.
1182 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
1183 symbol's value to addend in the common preamble. Decay dynamic
1184 symbols to section+offset if they bind or call locally, for GOT
1185 and FUNCDESC_VALUE, respectively.
1186 (elf32_frv_relocate_section): Likewise.
1187 (elf32_frv_check_relocs): Don't register as dynamic symbols of
1188 internal or hidden visibility.
1189 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
1190 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
1191 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
1192 (elf32_frv_relocate_section): Pass relocation addend in. Use
1193 original relocation addend to look up the got relocs/plt entries
1194 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
1195 processing relocations that reference .scommon symbols.
1196 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1197 Introduce support for dynamic linking.
1198 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
1199 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
1200 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
1201 (frv_reloc_type_lookup): Return REL howtos for executables and
1202 dynamic libraries.
1203 (frv_info_to_howto_rel): New.
1204 (struct frv_elf_link_hash_table): New.
1205 (frv_hash_table, frv_got_section, frv_gotrel_section,
1206 frv_plt_section, frv_pltrel_section, frv_relocs_info,
1207 frv_got_initial_offset, frv_plt_initial_offset): New macros.
1208 (frv_elf_link_hash_table_create): New.
1209 (struct frv_pic_relocs_info): New.
1210 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
1211 (frv_pic_relocs_info_find): New.
1212 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
1213 New.
1214 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
1215 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
1216 (_frv_emit_got_relocs_plt_entries): New.
1217 (elf32_frv_relocate_section): Add support for dynamic linking.
1218 Handle new relocations.
1219 (_frv_create_got_section): New.
1220 (elf32_frv_create_dynamic_sections): New.
1221 (ELF_DYNAMIC_INTERPRETER): New.
1222 (struct _frv_dynamic_got_info): New.
1223 (_frv_count_got_plt_entries): New.
1224 (struct _frv_dynamic_got_plt_info): New.
1225 (_frv_compute_got_alloc_data): New.
1226 (_frv_get_got_entry, _frv_get_fd_entry): New.
1227 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
1228 (_frv_resolve_final_relocs_info): New.
1229 (elf32_frv_size_dynamic_sections): New.
1230 (elf32_frv_finish_dynamic_sections): New.
1231 (elf32_frv_adjust_dynamic_symbol): New.
1232 (elf32_frv_finish_dynamic_symbol): New.
1233 (elf32_frv_check_relocs): Handle new relocs. Explain how the
1234 whole thing works.
1235 (elf_info_to_howto_rel): Define.
1236 (bfd_elf32_bfd_link_hash_table_create): Define.
1237 (elf_backend_create_dynamic_sections): Define.
1238 (elf_backend_adjust_dynamic_symbol): Define.
1239 (elf_backend_size_dynamic_sections): Define.
1240 (elf_backend_finish_dynamic_symbol): Define.
1241 (elf_backend_finish_dynamic_sections): Define.
1242 (elf_backend_want_got_sym): Define.
1243 (elf_backend_got_header_size): Define.
1244 (elf_backend_want_got_plt): Define.
1245 (elf_backend_plt_readonly): Define.
1246 (elf_backend_want_plt_sym): Define.
1247 (elf_backend_plt_header_size): Define.
1248 (elf_backend_may_use_rel_p): Define.
1249 (elf_backend_may_use_rela_p): Define.
1250 (elf_backend_default_use_rela_p): Define.
1251 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
1252 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
1253 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
1254 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
1255 (frv_reloc_map): Map the corresponding BFD relocs to them.
1256 (frv_reloc_type_lookup): ... and back to BFD relocs.
1257 * reloc.c: New relocs.
1258 * bfd-in2.h, libbfd.h: Rebuilt.
1259 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
1260 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
1261 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
1262 R_FRV_FUNCDESC_GOTLO): New.
1263 (frv_reloc_map): Map the corresponding BFD relocs to them.
1264 (frv_reloc_type_lookup): ... and back to BFD relocs.
1265 * reloc.c: New relocs.
1266 * bfd-in2.h, libbfd.h: Rebuilt.
1267
1268 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1269
1270 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
1271 targets to support pages of up to 64kB.
1272 (elf32_bed): Redefine to get a separate backend data structure for
1273 traditional targets.
1274 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
1275 targets to support pages of up to 64kB.
1276 (elf64_bed): Redefine to get a separate backend data structure for
1277 traditional targets.
1278 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
1279 targets to support pages of up to 64kB.
1280 (elf32_bed): Redefine to get a separate backend data structure for
1281 traditional targets.
1282
1283 2004-01-04 Mark Kettenis <kettenis@gnu.org>
1284
1285 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
1286
1287 2004-01-02 Mark Kettenis <kettenis@gnu.org>
1288
1289 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
1290 (elf_i386_grok_psinfo): Likewise.
1291
1292 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1293
1294 * config.bfd: Add m68k-uClinux target.
1295
1296 2004-01-01 Grant Edwards <grante@visi.com>
1297
1298 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
1299 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
1300 (elf32_h8_gc_sweep_hook): New function.
1301 (elf_backend_gc_mark_hook): Define.
1302 (elf_backend_gc_sweep_hook): Define.
1303 (elf_backend_can_gc_sections): Define.
1304
1305 For older changes see ChangeLog-0203
1306 \f
1307 Local Variables:
1308 mode: change-log
1309 left-margin: 8
1310 fill-column: 74
1311 version-control: never
1312 End:
This page took 0.071309 seconds and 3 git commands to generate.