Properly check undefined symbols when gc_sections is active.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2010-01-26 Alan Modra <amodra@gmail.com>
2 H.J. Lu <hongjiu.lu@intel.com>
3
4 PR ld/11218
5 * elflink.c (elf_link_output_extsym): Do not ignore undefined
6 symbols with ref_regular set when gc_sections is active.
7
8 2010-01-25 Alan Modra <amodra@gmail.com>
9
10 PR ld/11217
11 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
12 with relocations against undefined weak symbols.
13 (ppc64_elf_relocate_section): Don't optimize calls to undefined
14 weak functions if the symbol is dynamic.
15 (ppc64_elf_relocate_section): Edit tprel tls sequences.
16 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
17 (_bfd_elf_ppc_at_tprel_transform): New function.
18 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
19 * bfd-in2.h: Regenerate.
20
21 2010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
22
23 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
24 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
25 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
26 bitsize to 1.
27 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
28
29 2010-01-21 Nick Clifton <nickc@redhat.com>
30
31 * elflink.c (elf_link_add_object_symbols): Look up name of
32 undefined symbol both before and after versioning has been
33 applied. Do not bother with symbols that are weakly undefined.
34
35 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36
37 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
38 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
39
40 2010-01-19 Cary Coutant <ccoutant@google.com>
41
42 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
43
44 2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
45 Alan Modra <amodra@gmail.com>
46
47 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
48 (elf_object_p): Read e_phnum extension.
49 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
50 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
51 that we can read last program header.
52
53 2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
54
55 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
56 R_ARM_THM_CALL entry.
57 (elf32_arm_final_link_relocate): Correct calculation of
58 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
59 or R_ARM_THM_JUMP24 relocation.
60
61 2010-01-18 Alan Modra <amodra@gmail.com>
62
63 PR 11168
64 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
65 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
66 than 32k sections.
67
68 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
69
70 Fix compilation warning on gcc-3.4.
71 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
72 parameter index to sec_index according to the function definition.
73
74 2010-01-13 Chao-ying Fu <fu@mips.com>
75
76 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
77 It is true for all CPUs.
78 (jal_reloc_p): New function.
79 (mips_elf_calculate_relocation): Rename require_jalxp to
80 cross_mode_jump_p.
81 Update comment for CROSS_MODE_JUMP_P.
82 Set up cross_mode_jump_p based on the mode change.
83 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
84 Update comment for CROSS_MODE_JUMP_P.
85 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
86 Use !cross_mode_jump_p to guard conversion.
87 Convert "jr t9" to "b", if possible.
88 (_bfd_mips_elf_relocate_section): Rename require_jalx to
89 cross_mode_jump_p.
90 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
91 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
92
93 2010-01-13 Nick Clifton <nickc@redhat.com>
94
95 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
96 "m32c" returns the m32c arch_info_struct and not the m16c
97 arch_info_struct.
98 (arch_info_struct): Use the new scan function.
99 (bfd_m32c_arch): Likewise.
100
101 2010-01-13 Tristan Gingold <gingold@adacore.com>
102
103 * config.bfd: Remove duplicated target vector for i386-*-darwin.
104 Appends new arch instead of overriding.
105 Use mach_o_x86_64_vec for x86_64-*-darwin.
106 * configure.in: Add mach_o_x86_64_vec.
107 * configure: Regenerate.
108 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
109 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
110 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
111 * Makefile.in: Regenerate.
112 * mach-o-x86-64.c: New file.
113
114 2010-01-13 Tristan Gingold <gingold@adacore.com>
115
116 * reloc.c: Add MACH_O_X86_64 relocations.
117 * bfd-in2.h: Regenerate.
118 * libbfd.h: Regenerate.
119
120 2010-01-13 Tristan Gingold <gingold@adacore.com>
121
122 * archive.c (normalize): Use lbasename.
123 (bfd_bsd_truncate_arname): Ditto.
124 (bfd_gnu_truncate_arname): Ditto.
125
126 2010-01-12 Tristan Gingold <gingold@adacore.com>
127
128 * makefile.vms (CFLAGS): Turns warnings into informational messages.
129
130 2010-01-11 Tristan Gingold <gingold@adacore.com>
131
132 * mach-o.h: Add x86-64 relocation types.
133
134 2010-01-11 Tristan Gingold <gingold@adacore.com>
135
136 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
137 (bfd_mach_o_set_arch_mach): New prototype.
138 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
139 (bfd_mach_o_set_arch_mach): New function.
140 (bfd_mach_o_gen_mkobject): New function.
141 Set TARGET_ARCHITECTURE for the generic back-ends.
142 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
143 Check that TARGET_ARCHITECTURE is defined.
144 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
145 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
146
147 2010-01-11 Tristan Gingold <gingold@adacore.com>
148
149 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
150
151 2010-01-11 Nick Clifton <nickc@redhat.com>
152
153 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
154 handling of R_V850_HI16_S relocation.
155
156 2010-01-11 Alan Modra <amodra@gmail.com>
157
158 PR 11103
159 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
160
161 2010-01-11 Alan Modra <amodra@gmail.com>
162
163 PR 6832
164 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
165 (find_abstract_instance_name): Use it.
166 (parse_comp_unit): Set it.
167
168 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
169
170 * Makefile.in: Regenerate.
171 * configure: Regenerate.
172
173 2010-01-08 Tristan Gingold <gingold@adacore.com>
174
175 * archive.c: Remove bfd_special_undocumented_glue.
176
177 2010-01-08 Alan Modra <amodra@gmail.com>
178
179 PR ld/11133
180 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
181 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
182 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
183
184 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
185
186 PR ld/11138
187 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
188 a symbol referenced by DSO is is defined in a non-shared object
189 and forced local.
190
191 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
192
193 PR ld/11133
194 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
195 undefined __start_XXX/__stop_XXX in all input files and set
196 SEC_KEEP.
197
198 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
199
200 PR ld/11143
201 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
202
203 2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
204
205 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
206 before including procfs.h.
207 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
208 * configure.in: Added autoconf probe for the pr_fpreg member.
209 * configure: Regenerated.
210 * config.in: Regenerated.
211 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
212
213 2010-01-04 Joel Brobecker <brobecker@adacore.com>
214
215 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
216 * dwarf2.c (concat_filename): Rename dirname with dir_name
217 to void shadowing the dirname function.
218 Rename subdirname with subdir_name to stay consistent with
219 the new dir_name variable name.
220
221 2010-01-04 Edmar Wienskoski <edmar@freescale.com>
222
223 * archures.c: Add bfd_mach_ppc_e500mc64.
224 * bfd-in2.h: Regenerate.
225 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
226 bfd_mach_ppc_e500mc64.
227
228 2010-01-01 Joel Brobecker <brobecker@adacore.com>
229
230 Fix -Wshadow warnings (seen on ppc-aix)
231 * xcofflink.c: Replace finfo by flinfo throughout.
232
233 For older changes see ChangeLog-2009
234 \f
235 Local Variables:
236 mode: change-log
237 left-margin: 8
238 fill-column: 74
239 version-control: never
240 End:
This page took 0.035502 seconds and 4 git commands to generate.