2010-01-29 Viktor Kutuzov <vkutuzov@accesssoftek.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
a1504221
JB
12010-01-29 Joel Brobecker <brobecker@adacore.com>
2
3 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
4 if it has already been set.
5
771deb08
TG
62010-01-27 Tristan Gingold <gingold@adacore.com>
7
8 * vms.h: Remove trailing spaces.
9 (struct hdr_struct): Remove unused hdr_c_cpr field.
10 (enum file_format_enum): Add comments.
11 * vms.c (vms_bfd_print_private_bfd_data): New function that
12 replaces the macro.
13 Remove trailing spaces.
14 * vms-misc.c: Improve comments.
15 (_bfd_vms_get_object_record): Also handle files without pads.
16 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
17 * vms-gsd.c (struct flagdescstruct): Make name field const.
18 (gsyflagdesc): Fix typo.
19
bf102f86
AM
202010-01-27 Alan Modra <amodra@gmail.com>
21
22 PR ld/11217
23 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
24 (ppc64_elf_setup_section_lists): Init them.
25 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
26 and .toc on the same input file.
27 (ppc64_elf_relocate_section): Correct GOT entry offset.
28
8f95b6e4
TG
292010-01-26 Tristan Gingold <gingold@adacore.com>
30
31 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
32 (bfd_target): Add _bfd_write_ar_hdr_fn field.
33 * archive.c (is_bsd44_extended_name): New macro.
34 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
35 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
36 name.
37 (_bfd_archive_bsd44_construct_extended_name_table): New function.
38 (_bfd_generic_write_ar_hdr): Ditto.
39 (_bfd_bsd44_write_ar_hdr): Ditto.
40 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
41 (bsd_write_armap): Adjust firstreal computation.
42 * libbfd-in.h (struct areltdata): Add extra_size field.
43 (_bfd_generic_write_ar_hdr): Add prototype.
44 (_bfd_bsd44_write_ar_hdr): Ditto.
45 (_bfd_write_ar_hdr): Define.
46 (_bfd_noarchive_write_ar_hdr): Ditto.
47 (_bfd_archive_bsd_write_ar_hdr): Ditto.
48 (_bfd_archive_coff_write_ar_hdr): Ditto.
49 (_bfd_archive_bsd44_slurp_armap): Ditto.
50 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
51 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
52 (_bfd_archive_bsd44_truncate_arname): Ditto.
53 (_bfd_archive_bsd44_write_armap): Ditto.
54 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
55 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
56 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
57 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
58 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
59 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
60 * libbfd.h: Regenerate.
61 * oasys.c (oasys_write_ar_hdr): Define.
62 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
63 * ieee.c (ieee_write_ar_hdr): Define.
64 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
65 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
66 (bfd_pmac_xcoff_backend_data): Ditto.
67 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
68 (bfd_xcoff_aix5_backend_data): Ditto.
69 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
70 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
71 * aout-tic30.c (MY_write_ar_hdr): Ditto.
72 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
73 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
74 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
75 (bfd_mach_o_construct_extended_name_table)
76 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
77 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
78 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
79 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
80 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
81 (bfd_mach_o_construct_extended_name_table)
82 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
83 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
84 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
85 * bfd-in2.h: Regenerate.
86
98da7939
L
872010-01-26 Alan Modra <amodra@gmail.com>
88 H.J. Lu <hongjiu.lu@intel.com>
89
90 PR ld/11218
91 * elflink.c (elf_link_output_extsym): Do not ignore undefined
92 symbols with ref_regular set when gc_sections is active.
93
766bc656
AM
942010-01-25 Alan Modra <amodra@gmail.com>
95
96 PR ld/11217
97 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
98 with relocations against undefined weak symbols.
99 (ppc64_elf_relocate_section): Don't optimize calls to undefined
100 weak functions if the symbol is dynamic.
101 (ppc64_elf_relocate_section): Edit tprel tls sequences.
102 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
103 (_bfd_elf_ppc_at_tprel_transform): New function.
104 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
105 * bfd-in2.h: Regenerate.
106
c865e45b
RS
1072010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
108
109 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
110 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
111 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
112 bitsize to 1.
113 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
114
b918acf9
NC
1152010-01-21 Nick Clifton <nickc@redhat.com>
116
117 * elflink.c (elf_link_add_object_symbols): Look up name of
118 undefined symbol both before and after versioning has been
119 applied. Do not bother with symbols that are weakly undefined.
120
55786da2 1212010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
b918acf9 122
55786da2
AK
123 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
124 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
125
a37a68dd
CC
1262010-01-19 Cary Coutant <ccoutant@google.com>
127
128 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
129
ecd12bc1
AM
1302010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
131 Alan Modra <amodra@gmail.com>
132
133 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
134 (elf_object_p): Read e_phnum extension.
135 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
136 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
137 that we can read last program header.
138
f6ebfac0
AM
1392010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
140
141 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
142 R_ARM_THM_CALL entry.
143 (elf32_arm_final_link_relocate): Correct calculation of
144 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
145 or R_ARM_THM_JUMP24 relocation.
146
22eb4b1d
AM
1472010-01-18 Alan Modra <amodra@gmail.com>
148
149 PR 11168
150 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
151 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
152 than 32k sections.
153
6ec12636
JK
1542010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
155
156 Fix compilation warning on gcc-3.4.
157 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
158 parameter index to sec_index according to the function definition.
159
38a7df63
CF
1602010-01-13 Chao-ying Fu <fu@mips.com>
161
162 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
163 It is true for all CPUs.
164 (jal_reloc_p): New function.
165 (mips_elf_calculate_relocation): Rename require_jalxp to
166 cross_mode_jump_p.
167 Update comment for CROSS_MODE_JUMP_P.
168 Set up cross_mode_jump_p based on the mode change.
169 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
170 Update comment for CROSS_MODE_JUMP_P.
171 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
172 Use !cross_mode_jump_p to guard conversion.
173 Convert "jr t9" to "b", if possible.
174 (_bfd_mips_elf_relocate_section): Rename require_jalx to
175 cross_mode_jump_p.
176 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
177 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
178
91b9a4a4
NC
1792010-01-13 Nick Clifton <nickc@redhat.com>
180
181 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
182 "m32c" returns the m32c arch_info_struct and not the m16c
183 arch_info_struct.
184 (arch_info_struct): Use the new scan function.
185 (bfd_m32c_arch): Likewise.
186
618b7301
TG
1872010-01-13 Tristan Gingold <gingold@adacore.com>
188
189 * config.bfd: Remove duplicated target vector for i386-*-darwin.
190 Appends new arch instead of overriding.
191 Use mach_o_x86_64_vec for x86_64-*-darwin.
192 * configure.in: Add mach_o_x86_64_vec.
193 * configure: Regenerate.
194 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
195 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
196 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
197 * Makefile.in: Regenerate.
198 * mach-o-x86-64.c: New file.
199
f88af2f1
TG
2002010-01-13 Tristan Gingold <gingold@adacore.com>
201
202 * reloc.c: Add MACH_O_X86_64 relocations.
203 * bfd-in2.h: Regenerate.
204 * libbfd.h: Regenerate.
205
19172f39
TG
2062010-01-13 Tristan Gingold <gingold@adacore.com>
207
208 * archive.c (normalize): Use lbasename.
209 (bfd_bsd_truncate_arname): Ditto.
210 (bfd_gnu_truncate_arname): Ditto.
211
6cdb8d82
TG
2122010-01-12 Tristan Gingold <gingold@adacore.com>
213
214 * makefile.vms (CFLAGS): Turns warnings into informational messages.
215
9a753de0
TG
2162010-01-11 Tristan Gingold <gingold@adacore.com>
217
218 * mach-o.h: Add x86-64 relocation types.
219
42fa0891
TG
2202010-01-11 Tristan Gingold <gingold@adacore.com>
221
222 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
223 (bfd_mach_o_set_arch_mach): New prototype.
224 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
225 (bfd_mach_o_set_arch_mach): New function.
226 (bfd_mach_o_gen_mkobject): New function.
227 Set TARGET_ARCHITECTURE for the generic back-ends.
228 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
229 Check that TARGET_ARCHITECTURE is defined.
230 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
231 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
232
cba0723b
TG
2332010-01-11 Tristan Gingold <gingold@adacore.com>
234
19172f39 235 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
cba0723b 236
4d421096
NC
2372010-01-11 Nick Clifton <nickc@redhat.com>
238
239 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
240 handling of R_V850_HI16_S relocation.
241
20b1d3e3
AM
2422010-01-11 Alan Modra <amodra@gmail.com>
243
244 PR 11103
245 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
246
a358ecb8
AM
2472010-01-11 Alan Modra <amodra@gmail.com>
248
249 PR 6832
250 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
251 (find_abstract_instance_name): Use it.
252 (parse_comp_unit): Set it.
253
3725885a
RW
2542010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
255
256 * Makefile.in: Regenerate.
257 * configure: Regenerate.
258
3ee87829
TG
2592010-01-08 Tristan Gingold <gingold@adacore.com>
260
261 * archive.c: Remove bfd_special_undocumented_glue.
262
fb34365b
AM
2632010-01-08 Alan Modra <amodra@gmail.com>
264
265 PR ld/11133
266 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
267 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
268 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
269
d023c380
L
2702010-01-07 H.J. Lu <hongjiu.lu@intel.com>
271
272 PR ld/11138
273 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
274 a symbol referenced by DSO is is defined in a non-shared object
275 and forced local.
276
bde6f3eb
L
2772010-01-07 H.J. Lu <hongjiu.lu@intel.com>
278
279 PR ld/11133
280 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
281 undefined __start_XXX/__stop_XXX in all input files and set
282 SEC_KEEP.
283
16583161
L
2842010-01-07 H.J. Lu <hongjiu.lu@intel.com>
285
286 PR ld/11143
287 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
288
16231b7b
DG
2892010-01-04 Daniel Gutson <dgutson@codesourcery.com>
290
291 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
292 before including procfs.h.
293 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
294 * configure.in: Added autoconf probe for the pr_fpreg member.
295 * configure: Regenerated.
296 * config.in: Regenerated.
297 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
298
608fa8d3
JB
2992010-01-04 Joel Brobecker <brobecker@adacore.com>
300
301 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
302 * dwarf2.c (concat_filename): Rename dirname with dir_name
303 to void shadowing the dirname function.
304 Rename subdirname with subdir_name to stay consistent with
305 the new dir_name variable name.
306
0dc93057
AM
3072010-01-04 Edmar Wienskoski <edmar@freescale.com>
308
309 * archures.c: Add bfd_mach_ppc_e500mc64.
310 * bfd-in2.h: Regenerate.
311 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
312 bfd_mach_ppc_e500mc64.
313
baf9bed3
JB
3142010-01-01 Joel Brobecker <brobecker@adacore.com>
315
316 Fix -Wshadow warnings (seen on ppc-aix)
317 * xcofflink.c: Replace finfo by flinfo throughout.
318
43ecc30f 319For older changes see ChangeLog-2009
56882138
AM
320\f
321Local Variables:
322mode: change-log
323left-margin: 8
324fill-column: 74
325version-control: never
326End:
This page took 0.533918 seconds and 4 git commands to generate.