]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
bfd/ChangeLog:
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
aee6f5b4
AO
12004-06-21 Alexandre Oliva <aoliva@redhat.com>
2
3 * elf-bfd.h (struct elf_backend_data): Added
4 elf_backend_omit_section_dynsym.
5 (_bfd_elf_link_omit_section_dynsym): Declare.
6 * elf32-frv.c (_frvfdpic_link_omit_section_dynsym): New.
7 (elf_backend_omit_section_dynsym): Use it for frvfdpic.
8 * elflink.c (_bfd_elf_link_omit_section_dynsym): Split out of...
9 (_bfd_elf_link_renumber_dynsyms): ... this function.
10 * elfxx-target.h (elf_backend_omit_section_dynsym): Default to
11 _bfd_elf_link_omit_section_dynsym).
12 (elfNN_bed): Added elf_backend_omit_section_dynsym.
13
05576f10
NC
142004-06-21 Nick Clifton <nickc@redhat.com>
15
16 * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED
17 flags.
18
02d5a37b
JG
192004-06-17 Jerome Guitton <guitton@gnat.com>
20
21 * bfd-in.h (bfd_cache_close_all): New function declaration.
22 * bfd-in2.h: Regenerate.
23 * cache.c (bfd_cache_close_all): New function definition.
24
d2bef492
MK
252004-06-16 Mark Kettenis <kettenis@gnu.org>
26
27 * configure.in: Don't set COREFILE to trad-core.lo for FreeBSD
28 4.10 and beyond.
29 * configure: Regenerate.
30
8528d62e
DJ
312004-06-16 Daniel Jacobowitz <dan@debian.org>
32
33 * elf32-ppc.c (ppc_elf_create_linker_section): Create symbols in
34 the pre-existing section.
35
911d08a7
AM
362004-06-15 Alan Modra <amodra@bigpond.net.au>
37
38 * section.c (struct sec): Remove usused flags. Reorganize a little.
39 (bfd_get_section_size_before_reloc): Delete.
40 (bfd_get_section_size_after_reloc): Delete.
41 (STD_SECTION): Update.
42 (bfd_get_section_size_now): Delete.
43 (bfd_set_section_contents): Don't referece reloc_done.
44 (bfd_get_section_contents): Remove reloc_done comment.
45 * bout.c (b_out_bfd_get_relocated_section_contents): Don't set
46 reloc_done.
47 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise.
48 * ecoff.c (bfd_debug_section): Update initializer.
49 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Ditto.
50 * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
51 * bfd-in.h (bfd_section_size): Expand.
52 (bfd_get_section_size): New macro.
53 * bfd-in2.h: Regenerate.
54 * coff64-rs6000.c (xcoff64_write_object_contents): Replace
55 bfd_get_section_size_before_reloc with bfd_get_section_size.
56 * coffcode.h (coff_write_object_contents): Likewise.
57 * coffgen.c (build_debug_section): Likewise.
58 * dwarf1.c (parse_line_table): Likewise.
59 (_bfd_dwarf1_find_nearest_line): Likewise.
60 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
61 * i386msdos.c (msdos_write_object_contents): Likewise.
62 * pdp11.c (squirt_out_relocs): Likewise.
63 * elf32-sh64.c (sh64_find_section_for_address): Remove comment.
64 * elf64-mmix.c (mmix_elf_final_link): Update comment.
65
092dcd75
CD
662004-06-14 Chris Demetriou <cgd@broadcom.com>
67
68 * elf32-mips.c (elf_mips_gnu_pcrel32): Add (undoing 2004-04-24
69 removal) with updated comment.
70 (bfd_elf32_bfd_reloc_type_lookup): Add back case for
71 BFD_RELOC_32_PCREL.
72 (mips_elf32_rtype_to_howto): Add back case for R_MIPS_PC32.
73 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
74
3ffa5234
AM
752004-06-12 Alan Modra <amodra@bigpond.net.au>
76
77 * elf64-x86-64.c (elf64_x86_64_relocate_section): Ignore reloc
78 overflow on branches to undefweaks.
79
e9edc808
MR
802004-06-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
81
82 * coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly
83 as ecoff_section_data() does not return a valid lvalue.
84
a873f25a
AO
852004-06-09 Alexandre Oliva <aoliva@redhat.com>
86
a9b881be
AO
87 * elflink.c (elf_sort_symbol): Compare section id, not pointers.
88 (elf_link_add_object_symbols): Likewise.
89
a873f25a
AO
90 * elf-m10300.c (_bfd_mn10300_elf_reloc_type_class): New.
91 (elf_backend_reloc_type_class): New.
92
eef0f186
MK
932004-06-08 Mark Kettenis <kettenis@gnu.org>
94
95 * configure.in (hppa*-*-netbsd*, hppa*-*-openbsd): Set COREFILE to
96 netbsd-core.lo.
97 * configure: Regenerate.
98
822392ce
DJ
992004-06-07 Daniel Jacobowitz <dan@debian.org>
100
101 From: Albert Chin-A-Young <china@thewrittenword.com>
102 * bfd/elf-bfd.h (struct eh_cie_fde): Convert unsigned char bitfields
103 to unsigned int.
104
9f2e92c5
L
1052004-05-29 H.J. Lu <hongjiu.lu@intel.com>
106
107 * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last
108 change.
109
dd90f1b2
DD
1102004-05-28 DJ Delorie <dj@redhat.com>
111
112 * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend
113 for linking, but otherwise adjust reloc for merged sections.
114
5dd23ec1
L
1152004-05-28 H.J. Lu <hongjiu.lu@intel.com>
116
117 * elfxx-ia64.c (elfNN_ia64_relax_section): Properly call
118 _bfd_merged_section_offset for local symbols.
119
f6f9408f
JR
1202004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
121
122 * Makefile.am: Regenerate dependencies.
123 * Makefile.in: Regenerate.
124 * archures.c: Add bfd_mach_sh3_nommu .
125 * bfd-in2.h: Regenerate.
126 * cpu-sh.c: Add sh3-nommu architecture.
127 (bfd_to_arch_table): Create new table.
128 (sh_get_arch_from_bfd_mach): Create new function.
129 (sh_get_arch_up_from_bfd_mach): Create new function.
130 (sh_merge_bfd_arch): Create new function.
131 * elf32-sh.c (sh_ef_bfd_table): Add table.
132 (sh_elf_check_relocs): Replace switch statement with
133 use of sh_ef_bfd_table .
134 (sh_elf_get_flags_from_mach): Add new function.
135 (sh_find_elf_flags): Likewise.
136 (sh_elf_copy_private_data): Replace most of non-elf contents
137 with a call to sh_merge_bfd_arch() .
138
d866f350
MC
1392004-05-27 Michael Chastain <mec.gnu@mindspring.com>
140
141 * Makefile.am (bfdver.h): Use explicit filename, not $< .
142 * Makefile.in: Regenerate.
143
1055df0f
AO
1442004-05-27 Alexandre Oliva <aoliva@redhat.com>
145
146 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Avoid
147 custom calling conventions for dynamic symbols.
148 (mn10300_elf_relax_section): Avoid relaxing a function as a local
149 symbol if it's an alias to a global one.
150
b3096250
L
1512004-05-26 H.J. Lu <hongjiu.lu@intel.com>
152
153 * elf.c (_bfd_elf_make_section_from_shdr): Undo the last
154 change.
155
9bb351fd
AO
1562004-05-27 Alexandre Oliva <aoliva@redhat.com>
157
158 * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
159 loop over hashes.
160
e49f5022
AM
1612004-05-26 Alan Modra <amodra@bigpond.net.au>
162
163 * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
164 for SHT_GROUP sections.
165
57ceae94
AM
1662004-05-25 Alan Modra <amodra@bigpond.net.au>
167
168 * elflink.c (elf_link_add_object_symbols): Don't set up merge
169 section data here..
170 * elf.c (_bfd_elf_merge_sections): .. Do it here instead.
171 * merge.c: Formatting. Remove unnecessary casts. Expand
172 bfd_get_section_alignment macro.
173 (struct sec_merge_sec_info): Rename "first" to "first_str". Update
174 use throughout file.
175 (_bfd_add_merge_section): Rename from _bfd_merge_section. Update
176 comment. Abort on dynamic or non-SEC_MERGE input. Don't test
177 section name to determine sinfo group, instead test output section
178 and alignment.
179 (_bfd_merge_sections): Add struct bfd_link_info param. Call
180 _bfd_strip_section_from_output rather than just twiddling flags.
181 * libbfd-in.h (_bfd_add_merge_section): Rename, update comment.
182 (_bfd_merge_sections): Update prototype.
183 * libbfd.h: Regenerate.
184
c6f8758f 1852004-05-24 Mark Kettenis <kettenis@gnu.org>
d34436e8
MK
186
187 * netbsd-core.c: Correctly indent section that sets architecture
188 from machine ID.
189
c6f8758f
NC
190 From Miod Vallat <miod@online.fr>:
191 * m88kopenbsd.c: New file.
192 * targets.c (m88k_openbsd_vec): New.
193 * config.bfd: Add m88k-*-openbsd*.
194 * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo.
195 (m88kopenbsd_vec): New.
196 * configure: Regenerate.
197 * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo.
198 (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c.
199 Run "make dep-am".
200 * Makefile.in: Regenerate.
201 * po/SRC-POTFILES.in: Regenerate.
202
7d7e6bc4
NC
2032004-05-24 Nick Clifton <nickc@redhat.com>
204
205 * hash.c: Remove bogus node "Changing the default Hash Table Size"
206 introduced by hash table size patch.
207
bc286f95
BE
2082004-05-22 Ben Elliston <bje@au.ibm.com>
209
210 * configure.in (is_release): Remove.
211 (bfd_version_date, bfd_version, bfd_version_string): Likewise.
212 (AC_OUTPUT): Don't output bfdver.h from version.h.
213 * configure: Regenerate.
214 * Makefile.am (RELEASE): New variable.
215 (bfdver.h): New target.
216 * Makefile.in: Regenerate.
217 * doc/Makefile.in: Likewise.
218
8b89a4eb
BE
2192004-05-22 Ben Elliston <bje@au.ibm.com>
220
221 * Makefile.am (config.status): Don't depend on version.h.
222 * Makefile.in: Regenerate.
223
753731ee
AM
2242004-05-22 Alan Modra <amodra@bigpond.net.au>
225
226 * merge.c (_bfd_merged_section_offset): Remove "addend" param.
227 * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype.
228 * libbfd.h: Regenerate.
229 * elf.c (_bfd_elf_rela_local_sym): Adjust call.
230 (_bfd_elf_rel_local_sym): Likewise.
231 * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise.
232 (elf_link_input_bfd): Likewise.
233 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
234 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
235 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
236 (elfNN_ia64_relocate_section): Likewise.
237
2d643429
NC
2382004-05-21 Andy Chittenden <achittenden@bluearc.com>
239
240 * hash.c (bfd_default_hash_table_size): New variable.
241 (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE.
242 (bfd_hash_set_default_size): New function. Set the default size
243 to a selected prime number close to the argument. Document new
244 function.
245 * bfd-in.h: Add prototype for bfd_hash_set_default_size.
246 * bfd-in2.h: Regenerate.
247 * Makefile.am (hash.lo): Add dependency upon libiberty.h.
248 * Makefile.in: Regenerate.
249
8377c19c
MK
2502004-05-21 Mark Kettenis <kettenis@gnu.org>
251
252 * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
253 * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
254 arm, m68k, m88k and hppa core files.
255
69fd4758
NC
2562004-05-21 Nick Clifton <nickc@redhat.com>
257
258 * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
259 (bfd_bwrite): Likewise.
260 (bfd_tell): Likewise.
261 (bfd_flush): Likewise.
262 (bfd_stat): Likewise.
263 (bfd_seek): Likewise.
264 (bfd_get_mtime): Likewise.
265 (bfd_get_size): Likewise.
266
cd917290
BE
2672004-05-19 Ben Elliston <bje@au.ibm.com>
268
269 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
270
1b09e940
NC
2712004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
272
273 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
274 (bfd_generic_openr_next_archived_file): Likewise.
275
096c35a7
BW
2762004-05-17 Bob Wilson <bob.wilson@acm.org>
277
278 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
279 section names by inserting a new substring after .gnu.linkonce, except
280 for .gnu.linkonce.t.* where the "t." is replaced.
281
b2d65c0b
NC
2822004-05-17 Adam Nemet <anemet@lnxw.com>
283
284 * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
285 (m68-*-lynxos* case): Likewise.
286 (powerpc-*-lyxnos* case): New case.
287 (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
288
80fccad2
BW
2892004-05-17 David Heine <dlheine@tensilica.com>
290
291 * aout-target.h (MY_bfd_copy_private_header_data): Define.
292 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
293 * bfd.c (bfd_copy_private_header_data): Define.
294 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
295 interface.
296 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
297 * coffcode.h (coff_bfd_copy_private_header_data): Define.
298 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
299 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
300 segments by calling copy_private_bfd_data.
301 (_bfd_elf_copy_private_header_data): Define.
302 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
303 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
304 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
305 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
306 * mmo.c (mmo_bfd_copy_private_header_data): Define.
307 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
308 * som.c (som_bfd_copy_private_header_data): Define.
309 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
310 * vms.c (vms_bfd_copy_private_header_data): Define.
311 * bfd-in2.h: Regenerate.
312 * libbfd.h: Regenerate.
313
c5ae1840
TS
3142004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
315
316 * elfxx-mips.c (MINUS_TWO): Define.
317 (mips_elf_higher, mips_elf_highest,
318 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
319 some bfd_vma values.
320 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
321
a99cf92b
DA
3222004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
323
324 * som.c (log2): Rename to exact_log2. Adjust all callers.
325
0da76f83
NC
3262004-05-13 Paul Brook <paul@codesourcery.com>
327
c273895f 328 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
336b9722
NC
329 dwarf3 format CIE entries. Remove comment about the size of the
330 ra_column field. It is now correctly deduced.
0da76f83 331
4b363073
NC
3322004-05-13 Joel Sherrill <joel@oarcorp.com>
333
334 * config.bfd (or32-*-rtems*): Switch to elf.
335
9598fbe5
NC
3362004-05-13 Nick Clifton <nickc@redhat.com>
337
338 * po/fr.po: Updated French translation.
339
8c37241b
JJ
3402004-05-11 Jakub Jelinek <jakub@redhat.com>
341
342 * elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol
343 into .dynsym if elf_section_data (sec)->dynindx <= 0.
344 Adjust counting of last_local.
345 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
346 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
347 created by the linker nor !SHF_ALLOC.
348
349 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
350 DT_PLTGOT to the start of the .got.plt section instead of the
351 .got output section. Set sh_entsize for .got section in addition
352 to .got.plt.
353 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
354 is at sgot->output_section->vma.
355 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
356 DT_PLTGOT to the start of the .got.plt section instead of the
357 .got output section.
358 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
359 is at sgot->output_section->vma. Set sh_entsize for .got section
360 in addition to .got.plt.
361 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
362 (bfd_section_from_phdr): Likewise.
363 (map_sections_to_segments): Likewise.
364 (assign_file_positions_for_segments): Likewise.
365 (get_program_header_size): Likewise.
366 * elflink.c (bfd_elf_size_dynamic_sections): Set
367 elf_tdata (output_bfd)->relro from info->relro.
368 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
369
3f980e41
AO
3702004-05-08 Alexandre Oliva <aoliva@redhat.com>
371
372 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
373 a zero symndx for which we hadn't accounted a dynamic relocation.
374 (_frvfdpic_add_rofixup): Likewise.
375
d70270c5
BF
3762004-05-07 Brian Ford <ford@vss.fsi.com>
377 DJ Delorie <dj@redhat.com>
378
379 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
380 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
381 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
382 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
383
7e9f3bd6
AO
3842004-05-07 Alexandre Oliva <aoliva@redhat.com>
385
386 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
387 immediately if there's no link info.
388 (elf32_frvfdpic_copy_private_bfd_data): New.
389 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
390
eb61d2d6
ZW
3912004-05-06 Zack Weinberg <zack@codesourcery.com>
392
393 * dwarf2.c (add_line_info): Also set info->filename to NULL if
394 filename argument is null; do not call strlen on a null pointer.
395
ecb2d096
DJ
3962004-05-06 Daniel Jacobowitz <drow@mvista.com>
397
398 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
399 special case.
400
43850d5b
AO
4012004-05-05 Alexandre Oliva <aoliva@redhat.com>
402
403 * configure.in (bfd_elf32_frvfdpic_vec): New.
404 * configure: Rebuilt.
405 * targets.c (bfd_elf32_frvfdpic_vec): New.
406 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
407 on the latter.
408 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
409 frvfdpic instead of frv. Rearrange elf-target macros such that
410 the FDPIC-specific ones are only defined for this new target
411 vector.
412 (bfd_elf32_frvfdpic_vec): Declare.
413 (IS_FDPIC): New.
414 (elf32_frv_relocate_section): Use it to enable segment checking
415 and to control rofixup emission. Add output section vma to
416 applied relocation in non-LOAD non-ALLOC sections. Use
417 _bfd_error_handler for errors.
418 (_frv_create_got_section): Create .rel.got and .rofixup only in
419 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
420 linker script.
421 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
422 (elf32_frvfdpic_modify_segment_map): Likewise.
423 (elf32_frv_finish_dynamic_sections): New, do-nothing.
424 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
425 error message if we miscompute the rofixup size.
426 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
427 (frvfdpic_elf_encode_eh_address): Likewise.
428 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
429 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
430 relocs. Reject unknown relocation types.
431 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
432 (frv_elf_merge_private_bfd_data): Likewise.
433 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
434 0x4000 for newly-added elf32-frvfdpic.
435
06fc8a8c
NC
4362004-05-05 Nick Clifton <nickc@redhat.com>
437
438 PR/136
439 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
440 returning NULL as most users of this function do not check its
441 return value.
33216455
NC
442 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
443 of bfd_cache_lookup().
444 * sco5-core.c (sco5_core_file_p): Likewise.
445 * trad-core.c (trad_unix_core_file_p): Likewise.
06fc8a8c
NC
446
4472004-05-05 Nick Clifton <nickc@redhat.com>
448
449 * cache.c (bfd_cache_lookup): Improve formatting.
450 * archive.c: Fix formatting.
451
6b6e92f4
NC
4522004-05-05 Peter Barada <peter@the-baradas.com>
453
454 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
455 * cpu-m68k.c(bfd_m68k_arch): Likewise.
456 * bfd-in2.h(bfd_architecture): Regenerate.
457
6a8d1586
AM
4582004-05-03 Alan Modra <amodra@bigpond.net.au>
459
460 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
461 SEC_MERGE sections.
462 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
463 those against discarded link-once and SEC_MERGE section symbols.
464
fafe6678
L
4652004-05-02 H.J. Lu <hongjiu.lu@intel.com>
466
467 * section.c (bfd_get_section_by_name_if): New.
468 * bfd-in2.h: Regenerated.
469
ad7b9a36
AM
4702004-05-02 Alan Modra <amodra@bigpond.net.au>
471
472 * som.c (som_bfd_is_group_section): Define.
473
73499ab8
AM
4742004-05-01 Alan Modra <amodra@bigpond.net.au>
475
476 * section.c (bfd_make_section_anyway): Copy the whole
477 bfd_hash_entry, not just "next" from existing entry.
478
45c5e9ed
L
4792004-04-30 H.J. Lu <hongjiu.lu@intel.com>
480
481 * elf.c (bfd_section_from_shdr): Maintain the section order in
482 a section group.
483 (special_sections): Add ".note.GNU-stack".
484 (elf_fake_sections): Handle section group for relocatable
485 link..
486
bc87dd2e
L
4872004-04-30 H.J. Lu <hongjiu.lu@intel.com>
488
489 * section.c (bfd_sections_find_if): New.
490 * bfd-in2.h: Regenerated.
491
72adc230
AM
4922004-04-30 Alan Modra <amodra@bigpond.net.au>
493
494 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
495
496 * elf-bfd.h (bfd_elf_is_group_section): Declare.
497 * elf.c (bfd_elf_is_group_section): New function.
498 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
499 * section.c (bfd_generic_is_group_section): New function.
500 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
501 (BFD_JUMP_TABLE_LINK): Adjust.
502 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
503 * aout-target.h (MY_bfd_is_group_section): Define.
504 * aout-tic30.c (MY_bfd_is_group_section): Define.
505 * bfd.c (bfd_is_group_section): Define.
506 * binary.c (binary_bfd_is_group_section): Define.
507 * bout.c (b_out_bfd_is_group_section): Define.
508 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
509 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
510 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
511 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
512 * coffcode.h (coff_bfd_is_group_section): Define.
513 * i386msdos.c (msdos_bfd_is_group_section): Define.
514 * i386os9k.c (os9k_bfd_is_group_section): Define.
515 * ieee.c (ieee_bfd_is_group_section): Define.
516 * ihex.c (ihex_bfd_is_group_section): Define.
517 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
518 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
519 * mmo.c (mmo_bfd_is_group_section): Define.
520 * nlm-target.h (nlm_bfd_is_group_section): Define.
521 * oasys.c (oasys_bfd_is_group_section): Define.
522 * pef.c (bfd_pef_bfd_is_group_section): Define.
523 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
524 * srec.c (srec_bfd_is_group_section): Define.
525 * tekhex.c (tekhex_bfd_is_group_section): Define.
526 * versados.c (versados_bfd_is_group_section): Define.
527 * vms.c (vms_bfd_is_group_section): Define.
528 * xsym.c (bfd_sym_bfd_is_group_section): Define.
529 * bfd-in2.h: Regenerate.
530 * libbfd.h: Regenerate.
531
20f0a1ad
AM
5322004-04-30 Alan Modra <amodra@bigpond.net.au>
533
534 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
535
f7458fc9 5362004-04-30 Hans-Peter Nilsson <hp@axis.com>
7dfb3b6b
HPN
537
538 * configure.in: Update version to 2.15.91.
539 * configure: Regenerate.
540
8a7140c3
NC
5412004-04-29 Brian Ford <ford@vss.fsi.com>
542
543 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
544 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
545 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
546 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
547 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
548 .gnu.linkonce.wi. sections.
549 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
550 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
551 .gnu.linkonce.wi..
552 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
553 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
554
3e722fb5
CD
5552004-04-28 Chris Demetriou <cgd@broadcom.com>
556
557 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
558 * bfd-in2.h: Regenerate.
559 * libbfd.h: Likewise.
560
351e2b5a
DA
5612004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
562
563 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
564 dup_common fields.
565 (setup_sections): Use som_subspace_dictionary_record struct instead
566 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
567 is_comdat, is_common or dup_common.
568 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
569 is_comdat, is_common and dup_common in section subspace_dict from
570 copy_data.
571 (som_begin_writing): Use som_subspace_dictionary_record struct.
572 (som_finish_writing): Likewise.
573 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
574 is_common and dup_common flags in info for symbol. Add comment
575 regarding linker support for these fields. Slightly reorganize
576 function.
577 (som_build_and_write_symbol_table): Set is_comdat, is_common and
578 dup_common fields in symbol table from symbol info.
579 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
580 arguments. Set corresponding fields in copy_data. Change all callers.
581 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
582 symbol table.
583 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
584 * som.h (som_subspace_dictionary_record): Define.
585 (som_copyable_section_data_struct): Add is_comdat, is_common and
586 dup_common fields.
587 (som_section_data_struct): Use som_subspace_dictionary_record struct
588 instead of subspace_dictionary_record.
589 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
590
3ba3bc8c
BW
5912004-04-27 Bob Wilson <bob.wilson@acm.org>
592
593 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
594 if set. Check reloc_done flag before applying relocations. Use
595 output addresses, both when applying relocations and when comparing
596 against the specified section.
597 (elf_xtensa_relocate_section): Use output address to check if dynamic
598 reloc is in a literal pool. Set section's reloc_done flag.
599
beb8df56
L
6002004-04-27 H.J. Lu <hongjiu.lu@intel.com>
601
602 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
603 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
604 section.
605 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
606 section.
607
1829f4b2
AM
6082004-04-27 Alan Modra <amodra@bigpond.net.au>
609
610 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
611 structure field removed in 2004-04-24 patch.
612 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
613
614 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
615 Constify hdr arg.
616 * elf32-arm.h (elf32_arm_section_flags): Likewise.
617 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
618 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
619 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
620 field before calling elf_backend_section_flags.
621
4030e8f6
CD
6222004-04-24 Chris Demetriou <cgd@broadcom.com>
623
624 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
625 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
626 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
627 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
628 and BFD_RELOC_32_PCREL.
629 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
630 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
631 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
632 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
633 (mips_elf_next_relocation): Move comment about matching HI/LO
634 relocations to...
635 (_bfd_mips_elf_relocate_section): Here. Remove handling for
636 R_MIPS_GNU_REL_HI16.
637
3e27568f
CD
6382004-04-23 Chris Demetriou <cgd@broadcom.com>
639
640 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
641 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
642 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
643 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
644 and update comments to reflect current usage.
645 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
646 and MIPS_R_SWITCH, as well as several empty entries. Update comment
647 for MIPS_R_PCREL16.
648 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
649 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
650 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
651 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
652 type number to be MIPS_R_PCREL16.
653 (mips_relocate_section): Remove support for link-time relaxation
654 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
655 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
656 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
657 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
658 relaxation of branches used by embedded-PIC.
659 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
660 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
661 related members, update comment.
662 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
663 code related to embedded-PIC.
664 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
665 initialization of now-removed 'adjust' member of
666 'struct ecoff_debug_info'.
667
b32de0bc 6682004-04-23 Chris Demetriou <cgd@broadcom.com>
8472310d
CD
669
670 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
671
955af222
PB
6722004-04-21 Philip Blundell <pb@nexus.co.uk>
673
674 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
675 relocs for locally defined symbols during -shared final link.
676 (elf32_arm_final_link_relocate): Likewise.
677
47a9f7b3
JJ
6782004-04-22 Jakub Jelinek <jakub@redhat.com>
679
680 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
681 ELF_LINK_POINTER_EQUALITY_NEEDED.
682 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
683 if r_type is not R_X86_64_PC32.
684 (elf64_x86_64_finish_dynamic_symbol): If
685 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
686 SHN_UNDEF symbols.
687
1f1799d5
KK
6882004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
689
690 * elf32-sh.c (sh_elf_plt_sym_val): New function.
691 (elf_backend_plt_sym_val): Define.
692
0fdea5ce
AC
6932004-04-22 Andrew Cagney <cagney@redhat.com>
694
695 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
696
5198ba8b
DA
6972004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
698
eb61d2d6 699 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
5198ba8b
DA
700 make_bfd_asection.
701 * som.c (som_set_section_contents): Constantify second argument.
702 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
703 (som_object_setup): Rework to avoid warning.
704 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
705 Likewise.
706
fe2e161a
AC
7072004-04-22 Andrew Cagney <cagney@redhat.com>
708
709 * cache.c (bfd_cache_close): Check for a previously closed file.
710
4c45e5c9
JJ
7112004-04-22 Jakub Jelinek <jakub@redhat.com>
712
713 * bfd.c (bfd_get_synthetic_symtab): Define.
714 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
715 NAME##_get_synthetic_symtab.
716 (struct bfd_target): Add _bfd_get_synthetic_symtab.
717 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
718 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
719 relplt_name fields.
720 (_bfd_elf_get_synthetic_symtab): New prototype.
721 * elfcode.h (elf_get_synthetic_symtab): Define.
722 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
723 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
724 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
725 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
726 * bfd-in2.h: Rebuilt.
727 * libbfd.h: Rebuilt.
728 * elf32-i386.c (elf_i386_plt_sym_val): New function.
729 (elf_backend_plt_sym_val): Define.
730 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
731 (elf_backend_plt_sym_val): Define.
732 * elf32-s390.c (elf_s390_plt_sym_val): New function.
733 (elf_backend_plt_sym_val): Define.
734 * elf64-s390.c (elf_s390_plt_sym_val): New function.
735 (elf_backend_plt_sym_val): Define.
736 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
737 (elf_backend_plt_sym_val): Define.
738 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
739 (elf_backend_plt_sym_val): Define.
740 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
741 (elf_backend_plt_sym_val): Define.
742 * aout-target.h (MY_get_synthetic_symtab): Define.
743 * aout-tic30.c (MY_get_synthetic_symtab): Define.
744 * coff-rs6000.c (rs6000coff_vec): Add
745 _bfd_nodynamic_get_synthetic_symtab.
746 (pmac_xcoff_vec): Likewise.
747 * coff64-rs6000.c (rs6000coff64_vec): Add
748 _bfd_nodynamic_get_synthetic_symtab.
749 (aix5coff64_vec): Likewise.
750 * sunos.c (MY_get_synthetic_symtab): Define.
751 * vms.c (vms_get_synthetic_symtab): Define.
752
d2f7ecac
NC
7532004-04-22 Nick Clifton <nickc@redhat.com>
754
755 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
756
fd99574b
NC
7572004-04-22 Peter Barada <peter@the-baradas.com>
758
759 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
760 * bfd2-in.h: Regenerate.
761 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
762
23867d67
CD
7632004-04-21 Chris Demetriou <cgd@broadcom.com>
764
765 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
766 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
767 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
768 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
769 * bfd-in2.h: Regenerate.
770
2c8c90bc
BW
7712004-04-21 Bob Wilson <bob.wilson@acm.org>
772
773 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
774 require relocations against a weak symbol to reference the same
775 symbol hash entry if not a final, static link.
776 (get_cached_value, add_value_map): Add final_static_link argument.
777 (remove_literals): Pass final_static_link argument as needed.
778
40838a72
AC
7792004-04-21 Andrew Cagney <cagney@redhat.com>
780
781 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
782 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
783 (opncls_bwrite, opncls_bclose, opncls_bflush)
784 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
785 bfd iovec that uses function callbacks.
786 (bfd_close): Use the iovec's bclose.
787 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
788 (cache_bclose, cache_bflush, cache_bstat)
789 (cache_iovec): New functions and global variable, implement a
790 cache "iovec", where applicable set bfd_error.
791 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
792 * bfdio.c (struct bfd_iovec): Define.
793 (real_read): Delete function.
794 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
795 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
796 assume that bread and bwrite set bfd_error.
797 * bfd.c (struct bfd): Add "iovec", update comments.
798 * bfd-in2.h, libbfd.h: Re-generate.
799
7f919c84
AC
8002004-04-21 Andrew Cagney <cagney@redhat.com>
801
802 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
803
715df9b8
EB
8042004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
805
806 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
807 (bfd_elf_gc_sections): Fail if a shared object is being created.
808 Do not fail if dynamic sections have been created. Instead call
809 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
810 dynamically referenced symbols. Do not mark the whole graph
811 rooted at .eh_frame, only the section proper.
812
6482c264
NC
8132004-04-20 DJ Delorie <dj@redhat.com>
814
815 * reloc.c: Add BFD_RELOC_32_SECREL.
816 * bfd-in2.h: Regenerate.
817 * libbfd.h: Likewise.
818 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
819 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
820 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
821
4dc570c2
JJ
8222004-04-19 Jakub Jelinek <jakub@redhat.com>
823
824 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
825 relocs against hidden/protected undefweak symbols properly.
826 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
827
0b60d5d3
MK
8282004-04-18 Mark Kettenis <kettenis@gnu.org>
829
830 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
831 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
832 core files.
833
d48bdb99
AM
8342004-04-17 Brian Ford <ford@vss.fsi.com>
835
836 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
837 filepos for the SizeOfHeaders field.
838 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
839 overflow.
840 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
841
57a1784e
AM
8422004-04-16 Alan Modra <amodra@bigpond.net.au>
843
844 * simple.c (bfd_simple_get_relocated_section_contents): Don't
845 change reloc_done. Set and restore _cooked_size.
846 (RETURN): Delete.
847
d1ad3f6f
MK
8482004-04-15 Mark Kettenis <kettenis@gnu.org>
849
850 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
851 core files.
852
3d1bca9d
NC
8532004-04-15 Nick Clifton <nickc@redhat.com>
854
855 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
856
019b892f
AM
8572004-04-15 Alan Modra <amodra@bigpond.net.au>
858
859 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
860
15b43f48
AM
8612004-04-15 H.J. Lu <hongjiu.lu@intel.com>
862
863 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
864 when it is a definition.
865
6de00a78
AM
8662004-04-14 Alan Modra <amodra@bigpond.net.au>
867
868 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
869 when statically linking PIC code.
870 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
871
279500de
TS
8722004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
873
874 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
875 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
876 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
877 * configure: Regenerate.
878
ccf2f652
RS
8792004-04-08 Richard Sandiford <rsandifo@redhat.com>
880
881 * elflink.c: Include libiberty.h.
882 * Makefile.am (elflink.lo): Depend on libiberty.h.
883 * Makefile.in: Regenerate.
884
ca07892d
DJ
8852004-04-06 Daniel Jacobowitz <drow@mvista.com>
886
887 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
888 ".MIPS.stubs".
889
a5a58ba4
L
8902004-04-05 H.J. Lu <hongjiu.lu@intel.com>
891
892 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
893 reserve the memory for dynamic linker
894
24d18d30
MK
8952004-04-05 Mark Kettenis <kettenis@gnu.org>
896
897 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
898 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
899
a4d7b4b5
L
9002004-04-02 H.J. Lu <hongjiu.lu@intel.com>
901
902 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
903 RELOC_FOR_GLOBAL_SYMBOL.
904 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
905
1f433d93
L
9062004-04-02 H.J. Lu <hongjiu.lu@intel.com>
907
908 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
909 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
910
e489d0ae
PB
9112004-04-01 Paul Brook <paul@codesourcery.com>
912
913 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
914 * elf32-arm.h (struct elf32_elf_section_map): New.
915 (struct _arm_elf_section_data): New.
916 (elf32_arm_section_data): Define.
917 (struct elf32_arm_link_hash_table): Add byteswap_code.
918 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
919 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
920 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
921 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
922 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
923 (bfd_elf32_new_section_hook, elf_backend_write_section,
924 elf_backend_link_output_symbol_hook): Define.
925
66a695f0
NC
9262004-04-01 Andy Chittenden <achittenden@bluearc.com>
927
928 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
929 that keeps the characters in a B_INCL..B_EINCL range.
930 (_bfd_link_section_stabs): When computing the sum of the
931 characters in a B_INCL..B_EINCL range also keep a copy of those
932 characters. Use this information to distinguish between
933 include sections that have the same sum and the same length
934 but which are nevertheless unique.
935
8375c36b
PB
9362004-03-31 Paul Brook <paul@codesourcery.com>
937
938 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
939 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
940
a56b48eb
NC
9412004-03-31 Andy Chittenden <achittenden@bluearc.com>
942
943 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
944 to 'sum_chars' and add field 'num_chars'.
945 (_bfd_link_section_stabs): When computing the sum of the
946 characters in a B_INCL..B_EINCL range also keep a count of the
947 number of characters. Use this information to help distinguish
948 between include sections when have the same sum but which
949 nevertheless are still unique.
950
3d456464
NC
951