* elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.
[external/binutils.git] / bfd / ChangeLog
1 2010-06-15  Joseph Myers  <joseph@codesourcery.com>
2
3         * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.
4         (struct elf_backend_data): Update comment on obj_attrs_order.
5         * elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents,
6         _bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
7         instead of hardcoded 4.
8         * elf32-arm.c (elf32_arm_obj_attrs_order): Use
9         LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1
10         instead of hardcoded 4 and 5.
11         (elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
12         instead of hardcoded 4.
13
14 2010-06-14  Kevin Buettner  <kevinb@redhat.com>
15
16         * elf32-h8300.c (elf_symbol_leading_char): Define.
17
18 2010-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
19
20         * vms-alpha.c (_bfd_vms_write_egsd): Make sname const.
21
22 2010-06-11  Tristan Gingold  <gingold@adacore.com>
23
24         * vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute
25         sections to 0.
26
27 2010-06-11  Tristan Gingold  <gingold@adacore.com>
28
29         * vms-alpha.c (evax_bfd_print_etir): Handle ETIR__C_STO_GBL_LW.
30
31 2010-06-11  Tristan Gingold  <gingold@adacore.com>
32
33         * vms-misc.c (_bfd_vms_output_counted): Make VALUE argument const.
34         Adjust cast.
35         (_bfd_vms_output_dump): Make DATA argument const, adjust cast.
36         * vms.h (_bfd_vms_output_counted, _bfd_vms_output_dump): Adjust.
37         * vms-alpha.c (evax_section_flags): Make it const.
38         (vms_secflag_by_name): Remove unused ABFD argument.
39         Make SECTION_FLAGS and NAME arguments const. Clarify comment.
40         (vms_esecflag_by_name): Make SECTION_FLAGS and NAME arguments const.
41         (_bfd_vms_slurp_egsd): Adjust call to vms_secflag_by_name.
42         (_bfd_vms_write_egsd): Remove useless cast.
43
44 2010-06-10  Tristan Gingold  <gingold@adacore.com>
45
46         * config.bfd: Remove #if/#endif so that som can be compiled on any
47         host.
48         * targets.c (_bfd_target_vector): Remove #if/#endif so that som
49         can be used on any host.
50
51 2010-06-10  Tristan Gingold  <gingold@adacore.com>
52
53         * som.c: Can now be compiled on any host.
54         Include bfd headers instead of system one.
55         (som_compute_checksum): Parameter is now a pointer to a
56         som_external_header structure.  Adjust.
57         (struct section_to_type): Field section is now const.
58         (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Removed conditional
59         definition.
60         (R_LONG_PCREL_MODE, R_N0SEL, R_N1SEL, R_LINETAB): Ditto.
61         (R_LINETAB_ESC, R_LTP_OVERRIDE, R_COMMENT): Ditto.
62         (som_swap_clock_in, som_swap_clock_out): New functions.
63         (som_swap_header_in, som_swap_header_out): Likewise.
64         (som_swap_space_dictionary_in): Likewise.
65         (som_swap_space_dictionary_out): Likewise.
66         (som_swap_subspace_dictionary_in): Likewise.
67         (som_swap_subspace_dictionary_record_out): Likewise.
68         (som_swap_aux_id_in, som_swap_aux_id_out): Likewise.
69         (som_swap_string_auxhdr_out): Likewise.
70         (som_swap_compilation_unit_out): Likewise.
71         (som_swap_exec_auxhdr_in): Likewise.
72         (som_swap_exec_auxhdr_out): Likewise.
73         (som_swap_lst_header_in): Likewise.
74         (som_object_setup): Adjust parameter type using bfd types.
75         (setup_sections): Likewise.  Ditto for object file types.
76         Use intermediate variables for external representation and use the
77         swap functions to convert.
78         (som_object_p): Ditto.  Remove #ifdef/#endif on always defined
79         macros.
80         (som_prep_headers): Likewise.
81         (som_write_symbol_strings): Likewise.
82         (som_begin_writing): Likewise.
83         (som_finish_writing): Likewise.
84         (som_build_and_write_symbol_table): Likewise.
85         (bfd_section_from_som_symbol): Likewise.
86         (som_slurp_symbol_table): Likewise.
87         (som_bfd_print_private_bfd_data): Likewise.
88         (bfd_som_attach_aux_hdr): Likewise.  Clear the padding.
89         (bfd_som_attach_compilation_unit): Likewise.
90         (som_bfd_count_ar_symbols): Likewise.
91         (som_bfd_fill_in_ar_symbols): Likewise.
92         (som_slurp_armap): Likewise.
93         (som_bfd_ar_write_symbol_stuff): Likewise.
94         (som_write_armap): Likewise.  Use _bfd_ar_spacepad instead of
95         sprintf to write header fields.
96         * som.h: Include bfd headers instead of system one.
97         (FILE_HDR_SIZE, AUX_HDR_SIZE): Removed.
98         (struct somdata): Use bfd structures instead of system ones.
99         (struct som_section_data_struct): Likewise.
100         (struct som_subspace_dictionary_record): Removed (now in
101         include/som/internal.h)
102
103 2010-06-10  Tristan Gingold  <gingold@adacore.com>
104
105         * targets.c (bfd_target_list): Remove hp/ux compiler work-around
106         as bfd requires an ANSI-C compiler.
107
108 2010-06-09 Tristan Gingold  <gingold@adacore.com>
109
110         * bfdio.c (bfd_bread): Fix the code to prevent reading past the
111         end of archive members.
112
113 2010-06-08  Tristan Gingold  <gingold@adacore.com>
114
115         * som.c (som_bfd_free_cached_info): Do not free relocations as
116         they were allocated with bfd_zalloc.
117
118 2010-06-08  Tristan Gingold  <gingold@adacore.com>
119
120         * vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
121         for the first block.
122
123 2010-06-08  Tristan Gingold  <gingold@adacore.com>
124
125         * vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function.
126         * libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare.
127         * libbfd.h: Regenerate.
128         * elfxx-ia64.c (bfd_elfNN_write_archive_contents): Redefine for VMS.
129         (bfd_elfNN_mkarchive): Ditto.
130
131 2010-06-02  Tristan Gingold  <gingold@adacore.com>
132
133         * vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.
134
135 2010-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
136
137         * configure: Regenerate.
138
139 2010-06-01  Tristan Gingold  <gingold@adacore.com>
140
141         * vms-alpha.c (struct vms_private_data_struct): Add
142         transfer_address field.  Remove unused dst_info field.
143         (alpha_vms_write_exec): Use transfer_address.
144         (_bfd_vms_write_egsd): Add a comment about LIB$INITIALIZE.
145         (alpha_vms_bfd_final_link): Set transfer_address.
146
147 2010-05-31  Tristan Gingold  <gingold@adacore.com>
148
149         * vms-lib.c (credat_lo, credat_hi): New fields.
150         (vms_read_block): Adjust comments.
151         (vms_write_block): New function.
152         (_bfd_vms_lib_archive_p): Decode majorid once.  Replace some
153         hard-coded values with constants.  Set credat_lo and credat_hi.
154         (_bfd_vms_lib_mkarchive): Add argument kind.
155         Set ver, mhd_size and type according to kind.
156         (_bfd_vms_lib_alpha_mkarchive): New function.
157         (struct lib_index): Renamed from struct vms_index
158         (lib_index_cmp): Renamed from vms_index_cmp.  Adjusted.
159         (get_idxlen): Type of idx argument adjusted.  Add is_elfidx
160         argument and handle it.
161         (vms_write_index): Adjust argument idx.  Handle elf indexes.
162         (_bfd_vms_lib_build_map): Adjust type of arguments modules and res.
163         (_bfd_vms_lib_write_archive_contents): Add is_elfidx variable and
164         use it.  Handle elf indexes.  Set credat.
165         * libbfd-in.h (_bfd_vms_lib_mkarchive): Renamed to ...
166         (_bfd_vms_lib_alpha_mkarchive): ... this.
167         * libbfd.h: Regenerated.
168         * vms-alpha.c (vms_alpha_vec): Adjust after previous renaming.
169
170 2010-05-28  Sterling Augustine  <sterling@tensilica.com>
171
172         * elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount
173         of code to change the bits in the instructions to match the changes
174         in the relocations.  Declare dest_addr and sym_sec to help.
175
176 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
177
178         Workaround GCC PR middle-end/4210.
179         * vms-misc.c (vms_time_t_to_vms_time): Use ternary operator for val[2]
180         and val[3].
181
182 2010-05-27  Tristan Gingold  <gingold@adacore.com>
183
184         * vms-misc.c: Define __NEW_STARLET.  Remove trailing spaces.
185         (VMS_TIME_FACTOR, VMS_TIME_OFFSET): New macros.
186         (vms_time_to_time_t): Use them instead of local const.
187         (vms_time_t_to_vms_time): New function.
188         (vms_get_time): Likewise.
189         (vms_raw_get_time): Likewise.
190         * vms.h (vms_time_t_to_vms_time): New declaration.
191         (vms_get_time): Likewise.
192         (vms_raw_get_time): Likewise.
193
194 2010-05-26  Tristan Gingold  <gingold@adacore.com>
195
196         * vms-alpha.c: Update comments.
197         (alpha_vms_write_exec): Set lnkflags.  Write the GST.
198         (alpha_vms_link_output_symbol): New function.
199         (alpha_vms_bfd_final_link): Generate the VMS symbol table.
200         Set dst_section private field.
201         (alpha_vms_bfd_final_link): Remove code that set dst_section.
202
203 2010-05-26  Tristan Gingold  <gingold@adacore.com>
204
205         * bfdio.c: Declare and define _bfd_memory_iovec.
206         (bfd_bread): Move code for BFD_IN_MEMORY...
207         (bfd_bwrite): ... Ditto ...
208         (bfd_tell): ... Ditto ...
209         (bfd_flush): ... Ditto ...
210         (bfd_stat): ... Ditto ...
211         (bfd_seek): ... Ditto ...
212         (bfd_get_size): ... Ditto ...
213         (bfd_mmap): ... Ditto ...
214         (memory_bread): ... to these new functions.
215         (memory_bwrite): Ditto.
216         (memory_btell): Ditto.
217         (memory_bseek): Ditto.
218         (memory_bflush): Ditto.
219         (memory_bstat): Ditto.
220         (memory_bmmap): Ditto.
221         (memory_bclose): New function.
222         * peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY.
223         * xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto.
224         * opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case.
225         (bfd_make_writable): Use _bfd_memory_iovec.
226         * elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec.
227         * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use
228         _bfd_memory_iovec.
229         (alpha_ecoff_openr_next_archived_file): Use proxy_origin
230         instead of origin.
231         * libbfd.h: Regenerate.
232
233 2010-05-25  Daniel Jacobowitz  <dan@codesourcery.com>
234             Joseph Myers  <joseph@codesourcery.com>
235             Andrew Stubbs  <ams@codesourcery.com>
236
237         * config.bfd (sh-*-uclinux* | sh[12]-*-uclinux*): Add
238         bfd_elf32_shl_vec, and FDPIC vectors to targ_selvecs.
239         * configure.in: Handle FDPIC vectors.
240         * elf32-sh-relocs.h: Add FDPIC and movi20 relocations.
241         * elf32-sh.c (DEFAULT_STACK_SIZE): Define.
242         (SYMBOL_FUNCDESC_LOCAL): Define.  Use it instead of
243         SYMBOL_REFERENCES_LOCAL for function descriptors.
244         (fdpic_object_p): New.
245         (sh_reloc_map): Add FDPIC and movi20 relocations.
246         (sh_elf_info_to_howto, sh_elf_relocate_section): Handle new invalid
247         range.
248         (struct elf_sh_plt_info): Add got20 and short_plt.  Update all
249         definitions.
250         (FDPIC_PLT_ENTRY_SIZE, FDPIC_PLT_LAZY_OFFSET): Define.
251         (fdpic_sh_plt_entry_be, fdpic_sh_plt_entry_le, fdpic_sh_plts): New.
252         (FDPIC_SH2A_PLT_ENTRY_SIZE, FDPIC_SH2A_PLT_LAZY_OFFSET): Define.
253         (fdpic_sh2a_plt_entry_be, fdpic_sh2a_plt_entry_le)
254         (fdpic_sh2a_short_plt_be, fdpic_sh2a_short_plt_le, fdpic_sh2a_plts):
255         New.
256         (get_plt_info): Handle FDPIC.
257         (MAX_SHORT_PLT): Define.
258         (get_plt_index, get_plt_offset): Handle short_plt.
259         (union gotref): New.
260         (struct elf_sh_link_hash_entry): Add funcdesc, rename tls_type to
261         got_type and adjust all uses.  Add GOT_FUNCDESC.
262         (struct sh_elf_obj_tdata): Add local_funcdesc.  Rename
263         local_got_tls_type to local_got_type.
264         (sh_elf_local_got_type): Renamed from sh_elf_local_got_tls_type.  All
265         users changed.
266         (sh_elf_local_funcdesc): Define.
267         (struct elf_sh_link_hash_table): Add sfuncdesc, srelfuncdesc, fdpic_p,
268         and srofixup.
269         (sh_elf_link_hash_newfunc): Initialize new fields.
270         (sh_elf_link_hash_table_create): Set fdpic_p.
271         (sh_elf_omit_section_dynsym): New.
272         (create_got_section): Create .got.funcdesc, .rela.got.funcdesc
273         and .rofixup.
274         (allocate_dynrelocs): Allocate local function descriptors and space
275         for R_SH_FUNCDESC-related relocations, and for rofixups.
276         Handle GOT_FUNCDESC.  Create fixups.  Handle GOT entries which
277         require function descriptors.
278         (sh_elf_always_size_sections): Handle PT_GNU_STACK and __stacksize.
279         (sh_elf_modify_program_headers): New.
280         (sh_elf_size_dynamic_sections): Allocate function descriptors for
281         local symbols.  Allocate .got.funcdesc contents.  Allocate rofixups.
282         Handle local GOT entries of type GOT_FUNCDESC.  Create fixups for
283         local GOT entries.  Ensure that FDPIC libraries always have a PLTGOT
284         entry in the .dynamic section.
285         (sh_elf_add_dyn_reloc, sh_elf_got_offset, sh_elf_initialize_funcdesc)
286         (sh_elf_add_rofixup, sh_elf_osec_to_segment)
287         (sh_elf_osec_readonly_p, install_movi20_field): New functions.
288         (sh_elf_relocate_section): Handle new relocations, R_SH_FUNCDESC,
289         R_SH_GOTFUNCDESC and R_SH_GOTOFFFUNCDESC.  Use sh_elf_got_offset
290         and .got.plt throughout to find _GLOBAL_OFFSET_TABLE_.  Add rofixup
291         read-only section warnings.  Handle undefined weak symbols.  Generate
292         fixups for R_SH_DIR32 and GOT entries.  Check for cross-segment
293         relocations and clear EF_SH_PIC.  Handle 20-bit relocations.
294         Always generate R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
295         (sh_elf_gc_sweep_hook): Handle R_SH_FUNCDESC, R_SH_GOTOFF20,
296         R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20, and R_SH_GOTOFFFUNCDESC.
297         Handle 20-bit relocations.
298         (sh_elf_copy_indirect_symbol): Copy function descriptor reference
299         counts.
300         (sh_elf_check_relocs): Handle new relocations.  Make symbols
301         dynamic for FDPIC relocs.  Account for rofixups.  Error for FDPIC
302         symbol mismatches.  Allocate a GOT for R_SH_DIR32. Allocate fixups
303         for R_SH_DIR32.
304         (sh_elf_copy_private_data): Copy PT_GNU_STACK size.
305         (sh_elf_merge_private_data): Copy initial flags.  Do not clobber
306         non-mach flags.  Set EF_SH_PIC for FDPIC.  Reject FDPIC mismatches.
307         (sh_elf_finish_dynamic_symbol): Do not handle got_funcdesc entries
308         here.  Rename sgot to sgotplt and srel to srelplt.  Handle short_plt,
309         FDPIC descriptors, and got20.  Create R_SH_FUNCDESC_VALUE for FDPIC.
310         Use install_movi20_field.  Rename srel to srelgot.  Always generate
311         R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
312         (sh_elf_finish_dynamic_sections): Fill in the GOT pointer in rofixup.
313         Do not fill in reserved GOT entries for FDPIC.  Correct DT_PLTGOT.
314         Rename sgot to sgotplt.  Assert that the right number of rofixups
315         and dynamic relocations were allocated.
316         (sh_elf_use_relative_eh_frame, sh_elf_encode_eh_address): New.
317         (elf_backend_omit_section_dynsym): Use sh_elf_omit_section_dynsym.
318         (elf_backend_can_make_relative_eh_frame)
319         (elf_backend_can_make_lsda_relative_eh_frame)
320         (elf_backend_encode_eh_address): Define.
321         (TARGET_BIG_SYM, TARGET_BIG_NAME, TARGET_LITTLE_SYM)
322         (TARGET_LITTLE_NAME, elf_backend_modify_program_headers, elf32_bed):
323         Redefine for FDPIC vector.
324         * reloc.c: Add SH FDPIC and movi20 relocations.
325         * targets.c (_bfd_target_vector): Add FDPIC vectors.
326         * configure, bfd-in2.h, libbfd.h: Regenerated.
327
328 2010-05-25  Jay Krell  <jay.krell@cornell.edu>
329
330         PR ld/11624
331         * archive.c (_bfd_calloc_wrapper): New function.
332         (_bfd_add_bfd_to_archive_cache): Use it.
333
334         * configure.in: Add alpha*-*-*vms* to list of natives.
335         * configure: Regenerate.
336
337         * vms-misc.c: Define globalref if necessary.
338         (vms_convert_to_var_unix_filename): Rename to
339         _bfd_vms_convert_to_var_unix_filename and export.
340         * vms.h: Add prototype for _bfd_vms_convert_to_var_unix_filename.
341         * vms-alpha.c (vms_close_and_cleanup): Update invocation of
342         vms_convert_to_var_unix_filename.
343
344 2010-05-24  Tristan Gingold  <gingold@adacore.com>
345
346         * vms-alpha.c (add_symbol_entry): New function extrated from ...
347         (add_symbol): ... adjusted.
348
349 2010-05-24  Tristan Gingold  <gingold@adacore.com>
350
351         * vms-alpha.c (_bfd_vms_slurp_egsd): Fix indentation.
352         (alpha_vms_write_exec): Add a comment.
353         (_bfd_vms_write_egsd): Ditto.
354         (alpha_vms_convert_symbol): Remove a blank line.
355
356 2010-05-21  Tristan Gingold  <gingold@adacore.com>
357
358         * vms-alpha.c (_bfd_vms_slurp_eihs): Do not create a bfd section
359         for the GST.
360
361 2010-05-21  Tristan Gingold  <gingold@adacore.com>
362
363         * vms-alpha.c (_bfd_vms_slurp_eisd): Set SEC_HAS_CONTENTS and
364         SEC_LOAD if isect has data.
365         (vms_get_symbol_info): Refine the condition for 'T' type.
366
367 2010-05-18  Tristan Gingold  <gingold@adacore.com>
368
369         * vms-alpha.c (_bfd_vms_write_emh): New function.
370         (_bfd_vms_write_lmn): New function.
371         (_bfd_vms_write_eeom): Moved.
372         (hash_string): Likewise.
373         (_bfd_vms_length_hash_symbol): Likewise.
374         (_bfd_vms_write_ehdr): Code moved to _bfd_vms_write_emh
375         and _bfd_vms_write_lmn, and call these functions.
376
377 2010-05-18  Tristan Gingold  <gingold@adacore.com>
378
379         * vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L.
380         Add details in the messages.
381         (evax_bfd_print_image): Change message.
382
383 2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>
384
385         PR gas/11600
386         * elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE
387         (elf_fake_sections): Likewise.
388
389         * elf32-i370.c (i370_elf_section_from_shdr): Don't handle
390         SHF_EXCLUDE here.
391         * elf32-ppc.c (ppc_elf_fake_sections): Likewise.
392
393 2010-05-17  Tristan Gingold  <gingold@adacore.com>
394
395         * vms-alpha.c: Include esgps.h and eidc.h.
396         (_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records.
397         (evax_bfd_print_egsd_flags): New function, extracted from ...
398         (evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags.  Handles
399         EGSD__C_SPSC and EGSD__C_IDC.
400
401 2010-05-14  Tristan Gingold  <gingold@adacore.com>
402
403         * vms-alpha.c (alpha_vms_object_p): Accept header size of 0.
404         (_bfd_vms_get_object_record): Handle align byte only in the
405         foreign case.
406
407 2010-05-14  Tristan Gingold  <gingold@adacore.com>
408
409         * vms-lib.c (_bfd_vms_lib_ia64_archive_p): New function.
410         * libbfd-in.h (_bfd_vms_lib_ia64_archive_p): Add prototype.
411         * libbfd.h: Regenerate.
412         * configure.in (havevecs): Define HAVE_all_vecs when
413         --enable-targets=all is set.  Use AC_SUBST on it.
414         (tdefaults): Do not add havevecs.
415         (bfd_elf64_ia64_vms_vec): Add vms-lib.lo and vms-misc.lo
416         * configure: Regenerate.
417         * Makefile.am (HAVEVECS): New variable.
418         (INCLUDES): Add HAVEVECS.
419         * Makefile.in: Regenerate.
420         * elfxx-ia64.c (INCLUDE_IA64_VMS): New macro, defined if vms
421         target is selected.  Add #ifdef/#endif around vms specific code.
422         (bfd_elfNN_archive_p, bfd_elfNN_archive_slurp_armap,
423         bfd_elfNN_archive_slurp_extended_name_table,
424         bfd_elfNN_archive_construct_extended_name_table,
425         bfd_elfNN_archive_truncate_arname,
426         bfd_elfNN_archive_write_armap,
427         bfd_elfNN_archive_read_ar_hdr,
428         bfd_elfNN_archive_write_ar_hdr,
429         bfd_elfNN_archive_openr_next_archived_file,
430         bfd_elfNN_archive_get_elt_at_index,
431         bfd_elfNN_archive_generic_stat_arch_elt,
432         bfd_elfNN_archive_update_armap_timestamp): Define to use vms archives.
433
434 2010-05-11  Jie Zhang  <jie@codesourcery.com>
435
436         * elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge
437         Tag_ABI_HardFP_use correctly.
438
439 2010-05-11  Alan Modra  <amodra@gmail.com>
440
441         * coffcode.h (coff_write_object_contents): Enclose all occurrences
442         of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
443
444 2010-05-07  Daniel Jacobowitz  <dan@codesourcery.com>
445
446         * elf32-arm.c (struct a8_erratum_reloc): Add hash member.  Move
447         sym_name to improve packing.
448         (cortex_a8_erratum_scan): Check for PLT entries.
449         (elf32_arm_size_stubs): Save the target symbol for a8 relocs.
450
451 2010-05-07  Tristan Gingold  <gingold@adacore.com>
452
453         * Makefile.in: Regenerate with automake 1.11.1.
454         * aclocal.m4: Ditto.
455
456 2010-05-05  Nick Clifton  <nickc@redhat.com>
457
458         * po/es.po: Updated Spanish translation.
459
460 2010-05-03  Tristan Gingold  <gingold@adacore.com>
461
462         * vms-lib.c (vms_lib_bopen): Fix the size threshold to read
463         selective_search flag.
464         Add comments.
465         * vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section
466         before output_has_begun is set.
467
468 2010-05-03  Tristan Gingold  <gingold@adacore.com>
469
470         * vms-alpha.c: Add comments.
471         (struct vms_private_data_struct): Remove image_autoextend field.
472         (dst_check_allocation): Removed.
473         (image_write): Remove call to dst_check_allocation.
474         (vms_slurp_debug): Do not set image_autoextend.  Adjust section
475         size.
476         (_bfd_vms_slurp_object_records): Remove useless new_type variable.
477         (alpha_vms_write_exec): Use dst_section to get the dst section.
478         Write the dmt section.
479         (evax_bfd_print_image): Also print the dst size in hexa.  Fix typo.
480         (alpha_vms_read_sections_content): Do not set image_autoextend.
481         (alpha_vms_bfd_final_link): Generate the dst.
482
483 2010-05-03  Tristan Gingold  <gingold@adacore.com>
484
485         * vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty
486         next array.
487         (vms_lib_dcx): Adjust for the above change.
488
489 2010-04-30  H.J. Lu  <hongjiu.lu@intel.com>
490
491         PR ld/11542
492         * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.
493
494         * elf32-i386.c (elf_i386_relocate_section): Use it.
495         * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
496
497 2010-04-30  Tristan Gingold  <gingold@adacore.com>
498
499         * vms-lib.c (vms_read_block): New function.
500         (vms_traverse_index): Use vms_read_block.  Handle long key names.
501
502 2010-04-30  Tristan Gingold  <gingold@adacore.com>
503
504         * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
505         and syms removed.
506         (struct carsym_mem): New structure.
507         (vms_add_index): New function.
508         (vms_add_indexes_from_list): New function.
509         (vms_traverse_index): Parameter carsym changed to carsym_mem.
510         Code adjusted to handle elfidx.
511         (vms_lib_read_index): Adjusted for vms_traverse_index changes.
512         Parameter NBREL is now a pointer.
513         (_bfd_vms_lib_archive_p): Adjust for above change.  Handle ia64
514         archives.
515         (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
516         (_bfd_vms_lib_find_symbol): Ditto.
517         (vms_lib_bopen): Fix two typos: return FALSE in case of error,
518         check MHD id.
519         (_bfd_vms_lib_get_module): New function.
520         (_bfd_vms_lib_get_elt_at_index): Rewritten using the above
521         function.
522         (_bfd_vms_lib_openr_next_archived_file): Use _bfd_vms_lib_get_module.
523         (_bfd_vms_lib_generic_stat_arch_elt): Handle ia64 archives.
524         (vms_write_index): Adjust for structure renamed.
525         * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
526         changes of _bfd_vms_lib_find_symbol.
527
528 2010-04-28  Kai Tietz  <kai.tietz@onevision.com>
529
530         * config.bfd: Correct accidential reverted patch
531         about vax*-*-*vms*.
532
533 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
534
535         * pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
536         to USE_MINGW64_LEADING_UNDERSCORES.
537         * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
538         * config.bfd: Change underscoring default for x64 mingw
539         to false.
540         * coffcode.h (coff_write_relocs): Add check that dereferenced
541         sym_ptr_ptr isn't NULL.
542         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
543         * configure: Regenerated.
544         * configure.in: Add option '--enable-leading-mingw64-underscores'
545         and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
546
547 2010-04-27  Nick Clifton  <nickc@redhat.com>
548
549         PR binutils/11512
550         * coffgen.c (coff_find_nearest_line): Incldue the section address
551         of function name symbols in address comparisons.
552
553 2010-04-27  Nick Clifton  <nickc@redhat.com>
554
555         * po/fr.po: Updated French translation.
556
557 2010-04-23  Alan Modra  <amodra@gmail.com>
558
559         * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
560         ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
561         throughout file.
562         (assign_file_positions_for_load_sections): Modify section in
563         segment warning to ignore overlay vmas.
564         * elf32-spu.c (spu_elf_object_p): Replace use of
565         ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
566
567 2010-04-22  Nick Clifton  <nickc@redhat.com>
568
569         * po/bfd.pot: Updated by the Translation project.
570         * po/vi.po: Updated Vietnamese translation.
571
572 2010-04-22  Alan Modra  <amodra@gmail.com>
573
574         * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29
575         change.  Tidy.  Don't error on sections not allocated in segment.
576
577 2010-04-15  Andrew Haley  <aph@redhat.com>
578
579         * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag:
580         merge_exidx_entries.
581         * bfd-in2.h: Likewise.
582         * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise.  Use it to
583         control merging of exidx entries.
584
585 2010-04-20  Joseph Myers  <joseph@codesourcery.com>
586
587         * elf32-tic6x.h: New.
588         * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
589         * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
590         elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
591         elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
592         elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
593         bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
594         (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
595         elf32_tic6x_relocate_section): Handle REL relocations.
596         (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.
597
598 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
599
600         * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
601         DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
602
603 2010-04-19  Nick Clifton  <nickc@redhat.com>
604
605         * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
606         arhdrpos variable.
607         * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
608         attribute to warned variable.  Remove unused val, type and type2
609         variables.
610
611 2010-04-16  Andreas Schwab  <schwab@redhat.com>
612
613         * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
614         strict-aliasing rules.
615
616 2010-04-16  Tristan Gingold  <gingold@adacore.com>
617
618         * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
619         (_bfd_vms_get_object_record): Always assume there is a pad byte
620         for alignment.
621
622         * vms-lib.c: Add a few comments.
623
624 2010-04-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
625
626         * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to
627         attributes in v2.08 of the ABI.
628
629 2010-04-15  Alan Modra  <amodra@gmail.com>
630
631         * config.bfd (vax*-*-*vms*): Delete.
632
633 2010-04-14  Tristan Gingold  <gingold@adacore.com>
634
635         * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
636         vms-tir.lo, vms.lo and add vms-alpha.lo
637         (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
638         vms-tir.c, vms.c and add vms-alpha.c
639         * Makefile.in: Regenerate.
640         * configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
641         Remove vms_vax_vec.
642         * configure: Regenerate.
643         * targets.c (vms_vax_vec): Remove the declaration.
644         (_bfd_target_vector): Remove vms_vax_vec.
645         * vms-alpha.c: New file.
646         * vms-gsd.c: Removed, rewritten in vms-alpha.c
647         * vms-hdr.c: Ditto.
648         * vms-tir.c: Ditto.
649         * vms.c: Ditto.
650         * vms-misc.c: Fix indentation and comments.  Replace most of
651         #if VMS_DEBUG/vms_debug with vms_debug2.
652         (_bfd_vms_hash_newfunc): Moved to vms-alpha.c
653         (hash_string): Ditto.
654         (_bfd_vms_length_hash_symbol): Ditto.
655         (maybe_adjust_record_pointer_for_object): Ditto.
656         (_bfd_vms_get_object_record): Ditto.
657         (vms_get_remaining_object_record): Ditto.
658         (_bfd_vms_push): Ditto.
659         (_bfd_vms_pop): Ditto.
660         (_bfd_vms_get_header_values): Removed.
661         (_bfd_vms_get_first_record): Removed.
662         (vms_get_remaining_image_record): Removed.
663         (new_symbol): Removed.
664         (_bfd_vms_enter_symbol): Removed.
665         (_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
666         (_bfd_vms_output_begin): Remove rechead parameter.  Replace bfd
667         parameter with struct vms_rec_wr.
668         (_bfd_vms_output_push): Removed and replaced by ...
669         (_bfd_vms_output_begin_subrec): ... new function.
670         (_bfd_vms_output_alignment): Replace bfd parameter with
671         struct vms_rec_wr, and adjust.
672         (_bfd_vms_output_check): Ditto
673         (_bfd_vms_output_byte): Ditto.
674         (_bfd_vms_output_short): Ditto.
675         (_bfd_vms_output_long): Ditto.
676         (_bfd_vms_output_quad): Ditto.
677         (_bfd_vms_output_counted): Ditto.
678         (_bfd_vms_output_dump): Ditto.
679         (_bfd_vms_output_fill): Ditto.
680         (_bfd_vms_output_pop): Removed and replaced by ...
681         (_bfd_vms_output_end_subrec): ... new function.
682         (_bfd_vms_output_flush): Removed.
683         (_bfd_vms_output_align): New function.
684         (_bfd_vms_output_end): Add recwr parameter.  Adjust for this new
685         parameter.
686         (vms_convert_to_var): New function imported from vms.c
687         (vms_convert_to_var_1): Ditto.
688         (vms_convert_to_var_unix_filename): Ditto.
689         (vms_get_module_name): Ditto.
690         (get_vms_time_string): Ditto.
691         (vms_time_to_time_t): Ditto.
692         (vms_rawtime_to_time_t): Ditto.
693         * vms.h: All macros for the VMS file format are now in include/vms.
694         Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
695         have been removed.
696         (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
697         (struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
698         (struct funcinfo, struct vms_private_data_struct): Ditto.
699         (struct vms_section_data_struct): Ditto.
700         (struct vms_rec_rd, stryct vms_rec_wr): New declarations.
701         (vms_get_module_name, get_vms_time_string): New declarations.
702         (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
703         (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
704         (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
705         (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
706         (_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
707         (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
708         (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
709         (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
710         (_bfd_vms_output_fill): Ditto.
711         (bfd_vms_set_section_flags): Ditto.
712
713 2010-04-14  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
714
715         * elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
716         exit due to merging the same weak symbol to test that the symbols are
717         actually weak.
718
719 2010-04-13  Alan Modra  <amodra@gmail.com>
720
721         * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
722         when optimizing high got_tlsgd/ld insns.
723
724 2010-04-10  H.J. Lu  <hongjiu.lu@intel.com>
725
726         * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
727         define.
728         (HAVE_PRSTATUS32_T): Likewise.
729
730 2010-04-10  H.J. Lu  <hongjiu.lu@intel.com>
731
732         PR corefiles/11467
733         * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
734         for x86_64-*-linux*.
735         * config.in: Regenerated.
736         * configure: Likewise.
737
738         * elf.c: Include CORE_HEADER if it is defined.
739
740 2010-04-10  H.J. Lu  <hongjiu.lu@intel.com>
741             Jan Kratochvil  <jan.kratochvil@redhat.com>
742
743         * hosts/x86-64linux.h: New.
744
745 2010-04-09  Nick Clifton  <nickc@redhat.com>
746
747         * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
748         * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
749         variables htab and hdr_info and mark info parameter as unused.
750         * elf.c (prep_headers): Remove unused variable i_phdrp.
751         (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
752         * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
753         as unused.
754         * peXXigen.c (pe_print_reloc): Remove unused variable datasize.
755         * verilog.c (verilog_write_section): Remove unused variable
756         address.
757
758 2010-04-07  Alan Modra  <amodra@gmail.com>
759
760         * warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
761         * configure: Regenerate.
762
763 2010-04-06  H.J. Lu  <hongjiu.lu@intel.com>
764
765         PR ld/11434
766         * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
767
768 2010-04-06  Tristan Gingold  <gingold@adacore.com>
769
770         * vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
771
772 2010-04-05  Jakub Jelinek  <jakub@redhat.com>
773
774         * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
775         provided that it has the expected address size and zero segment
776         length.
777
778         * dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
779         (struct line_info): Add op_index field, change end_sequence type to
780         unsigned char.
781         (new_line_sorts_after): For the same address compare op_index.
782         (add_line_info): Add op_index argument, store it into the structure.
783         (decode_line_info): Complain about unknown versions of .debug_line.
784         Initialize maximum_ops_per_insn.  Add op_index state register and
785         track it.
786
787 2010-04-01  Nathan Sidwell  <nathan@codesourcery.com>
788
789         * elf32-ppc.c (apuinfo_set): New static var.
790         (ppc_elf_begin_write_processing): Set it here, always create an
791         APUinfo section if there were any in the inputs.
792         (ppc_elf_write_section): Check apuinfo_set.
793         (ppc_elf_final_write_processing): Likewise.
794
795 2010-04-01  Tristan Gingold  <gingold@adacore.com>
796
797         * vms.h: Include time.h. Add prototypes for vms_get_module_name,
798         vms_time_to_time_t and vms_rawtime_to_time_t.
799         * vms.c (vms_alpha_vec): Add archives support.
800         * vms-misc.c: Include safe-ctype.h
801         (vms_get_module_name): New function.
802         (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
803         * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
804         vms_get_module_name function.  Use this function.
805         * targets.c: Declare vms_lib_txt_vec.  Add it to _bfd_target_vector.
806         * libbfd-in.h: Add prototype for _bfd_append_relative_path.
807         Add prototypes for vms-lib.c
808         * libbfd.h: Regenerate.
809         * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec.  Add
810         vms-lib.lo to vms_alpha_vec.
811         * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
812         * configure: Regenerate.
813         * bfd.c: Add selective_search field.
814         * bfd-in2.h: Regenerate.
815         * archive.c (append_relative_path): Rename to
816         _bfd_append_relative_path and make it public.
817         (_bfd_get_elt_at_filepos): Adjust for above renaming.
818         * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
819         (BFD32_BACKENDS_CFILES): Add vms-lib.c
820         * Makefile.in: Regenerate.
821
822 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
823
824         * dwarf2.c (read_attribute_value): Handle CU version 4
825         for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
826         and DW_FORM_flag_present.  For unknown form value return NULL.
827         (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
828         like DW_FORM_block.
829         (parse_comp_unit): Allow CU version 4.
830
831 2010-04-01  Hans-Peter Nilsson  <hp@axis.com>
832
833         * elf32-cris.c (cris_elf_relocate_section): Correct first argument
834         to _bfd_elf_get_dynamic_reloc_section.
835         (elf_cris_discard_excess_dso_dynamics): Ditto.
836
837 2010-03-31  Kai Tietz  <kai.tietz@onevision.com>
838
839         * coff-i386.c (in_reloc_p): Check also for R_SECREL32.
840         * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
841
842 2010-03-31  Alan Modra  <amodra@gmail.com>
843
844         * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
845         TPREL16_HI and TPREL16_HA insns.
846
847 2010-03-31  Hans-Peter Nilsson  <hp@axis.com>
848
849         PR ld/11458
850         * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
851         assert of empty pcrel_relocs_copied on the direct symbol.  Instead
852         of moving the list from the indirect symbol to the direct symbol,
853         merge into any existing list.
854         (cris_elf_check_relocs): Store the original section in the
855         pcrel_relocs_copied list, not the relocation section.
856         (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
857         the relocation section, for reducing its size.  Change the
858         BFD_ASSERT into a check for the section being read-only, and only
859         emit warnings and TEXTREL marker when there's an entry for a
860         read-only section.
861
862 2010-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
863
864         * elf32-arm.c (using_thumb_only): Handle v6-M.
865
866 2010-03-26  Alan Modra  <amodra@gmail.com>
867
868         * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
869         * bfd-in.h (elf_discarded_section): Clarify comment.
870         * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
871         * bfd-in2.h: Regenerate.
872
873 2010-03-26  Matt Rice  <ratmice@gmail.com>
874
875         * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
876         as unique in the armap.
877
878 2010-03-26  Alan Modra  <amodra@gmail.com>
879
880         PR ld/11375
881         * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
882         possible stub on branches.
883
884 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
885
886         * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
887         (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
888         (BFD32_BACKENDS): Add elf32-tic6x.lo.
889         (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
890         * Makefile.in: Regenerate.
891         * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
892         (bfd_archures_list): Update.
893         * config.bfd (tic6x-*-elf): New.
894         * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
895         New.
896         * configure: Regenerate.
897         * cpu-tic6x.c, elf32-tic6x.c: New.
898         * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
899         BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
900         BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
901         BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
902         BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
903         BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
904         BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
905         BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
906         BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
907         BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
908         BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
909         BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
910         BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
911         * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
912         (_bfd_target_vector): Update.
913         * bfd-in2.h, libbfd.h: Regenerate.
914
915 2010-03-24  H.J. Lu  <hongjiu.lu@intel.com>
916
917         * aout-target.h: Update copyright year.
918         * aout-tic30.c: Likewise.
919         * coff-alpha.c: Likewise.
920         * coff-rs6000.c: Likewise.
921         * coff64-rs6000.c: Likewise.
922         * elf64-mips.c: Likewise.
923         * ieee.c: Likewise.
924         * libecoff.h: Likewise.
925         * mach-o-target.c: Likewise.
926         * mach-o.c: Likewise.
927         * oasys.c: Likewise.
928         * targets.c: Likewise.
929
930 2010-03-24  H.J. Lu  <hongjiu.lu@intel.com>
931
932         * libbfd-in.h: Update copyright year.
933
934 2010-03-21  H.J. Lu  <hongjiu.lu@intel.com>
935
936         PR ld/11413
937         * elflink.c (_bfd_elf_add_default_symbol): Check !executable
938         instead of shared.
939
940 2010-03-19  Jie Zhang  <jie@codesourcery.com>
941
942         * elf32-arm.c (struct section_list): Remove.
943         (section_list): Remove typedef.
944         (record_section_with_arm_elf_section_data): Remove.
945         (find_arm_elf_section_entry): Remove.
946         (get_arm_elf_section_data): Use is_arm_elf.
947         (unrecord_section_with_arm_elf_section_data): Remove.
948         (elf32_arm_new_section_hook): Don't call
949         record_section_with_arm_elf_section_data.
950         (elf32_arm_write_section): Set mapcount to -1 when
951         the map has been used. Don't call
952         unrecord_section_with_arm_elf_section_data.
953         (unrecord_section_via_map_over_sections): Remove.
954         (elf32_arm_close_and_cleanup): Remove.
955         (elf32_arm_bfd_free_cached_info): Remove.
956         (bfd_elf32_close_and_cleanup): Don't define.
957         (bfd_elf32_bfd_free_cached_info): Don't define.
958
959 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
960
961         PR binutils/11396
962         * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
963         * libcoff.h: Regenerated.
964
965         * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
966         if dont_strip_reloc is set.
967         (_bfd_XX_bfd_copy_private_bfd_data_common): Set
968         dont_strip_reloc on output if there is no .reloc and
969         IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
970
971 2010-03-18  Wei Guozhi  <carrot@google.com>
972
973         PR gas/11323
974         * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
975         R_ARM_GOT_PREL.
976         * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
977         * bfd-in2.h: Regenerate.
978         * libbfd.h: Regenerate.
979
980 2010-03-17  H.J. Lu  <hongjiu.lu@intel.com>
981
982         * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
983         (BFD_RELOC_SPU_STUB): Likewise.
984
985 2010-03-17  Jie Zhang  <jie@codesourcery.com>
986
987         * elf.c (assign_file_positions_for_load_sections): Avoid
988         overflow.
989
990 2010-03-17  Alan Modra  <amodra@gmail.com>
991
992         PR binutils/11382
993         * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
994         proper type.
995
996 2010-03-17  Alan Modra  <amodra@gmail.com>
997
998         * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
999
1000 2010-03-16  Alan Modra  <amodra@gmail.com>
1001
1002         * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
1003         (ppc64_elf_edit_toc): Set it here.
1004         (ha_reloc_match): New function.
1005         (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
1006
1007 2010-03-15  Alan Modra  <amodra@gmail.com>
1008
1009         * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
1010         * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
1011
1012 2010-03-14  Alan Modra  <amodra@gmail.com>
1013
1014         PR ld/11378
1015         * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
1016         * elf64-ppc.c (call_check_done): Define.
1017         (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
1018         (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
1019         (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
1020         (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
1021         Simplify return logic.  Iterate over all .init and .fini fragments
1022         by recursion.  Set makes_toc_func_call here..
1023         (ppc64_elf_next_input_section): ..rather than here.
1024         (check_pasted_section, ppc64_elf_check_init_fini): New functions.
1025
1026 2010-03-13  Alan Modra  <amodra@gmail.com>
1027
1028         PR ld/11375
1029         * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
1030         function descriptor symbol if there is one, not just for plt stubs.
1031         (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
1032
1033 2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1034
1035         * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
1036         version twice.
1037         Skip it when constructing def.vd_next.
1038
1039         * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
1040         bfd_elf32_i386_sol2_vec.
1041         (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
1042         (elf32_bed): Redefine to elf32_i386_sol2_bed.
1043         (elf_backend_want_plt_sym): Redefine to 1.
1044
1045         * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
1046         bfd_elf64_x86_64_sol2_vec.
1047         (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
1048         (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
1049         (elf_backend_want_plt_sym): Redefine to 1.
1050
1051         * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
1052         bfd_elf32_i386_sol2_vec.
1053         Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
1054         targ64_selvecs.
1055         (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
1056         Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
1057         targ_selvecs.
1058
1059         * configure.in: Handle bfd_elf32_i386_sol2_vec,
1060         bfd_elf64_x86_64_sol2_vec.
1061         * configure: Regenerate.
1062
1063         * targets.c (bfd_elf32_i386_sol2_vec): Declare.
1064         (bfd_elf64_x86_64_sol2_vec): Declare.
1065         (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
1066         bfd_elf64_x86_64_sol2_vec.
1067
1068 2010-03-04  Daniel Jacobowitz  <dan@codesourcery.com>
1069
1070         * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
1071         sections.
1072
1073 2010-03-04  Alan Modra  <amodra@gmail.com>
1074
1075         PR 11302
1076         * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
1077         (read_attribute_value, decode_line_info): Likewise.
1078         (add_line_info, read_rangelist): Return FALSE on alloc failures.
1079         (arange_add, sort_line_sequences): Likewise.
1080         (find_abstract_instance_name): Handle failures from called funcs.
1081         (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
1082         (find_line): Realloc to a temp, and handle alloc fail.
1083
1084 2010-03-03  Daniel Jacobowitz  <dan@codesourcery.com>
1085
1086         * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
1087         a mapping symbol to an empty section.
1088
1089 2010-03-02  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1090
1091         * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
1092         return value from the call to _bfd_elf_merge_object_attributes.
1093
1094 2010-03-02  Christophe Lyon  <christophe.lyon@st.com>
1095         Alan Modra  <amodra@gmail.com>
1096
1097         * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
1098         destination mode of the a8 stub.
1099         (elf32_arm_link_hash_table): Add top_id field.
1100         (elf32_arm_link_hash_table_create): Initialize top_id.
1101         (arm_type_of_stub): Update prototype, st_type can now be updated
1102         by this function. Actual destination address in case of PLT is
1103         computed here, to help factorizing code.
1104         (elf32_arm_stub_name): Update prototype, use stub_type additional
1105         parameter to build stub name.
1106         (elf32_arm_get_stub_entry): Update prototype, use stub_type
1107         additional parameter to build stub entry.
1108         (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
1109         put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
1110         Call elf32_arm_final_link_relocate to process all in-stub
1111         relocations.
1112         (elf32_arm_setup_section_lists): Update top_id.
1113         (cortex_a8_erratum_scan): Record stub destination mode.
1114         (elf32_arm_size_stubs): Update call to arm_type_of_stub according
1115         to new prototype.
1116         (elf32_arm_final_link_relocate): Enable processing of in-stub
1117         REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
1118         needed, enabling code factorization.
1119         (elf32_arm_final_link): Process stub sections.
1120         (elf32_arm_output_map_sym): Add entry to code/data map.
1121
1122 2010-03-01  David S. Miller  <davem@davemloft.net>
1123
1124         * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
1125         h->def_regular, set h->ref_regular.
1126         (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
1127         and dynamic relocations if h->ref_regular.
1128
1129         * elfxx-sparc.c (struct elf_reloc_map): Delete.
1130         (sparc_reloc_map): Delete.
1131         (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
1132         relocation type in switch statements.
1133
1134 2010-02-25  Alan Modra  <amodra@gmail.com>
1135
1136         PR ld/11304
1137         * elf.c (_bfd_elf_init_private_section_data): Rename need_group
1138         to final_link and invert.  For final link allow some flags to
1139         differ.  Don't specially allow flags to be all zero.
1140
1141 2010-02-24  Alan Modra  <amodra@gmail.com>
1142
1143         PR binutils/10858
1144         * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
1145         SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
1146         table.
1147
1148 2010-02-23  Andrew Zabolotny  <anpaza@mail.ru>
1149
1150         PR binutils/11297
1151         * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
1152         (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
1153
1154 2010-02-22  Alan Modra  <amodra@gmail.com>
1155
1156         * reloc.c (bfd_check_overflow): When forming addrmask, shift
1157         fieldmask left by rightshift.
1158         (_bfd_relocate_contents): Likewise.  Use rightshift addrmask in all
1159         overflow checks.
1160
1161 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
1162
1163         * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
1164         STT_GNU_IFUNC on large common symbol.
1165
1166 2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
1167
1168         * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
1169         has_ifunc_symbols if the symbol comes from a shared library.
1170         * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
1171         * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
1172         * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
1173         * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
1174         * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
1175
1176 2010-02-19  Alan Modra  <amodra@gmail.com>
1177
1178         * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
1179         (_bfd_elf_copy_private_header_data): ..here.
1180         * elflink.c (_bfd_elf_size_group_sections): New function.
1181         (bfd_elf_size_dynamic_sections): Call it.
1182         * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
1183         (_bfd_elf_fixup_group_sections): Declare.
1184
1185 2010-02-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1186
1187         * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
1188         merging Tag_DIV_use, Tag_MPextension_use, and
1189         Tag_MPextension_use_legacy tags.
1190
1191 2010-02-18  Alan Modra  <amodra@gmail.com>
1192
1193         * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
1194         commit.  Don't write zeros for removed group members.
1195         (_bfd_elf_copy_private_header_data): Adjust size of group section
1196         when group members are removed by objcopy.
1197
1198 2010-02-15  Dave Korn  <dave.korn.cygwin@gmail.com>
1199
1200         PR binutils/11280
1201         * configure.host (*-*-solaris2.11):  Add host define to select
1202         valid default code page for windres/windmc on solaris.
1203
1204 2010-02-15  Nick Clifton  <nickc@redhat.com>
1205
1206         * po/vi.po: Updated Vietnamese translation.
1207
1208 2010-02-12  Daniel Gutson  <dgutson@codesourcery.com>
1209
1210         * elf32-arm.c (elf32_arm_output_arch_local_syms): add
1211         missing mapping symbol to data only sections.
1212
1213 2010-02-11  David S. Miller  <davem@davemloft.net>
1214
1215         * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
1216         and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
1217         symbols.
1218         (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
1219         these relocs on global symbols.
1220         (gdopoff): New.
1221         (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
1222         local symbol references which are not STT_GNU_IFUNC.  Handle
1223         relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
1224         and deal with negative vs. non-negative values properly.
1225
1226 2010-02-09  Tristan Gingold  <gingold@adacore.com>
1227
1228         * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
1229         non-external relocation.
1230
1231 2010-02-09  Alan Modra  <amodra@gmail.com>
1232
1233         * elf64-ppc.c (merge_got_entries): Move earlier in file.
1234         (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
1235         (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
1236         (ppc64_elf_layout_multitoc): Don't resize if we have already
1237         merged got entries.
1238
1239 2010-02-09  Michael Holzheu  <holzheu@de.ibm.com>
1240
1241         * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
1242         elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
1243         elfcore_write_s390_prefix): New.
1244         * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
1245         elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
1246         elfcore_write_s390_prefix): New.
1247         (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
1248         NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
1249         (elfcore_write_register_note): Handle .reg-s390-timer,
1250         .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
1251         .reg-s390-prefix section.
1252
1253 2010-02-09  Alan Modra  <amodra@gmail.com>
1254
1255         * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
1256         unsigned char.  Update variables and code using them throughout file.
1257         (struct ppc_link_hash_entry): Likewise for tls_mask.
1258
1259         * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
1260
1261         * elf64-ppc.c (has_small_toc_reloc): Don't define.
1262         (makes_toc_func_call, call_check_in_progress): Shuffle flags.
1263         (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc.  Update
1264         code setting the flag.
1265         (ppc64_elf_next_toc_section): Group big-toc sections in
1266         0x80008000 chunks.
1267
1268 2010-02-08  David S. Miller  <davem@davemloft.net>
1269
1270         * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
1271         srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
1272
1273         * elfxx-sparc.c (create_got_section): Delete.
1274         (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
1275         section creator does that work for us.  Use ->elf.foo instead of
1276         ->foo where applicable.
1277         (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
1278         where applicable.
1279         (allocate_dynrelocs): Likewise.
1280         (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1281         (_bfd_sparc_elf_relocate_section): Likewise.
1282         (sparc_vxworks_build_plt_entry): Likewise.
1283         (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
1284         (sparc_finish_dyn): Likewise.
1285         (sparc_vxworks_finish_exec_plt): Likewise.
1286         (sparc_vxworks_finish_shared_plt): Likewise.
1287         (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
1288
1289         * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
1290         macros for visibilty and locality checks.
1291         (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
1292         (allocate_dynrelocs): Likewise.
1293         (_bfd_sparc_elf_relocate_section): Likewise.
1294         (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
1295
1296         * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
1297         but never used local var 'dynobj'.
1298
1299         * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
1300         nocopyreloc.
1301
1302         * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
1303         (BFD_RELOC_SPARC_IRELATIVE): Likewise.
1304         * bfd-in2.h: Regenerate.
1305         * libbfd.h: Regenerate.
1306
1307         * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
1308         and loc_hash_memory.
1309         (_bfd_sparc_elf_link_hash_table_free): Declare.
1310         * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
1311         (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
1312         bfd_elf32_bfd_link_hash_table_free): Define.
1313         * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
1314         has_ifunc_symbols if STT_GNU_IFUNC.
1315         (bfd_elf64_bfd_link_hash_table_free): Define.
1316         (elf_backend_post_process_headers): Define always.
1317         * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
1318         (sparc_reloc_map): Add entries for new IFUNC relocs.
1319         (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
1320         (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
1321         (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
1322         elf_sparc_get_local_sym_hash): New.
1323         (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
1324         from here...
1325         (_bfd_sparc_elf_link_hash_table_create): ... to here.  Allocate
1326         local hash table.
1327         (_bfd_sparc_elf_link_hash_table_free): New.
1328         (create_ifunc_sections): New.
1329         (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
1330         and call create_ifunc_sections().  For local STT_GNU_IFUNC symbols
1331         cons up a fake local hash table entry for it.  Unconditionally add
1332         a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular.  Count
1333         dyn relocs for ifunc.
1334         (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
1335         (allocate_dynrelocs):  Unconditionally emit a PLT entry when
1336         STT_GNU_IFUNC and h->def_regular.  Count GOT dyn relocs for ifunc.
1337         (allocate_local_dynrelocs): New function.
1338         (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
1339         table.  Emit dynamic relocs to irelplt when not shared.  Treat iplt
1340         like splt.
1341         (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
1342         (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
1343         plt in iplt/irelplt.
1344
1345 2010-02-08  Richard Sandiford  <r.sandiford@uk.ibm.com>
1346
1347         * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
1348         max_contents_size, only consider sections whose contents must
1349         be swapped in.
1350
1351 2010-02-09  Alan Modra  <amodra@gmail.com>
1352
1353         * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
1354         (ppc64_elf_size_dynamic_sections): ..and here..
1355         (merge_got_entries): ..rather than here.
1356
1357 2010-02-09  Alan Modra  <amodra@gmail.com>
1358
1359         * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
1360         (has_small_toc_reloc): Define.
1361         (ppc64_elf_check_relocs): Set the above flags.
1362         (ppc64_elf_edit_opd): Delete obfd param.
1363         (ppc64_elf_tls_optimize): Likewise.
1364         (ppc64_elf_edit_toc): Likewise.
1365         (ppc64_elf_tls_setup): Likewise.  Add no_multi_toc param.
1366         * elf64-ppc.h: Update prototypes.
1367
1368 2010-02-08  Alan Modra  <amodra@gmail.com>
1369
1370         * section.c (struct bfd_section): Delete has_tls_reloc,
1371         has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
1372         Add sec_flg0 thru sec_flg5.
1373         (BFD_FAKE_SECTION): Update for changed flags.
1374         * ecoff.c (bfd_debug_section): Likewise.
1375         * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
1376         * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
1377         (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
1378         * elf32-xtensa.c (reloc_done): Define.
1379         * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
1380         * bfd-in2.h: Regenerate.
1381
1382 2010-02-08  Tristan Gingold  <gingold@adacore.com>
1383
1384         * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
1385         for non-scattered relocations.
1386
1387 2010-02-08  Nathan Sidwell  <nathan@codesourcery.com>
1388
1389         * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
1390         apuinfo sections, only scan input sections once and reuse the
1391         buffer.
1392
1393 2010-02-08  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1394
1395         * archures.c (bfd_mach_ppc_titan): Define.
1396         * bfd-in2.h: Regenerate.
1397         * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
1398
1399 2010-02-08  Alan Modra  <amodra@gmail.com>
1400
1401         * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
1402
1403 2010-02-05  Sterling Augustine  <sterling@tensilica.com>
1404
1405         * elf.c (assign_file_positions_for_load_sections) Update lma of
1406         section if necessary.  Fixes Bugzilla 11219.
1407
1408 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
1409
1410         * elf32-i386.c: Remove trailing white spaces.
1411         * elf64-x86-64.c: Likewise.
1412
1413 2010-02-03  Nick Clifton  <nickc@redhat.com>
1414
1415         * elf-bfd.h (emum elf_object_id): Rename to elf_target_id.  Add
1416         entries for other architectures.
1417         (struct elf_link_hash_table): Add hash_table_id field.
1418         (elf_hash_table_id): New accessor macro.
1419         * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
1420         parameter.
1421         * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
1422         returning cast pointer.
1423         (elf32_mn10300_link_hash_table_create): Identify new table as
1424         containing MN10300 extensions.
1425         (mn10300_elf_relax_section): Check pointer returned by
1426         elf32_mn10300_hash_table.
1427         * elf32-arm.c: Likewise, except using ARM extensions.
1428         * elf32-avr.c: Likewise, except using AVR extensions.
1429         * elf32-bfin.c: Likewise, except using BFIN extensions.
1430         * elf32-cris.c: Likewise, except using CRIS extensions.
1431         * elf32-frv.c: Likewise, except using FRV extensions.
1432         * elf32-hppa.c: Likewise, except using HPPA32 extensions.
1433         * elf32-i386.c: Likewise, except using I386 extensions.
1434         * elf32-lm32.c: Likewise, except using LM32 extensions.
1435         * elf32-m32r.c: Likewise, except using M32RM extensions.
1436         * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
1437         * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
1438         * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
1439         * elf32-m68k.c: Likewise, except using M68K extensions.
1440         * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
1441         * elf32-ppc.c: Likewise, except using PPC32 extensions.
1442         * elf32-s390.c: Likewise, except using S390 extensions.
1443         * elf32-sh.c: Likewise, except using SH extensions.
1444         * elf32-spu.c: Likewise, except using SPU extensions.
1445         * elf32-xtensa.c: Likewise, except using XTENSA extensions.
1446         * elf64-alpha.c: Likewise, except using ALPHA extensions.
1447         * elf64-hppa.c: Likewise, except using HPPA64 extensions.
1448         * elf64-ppc.c: Likewise, except using PPC64 extensions.
1449         * elf64-s390.c: Likewise, except using S390 extensions.
1450         * elf64-x86-64.c: Likewise, except using X86_64 extensions.
1451         * elfxx-ia64.c: Likewise, except using IA64 extensions.
1452         * elfxx-mips.c: Likewise, except using MIPS extensions.
1453         * elfxx-sparc.c: Likewise, except using SPARC extensions.
1454         * elfxx-sparc.h: Likewise, except using SPARC extensions.
1455         * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
1456         redundant structure.
1457         (elf32_cr16_hash_table): Delete unused macro.
1458         (elf32_cr16_link_hash_traverse): Delete unused macro.
1459         * elf32-score.c: Likewise.
1460         * elf32-score7.c: Likewise.
1461         * elf32-vax.c: Likewise.
1462         * elf64-sh64.c: Likewise.
1463
1464 2010-02-03  Alan Modra  <amodra@gmail.com>
1465
1466         * elf64-ppc.c (struct plt_entry): Move earlier in file.
1467         (struct got_entry): Likewise.  Add is_indirect and got.ent fields.
1468         (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
1469         Update all uses.
1470         (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
1471         Remove no_multi_toc.
1472         (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
1473         when allocating a new struct got_entry.
1474         (allocate_got): New function, extracted from..
1475         (allocate_dynrelocs): ..here.  Abort on got entry in non-ppc64 bfd.
1476         (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
1477         .reliplt by got_reli_size.  Set owner on ppc64_tlsld_got entries.
1478         (ppc64_elf_setup_section_lists): Remove output_bfd param and
1479         no_multi_toc, add add_stub_section and layout_sections_again.  Stash
1480         new params in htab.  Extract some code to..
1481         (ppc64_elf_start_multitoc_partition): ..here.  New function.
1482         (ppc64_elf_next_toc_section): Check for linker script errors.  Handle
1483         second pass toc scan.
1484         (merge_got_entries, merge_global_got, reallocate_got): New functions.
1485         (ppc64_elf_reinit_toc): Rename to..
1486         (ppc64_elf_finish_multitoc_partition): ..this.
1487         (ppc64_elf_layout_multitoc): New function.
1488         (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
1489         layout_sections_again params.
1490         (ppc64_elf_relocate_section): Handle indirect got entries.
1491         * elf64-ppc.h: Update prototypes.  Declare new functions.
1492
1493 2010-02-02  H.J. Lu  <hongjiu.lu@intel.com>
1494
1495         * elf-bfd.h (elfcore_write_xstatereg): New.
1496
1497         * elf.c (elfcore_grok_xstatereg): New.
1498         (elfcore_write_xstatereg): Likewise.
1499         (elfcore_grok_note): Handle NT_X86_XSTATE.
1500         (elfcore_write_register_note): Handle .reg-xstate section.
1501
1502 2010-02-01  Tristan Gingold  <gingold@adacore.com>
1503
1504         * som.c (som_write_ar_hdr): Define this macro.
1505
1506 2010-01-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1507
1508         * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
1509         R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
1510         linkage table pointer to use the global table pointer if not doing
1511         a shared link.
1512
1513 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
1514
1515         * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
1516         if it has already been set.
1517
1518 2010-01-27  Tristan Gingold  <gingold@adacore.com>
1519
1520         * vms.h: Remove trailing spaces.
1521         (struct hdr_struct): Remove unused hdr_c_cpr field.
1522         (enum file_format_enum): Add comments.
1523         * vms.c (vms_bfd_print_private_bfd_data): New function that
1524         replaces the macro.
1525         Remove trailing spaces.
1526         * vms-misc.c: Improve comments.
1527         (_bfd_vms_get_object_record): Also handle files without pads.
1528         * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
1529         * vms-gsd.c (struct flagdescstruct): Make name field const.
1530         (gsyflagdesc): Fix typo.
1531
1532 2010-01-27  Alan Modra  <amodra@gmail.com>
1533
1534         PR ld/11217
1535         * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
1536         (ppc64_elf_setup_section_lists): Init them.
1537         (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
1538         and .toc on the same input file.
1539         (ppc64_elf_relocate_section): Correct GOT entry offset.
1540
1541 2010-01-26  Tristan Gingold  <gingold@adacore.com>
1542
1543         * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
1544         (bfd_target): Add _bfd_write_ar_hdr_fn field.
1545         * archive.c (is_bsd44_extended_name): New macro.
1546         (_bfd_generic_read_ar_hdr_mag): Use it.  Add extra_size.
1547         (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
1548         name.
1549         (_bfd_archive_bsd44_construct_extended_name_table): New function.
1550         (_bfd_generic_write_ar_hdr): Ditto.
1551         (_bfd_bsd44_write_ar_hdr): Ditto.
1552         (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
1553         (bsd_write_armap): Adjust firstreal computation.
1554         * libbfd-in.h (struct areltdata): Add extra_size field.
1555         (_bfd_generic_write_ar_hdr): Add prototype.
1556         (_bfd_bsd44_write_ar_hdr): Ditto.
1557         (_bfd_write_ar_hdr): Define.
1558         (_bfd_noarchive_write_ar_hdr): Ditto.
1559         (_bfd_archive_bsd_write_ar_hdr): Ditto.
1560         (_bfd_archive_coff_write_ar_hdr): Ditto.
1561         (_bfd_archive_bsd44_slurp_armap): Ditto.
1562         (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
1563         (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
1564         (_bfd_archive_bsd44_truncate_arname): Ditto.
1565         (_bfd_archive_bsd44_write_armap): Ditto.
1566         (_bfd_archive_bsd44_read_ar_hdr): Ditto.
1567         (_bfd_archive_bsd44_write_ar_hdr): Ditto.
1568         (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
1569         (_bfd_archive_bsd44_get_elt_at_index): Ditto.
1570         (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
1571         (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
1572         * libbfd.h: Regenerate.
1573         * oasys.c (oasys_write_ar_hdr): Define.
1574         * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
1575         * ieee.c (ieee_write_ar_hdr): Define.
1576         * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
1577         * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
1578         (bfd_pmac_xcoff_backend_data): Ditto.
1579         * coff64-rs6000.c (rs6000coff64_vec): Ditto.
1580         (bfd_xcoff_aix5_backend_data): Ditto.
1581         * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
1582         * aout-target.h (MY_write_ar_hdr): Define it if not defined.
1583         * aout-tic30.c (MY_write_ar_hdr): Ditto.
1584         * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
1585         (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
1586         (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
1587         (bfd_mach_o_construct_extended_name_table)
1588         (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
1589         (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
1590         (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
1591         * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
1592         (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
1593         (bfd_mach_o_construct_extended_name_table)
1594         (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
1595         (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
1596         (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
1597         * bfd-in2.h: Regenerate.
1598
1599 2010-01-26  Alan Modra  <amodra@gmail.com>
1600             H.J. Lu  <hongjiu.lu@intel.com>
1601
1602         PR ld/11218
1603         * elflink.c (elf_link_output_extsym): Do not ignore undefined
1604         symbols with ref_regular set when gc_sections is active.
1605
1606 2010-01-25  Alan Modra  <amodra@gmail.com>
1607
1608         PR ld/11217
1609         * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
1610         with relocations against undefined weak symbols.
1611         (ppc64_elf_relocate_section): Don't optimize calls to undefined
1612         weak functions if the symbol is dynamic.
1613         (ppc64_elf_relocate_section): Edit tprel tls sequences.
1614         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1615         (_bfd_elf_ppc_at_tprel_transform): New function.
1616         * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
1617         * bfd-in2.h: Regenerate.
1618
1619 2010-01-23  Richard Sandiford  <r.sandiford@uk.ibm.com>
1620
1621         * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
1622         (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
1623         * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
1624         bitsize to 1.
1625         (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
1626
1627 2010-01-21  Nick Clifton  <nickc@redhat.com>
1628
1629         * elflink.c (elf_link_add_object_symbols): Look up name of
1630         undefined symbol both before and after versioning has been
1631         applied.  Do not bother with symbols that are weakly undefined.
1632
1633 2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1634
1635         * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
1636         (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
1637
1638 2010-01-19  Cary Coutant  <ccoutant@google.com>
1639
1640         * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
1641
1642 2010-01-19  Daisuke Hatayama  <d.hatayama@jp.fujitsu.com>
1643             Alan Modra <amodra@gmail.com>
1644
1645         * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
1646         (elf_object_p): Read e_phnum extension.
1647         (elf_write_shdrs_and_ehdr): Write e_phnum extension.
1648         * elfcore.h (elf_core_file_p): Read e_phnum extension.  Sanity check
1649         that we can read last program header.
1650
1651 2010-01-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1652
1653         * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
1654         R_ARM_THM_CALL entry.
1655         (elf32_arm_final_link_relocate): Correct calculation of
1656         reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
1657         or R_ARM_THM_JUMP24 relocation.
1658
1659 2010-01-18  Alan Modra  <amodra@gmail.com>
1660
1661         PR 11168
1662         * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
1663         block past vars in COFF_IMAGE_WITH_PE block.  Report error on more
1664         than 32k sections.
1665
1666 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1667
1668         Fix compilation warning on gcc-3.4.
1669         * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
1670         parameter index to sec_index according to the function definition.
1671
1672 2010-01-13  Chao-ying Fu  <fu@mips.com>
1673
1674         * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
1675         It is true for all CPUs.
1676         (jal_reloc_p): New function.
1677         (mips_elf_calculate_relocation): Rename require_jalxp to
1678         cross_mode_jump_p.
1679         Update comment for CROSS_MODE_JUMP_P.
1680         Set up cross_mode_jump_p based on the mode change.
1681         (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
1682         Update comment for CROSS_MODE_JUMP_P.
1683         Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
1684         Use !cross_mode_jump_p to guard conversion.
1685         Convert "jr t9" to "b", if possible.
1686         (_bfd_mips_elf_relocate_section): Rename require_jalx to
1687         cross_mode_jump_p.
1688         Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
1689         Pass cross_mode_jump_p to call mips_elf_perform_relocation.
1690
1691 2010-01-13  Nick Clifton  <nickc@redhat.com>
1692
1693         * cpu-m32c.c (m32c_scan): New function.  Ensures that a scan for
1694         "m32c" returns the m32c arch_info_struct and not the m16c
1695         arch_info_struct.
1696         (arch_info_struct): Use the new scan function.
1697         (bfd_m32c_arch): Likewise.
1698
1699 2010-01-13  Tristan Gingold  <gingold@adacore.com>
1700
1701         * config.bfd: Remove duplicated target vector for i386-*-darwin.
1702         Appends new arch instead of overriding.
1703         Use mach_o_x86_64_vec for x86_64-*-darwin.
1704         * configure.in: Add mach_o_x86_64_vec.
1705         * configure: Regenerate.
1706         * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
1707         * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
1708         (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
1709         * Makefile.in: Regenerate.
1710         * mach-o-x86-64.c: New file.
1711
1712 2010-01-13  Tristan Gingold  <gingold@adacore.com>
1713
1714         * reloc.c: Add MACH_O_X86_64 relocations.
1715         * bfd-in2.h: Regenerate.
1716         * libbfd.h: Regenerate.
1717
1718 2010-01-13  Tristan Gingold  <gingold@adacore.com>
1719
1720         * archive.c (normalize): Use lbasename.
1721         (bfd_bsd_truncate_arname): Ditto.
1722         (bfd_gnu_truncate_arname): Ditto.
1723
1724 2010-01-12  Tristan Gingold  <gingold@adacore.com>
1725
1726         * makefile.vms (CFLAGS): Turns warnings into informational messages.
1727
1728 2010-01-11  Tristan Gingold  <gingold@adacore.com>
1729
1730         * mach-o.h: Add x86-64 relocation types.
1731
1732 2010-01-11  Tristan Gingold  <gingold@adacore.com>
1733
1734         * mach-o.h (bfd_mach_o_backend_data): Add arch field.
1735         (bfd_mach_o_set_arch_mach): New prototype.
1736         * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
1737         (bfd_mach_o_set_arch_mach): New function.
1738         (bfd_mach_o_gen_mkobject): New function.
1739         Set TARGET_ARCHITECTURE for the generic back-ends.
1740         * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
1741         Check that TARGET_ARCHITECTURE is defined.
1742         Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
1743         * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
1744
1745 2010-01-11  Tristan Gingold  <gingold@adacore.com>
1746
1747         * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
1748
1749 2010-01-11  Nick Clifton  <nickc@redhat.com>
1750
1751         * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
1752         handling of R_V850_HI16_S relocation.
1753
1754 2010-01-11  Alan Modra  <amodra@gmail.com>
1755
1756         PR 11103
1757         * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
1758
1759 2010-01-11  Alan Modra  <amodra@gmail.com>
1760
1761         PR 6832
1762         * dwarf2.c (struct comp_unit): Add sec_info_ptr.
1763         (find_abstract_instance_name): Use it.
1764         (parse_comp_unit): Set it.
1765
1766 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1767
1768         * Makefile.in: Regenerate.
1769         * configure: Regenerate.
1770
1771 2010-01-08  Tristan Gingold  <gingold@adacore.com>
1772
1773         * archive.c: Remove bfd_special_undocumented_glue.
1774
1775 2010-01-08  Alan Modra  <amodra@gmail.com>
1776
1777         PR ld/11133
1778         * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
1779         * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
1780         * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
1781
1782 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
1783
1784         PR ld/11138
1785         * elflink.c (elf_link_check_versioned_symbol): Don't abort if
1786         a symbol referenced by DSO is is defined in a non-shared object
1787         and forced local.
1788
1789 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
1790
1791         PR ld/11133
1792         * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
1793         undefined __start_XXX/__stop_XXX in all input files and set
1794         SEC_KEEP.
1795
1796 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
1797
1798         PR ld/11143
1799         * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
1800
1801 2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
1802
1803         * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
1804         before including procfs.h.
1805         (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
1806         * configure.in: Added autoconf probe for the pr_fpreg member.
1807         * configure: Regenerated.
1808         * config.in: Regenerated.
1809         * elf.c: Define _STRUCTURE_PROC before including procfs.h.
1810
1811 2010-01-04  Joel Brobecker  <brobecker@adacore.com>
1812
1813         Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
1814         * dwarf2.c (concat_filename): Rename dirname with dir_name
1815         to void shadowing the dirname function.
1816         Rename subdirname with subdir_name to stay consistent with
1817         the new dir_name variable name.
1818
1819 2010-01-04  Edmar Wienskoski  <edmar@freescale.com>
1820
1821         * archures.c: Add bfd_mach_ppc_e500mc64.
1822         * bfd-in2.h: Regenerate.
1823         * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
1824         bfd_mach_ppc_e500mc64.
1825
1826 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
1827
1828         Fix -Wshadow warnings (seen on ppc-aix)
1829         * xcofflink.c: Replace finfo by flinfo throughout.
1830
1831 For older changes see ChangeLog-2009
1832 \f
1833 Local Variables:
1834 mode: change-log
1835 left-margin: 8
1836 fill-column: 74
1837 version-control: never
1838 End: