Commit | Line | Data |
---|---|---|
ae5a3597 AM |
1 | 2008-11-26 Alan Modra <amodra@bigpond.net.au> |
2 | ||
3 | PR 7047 | |
4 | * configure.in: Bump version. | |
5 | * configure: Regenerate. | |
6 | * elflink.c (_bfd_elf_link_assign_sym_version): Continue matching | |
7 | against version nodes when a global match is a wildcard. Similarly | |
8 | continue matching on local wildcard matches, rather than only | |
9 | continuing for "*". Have any global wildcard match override a | |
10 | local wildcard match. Correct logic hiding unversioned symbol. | |
11 | (bfd_elf_size_dynamic_sections): Update for changes to struct | |
12 | bfd_elf_version_expr. | |
13 | ||
85f77068 JB |
14 | 2008-11-25 Joel Brobecker <brobecker@adacore.com> |
15 | ||
16 | * configure.in: Deactivate large-file support on native x86-solaris | |
17 | as well unless the user explicitly requested it. | |
18 | * configure: Regenerate. | |
19 | ||
19540007 JM |
20 | 2008-11-25 Joseph Myers <joseph@codesourcery.com> |
21 | ||
22 | * elf32-arm.c (elf32_arm_final_link_relocate): Do not turn | |
23 | branches to undefine weak symbols into branches to the next | |
24 | instruction if creating PLT entries for those symbols. | |
25 | ||
83bac4b0 NC |
26 | 2008-11-25 Nick Clifton <nickc@redhat.com> |
27 | ||
28 | * elflink.c (is_reloc_section): New function. Returns true if the | |
29 | given name matches the name of the reloc-containing section | |
30 | associated with the given section. | |
31 | (get_dynamic_reloc_section_name): New function. Computes the name | |
32 | of the section that contains the dynamic relocs associated with | |
33 | the given section. | |
34 | (_bfd_elf_get_dynamic_reloc_section): New function. Returns a | |
35 | pointer to the section containing the dynamic relocs associated | |
36 | with the given section. | |
37 | (_bfd_elf_make_dynamic_reloc_section): New function. Creates a | |
38 | section to contain the dynamic relocs associated with a given | |
39 | section. | |
40 | * elf-bfd.h: Prototype the new functions. | |
41 | * elf-m10300.c (mn10300_elf_check_relocs): Use new functions. | |
42 | (mn10300_elf_final_link_relocs): Likewise. | |
43 | * elf32-arm.c (reloc_section_p): Delete - replaced by new | |
44 | functions. | |
45 | (elf32_arm_final_link_relocate): Use new functions. | |
46 | (elf32_arm_check_relocs): Likewise. | |
47 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
48 | (elf_cris_check_relocs): Likewise. | |
49 | * elf32-hppa.c (elf32_hppa_check_relocs): Likewise. | |
50 | * elf32-i370.c (i370_elf_check_relocs): Likewise. | |
51 | (i370_elf_relocate_section): Likewise. | |
52 | * elf32-i386.c (elf_i386_check_relocs): Likewise. | |
53 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
54 | (m32r_elf_check_relocs): Likewise. | |
55 | * elf32-m68k.c (elf_m68k_check_relocs): Likewise. | |
56 | * elf32_ppc.c (ppc_elf_check_relocs): Likewise. | |
57 | (ppc_elf_relocate_section): Likewise. | |
58 | * elf32-s390.c (elf_s390_check_relocs): Likewise. | |
59 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
60 | (sh_elf_check_relocs): Likewise. | |
61 | * elf32-vax.c (elf_vax_check_relocs): Likewise. | |
62 | (elf_vax_relocate_section): Likewise. | |
63 | * elf64-alpha.c (elf64_alpha_check_relocs): Likewise. | |
64 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
65 | * elf64-s390.c (elf_s390_check_relocs): Likewise. | |
66 | * elf64-sh64.c (sh_elf64_relocate_section): Likewise. | |
67 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. | |
68 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise. | |
69 | * elf32-bfin.c (bfin_check_relocs): Remove redundant local | |
70 | variable 'sreloc'. | |
71 | (bfin_relocate_section): Likewise. | |
72 | * elf32-v850.c (v850_elf_check_relocs): Likewise. | |
73 | ||
100382c7 HPN |
74 | 2008-11-23 Hans-Peter Nilsson <hp@axis.com> |
75 | ||
76 | Implement TLS for CRIS. | |
77 | * elf32-cris.c: Include limits.h. | |
78 | (TLSHOWTO16): Redefine in terms of and move contents to... | |
79 | (TLSHOWTO16X): New macro. | |
80 | (TLSHOWTO16S, LGOT_REG_NDX, LGOT_DTP_NDX, LGOT_ALLOC_NELTS_FOR) | |
81 | (elf_cris_hash_entry): New macros. | |
82 | (cris_elf_howto_table): Make R_CRIS_16_DTPREL, | |
83 | R_CRIS_16_GOT_TPREL, R_CRIS_16_TPREL check overflow for signed, | |
84 | not unsigned values. | |
85 | (cris_info_to_howto_rela): Make r_type a enum elf_cris_reloc_type, | |
86 | not unsigned int. | |
87 | (struct elf_cris_link_hash_entry): New members reg_got_refcount, | |
88 | tprel_refcount, and dtp_refcount. | |
89 | (struct elf_cris_link_hash_table): New member dtpmod_refcount. | |
90 | (elf_cris_link_hash_newfunc): Initialize new members. | |
91 | (elf_cris_link_hash_table_create): Similar. | |
92 | (cris_final_link_relocate, elf_cris_reloc_type_class): Use a | |
93 | temporary variable when testing the relocation type. | |
94 | (cris_elf_gc_mark_hook): Ditto. Add default case where needed. | |
95 | (cris_elf_gc_sweep_hook): Ditto. Handle reference-counting for | |
96 | the new assembly-generated relocs. Rewrite refcount handling to | |
97 | set temporary variables to pointers to reloc-specific variables | |
98 | and entry size and common code for the update. | |
99 | (additional_relocation_error_msg_count): New variable. | |
100 | (cris_elf_relocate_section): Use a function-local variable srelgot | |
101 | for the .rela.got section instead of looking it up for every need. | |
102 | Make r_type a enum elf_cris_reloc_type, not int. Actually set | |
103 | symname for non-local symbols. Handle new assembly-generated | |
104 | relocs. For overflow, emit additional messages for the new 16-bit | |
105 | relocs as well as R_CRIS_16_GOTPLT and R_CRIS_16_GOT. | |
106 | (elf_cris_finish_dynamic_symbol): Use elf_cris_finish_dynamic_symbol | |
107 | instead of plain casts. Check new hash entry member | |
108 | reg_got_refcount when checking whether to emit a GOT entry. | |
109 | (elf_cris_finish_dynamic_sections): Update head comment to warn | |
110 | about emitting relocs here. Use a temporary variable when testing | |
111 | the relocation type. | |
112 | (elf_cris_discard_excess_program_dynamics) | |
113 | (elf_cris_adjust_gotplt_to_got): Handle reference counting change | |
114 | regarding h->reg_got_refcount. | |
115 | (cris_elf_check_relocs): Rewrite refcount handling to set | |
116 | temporary variables and entry size and common code for the update | |
117 | for local symbols. Use new macro elf_cris_hash_entry. Adjust | |
118 | allocation for change in reference counting of GOT entries for | |
119 | local symbols. | |
120 | (elf_cris_size_dynamic_sections): Adjust calculated size of | |
121 | .got.plt and .rela.got if we need a GOT entry for a | |
122 | R_CRIS_DTPMOD relocation. | |
123 | (elf_cris_got_elt_size): New function. | |
124 | (elf_backend_got_elt_size): Define. | |
125 | ||
1fa3cd83 SA |
126 | 2008-11-21 Sterling Augustine <sterling@tensilica.com> |
127 | ||
128 | * xtensa-isa.c (xtensa_state_is_shared_or): New function. | |
129 | ||
10455f89 HPN |
130 | 2008-11-21 Hans-Peter Nilsson <hp@axis.com> |
131 | ||
132 | * elf-bfd.h (struct elf_backend_data): New member got_elt_size. | |
133 | (_bfd_elf_default_got_elt_size): Declare. | |
134 | * elflink.c (struct alloc_got_off_arg): Replace member got_elt_size | |
135 | by new member info. | |
136 | (elf_gc_allocate_got_offsets): Adjust for calling bed->got_elt_size | |
137 | to get the element size instead of using a gofarg entry. | |
138 | (bfd_elf_gc_common_finalize_got_offsets): Similar. | |
139 | (_bfd_elf_default_got_elt_size): New function. | |
140 | * elfxx-target.h: New macro elf_backend_got_elt_size. | |
141 | (elfNN_bed): Use it. | |
142 | ||
78bc95e3 TG |
143 | 2008-11-20 Tristan Gingold <gingold@adacore.com> |
144 | ||
145 | * bfdwin.c: Fix comment. | |
146 | ||
6aa341c7 TG |
147 | 2008-11-20 Tristan Gingold <gingold@adacore.com> |
148 | ||
149 | * bfd.c (is32bit): Use architecture information for non-ELF | |
150 | targets. | |
151 | ||
d6e14abc AM |
152 | 2008-11-20 Alan Modra <amodra@bigpond.net.au> |
153 | ||
154 | * elf32-ppc.c (allocate_dynrelocs): Always use tlsld_got for | |
155 | TLS_LD even when symbol is used with other TLS reloc types. | |
156 | (ppc_elf_relocate_section): Bypass symbol checks when using tlsld_got. | |
157 | Leave addend zero on LD DTPMOD dynamic reloc. | |
158 | ||
33430bd0 BW |
159 | 2008-11-19 Bob Wilson <bob.wilson@acm.org> |
160 | ||
161 | * xtensa-modules.c (sysregs): Add MMID, VECBASE, EPC5, EPC6, EPC7, | |
162 | EXCSAVE5, EXCSAVE6, EXCSAVE7, EPS5, EPS6, EPS7, CPENABLE, | |
163 | SCOMPARE1, and THREADPTR registers. | |
164 | (NUM_SYSREGS, MAX_USER_REG): Update. | |
165 | (states): Change width of INTERRUPT, WindowBase, WindowStart, and | |
166 | INTENABLE. Add VECBASE, EPC5, EPC6, EPC7, EXCSAVE5, EXCSAVE6, | |
167 | EXCSAVE7, EPS6, EPS6, EPS7, THREADPTR, CPENABLE, and SCOMPARE1 states. | |
168 | (NUM_STATES): Update. | |
169 | (enum xtensa_state_id): Add entries for new states. | |
170 | (enum xtensa_field_id): Add entries for xt_wbr15_imm and xt_wbr18_imm | |
171 | fields, along with functions to extract and set them. | |
172 | (regfiles): Change number of AR registers to 32. | |
173 | (Operand_ar0_encode, Operand_ar4_encode, Operand_ar8_encode, | |
174 | Operand_ar12_encode, Operand_ars_entry_encode): Update register mask. | |
175 | (operands): Add entries for tp7, xt_wbr15_label, xt_wbr18_label, | |
176 | xt_wbr15_imm, and xt_wbr18_imm operands, along with functions to | |
177 | encode and decode them. | |
178 | (enum xtensa_operand_id): Add entries for new operands. | |
179 | (Iclass_xt_iclass_rfi_stateArgs): Add EPC5, EPC6, EPC7, EPS5, EPS6, and | |
180 | EPC7 states. | |
181 | (Iclass_xt_iclass_rfdo_stateArgs): Replace EPC4 and EPS4 by EPC6 and | |
182 | EPS6, respectively. | |
183 | (iclasses): Add entries for rur_threadptr, wur_threadptr, | |
184 | xt_iclass_wsr_176, xt_iclass_rsr_epc5, xt_iclass_wsr_epc5, | |
185 | xt_iclass_xsr_epc5, xt_iclass_rsr_excsave5, xt_iclass_wsr_excsave5, | |
186 | xt_iclass_xsr_excsave5, xt_iclass_rsr_epc6, xt_iclass_wsr_epc6, | |
187 | xt_iclass_xsr_epc6, xt_iclass_rsr_excsave6, xt_iclass_wsr_excsave6, | |
188 | xt_iclass_xsr_excsave6, xt_iclass_rsr_epc7, xt_iclass_wsr_epc7, | |
189 | xt_iclass_xsr_epc7, xt_iclass_rsr_excsave7, xt_iclass_wsr_excsave7, | |
190 | xt_iclass_xsr_excsave7, xt_iclass_rsr_eps5, xt_iclass_wsr_eps5, | |
191 | xt_iclass_xsr_eps5, xt_iclass_rsr_eps6, xt_iclass_wsr_eps6, | |
192 | xt_iclass_xsr_eps6, xt_iclass_rsr_eps7, xt_iclass_wsr_eps7, | |
193 | xt_iclass_xsr_eps7, xt_iclass_rsr_vecbase, xt_iclass_wsr_vecbase, | |
194 | xt_iclass_xsr_vecbase, xt_iclass_mul16, xt_iclass_wsr_mmid, | |
195 | xt_iclass_icache_lock, xt_iclass_dcache_lock, xt_iclass_rsr_cpenable, | |
196 | xt_iclass_wsr_cpenable, xt_iclass_xsr_cpenable, xt_iclass_clamp, | |
197 | xt_iclass_minmax, xt_iclass_sx, xt_iclass_l32ai, xt_iclass_s32ri, | |
198 | xt_iclass_s32c1i, xt_iclass_rsr_scompare1, xt_iclass_wsr_scompare1, | |
199 | xt_iclass_xsr_scompare1, xt_iclass_div, and xt_iclass_mul32, along | |
200 | with corresponding argument and state argument arrays. Change | |
201 | number of state arguments for xt_iclass_rfi. Add arguments for | |
202 | xt_iclass_rfdo. | |
203 | (enum xtensa_iclass_id): Add entries for new iclasses. | |
204 | (opcodes): Add entries for RUR_THREADPTR, WUR_THREADPTR, WSR_176, | |
205 | RSR_EPC5, WSR_EPC5, XSR_EPC5, RSR_EXCSAVE5, WSR_EXCSAVE5, XSR_EXCSAVE5, | |
206 | RSR_EPC6, WSR_EPC6, XSR_EPC6, RSR_EXCSAVE6, WSR_EXCSAVE6, XSR_EXCSAVE6, | |
207 | RSR_EPC7, WSR_EPC7, XSR_EPC7, RSR_EXCSAVE7, WSR_EXCSAVE7, XSR_EXCSAVE7, | |
208 | RSR_EPS5, WSR_EPS5, XSR_EPS5, RSR_EPS6, WSR_EPS6, XSR_EPS6, RSR_EPS7, | |
209 | WSR_EPS7, XSR_EPS7, RSR_VECBASE, WSR_VECBASE, XSR_VECBASE, MUL16U, | |
210 | MUL16S, WSR_MMID, IPFL, IHU, IIU, DPFL, DHU, DIU, RSR_CPENABLE, | |
211 | WSR_CPENABLE, XSR_CPENABLE, CLAMPS, MIN, MAX, MINU, MAXU, SEXT, L32AI, | |
212 | S32RI, S32C1I, RSR_SCOMPARE1, WSR_SCOMPARE1, XSR_SCOMPARE1, QUOU, QUOS, | |
213 | REMU, REMS, and MULL opcodes, along with the corresponding functions | |
214 | to encode them. | |
215 | (enum xtensa_opcode_id): Add entries for new opcodes. | |
216 | (Slot_inst_decode): Handle new opcodes. | |
217 | (Slot_inst_get_field_fns, Slot_inst_set_field_fns): Add entries for | |
218 | xt_wbr15_imm and xt_wbr18_imm fields. | |
219 | (Slot_inst16a_get_field_fns, Slot_inst16a_set_field_fns): Likewise. | |
220 | (Slot_inst16b_get_field_fns, Slot_inst16b_set_field_fns): Likewise. | |
221 | (xtensa_modules): Update number of fields, operands, iclasses and | |
222 | opcodes. | |
223 | ||
c91e322a NC |
224 | 2008-11-19 Nix <nix@esperi.org.uk> |
225 | ||
226 | * elf.c (swap_out_syms) [USE_STT_COMMON]: Fix syntax error. | |
227 | ||
af1fb11f NC |
228 | 2008-11-19 Nick Clifton <nickc@redhat.com> |
229 | ||
230 | PR 7027 | |
231 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Treat WPLT30 relocs | |
232 | against local symbols in 64-bit binaries as if they were WDISP30 | |
233 | relocs. | |
234 | (_bfd_sparc_elf_relocate_section): Likewise. | |
235 | ||
8e79c3df CM |
236 | 2008-11-18 Catherine Moore <clm@codesourcery.com> |
237 | ||
238 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge | |
239 | half-precision attributes. | |
240 | (elf32_arm_copy_one_eabi_other_attribute): New. | |
241 | (elf32_arm_copy_other_attribute_list): New. | |
242 | ||
dc80fd5c NC |
243 | 2008-11-18 Nick Clifton <nickc@redhat.com> |
244 | ||
245 | * dwarf2.c (read_section): Fix formatting. | |
246 | (read_n_bytes): Remove unhelpful comment. | |
247 | (read_indirect_string): Pass symbol table to read_section in case | |
248 | the .debug_str section needs relocating. | |
249 | ||
250 | PR 7037 | |
251 | * elf32-cr16.c (cr16_elf_howto_table): Zero the src_mask field of | |
252 | the reloc descriptions. | |
253 | ||
28b02751 EW |
254 | 2008-11-14 Eric B. Weddington <eric.weddington@atmel.com> |
255 | ||
256 | PR 7022 | |
257 | * elf32-avr.c (bfd_elf_avr_final_write_processing): | |
258 | Add missing break statements. | |
259 | ||
af4bed4b BW |
260 | 2008-11-14 Bob Wilson <bob.wilson@acm.org> |
261 | ||
262 | * xtensa-modules.c (xtensa_state_id): New enum, replacing STATE macros. | |
263 | (xtensa_field_id, xtensa_regfile_id, xtensa_operand_id) | |
264 | (xtensa_iclass_id, xtensa_opcode_id): New enums. | |
265 | Replace hardcoded constants throughout this file with enum values. | |
266 | ||
2b0bc088 NC |
267 | 2008-11-14 Nathan Sidwell <nathan@codesourcery.com> |
268 | ||
269 | * elf.c (assign_file_positions_for_load_sections): Use header_size | |
270 | to avoid moving the load address of file headers. | |
271 | (assign_file_positions_for_load_sections): Set header_size for | |
272 | segments containing the file header. | |
273 | ||
d387240a TG |
274 | 2008-11-14 Tristan Gingold <gingold@adacore.com> |
275 | ||
276 | * configure.com: Handle bfd_default_target_size, BFD_HOST_LONG_LONG, | |
277 | BFD_HOST_64BIT_LONG_LONG, BFD_HOSTPTR_T, bfd_file_ptr. | |
278 | Generate bfdver.h. | |
279 | * vms-hdr.c (_bfd_vms_write_hdr): Use strdup/free instead of alloca. | |
280 | * hosts/alphavms.h: Defines macros to bypass i18n. | |
281 | * makefile.vms (OBJS): Update file list. | |
282 | (DEFS): Remove VMS_DEBUG, const, add DEBUGDIR. | |
283 | (CFLAGS): Update flags. | |
284 | * bfdio.c (real_fopen): Add code specific to VMS: extract attributes | |
285 | from modes. | |
286 | ||
08c13eba JB |
287 | 2008-11-13 Joel Brobecker <brobecker@adacore.com> |
288 | ||
289 | * configure.in: Deactivate large-file support on native 32bit | |
290 | sparc-solaris unless the user explicitly requested it. | |
291 | * configure: Regenerate. | |
292 | ||
57268894 HPN |
293 | 2008-11-13 Hans-Peter Nilsson <hp@axis.com> |
294 | ||
295 | PR ld/7028 | |
296 | * elf.c (assign_file_positions_for_load_sections): Allocate phrds | |
297 | with bfd_zalloc2 instead of bfd_alloc2. For the amount, use | |
298 | the possibly-preset header-size, not the computed one. | |
299 | ||
3337c1e5 AM |
300 | 2008-11-13 Alan Modra <amodra@bigpond.net.au> |
301 | ||
302 | PR 7023 | |
303 | * elf.c (bfd_section_from_shdr <SHT_SYMTAB>): Fail on invalid sh_info. | |
304 | ||
b84a33b5 AM |
305 | 2008-11-11 Alan Modra <amodra@bigpond.net.au> |
306 | ||
307 | * elf.c (assign_file_positions_for_non_load_sections): Consolidate | |
308 | PT_GNU_RELRO handling. | |
309 | ||
5d0900eb AM |
310 | 2008-11-11 Alan Modra <amodra@bigpond.net.au> |
311 | ||
312 | PR 7012 | |
313 | * dwarf2.c (find_line): Don't keep stale pointers into realloc'd | |
314 | memory. Return on errors. Fix memory leak. | |
315 | (_bfd_dwarf2_cleanup_debug_info): Free dwarf_str_buffer. | |
316 | ||
129af99f AS |
317 | 2008-11-10 Andreas Schwab <schwab@suse.de> |
318 | ||
319 | PR 7011 | |
320 | * elf.c (assign_file_positions_for_non_load_sections): Handle | |
321 | PT_GNU_RELRO specially. | |
322 | ||
8a2a2dbb NC |
323 | 2008-11-06 Joel Sherrill <joel.sherrill@oarcorp.com> |
324 | ||
325 | * config.bfd: Add m32c-*-rtems* and m32r-*-rtems*. | |
326 | ||
428b207a TT |
327 | 2008-11-06 Tom Tromey <tromey@redhat.com> |
328 | ||
329 | * configure, config.in: Rebuild. | |
330 | * configure.in: Check for fileno. | |
331 | * bfdio.c (close_on_exec): New function. | |
332 | (real_fopen): Use it. | |
333 | (FD_CLOEXEC): New define. | |
334 | ||
15e1c58a TG |
335 | 2008-11-06 Tristan Gingold <gingold@adacore.com> |
336 | ||
337 | * mach-o.h (BFD_MACH_O_NO_SECT): Add; reorders the macros. | |
338 | (BFD_MACH_O_SYM_NTYPE, BFD_MACH_O_SYM_NSECT, | |
339 | BFD_MACH_O_SYM_NDESC): New macros. | |
340 | (bfd_mach_o_i386_thread_flavour): Define according to the latest | |
341 | definition from system header. | |
342 | (bfd_mach_o_load_command_type): Add BFD_MACH_O_LC_RPATH, | |
343 | BFD_MACH_O_LC_CODE_SIGNATURE. | |
344 | (BFD_MACH_O_SECTION_TYPE_MASK, BFD_MACH_O_SECTION_ATTRIBUTES_MASK, | |
345 | BFD_MACH_O_SECTION_ATTRIBUTES_SYS, BFD_MACH_O_SECTION_ATTRIBUTES_USR, | |
346 | BFD_MACH_O_S_ATTR_LOC_RELOC, BFD_MACH_O_S_ATTR_EXT_RELOC, | |
347 | BFD_MACH_O_S_ATTR_SOME_INSTRUCTIONS, BFD_MACH_O_S_ATTR_DEBUG, | |
348 | BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS): Add. | |
349 | (bfd_mach_o_segment_command): Add room for a nul terminator in | |
350 | segname field. | |
351 | (BFD_MACH_O_PROT_READ, BFD_MACH_O_PROT_WRITE, | |
352 | BFD_MACH_O_PROT_EXECUTE): Add. | |
353 | (INDIRECT_SYMBOL_LOCAL): Renames to BFD_MACH_O_INDIRECT_SYMBOL_LOCAL. | |
354 | (INDIRECT_SYMBOL_ABS): Renames to BFD_MACH_O_INDIRECT_SYMBOL_ABS. | |
355 | (bfd_mach_o_uuid_command): Add the structure. | |
356 | (bfd_mach_o_load_command): Add uuid field. | |
357 | (bfd_get_mach_o_data): New macro. | |
358 | * mach-o.c (bfd_mach_o_bfd_print_private_bfd_data): New function which | |
359 | replaces the macro. | |
360 | (SECTION_TYPE, SECTION_ATTRIBUTES, SECTION_ATTRIBUTES_USR, | |
361 | S_ATTR_PURE_INSTRUCTIONS, SECTION_ATTRIBUTES_SYS, | |
362 | S_ATTR_SOME_INSTRUCTIONS, S_ATTR_EXT_RELOC, S_ATTR_LOC_RELOC): Renamed | |
363 | and moved to mach-o.h. | |
364 | (N_STAB, N_TYPE, N_EXT, N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, | |
365 | N_SECT, N_INDR): Removed as they duplicated macros in mach-o.h. | |
366 | (bfd_mach_o_print_symbol): Print much more details. | |
367 | (bfd_mach_o_make_bfd_section): Add prot argument, use canonical | |
368 | dwarf name for dwarf sections. Precisely set section flags. | |
369 | (bfd_mach_o_scan_read_section_32): Add prot argument. | |
370 | (bfd_mach_o_scan_read_section_64): Ditto. | |
371 | (bfd_mach_o_scan_read_section): Ditto. | |
372 | (bfd_mach_o_scan_read_symtab_symbol): Set section for debugging | |
373 | stabs, set BSF_GLOBAL and LOCAL flags correctly. Fix section | |
374 | for N_SECT symbols. | |
375 | (bfd_mach_o_i386_flavour_string): Reindent and adjust for new | |
376 | names. | |
377 | (bfd_mach_o_scan_read_symtab): Set HAS_SYMS flags on bfd if there | |
378 | are symbols. | |
379 | (bfd_mach_o_scan_read_uuid): New function. | |
380 | (bfd_mach_o_scan_read_segment): Add a trailing nul. Segments | |
381 | flags are now simply HAS_CONTENTS. Pass protection to | |
382 | bfd_mach_o_scan_read_section. | |
383 | (bfd_mach_o_scan_read_command): Decode UUID command. | |
384 | (bfd_mach_o_flatten_sections): Add comments. Fix flavour names. | |
385 | (bfd_mach_o_scan): Set flags according to file type. | |
386 | (mach_o_fat_archentry): Remove abfd field. | |
387 | (bfd_mach_o_archive_p): Remove initialization of abfd field. | |
388 | (bfd_mach_o_openr_next_archived_file): Find previous archive | |
389 | by position and not by bfd (as former bfds may have been freed). | |
390 | Give architecture name to archived file. | |
391 | * mach-o-target.c (TARGET_NAME): Use generic archive for non fat | |
392 | targets. | |
393 | ||
cb5220a0 NC |
394 | 2008-10-30 Jay Krell <jay.krell@cornell.edu> |
395 | ||
396 | * cache.c (cache_bread): Cast void * pointer before performing | |
397 | arithmetic on it. | |
398 | ||
7d9616d7 AM |
399 | 2008-10-20 Alan Modra <amodra@bigpond.net.au> |
400 | ||
401 | * elf64-ppc.c (ppc64_elf_process_dot_syms): Renamed from | |
402 | ppc64_elf_check_directives. | |
403 | * elf32-sh-symbian.c (sh_symbian_process_directives): Combine.. | |
404 | (sh_symbian_check_directives): ..this | |
405 | (bfd_elf32_sh_symbian_process_directives) ..and this function. | |
406 | ||
58217f29 AM |
407 | 2008-10-20 Alan Modra <amodra@bigpond.net.au> |
408 | ||
409 | * elflink.c (bfd_elf_final_link): Move code reading relocs to.. | |
410 | * elf32-spu.c (spu_elf_count_relocs): ..here. Adjust params. | |
411 | * elf-bfd.h (struct elf_backend_data): Update elf_backend_count_relocs | |
412 | params. | |
413 | ||
bef26483 AM |
414 | 2008-10-20 Alan Modra <amodra@bigpond.net.au> |
415 | ||
416 | * elflink.c (bfd_elf_final_link): Use d_ptr rather than d_val | |
417 | where Elf_Internal_Dyn holds an address. | |
418 | ||
f82e0623 NF |
419 | 2008-10-10 Nathan Froyd <froydnj@codesourcery.com> |
420 | ||
421 | * elf32-ppc.c (ppc_elf_merge_obj_attributes): Merge | |
422 | Tag_GNU_Power_ABI_Struct_Return. | |
423 | ||
d078078d KT |
424 | 2008-10-09 Kai Tietz <kai.tietz@onevision.com> |
425 | ||
58217f29 AM |
426 | * cofflink.c (_bfd_coff_generic_relocate_section): Dump bfd_vma |
427 | sized addresses instead of long sized. | |
d078078d | 428 | |
066ee829 AM |
429 | 2008-10-09 Alan Modra <amodra@bigpond.net.au> |
430 | ||
431 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't attempt to | |
432 | read plt relocs if no dynamic syms. | |
433 | ||
8cc9115f NC |
434 | 2008-10-08 Nick Clifton <nickc@redhat.com> |
435 | ||
436 | * configure.in (ALL_LINGUAS): Add "id". | |
437 | * configure: Regenerate. | |
438 | * po/id.po: New Indonesian translation. | |
439 | ||
aea274d3 AM |
440 | 2008-10-08 Alan Modra <amodra@bigpond.net.au> |
441 | ||
442 | * elf.c (assign_file_positions_for_load_sections): When checking | |
443 | a segment for contents, don't assume that a non-TLS nobits section | |
444 | must only be followed by nobits sections. | |
445 | ||
3926fc54 HPN |
446 | 2008-10-04 Hans-Peter Nilsson <hp@axis.com> |
447 | ||
448 | * elf32-cris.c (TLSHOWTO32, TLSHOWTO16): New macros. | |
449 | (cris_elf_howto_table): Add entries for R_CRIS_32_GOT_GD, | |
450 | R_CRIS_16_GOT_GD, R_CRIS_32_GD, R_CRIS_DTP, R_CRIS_32_DTPREL, | |
451 | R_CRIS_16_DTPREL, R_CRIS_DTPMOD, R_CRIS_32_GOT_TPREL, | |
452 | R_CRIS_16_GOT_TPREL, R_CRIS_32_TPREL, R_CRIS_16_TPREL. | |
453 | (cris_reloc_map): Similarly. | |
454 | * reloc.c (bfd_reloc_code_type): Add entries for | |
455 | BFD_RELOC_CRIS_32_GOT_GD, BFD_RELOC_CRIS_16_GOT_GD, | |
456 | BFD_RELOC_CRIS_32_GD, BFD_RELOC_CRIS_DTP, | |
457 | BFD_RELOC_CRIS_32_DTPREL, BFD_RELOC_CRIS_16_DTPREL, | |
458 | BFD_RELOC_CRIS_DTPMOD, BFD_RELOC_CRIS_32_GOT_TPREL, | |
459 | BFD_RELOC_CRIS_16_GOT_TPREL, BFD_RELOC_CRIS_32_TPREL, | |
460 | BFD_RELOC_CRIS_16_TPREL. | |
461 | * libbfd.h, bfd-in2.h: Regenerate. | |
462 | ||
bcacc0f5 AM |
463 | 2008-10-03 Alan Modra <amodra@bigpond.net.au> |
464 | ||
e932ca37 | 465 | PR 6931 |
bcacc0f5 AM |
466 | * elf.c (bfd_elf_set_group_contents): Assign sh_info for ld -r when |
467 | the signature symbol is global. | |
468 | * elflink.c (elf_link_input_bfd): Ensure group signature symbol | |
469 | is output when ld -r. Set group sh_info when local. | |
470 | * linker.c (default_indirect_link_order): Handle group sections | |
471 | specially. | |
472 | ||
e144674a NC |
473 | 2008-09-30 Wesley W. Terpstra <wesley@terpstra.ca> |
474 | Nick Clifton <nickc@redhat.com> | |
475 | ||
476 | * coffgen.c (coff_write_symbols): Check to see if a symbol's flags | |
477 | do not match it class and if necessary update the class. | |
478 | (null_error_handler): New function. Suppresses the generation of | |
479 | bfd error messages. | |
480 | * coff64-rs6000.c (bfd_xcoff_backend_data): Update comment. | |
481 | ||
782e11fd AM |
482 | 2008-09-30 Alan Modra <amodra@bigpond.net.au> |
483 | ||
484 | * Makefile.am: Run "make dep-am". | |
485 | * Makefile.in: Regenerate. | |
486 | ||
33177bb1 AM |
487 | 2008-09-30 Alan Modra <amodra@bigpond.net.au> |
488 | ||
489 | * elflink.c (elf_link_add_object_symbols): Don't ignore returned | |
490 | value of check_directives. | |
491 | ||
718a6fd8 SE |
492 | 2008-09-29 Peter O'Gorman <pogma@thewrittenword.com> |
493 | Steve Ellcey <sje@cup.hp.com> | |
494 | ||
495 | * configure: Regenerate for new libtool. | |
496 | * aclocal.m4: Ditto. | |
497 | * Makefile.in: Ditto. | |
498 | * doc/Makefile.in: Ditto. | |
499 | ||
ceae84aa AM |
500 | 2008-09-29 Alan Modra <amodra@bigpond.net.au> |
501 | ||
502 | PR 6789 | |
503 | * elf.c (assign_file_positions_for_load_sections): Call | |
504 | _bfd_elf_map_sections_to_segments, not elf_modify_segment_map. | |
505 | (get_program_header_size): Protect against NULL info. | |
506 | (_bfd_elf_map_sections_to_segments): Likewise. | |
507 | * elf32-spu.c (spu_elf_additional_program_headers): Likewise. | |
508 | ||
afac680a NC |
509 | 2008-09-29 Nick Clifton <nickc@redhat.com> |
510 | ||
511 | * po/vi.po: Updated Vietnamese translation. | |
512 | ||
9659de1c AM |
513 | 2008-09-28 Alan Modra <amodra@bigpond.net.au> |
514 | ||
515 | * elf.c (_bfd_elf_init_private_section_data): Tweak union copy. | |
516 | (bfd_section_from_shdr): Don't change SHT_GROUP section name. | |
517 | * elflink.c (section_signature): New function. | |
518 | (_bfd_elf_section_already_linked): Use it. | |
519 | ||
e79f5955 AM |
520 | 2008-09-19 Alan Modra <amodra@bigpond.net.au> |
521 | ||
522 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Handle vxworks | |
523 | _GLOBAL_OFFSET_TABLE_ in .got.plt section. Add BFD_ASSERTs. | |
524 | ||
b45329f9 BW |
525 | 2008-09-17 Bob Wilson <bob.wilson@acm.org> |
526 | ||
ceae84aa AM |
527 | * elf32-xtensa.c (elf_xtensa_check_relocs): Check for negative |
528 | refcount. | |
b45329f9 | 529 | |
2a7b2e88 JK |
530 | 2008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
531 | ||
532 | PR 6893 - Do not consider FDEs for discarded sections as invalid. | |
533 | * elf-eh-frame.c (_bfd_elf_parse_eh_frame): New REQUIRE_CLEARED_RELOCS. | |
534 | Consider FDEs with cleared relocations as valid and ignorable. | |
535 | ||
0a36a439 L |
536 | 2008-09-16 H.J. Lu <hongjiu.lu@intel.com> |
537 | ||
538 | PR ld/6877 | |
539 | * elflink.c (_bfd_elf_merge_symbol): Allow a common symbol to | |
540 | override the function in a shared library. | |
541 | ||
e87d4038 AM |
542 | 2008-09-16 Alan Modra <amodra@bigpond.net.au> |
543 | ||
544 | PR 6844 | |
545 | * elf32-ppc.c (SYM_VAL): Define. Use throughout to find symbol vma. | |
546 | (ppc_elf_relocate_section): Correct GOT offset calculation. | |
547 | (ppc_elf_finish_dynamic_symbol): Use PPC_HA and PPC_LO. | |
548 | (ppc_elf_finish_dynamic_sections): Likewise. Error if | |
549 | htab->elf.hgot symbol is not defined in htab->got section. | |
550 | ||
3b4f3a11 AM |
551 | 2008-09-16 Alan Modra <amodra@bigpond.net.au> |
552 | ||
553 | PR 6888 | |
554 | * elf32-ppc.c (ppc_elf_relocate_section): Handle NULL symbol section | |
555 | on R_PPC_TOC16, R_PPC_SDAREL16, R_PPC_EMB_SDA2REL, R_PPC_EMB_SDA21, | |
556 | R_PPC_EMB_RELSDA, R_PPC_SECTOFF* relocs. | |
557 | ||
d053aef8 JK |
558 | 2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
559 | ||
560 | Fix loading large elf64 binaries on 32bit hosts. | |
561 | * configure.in: Call AC_SYS_LARGEFILE. | |
562 | * config.in: Regenerate. | |
563 | * configure: Regenerate. | |
564 | ||
502e814e TT |
565 | 2008-09-08 Tom Tromey <tromey@redhat.com> |
566 | ||
567 | * elfxx-mips.c (mips16_stub_symndx) <sec>: Mark argument as | |
568 | unused. | |
569 | ||
5609a71e DJ |
570 | 2008-09-08 H.J. Lu <hongjiu.lu@intel.com> |
571 | Daniel Jacobowitz <dan@codesourcery.com> | |
572 | ||
573 | PR ld/3191 | |
574 | * dwarf2.c (struct adjusted_section): Renamed from struct | |
575 | loadable_section. | |
576 | (struct dwarf2_debug): Adjust for renaming. Add version field. | |
577 | (read_attribute_value): Correctly handle DW_FORM_ref_addr for | |
578 | DWARF3. | |
579 | (find_abstract_instance_name): Pass a pointer to | |
580 | attribute instead of offset. For DW_FORM_ref_addr, get the | |
581 | entry at the offset from the .debug_info section. | |
582 | (scan_unit_for_symbols): Update. | |
583 | (parse_comp_unit): Allow DWARF3. Save the version. | |
584 | (unset_sections): Update for renaming. | |
585 | (place_sections): Likewise. Set new VMAs for DWARF sections | |
586 | also. | |
587 | ||
96497422 TG |
588 | 2008-09-08 Tristan Gingold <gingold@adacore.com> |
589 | ||
590 | * configure.in: Update version to 2.19.50 | |
591 | * configure: Regenerated. | |
592 | ||
2d47a72c DJ |
593 | 2008-09-05 Daniel Jacobowitz <dan@codesourcery.com> |
594 | ||
595 | * dwarf2.c: Change leading whitespace to tabs. | |
596 | ||
1e8a024a TG |
597 | 2008-09-05 Tristan Gingold <gingold@adacore.com> |
598 | ||
599 | Add MacOSX 64 bits support. | |
600 | * mach-o.h (bfd_mach_o_ppc_thread_flavour): Add | |
601 | BFD_MACH_O_PPC_THREAD_STATE_64. | |
602 | (bfd_mach_o_i386_thread_flavour): Add BFD_MACH_O_x86_THREAD_STATE64, | |
603 | BFD_MACH_O_x86_FLOAT_STATE64, BFD_MACH_O_x86_EXCEPTION_STATE64, | |
604 | BFD_MACH_O_x86_THREAD_STATE, BFD_MACH_O_x86_FLOAT_STATE, | |
605 | BFD_MACH_O_x86_EXCEPTION_STATE. | |
606 | (bfd_mach_o_load_command_type): Add | |
607 | BFD_MACH_O_LC_SEGMENT_64, BFD_MACH_O_LC_ROUTINES_64, | |
58217f29 | 608 | BFD_MACH_O_LC_UUID. |
1e8a024a TG |
609 | (BFD_MACH_O_CPU_IS64BIT): Added. |
610 | (bfd_mach_o_cpu_type): Add BFD_MACH_O_CPU_TYPE_POWERPC_64, | |
611 | BFD_MACH_O_CPU_TYPE_X86_64. | |
612 | (bfd_mach_o_header): Add version field. | |
613 | (bfd_mach_o_section) Add reserved3 field. | |
614 | (bfd_mach_o_segment_command): Add initprot and maxprot fields. | |
615 | ||
616 | * mach-o.c (N_TEXT, N_DATA, N_BSS): Added. | |
617 | (bfd_mach_o_version): New function. | |
618 | (bfd_mach_o_valid): Handle 64bits cpus. | |
619 | (bfd_mach_o_write_header): handler 64bits headers. | |
620 | (bfd_mach_o_scan_write_section_32, bfd_mach_o_scan_write_section_64): | |
621 | New functions (from bfd_mach_o_scan_write_section) to handle both | |
622 | flavors. | |
623 | (bfd_mach_o_scan_write_segment): Parameter wide added to support | |
624 | both flavors. | |
625 | (bfd_mach_o_write_contents): Support both flavors. | |
626 | (bfd_mach_o_read_header): Ditto. | |
627 | (bfd_mach_o_scan_read_section_32, bfd_mach_o_scan_read_section_64): | |
628 | New functions (from bfd_mach_o_scan_read_section) to support both | |
629 | flavors. | |
630 | (bfd_mach_o_scan_read_symtab_symbol): Support both flavors. | |
631 | (bfd_mach_o_scan_read_symtab): Ditto. | |
632 | (bfd_mach_o_scan_read_segment): Parameter wide added to support | |
633 | both flavors. | |
634 | (bfd_mach_o_scan_read_segment_32, bfd_mach_o_scan_read_segment_64): | |
635 | New functions to call bfd_mach_o_scan_read_segment. | |
636 | (bfd_mach_o_flatten_sections): Support both flavors. | |
637 | (bfd_mach_o_scan_start_address): Ditto. | |
638 | (bfd_mach_o_scan): Ditto. | |
639 | (bfd_mach_o_lookup_section): Ditto. | |
58217f29 | 640 | |
6bba1048 DA |
641 | 2008-08-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
642 | ||
643 | * elf-hppa.h (elf_hppa_reloc_final_type): Handle R_PARISC_GPREL64, | |
644 | R_PARISC_SEGREL32 and R_PARISC_SEGREL64. | |
645 | * som.c (som_fixup_formats): Add R_DATA_GPREL fixup. | |
646 | (som_hppa_howto_table): Likewise. | |
647 | (hppa_som_gen_reloc_type): In case R_HPPA_GOTOFF, detect R_DATA_GPREL | |
648 | final type. | |
649 | (som_write_fixups): Handle R_DATA_GPREL. | |
650 | ||
fcef9eb7 NC |
651 | 2008-08-26 Nick Clifton <nickc@redhat.com> |
652 | ||
653 | * elf32-arm.c: Fix up comment describing Thumb to ARM interworking | |
654 | stub. | |
655 | ||
c820be07 NC |
656 | 2008-08-25 Christophe Lyon <christophe.lyon@st.com> |
657 | ||
658 | * elf32-arm.c (arm_thumb_arm_v4t_short_branch_stub): Define. | |
659 | (elf32_arm_stub_type): Add arm_thumb_arm_v4t_stub_short_branch. | |
660 | (arm_type_of_stub): Handle armv4t short branches. Update | |
661 | prototype. | |
662 | (arm_stub_is_thumb): Handle arm_thumb_arm_v4t_stub_short_branch. | |
663 | (arm_build_one_stub): Likewise. | |
664 | (arm_size_one_stub): Likewise. | |
665 | (elf32_arm_size_stubs): Use new arm_type_of_stub prototype. | |
666 | (arm_map_one_stub): Handle arm_thumb_arm_v4t_stub_short_branch. | |
667 | ||
9c47c4c1 AS |
668 | 2008-08-24 Andreas Schwab <schwab@suse.de> |
669 | ||
670 | * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Do proper | |
671 | extension when calculating difference of offsets. | |
672 | ||
da594c4a AM |
673 | 2008-08-24 Alan Modra <amodra@bigpond.net.au> |
674 | ||
675 | * configure.in: Update a number of obsolete autoconf macros. | |
676 | * aclocal.m4: Regenerate. | |
677 | ||
91910cdd AS |
678 | 2008-08-23 Andreas Schwab <schwab@suse.de> |
679 | ||
680 | * opncls.c (find_separate_debug_file): Use the canonical | |
681 | absolute name of the bfd object for finding the debug file in | |
682 | the global debugfile directory. | |
683 | ||
b2064611 JK |
684 | 2008-08-22 Jakub Jelinek <jakub@redhat.com> |
685 | ||
686 | Fix PR ld/3290 regression for cross-files DW_FORM_ref_addr relocations. | |
687 | * elflink.c (elf_link_add_object_symbols): Make debug symbols local | |
688 | now only for non-RELOCATABLE targets. | |
689 | ||
28dbbc02 BW |
690 | 2008-08-20 Bob Wilson <bob.wilson@acm.org> |
691 | ||
692 | * elf-bfd.h (elf_object_id): Add XTENSA_ELF_TDATA. | |
693 | * elf32-xtensa.c (elf_howto_table): Add TLS relocations. | |
694 | (elf_xtensa_reloc_type_lookup): Likewise. | |
695 | (TCB_SIZE): Define. | |
696 | (elf_xtensa_link_hash_entry): New. | |
697 | (GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE, GOT_TLS_ANY): Define. | |
698 | (elf_xtensa_hash_entry): Define. | |
699 | (elf_xtensa_obj_tdata): New. | |
700 | (elf_xtensa_tdata): Define. | |
701 | (elf_xtensa_local_got_tls_type): Define. | |
702 | (elf_xtensa_local_tlsfunc_refcounts): Define. | |
703 | (is_xtensa_elf): Define. | |
704 | (elf_xtensa_mkobject): New. | |
705 | (elf_xtensa_link_hash_table): Add tlsbase field. | |
706 | (elf_xtensa_link_hash_newfunc): New. | |
707 | (elf_xtensa_link_hash_table_create): Use elf_xtensa_link_hash_newfunc. | |
708 | Create an entry for "_TLS_MODULE_BASE_" and save it in tlsbase field. | |
709 | (elf_xtensa_copy_indirect_symbol): New. | |
710 | (elf_xtensa_check_relocs): Rewrite to handle TLS relocations. | |
711 | (elf_xtensa_gc_sweep_hook): Likewise. | |
712 | (elf_xtensa_allocate_dynrelocs): Optimize away GOT entries for | |
713 | TLSDESC_FN relocations when an IE reference is seen. | |
714 | (elf_xtensa_allocate_local_got_size): Likewise. | |
715 | (elf_xtensa_always_size_sections): New. | |
716 | (dtpoff_base, tpoff): New. | |
717 | (elf_xtensa_do_reloc): Handle TLS relocations. | |
718 | (replace_tls_insn): New. | |
719 | (IS_XTENSA_TLS_RELOC): Define. | |
720 | (elf_xtensa_relocate_section): Handle TLS relocations. | |
721 | (get_indirect_call_dest_reg): New. | |
722 | (bfd_elf32_mkobject): Define. | |
723 | (elf_backend_always_size_sections): New. | |
724 | (elf_backend_copy_indirect_symbol): New. | |
725 | * reloc.c (BFD_RELOC_XTENSA_TLSDESC_FN, BFD_RELOC_XTENSA_TLSDESC_ARG) | |
726 | (BFD_RELOC_XTENSA_TLS_DTPOFF, BFD_RELOC_XTENSA_TLS_TPOFF) | |
727 | (BFD_RELOC_XTENSA_TLS_FUNC, BFD_RELOC_XTENSA_TLS_ARG) | |
728 | (BFD_RELOC_XTENSA_TLS_CALL): New. | |
729 | * bfd-in2.h: Regenerate. | |
730 | * libbfd.h: Regenerate. | |
731 | ||
61b0a4af RS |
732 | 2008-08-18 Richard Sandiford <rdsandiford@googlemail.com> |
733 | ||
734 | * elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Copy MIPS16 | |
735 | stub information. | |
736 | ||
3e08fb72 NC |
737 | 2008-08-17 Nick Clifton <nickc@redhat.com> |
738 | ||
8029a119 NC |
739 | * elf32-arm.c: Tidy up the code. |
740 | (bfd_elf32_arm_allocate_interworking_sections): Move common code | |
741 | into... | |
742 | (arm_allocate_glue_section_space): ... New function. | |
743 | (bfd_elf32_arm_add_glue_sections_to_bfd): Move common code | |
744 | into... | |
745 | (arm_make_glue_section): ... New function. | |
746 | ||
3e08fb72 NC |
747 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Handle the situation |
748 | where the sym_hashes are not available. | |
749 | ||
5c1d2f5f AM |
750 | 2008-08-17 Alan Modra <amodra@bigpond.net.au> |
751 | ||
752 | * bfd.c (struct _bfd): Correct outsymbols comment. | |
753 | * bfd-in2.h: Regenerate. | |
754 | * linker.c (bfd_generic_link_read_symbols): Renamed from.. | |
755 | (generic_link_read_symbols): ..this, and made global. | |
756 | ||
7357c5b6 AM |
757 | 2008-08-15 Alan Modra <amodra@bigpond.net.au> |
758 | ||
759 | PR 6526 | |
760 | * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS. | |
761 | * Makefile.in: Regenerate. | |
762 | * aclocal.m4: Regenerate. | |
763 | * config.in: Regenerate. | |
764 | * configure: Regenerate. | |
765 | ||
70df0c05 AM |
766 | 2008-08-14 Jaka Močnik <jaka@xlab.si> |
767 | ||
768 | * coffgen.c (coff_find_nearest_line): Correct cached line index. | |
769 | ||
b099ab9f AM |
770 | 2008-08-12 Alan Modra <amodra@bigpond.net.au> |
771 | ||
772 | * elf32-ppc.c (allocate_dynrelocs): Ignore dyn_relocs when | |
773 | !dynamic_sections_created. Don't make symbols with got | |
774 | references dynamic if !dynamic_sections_created. | |
775 | * elf64-ppc.c (allocate_dynrelocs): Likewise. Alloc dynamic | |
776 | relocs on undefined symbols. | |
777 | (ppc64_elf_relocate_section): Allow dynamic relocs on | |
778 | undefined symbols. | |
779 | ||
90aecf7a AM |
780 | 2008-08-11 Alan Modra <amodra@bigpond.net.au> |
781 | ||
782 | * elf64-ppc.c (toc_adjusting_stub_needed): Any call via the plt | |
783 | needs r2 valid, not just those to external syms. | |
784 | ||
ae38509c PA |
785 | 2008-08-09 Pedro Alves <pedro@codesourcery.com> |
786 | ||
787 | * archive.c (_bfd_archive_bsd_update_armap_timestamp): Cast stat | |
788 | st_mtime to long before comparison. | |
789 | ||
7b21ac3f EW |
790 | 2008-08-08 Anatoly Sokolov <aesok@post.ru> |
791 | ||
792 | * archures.c (bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35, | |
793 | bfd_mach_avr51): New. | |
794 | * bfd-in2.h: Regenerate. | |
795 | * cpu-avr.c (arch_info_struct): Add avr25, avr31, avr35, and avr51 | |
796 | architectures. Change comments to match architecture comments in GCC. | |
797 | (compatible): Add test for new AVR architectures. | |
798 | * elf32-avr.c (bfd_elf_avr_final_write_processing): Recognize | |
799 | bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35 and bfd_mach_avr51. | |
800 | (elf32_avr_object_p): Recognize E_AVR_MACH_AVR25, E_AVR_MACH_AVR31, | |
801 | E_AVR_MACH_AVR35 and E_AVR_MACH_AVR51. | |
802 | ||
803 | ||
861fb55a DJ |
804 | 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com> |
805 | Daniel Jacobowitz <dan@codesourcery.com> | |
806 | Catherine Moore <clm@codesourcery.com> | |
807 | Mark Shinwell <shinwell@codesourcery.com> | |
808 | Maxim Kuvyrkov <maxim@codesourcery.com> | |
809 | ||
810 | * elf32-mips.c (mips_vxworks_copy_howto_rela): Replace with... | |
811 | (elf_mips_copy_howto): ...this howto. Clear the size fields. | |
812 | (mips_vxworks_jump_slot_howto_rela): Replace with... | |
813 | (elf_mips_jump_slot_howto): ...this howto. | |
814 | (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS_COPY | |
815 | and BFD_RELOC_MIPS_JUMP_SLOT. | |
816 | (bfd_elf32_bfd_reloc_name_lookup): Handle "R_MIPS_COPY" and | |
817 | "R_MIPS_JUMP_SLOT". | |
818 | (mips_elf32_rtype_to_howto): Handle R_MIPS_COPY and R_MIPS_JUMP_SLOT. | |
819 | (elf_backend_plt_readonly): Define. | |
820 | (elf_backend_plt_sym_val): Define for non-VxWorks targets. | |
821 | (mips_vxworks_bfd_reloc_type_lookup): Delete. | |
822 | (mips_vxworks_bfd_reloc_name_lookup): Likewise. | |
823 | (mips_vxworks_rtype_to_howto): Likewise. | |
824 | (elf_backend_want_dynbss): Don't define for VxWorks. | |
825 | (elf_backend_plt_readonly): Likewise. | |
826 | (bfd_elf32_bfd_reloc_type_lookup): Likewise. | |
827 | (bfd_elf32_bfd_reloc_name_lookup): Likewise. | |
828 | (elf_backend_mips_rtype_to_howto): Likewise. | |
829 | (elf_backend_adjust_dynamic_symbol): Likewise. | |
830 | (elf_backend_got_symbol_offset): Don't define. | |
831 | * elfn32-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto): New. | |
832 | (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS_COPY | |
833 | and BFD_RELOC_MIPS_JUMP_SLOT. | |
834 | (bfd_elf32_bfd_reloc_name_lookup): Handle "R_MIPS_COPY" and | |
835 | "R_MIPS_JUMP_SLOT". | |
836 | (mips_elf32_n32_rtype_to_howto): Handle R_MIPS_COPY and | |
837 | R_MIPS_JUMP_SLOT. | |
838 | (elf_backend_rela_plts_and_copies_p, elf_backend_plt_readonly) | |
839 | (elf_backend_plt_sym_val): Define. | |
840 | * elf64-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto): New. | |
841 | (bfd_elf64_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS_COPY | |
842 | and BFD_RELOC_MIPS_JUMP_SLOT. | |
843 | (bfd_elf64_bfd_reloc_name_lookup): Handle "R_MIPS_COPY" and | |
844 | "R_MIPS_JUMP_SLOT". | |
845 | (mips_elf64_rtype_to_howto): Handle R_MIPS_COPY and R_MIPS_JUMP_SLOT. | |
846 | (elf_backend_rela_plts_and_copies_p, elf_backend_plt_readonly) | |
847 | (elf_backend_plt_sym_val): Define. | |
848 | * elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Delete. | |
849 | (_bfd_mips_elf_use_plts_and_copy_relocs, _bfd_mips_elf_init_stubs) | |
850 | (_bfd_mips_elf_plt_sym_val, _bfd_mips_post_process_headers): Declare. | |
851 | * elfxx-mips.c (mips_elf_la25_stub): New structure. | |
852 | (LA25_LUI, LA25_J, LA25_ADDIU): New macros. | |
853 | (mips_elf_link_hash_entry): Add "la25_stubs", "has_static_relocs" | |
854 | and "has_nonpic_branches" fields. Remove "is_relocation_target" and | |
855 | "is_branch_target". | |
856 | (mips_elf_link_hash_table): Add blank lines. Add | |
857 | "use_plts_and_copy_relocs", "reserved_gotno", "strampoline", | |
858 | "la25_stubs" and "add_stub_section" fields. | |
859 | (mips_htab_traverse_info): New structure. | |
860 | (PIC_OBJECT_P, MIPS_ELF_LOAD_WORD): New macros. | |
861 | (MIPS_RESERVED_GOTNO): Delete. | |
862 | (mips_o32_exec_plt0_entry, mips_n32_exec_plt0_entry) | |
863 | (mips_n64_exec_plt0_entry, mips_exec_plt_entry): New tables. | |
864 | (mips_elf_link_hash_newfunc): Update after the changes to | |
865 | mips_elf_link_hash_entry. | |
866 | (mips_elf_check_mips16_stubs): Replace the DATA parameter with | |
867 | an INFO parameter. Don't look through warnings symbols here; | |
868 | do it in mips_elf_check_symbols instead. | |
869 | (mips_elf_create_stub_symbol): New function. | |
870 | (mips_elf_la25_stub_hash, mips_elf_la25_stub_eq): New functions. | |
871 | (_bfd_mips_elf_init_stubs, mips_elf_local_pic_function_p): Likewise. | |
872 | (mips_elf_add_la25_intro, mips_elf_add_la25_trampoline): Likewise. | |
873 | (mips_elf_add_la25_stub, mips_elf_check_symbols): New functions. | |
874 | (mips_elf_gotplt_index): Check for VxWorks. | |
875 | (mips_elf_output_dynamic_relocation): Take the relocation index | |
876 | as an extra parameter. Do not increment reloc_count here. | |
877 | (mips_elf_initialize_tls_slots): Update the calls to | |
878 | mips_elf_output_dynamic_relocation accordingly. | |
879 | (mips_elf_multi_got): Use htab->reserved_gotno instead of | |
880 | MIPS_RESERVED_GOTNO. | |
881 | (mips_elf_create_got_section): Don't allocate reserved GOT | |
882 | entries here. Unconditionally create .got.plt, but don't | |
883 | set its alignment here. | |
884 | (mips_elf_relocation_needs_la25_stub): New function. | |
885 | (mips_elf_calculate_relocation): Redirect branches and jumps to | |
886 | a non-PIC stub if one exists. Check !h->has_static_relocs instead | |
887 | of !htab->is_vxworks when deciding whether to create dynamic | |
888 | relocations for R_MIPS_32, R_MIPS_REL32 and R_MIPS_64. | |
889 | (_bfd_mips_elf_create_dynamic_sections): Unconditionally call | |
890 | _bfd_elf_create_dynamic_sections. Unconditionally set up | |
891 | htab->splt and htab->sdynbss. Set htab->srelplt to ".rel.plt" | |
892 | if !htab->is_vxworks. Add non-VxWorks values of | |
893 | htab->plt_header_size and htab->plt_entry_size. | |
894 | (_bfd_mips_elf_check_relocs): Set pointer_equality_needed for | |
895 | non-branch static relocations. Set has_nonpic_branches when an la25 | |
896 | stub might be required. Set can_make_dynamic_p to TRUE if R_MIPS_32, | |
897 | R_MIPS_REL32 and R_MIPS_64 relocations can be made dynamic, | |
898 | rather than duplicating the condition. Do not make them dynamic | |
899 | for read-only sections in non-PIC executable objects. | |
900 | Do not protect this code with dynobj == NULL || htab->sgot == NULL; | |
901 | handle each group of cases separately. Add a default case that | |
902 | sets has_static_relocs for non-GOT relocations that cannot be | |
903 | made dynamic. Don't set is_relocation_target and is_branch_target. | |
904 | Reject non-PIC static relocations in shared objects. | |
905 | (_bfd_mips_vxworks_adjust_dynamic_symbol): Fold into... | |
906 | (_bfd_mips_elf_adjust_dynamic_symbol): ...here, using | |
907 | htab->use_plts_and_copy_relocs instead of htab->is_vxworks | |
908 | to select PLT and copy-reloc handling. Set the alignment of | |
909 | .plt and .got.plt when allocating the first entry. Generalize | |
910 | code to handle REL as well as RELA sections and 64-bit as well as | |
911 | 32-bit GOT entries. Complain if we find a static-only reloc | |
912 | against an externally-defined symbol and if we cannot create | |
913 | dynamic relocations for it. Allocate copy relocs using | |
914 | mips_elf_allocate_dynamic_relocations on non-VxWorks targets. | |
915 | Set possibly_dynamic_relocs to 0 when using PLTs or copy relocs. | |
916 | Skip reserved .got.plt entries. | |
917 | (_bfd_mips_elf_always_size_sections): Use mips_elf_check_symbols | |
918 | instead of mips_elf_check_mips16_stubs to process each symbol. | |
919 | Do the traversal for relocatable objects too. | |
920 | (mips_elf_lay_out_got): Use htab->reserved_gotno instead of | |
921 | MIPS_RESERVED_GOTNO. | |
922 | (_bfd_mips_elf_size_dynamic_sections): Exclude sdynbss if it | |
923 | is empty. Extend the DT_PLTREL, DT_JMPREL and DT_PLTRELSZ handling | |
924 | to non-VxWorks targets. Only add DT_REL{,A}, DT_REL{,A}SZ and | |
925 | DT_REL{,A}ENT if .rel.dyn is nonempty. Create a symbol for the | |
926 | PLT. Allocate a nop at the end of the PLT. Allocate DT_MIPS_PLTGOT. | |
927 | (mips_elf_create_la25_stub_info): New function. | |
928 | (_bfd_mips_elf_finish_dynamic_symbol): Write out PLT entries | |
929 | and copy relocs where necessary. Check pointer_equality_needed. | |
930 | (mips_finish_exec_plt): New function. | |
931 | (_bfd_mips_elf_finish_dynamic_sections): Always set DT_PLTGOT | |
932 | to the beginning of htab->sgot. Use htab->reserved_gotno instead | |
933 | of MIPS_RESERVED_GOTNO. Assert htab->use_plts_and_copy_relocs | |
934 | instead of htab->is_vxworks for DT_PLTREL, DT_PLTRELSZ and DT_JMPREL. | |
935 | Set DT_PLTREL to DT_REL instead of DT_RELA on non-VxWorks targets. | |
936 | Use mips_finish_exec_plt to create non-VxWorks PLT headers. Set | |
937 | DT_MIPS_PLTGOT. | |
938 | (_bfd_mips_elf_copy_indirect_symbol): Copy has_static_relocs | |
939 | from the indirect symbol to the direct symbol. Also copy | |
940 | has_nonpic_branches for indirect symbols. | |
941 | (_bfd_mips_elf_get_target_dtag): Handle DT_MIPS_PLTGOT and | |
942 | DT_MIPS_RWPLT. | |
943 | (_bfd_mips_elf_link_hash_table_create): Initialize the new | |
944 | mips_elf_link_hash_table fields. | |
945 | (_bfd_mips_vxworks_link_hash_table_create): Set | |
946 | use_plts_and_copy_relocs to TRUE. Use TRUE rather than 1 | |
947 | when setting is_vxworks. | |
948 | (_bfd_mips_elf_use_plts_and_copy_relocs): New function. | |
949 | (_bfd_mips_elf_final_link): Call mips_elf_create_la25_stub for | |
950 | each la25_stub. | |
951 | (_bfd_mips_elf_merge_private_bfd_data): Treat dynamic objects | |
952 | as PIC. Generalize message about linking PIC and non-PIC. | |
953 | (_bfd_mips_elf_plt_sym_val, _bfd_mips_post_process_headers): New | |
954 | functions. | |
955 | * reloc.c: Update comment near BFD_RELOC_MIPS_JUMP_SLOT. | |
956 | * bfd-in2.h: Regenerated. | |
957 | ||
4dd07732 AM |
958 | 2008-08-08 Alan Modra <amodra@bigpond.net.au> |
959 | ||
960 | * elf.c (bfd_elf_get_elf_syms): Don't leak memory on error. | |
961 | * elflink.c (_bfd_elf_link_read_relocs): bfd_release on error. | |
962 | (elf_link_add_object_symbols): Don't leak memory on error. | |
963 | (bfd_elf_size_dynsym_hash_dynstr): Likewise. | |
964 | (elf_fixup_link_order): Free sections. | |
965 | ||
d35fd659 RS |
966 | 2008-08-07 Richard Sandiford <rdsandiford@googlemail.com> |
967 | ||
968 | * elf-bfd.h (elf_backend_data): Add a "rela_plts_and_copies_p" field. | |
969 | * elfxx-target.h (elf_backend_rela_plts_and_copies_p): New macro. | |
970 | (elfNN_bed): Use it. | |
971 | * elf.c (_bfd_elf_get_synthetic_symtab): Use rela_plts_and_copies_p | |
972 | instead of default_use_rela_p to choose between ".rel.plt" and | |
973 | ".rela.plt". | |
974 | * elflink.c (_bfd_elf_create_dynamic_sections): Use | |
975 | rela_plts_and_copies_p instead of default_use_rela_p to choose | |
976 | between ".rel.plt" and ".rela.plt", and between ".rel.bss" and | |
977 | ".rela.bss". | |
978 | ||
d5eaccd7 RS |
979 | 2008-08-07 Richard Sandiford <rdsandiford@googlemail.com> |
980 | ||
981 | * elf-bfd.h (MIPS_ELF_TDATA): New elf_object_id. | |
982 | * elf32-mips.c (bfd_elf32_mkobject): Define. | |
983 | * elf64-mips.c (bfd_elf64_mkobject): Likewise. | |
984 | * elfn32-mips.c (bfd_elf32_mkobject): Likewise. | |
985 | * elfxx-mips.h (_bfd_mips_elf_mkobject): Declare. | |
986 | * elfxx-mips.c (is_mips_elf): New macro. | |
987 | (_bfd_mips_elf_mkobject): New function. | |
988 | (_bfd_mips_elf_final_link): Use is_mips_elf. | |
989 | (_bfd_mips_elf_merge_private_bfd_data): Likewise. | |
990 | ||
aff469fa RS |
991 | 2008-08-07 Richard Sandiford <rdsandiford@googlemail.com> |
992 | ||
993 | * elfxx-mips.c (mips_elf_record_relocs): Defer allocation of a | |
994 | global GOT entry when deferring allocation of dynamic relocations. | |
995 | (allocate_dynrelocs): When allocating deferred dynamic relocations, | |
996 | also do the deferred allocation of a GOT entry. | |
997 | ||
23cc69b6 RS |
998 | 2008-08-07 Richard Sandiford <rdsandiford@googlemail.com> |
999 | ||
1000 | * elfxx-mips.c (mips_got_info): Add a "reloc_only_gotno" field. | |
1001 | (mips_elf_got_section): Delete. | |
1002 | (mips_elf_sort_hash_table): Use g->reloc_only_gotno to decide | |
1003 | how many reloc-only entries there are. | |
1004 | (mips_elf_count_got_symbols): Adjust g->reloc_only_gotno as | |
1005 | well as g->global_gotno. | |
1006 | (mips_elf_make_got_per_bfd): Initialize reloc_only_gotno. | |
1007 | (mips_elf_multi_got): Likewise. Use gg->reloc_only_gotno | |
1008 | rather than gg->assigned_gotno to store the number of | |
1009 | reloc-only GOT entries. | |
1010 | (mips_elf_create_got_section): Remove the MAYBE_EXCLUDE parameter. | |
1011 | Initialize reloc_only_gotno. | |
1012 | (mips_elf_calculate_relocation): Check htab->got_info instead of | |
1013 | dynobj when deciding whether to call mips_elf_adjust_gp, | |
1014 | (_bfd_mips_elf_create_dynamic_sections): Adjust the call | |
1015 | to mips_elf_create_got_section. | |
1016 | (mips_elf_record_relocs): Likewise. Remove redundant | |
1017 | "dynobj == NULL" code. Do not use mips_elf_create_got_section | |
1018 | or mips_elf_record_global_got_symbol for R_MIPS_32, R_MIPS_REL32 | |
1019 | and R_MIPS_64; limit global_got_area to GGA_RELOC_ONLY instead. | |
1020 | (_bfd_mips_elf_finish_dynamic_symbol): Use htab->sgot instead | |
1021 | of mips_elf_got_section. | |
1022 | (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
1023 | (_bfd_mips_elf_finish_dynamic_sections): Likewise. | |
1024 | Move the initial assignment of G to the block that uses it; | |
1025 | it is used for an unrelated purpose later. | |
1026 | ||
d4596a51 RS |
1027 | 2008-08-07 Richard Sandiford <rdsandiford@googlemail.com> |
1028 | ||
1029 | * elfxx-mips.c (count_section_dynsyms): Move before the new first use. | |
1030 | (mips_elf_sort_hash_table): Take the output bfd as a parameter. | |
1031 | Remove the MAX_LOCAL parameter. Exit early if there are no | |
1032 | dynamic symbols, if there is no dynobj, or if there is no | |
1033 | GOT section. Use count_section_dynsyms instead of MAX_LOCAL. | |
1034 | Assert == rather than <= when checking hsd.max_unref_got_dynindx. | |
1035 | Also assert that g->global_gotno is right. | |
1036 | (mips_elf_count_forced_local_got_symbols): Rename to... | |
1037 | (mips_elf_count_got_symbols): ...and count global GOT entries too. | |
1038 | Set the global_got_area of a forced-local GGA_RELOC_ONLY symbol | |
1039 | to GGA_NONE. | |
1040 | (mips_elf_multi_got): Don't sort the symbol table. | |
1041 | (mips_elf_lay_out_got): Likewise. Use mips_elf_count_got_symbols | |
1042 | to count the number of global GOT entries. | |
1043 | (_bfd_mips_elf_final_link): Unconditionally call | |
1044 | mips_elf_sort_hash_table. | |
1045 | ||
634835ae RS |
1046 | 2008-08-07 Richard Sandiford <rdsandiford@googlemail.com> |
1047 | ||
1048 | * elfxx-mips.c (GGA_NORMAL, GGA_RELOC_ONLY, GGA_NONE): New macros. | |
1049 | (mips_elf_link_hash_entry): Add a "global_got_area" field. | |
1050 | (mips_elf_link_hash_newfunc): Initialize it. | |
1051 | (mips_elf_sort_hash_table_f): Use h->global_got_area instead of | |
1052 | h->root.got.offset. Do not handle forced_local symbols specially. | |
1053 | (mips_elf_record_global_got_symbol): Set h->global_got_area | |
1054 | instead of h->root.got.offset. | |
1055 | (mips_elf_recreate_got): Assert that h->global_got_area == GGA_NONE | |
1056 | for indirect and warning symbols. | |
1057 | (mips_elf_count_forced_local_got_symbols): Change the argument | |
1058 | from a "elf_link_hash_entry" to "mips_elf_link_hash_entry". | |
1059 | Use and set h->global_got_area instead of h->root.got.offset. | |
1060 | Set it to GGA_NONE for all forced-local symbols. | |
1061 | (mips_elf_set_global_got_offset): Set h->global_got_area | |
1062 | instead of h->root.got.offset. Use g->global_got_area instead | |
1063 | of a combination of dynindx, forced_local and tls_type. | |
1064 | (mips_elf_multi_got): Remove disabled code. Pass GGA_* values to | |
1065 | mips_elf_set_global_got_offset. | |
1066 | (mips_elf_lay_out_got): Use mips_elf_link_hash_traverse instead | |
1067 | of elf_link_hash_traverse. | |
1068 | (_bfd_mips_elf_copy_indirect_symbol): Copy the indirect symbol's | |
1069 | global_got_area to the direct symbol if the latter's value is higher. | |
1070 | Set the indirect symbol's area to GGA_NONE. | |
1071 | ||
33bb52fb RS |
1072 | 2008-08-07 Richard Sandiford <rdsandiford@googlemail.com> |
1073 | ||
1074 | * elf32-mips.c (elf_backend_hide_symbol): Delete. | |
1075 | * elfn32-mips.c (elf_backend_hide_symbol): Likewise. | |
1076 | * elf64-mips.c (elf_backend_hide_symbol): Likewise. | |
1077 | * elfxx-mips.h (elf_backend_hide_symbol): Likewise. | |
1078 | * elfxx-mips.c (mips_elf_link_hash_entry): Remove "forced_local" | |
1079 | and add "needs_lazy_stub". | |
1080 | (mips_elf_link_hash_newfunc): Update accordingly. | |
1081 | (mips_elf_link_hash_table): Remove "computed_got_sizes" and | |
1082 | add "lazy_stub_count". | |
1083 | (_bfd_mips_elf_link_hash_table_create): Update accordingly. | |
1084 | (mips_elf_output_extsym): Use hd->needs_lazy_stub to detect | |
1085 | cases where a lazy stub is being used. | |
1086 | (mips_elf_sort_hash_table_f): Use h->root.forced_local instead | |
1087 | of h->forced_local. | |
1088 | (mips_elf_record_global_got_symbol): Use _bfd_elf_link_hash_hide_symbol | |
1089 | instead of _bfd_mips_elf_hide_symbol. Do not increment local_gotno | |
1090 | here. | |
1091 | (mips_elf_allocate_dynamic_relocations): Move before new first use. | |
1092 | (mips_elf_check_recreate_got, mips_elf_recreate_got): New functions. | |
1093 | (mips_elf_resolve_final_got_entries): Move earlier in file. Make at | |
1094 | most two passes over the hash table. Use mips_elf_check_recreate_got | |
1095 | to see if there are any indirect or warning entries and | |
1096 | mips_elf_recreate_got to create a new GOT without them. | |
1097 | Return a boolean success value. | |
1098 | (mips_elf_count_forced_local_got_entries): New function. | |
1099 | (mips_elf_make_got_per_bfd): Check h->root.forced_local instead of | |
1100 | h->forced_local. | |
1101 | (mips_elf_set_global_got_offset): Likewise. | |
1102 | (mips_elf_set_no_stub): Replace with... | |
1103 | (mips_elf_forbid_lazy_stubs): ...this new function. | |
1104 | (mips_elf_resolve_final_got_entry): Delete. | |
1105 | (mips_elf_multi_got): Fix formatting. Use mips_elf_forbid_lazy_stubs | |
1106 | instead of mips_elf_set_no_stub. Move the code that sets | |
1107 | global offsets and allocates dynamic relocations from the main | |
1108 | _bfd_mips_elf_size_dynamic_sections loop to here. | |
1109 | (_bfd_mips_elf_adjust_dynamic_symbol): Do not allocate room in | |
1110 | .MIPS.stubs here; just set hmips->needs_lazy_stub and increment | |
1111 | htab->lazy_stub_count. | |
1112 | (_bfd_mips_elf_always_size_sections): Move the stub-estimation | |
1113 | code to mips_elf_estimate_stub_size and the GOT-sizing code to | |
1114 | mips_elf_lay_out_got. Do not call these functions here. | |
1115 | (mips_elf_estimate_stub_size): New function, split | |
1116 | out from _bfd_mips_elf_always_size_sections. Call | |
1117 | mips_elf_resolve_final_got_entries earlier. Count the number | |
1118 | of forced-local entries. Do not add stub sizes to loadable_size; | |
1119 | after this patch, the stub sizes are already included in the main | |
1120 | estimate. Allocate dynamic relocations here rather than in the | |
1121 | main _bfd_mips_elf_size_dynamic_sections loop. | |
1122 | (mips_elf_estimate_stub_size): New function, split out from | |
1123 | _bfd_mips_elf_always_size_sections. | |
1124 | (mips_elf_allocate_lazy_stub): New function. | |
1125 | (mips_elf_lay_out_lazy_stubs): Likewise. | |
1126 | (_bfd_mips_elf_size_dynamic_sections): Call mips_elf_estimate_stub_size, | |
1127 | mips_elf_lay_out_got and mips_elf_lay_out_lazy_stubs. Do not handle | |
1128 | the allocation of sreldyn specially. | |
1129 | (_bfd_mips_elf_hide_symbol): Delete. | |
1130 | ||
63897e2c RS |
1131 | 2008-08-07 Richard Sandiford <rdsandiford@googlemail.com> |
1132 | ||
1133 | * elfxx-mips.c (allocate_dynrelocs): Ignore indirect and warning | |
1134 | symbols. | |
1135 | ||
71782a75 RS |
1136 | 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com> |
1137 | ||
1138 | * elfxx-mips.c (mips_elf_link_hash_entry): Move bfd_boolean | |
1139 | fields to the end of the structure and make them single-bit | |
1140 | bitfields. | |
1141 | (mips_elf_link_hash_newfunc): Make the initialization statements | |
1142 | follow the new field order. | |
1143 | ||
a8028dd0 RS |
1144 | 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com> |
1145 | ||
1146 | * elfxx-mips.c (_mips_elf_section_data): Remove the "u.got_info" field. | |
1147 | (mips_elf_link_hash_table): Add "sgot" and "got_info" fields. | |
1148 | (_bfd_mips_elf_link_hash_table_create): Initialize them. | |
1149 | (mips_elf_got_section): Always apply the !maybe_excluded behavior. | |
1150 | (mips_elf_got_info): Delete. | |
1151 | (mips_elf_initialize_tls_slots): Remove the DYNOBJ local variable. | |
1152 | Adjust the call to mips_elf_got_section. | |
1153 | (mips_elf_local_got_index): Don't call mips_elf_got_info. | |
1154 | Update the call to mips_elf_create_local_got_entry. | |
1155 | Use htab->got_info. | |
1156 | (mips_elf_global_got_index): Don't call mips_elf_got_info; | |
1157 | use htab->got_info and htab->sgot instead. | |
1158 | (mips_elf_got_page): Don't call mips_elf_got_info. Update the | |
1159 | call to mips_elf_create_local_got_entry. | |
1160 | (mips_elf_got16_entry): Likewise. | |
1161 | (mips_elf_got_offset_from_index): Replace with DYNOBJ parameter | |
1162 | with an INFO parameter. Don't call mips_elf_got_info; use htab->sgot | |
1163 | and htab->got_info instead. | |
1164 | (mips_elf_create_local_got_entry): Remove the GG and SGOT parameters. | |
1165 | Use htab->sgot and htab->got_info. | |
1166 | (mips_elf_sort_hash_table): Remove the DYNOBJ local variable. | |
1167 | Don't call mips_elf_got_info; use htab->got_info instead. | |
1168 | (mips_elf_record_global_got_symbol): Turn G from a paramter to | |
1169 | a local variable and read it from htab->got_info. | |
1170 | (mips_elf_record_local_got_symbol): Replace the G parameter with | |
1171 | an INFO parameter. Make G a local variable and read it from | |
1172 | htab->got_info instead. | |
1173 | (mips_elf_record_got_page_entry): Likewise. | |
1174 | (mips_elf_multi_got): Remove the G parameter and make it a local | |
1175 | variable instead. Read it from htab->got_info. | |
1176 | (mips_elf_create_got_section): Cache the GOT section in htab->sgot. | |
1177 | Store the GOT information in htab->got_info. | |
1178 | (mips_elf_calculate_relocation): Don't call mips_elf_got_section | |
1179 | and mips_elf_got_info; use htab->sgot and htab->got_info instead. | |
1180 | Adjust the calls to mips_elf_got_offset_from_index and | |
1181 | mips_elf_adjust_gp. | |
1182 | (_bfd_mips_elf_check_relocs): Remove the G and SGOT local variables. | |
1183 | Adjust the calls to mips_elf_record_local_got_symbol, | |
1184 | mips_elf_record_global_got_symbol and mips_elf_record_got_page_entry. | |
1185 | Use htab->sgot. | |
1186 | (_bfd_mips_elf_always_size_sections): Remove the DYNOBJ local variable. | |
1187 | Don't call mips_elf_got_info; use htab->sgot and htab->got_info instead. | |
1188 | Update the call to mips_elf_multi_got. | |
1189 | (_bfd_mips_elf_size_dynamic_sections): Don't call mips_elf_got_info; | |
1190 | use htab->got_info instead. | |
1191 | (_bfd_mips_elf_finish_dynamic_symbol): Update the call to | |
1192 | mips_elf_got_section. Get the got_info from the hash table | |
1193 | rather than the GOT section. | |
1194 | (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
1195 | (_bfd_mips_elf_finish_dynamic_sections): Likewise. | |
1196 | (_bfd_mips_elf_hide_symbol): Don't call mips_elf_got_section; | |
1197 | get the got_info from the hash table instead. Remove the GOT | |
1198 | local variable. | |
1199 | (_bfd_mips_elf_final_link): Likewise. Also remove the DYNOBJ | |
1200 | local variable. | |
1201 | ||
4e41d0d7 RS |
1202 | 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com> |
1203 | ||
1204 | * elfxx-mips.c (mips_elf_link_hash_table): Add an "sstubs" field. | |
1205 | (_bfd_mips_elf_create_dynamic_sections): Use it to cache the stubs | |
1206 | section. Don't check whether the section already exists. | |
1207 | (_bfd_mips_elf_adjust_dynamic_symbol): Use htab->sstubs. | |
1208 | (_bfd_mips_elf_finish_dynamic_symbol): Likewise. | |
1209 | (_bfd_mips_elf_finish_dynamic_sections): Likewise. | |
1210 | (_bfd_mips_elf_size_dynamic_sections): Likewise. Don't add the | |
1211 | dummy stub to an empty section. | |
1212 | (_bfd_mips_elf_link_hash_table_create): Initialize the "sstubs" field. | |
1213 | ||
738e5348 RS |
1214 | 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com> |
1215 | ||
1216 | * reloc.c (BFD_RELOC_MIPS16_GOT16, BFD_RELOC_MIPS16_CALL16): Declare. | |
1217 | * libbfd.h, bfd-in2.h: Regenerate. | |
1218 | * elf32-mips.c (elf_mips16_howto_table_rel): Fill in reserved | |
1219 | R_MIPS16_GOT16 and R_MIPS16_CALL16 entries. | |
1220 | (mips16_reloc_map): Add mappings. | |
1221 | * elf64-mips.c (mips16_elf64_howto_table_rel): Fill in reserved | |
1222 | R_MIPS16_GOT16 and R_MIPS16_CALL16 entries. | |
1223 | (mips16_elf64_howto_table_rela): Likewise. | |
1224 | (mips16_reloc_map): Add mappings. | |
1225 | * elfn32-mips.c (elf_mips16_howto_table_rel): Fill in reserved | |
1226 | R_MIPS16_GOT16 and R_MIPS16_CALL16 entries. | |
1227 | (elf_mips16_howto_table_rela): Likewise. | |
1228 | (mips16_reloc_map): Add mappings. | |
1229 | * elfxx-mips.c (mips_elf_create_shadow_symbol): New function. | |
1230 | (section_allows_mips16_refs_p): Likewise. | |
1231 | (mips16_stub_symndx): Likewise. | |
1232 | (mips_elf_check_mips16_stubs): Treat the data argument as a | |
1233 | bfd_link_info. Mark every dynamic symbol as needing MIPS16 stubs | |
1234 | and create a "shadow" symbol for the original MIPS16 definition. | |
1235 | (mips16_reloc_p, got16_reloc_p, call16_reloc_p, hi16_reloc_p) | |
1236 | (lo16_reloc_p, mips16_call_reloc_p): New functions. | |
1237 | (_bfd_mips16_elf_reloc_unshuffle): Use mips16_reloc_p to generalize | |
1238 | relocation checks. | |
1239 | (_bfd_mips16_elf_reloc_shuffle): Likewise. | |
1240 | (_bfd_mips_elf_lo16_reloc): Handle R_MIPS16_GOT16. | |
1241 | (mips_elf_got16_entry): Add comment. | |
1242 | (mips_elf_calculate_relocation): Use hi16_reloc_p, | |
1243 | lo16_reloc_p, mips16_call_reloc_p, call16_reloc_p and got16_reloc_p | |
1244 | to generalize relocation checks. Use section_allows_mips16_refs_p | |
1245 | instead of mips16_stub_section_p. Handle R_MIPS16_CALL16 and | |
1246 | R_MIPS16_GOT16, allowing the former to refer directly to a | |
1247 | MIPS16 function if its stub is not needed. | |
1248 | (mips16_stub_section_p): Delete. | |
1249 | (_bfd_mips_elf_symbol_processing): Convert odd-valued function | |
1250 | symbols into even MIPS16 symbols. | |
1251 | (mips_elf_add_lo16_rel_addend): Use mips16_reloc_p to generalize | |
1252 | a relocation check. | |
1253 | (_bfd_mips_elf_check_relocs): Calculate "bed" and "rel_end" | |
1254 | earlier in the function. Use mips16_stub_symndx to identify | |
1255 | the target function. Avoid out-of-bounds accesses when the | |
1256 | stub has no relocations; report an error instead. Use | |
1257 | section_allows_mips16_refs_p instead of mips16_stub_section_p. | |
1258 | Use mips16_call_reloc_p and got16_reloc_p to generalize relocation | |
1259 | checks. Handle R_MIPS16_CALL16 and R_MIPS16_GOT16. Don't create | |
1260 | dynamic relocations for absolute references to __gnu_local_gp. | |
1261 | (_bfd_mips_elf_always_size_sections): Pass a bfd_link_info as | |
1262 | the argument to mips_elf_check_mips16_stubs. Generalize comment. | |
1263 | (_bfd_mips_elf_relocate_section): Use hi16_reloc_p and got16_reloc_p | |
1264 | to generalize relocation checks. | |
1265 | (_bfd_mips_elf_finish_dynamic_symbol): If a dynamic MIPS16 function | |
1266 | symbol has a non-MIPS16 stub, redirect the symbol to the stub. | |
1267 | Fix an overly long line. Don't give dynamic symbols type STO_MIPS16. | |
1268 | (_bfd_mips_elf_gc_sweep_hook): Handle R_MIPS16_CALL16 and | |
1269 | R_MIPS16_GOT16. | |
1270 | ||
e7d92e2e AM |
1271 | 2008-08-06 Alan Modra <amodra@bigpond.net.au> |
1272 | ||
1273 | * elf32-ppc.c (ppc_elf_relax_section): Clear R_PPC_PLTREL24 addend. | |
1274 | (ppc_elf_relocate_section <R_PPC_RELAX32_PLT>): Don't bother here. | |
1275 | ||
46f2f11d AM |
1276 | 2008-08-05 Alan Modra <amodra@bigpond.net.au> |
1277 | Jaka Močnik <jaka@xlab.si> | |
1278 | ||
1279 | * coffcode.h (coff_slurp_line_table): bfd_alloc lineno_cache first | |
1280 | so that we don't inadvertently free it. Use bfd_alloc for sort | |
1281 | arrays, and memcpy sorted line table. | |
1282 | ||
e5e6a5ff AM |
1283 | 2008-08-04 Alan Modra <amodra@bigpond.net.au> |
1284 | ||
1285 | * elf32-spu.c (spu_elf_auto_overlay): Use the maximum possible | |
1286 | if --fixed-space request is too large. | |
1287 | ||
323ee3f4 AM |
1288 | 2008-08-04 Alan Modra <amodra@bigpond.net.au> |
1289 | ||
1290 | * Makefile.am (SRC-POTFILES.in, BLD-POTFILES.in): Set LC_ALL=C. | |
1291 | * Makefile.in: Regenerate. | |
1292 | * po/SRC-POTFILES.in: Regenerate. | |
1293 | ||
4f0d75be AM |
1294 | 2008-08-02 Alan Modra <amodra@bigpond.net.au> |
1295 | ||
1296 | * elf32-spu.c (mark_overlay_section): Move code calculating | |
1297 | max_overlay_size to correct block. | |
1298 | (spu_elf_auto_overlay): Don't use %x in einfo error message. | |
1299 | ||
11a7ae4f AM |
1300 | 2008-08-01 Alan Modra <amodra@bigpond.net.au> |
1301 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1302 | ||
1303 | * elfcore.h (elf_core_file_p): Ensure we have a backend match | |
1304 | with the correct arch size before rejecting the generic fallback. | |
1305 | * elfcode.h (elf_object_p): Likewise. Ensure arch size matches | |
1306 | before accepting a target. | |
1307 | ||
010c8431 AM |
1308 | 2008-08-01 Alan Modra <amodra@bigpond.net.au> |
1309 | ||
d3ae097c | 1310 | PR 6774 |
010c8431 AM |
1311 | * elf.c (rewrite_elf_program_header): Don't wrap p_paddr to |
1312 | include file or program headers. | |
1313 | ||
0af1713e AM |
1314 | 2008-07-30 Alan Modra <amodra@bigpond.net.au> |
1315 | ||
1316 | * coff-ppc.c, coffgen.c, ecoff.c, ecofflink.c, elf.c, elf32-frv.c, | |
1317 | elf32-iq2000.c, elf32-m32c.c, elf32-mep.c, elf32-mt.c, | |
1318 | elf32-sh-symbian.c, elf64-hppa.c, mach-o.c, peXXigen.c, pef.c, | |
1319 | ppcboot.c, vms-misc.c, xsym.c: Silence gcc warnings. | |
1320 | ||
9a59ad6b DJ |
1321 | 2008-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
1322 | ||
1323 | * elfxx-mips.c (mips_elf_calculate_relocation): Avoid generating | |
1324 | relocations for undefined weak symbols with non-default visibility. | |
1325 | (_bfd_mips_elf_check_relocs): Use possibly_dynamic_relocs for | |
1326 | global symbols in shared libraries. | |
1327 | (allocate_dynrelocs): New function. | |
1328 | (_bfd_mips_elf_adjust_dynamic_symbol): Do not handle | |
1329 | possibly_dynamic_relocs here. | |
1330 | (_bfd_mips_elf_size_dynamic_sections): Call allocate_dynrelocs. | |
1331 | ||
9f03412a AO |
1332 | 2008-07-28 Alexandre Oliva <aoliva@redhat.com> |
1333 | ||
1334 | * elf32-i386.c (struct elf_i386_link_hash_table): Added field | |
1335 | tls_module_base. | |
1336 | (elf_i386_link_hash_table_create): Initialize it. | |
1337 | (elf_i386_always_size_sections): Set it. | |
1338 | (set_tls_module_base): New. | |
1339 | (elf_i386_relocate_sections): Call it. | |
1340 | * elf64-x86-64.c (struct elf64_x86_64_link_hash_table): Added | |
1341 | field tls_module_base. | |
1342 | (elf64_x86_64_link_hash_table_create): Initialize it. | |
1343 | (elf64_x86_64_always_size_sections): Set it. | |
1344 | (set_tls_module_base): New. | |
1345 | (elf64_x86_64_relocate_sections): Call it. | |
1346 | Reported by Cary Coutant <ccoutant@google.com> | |
1347 | ||
9a008db3 AM |
1348 | 2008-07-28 Ineiev <ineiev@yahoo.co.uk> |
1349 | ||
1350 | * elf32-arm.c (arm_map_one_stub): Declare variables at beginning | |
1351 | of block. | |
1352 | * elf32-avr.c (get_local_syms): Likewise. | |
1353 | ||
14a91970 AM |
1354 | 2008-07-28 Alan Modra <amodra@bigpond.net.au> |
1355 | ||
1356 | PR 6769 | |
1357 | * bfd-in.h (BFD_VMA_FMT): Define. | |
1358 | (printf_vma, sprintf_vma): Use the above. | |
1359 | (_bfd_int64_low, _bfd_int64_high): Delete. | |
1360 | * bfd-in2.h: Regenerate. | |
1361 | ||
baea7ef1 AM |
1362 | 2008-07-27 Alan Modra <amodra@bigpond.net.au> |
1363 | ||
1364 | * elf.c (_bfd_elf_make_section_from_shdr): Ignore return from | |
1365 | elf_parse_notes. Use bfd_malloc_and_get_section. | |
1366 | (elf_parse_notes): Validate note namesz and descsz. | |
1367 | ||
3c7b9897 AM |
1368 | 2008-07-26 Michael Eager <eager@eagercon.com> |
1369 | ||
1370 | * elf32-ppc.c (ppc_elf_merge_obj_attributes): Check compatibility | |
1371 | between single-float, double-float, and soft-float. | |
1372 | ||
20163277 DJ |
1373 | 2008-07-24 Daniel Jacobowitz <dan@codesourcery.com> |
1374 | ||
1375 | * elf32-mips.c (elf_backend_write_section): Define. | |
1376 | ||
4ff73856 NC |
1377 | 2008-07-24 Nick Clifton <nickc@redhat.com> |
1378 | ||
1379 | * elf.c (_bfd_elf_map_sections_to_segments): Catch off by one | |
1380 | error assigning sections to segments. | |
1381 | ||
39948a60 NC |
1382 | 2008-07-22 Nick Clifton <nickc@redhat.com> |
1383 | ||
1384 | * elf.c (_bfd_elf_map_sections_to_segments): Allow sections in | |
1385 | adjoining pages to be included in the same segment. | |
1386 | ||
bda987c2 CD |
1387 | 2008-07-22 Simon Baldwin <simonb@google.com> |
1388 | ||
1389 | * elflink.c (elf_link_output_extsym): Set st_size to zero for | |
1390 | symbols from dynamic libraries. | |
1391 | ||
88ba32a0 L |
1392 | 2008-07-21 H.J. Lu <hongjiu.lu@intel.com> |
1393 | ||
1394 | PR ld/4424 | |
1395 | * elflink.c (_bfd_elf_merge_symbol): Call bed->relocs_compatible | |
1396 | to check if 2 inputs are compatible. | |
1397 | ||
37c43c55 NC |
1398 | 2008-07-21 Sterling Augustine <sterling@tensilica.com> |
1399 | ||
1400 | * elf.c (assign_file_positions_for_load_sections): Print vma in | |
1401 | error message about overlapping section vmas. | |
1402 | ||
50403a1f L |
1403 | 2008-07-21 H.J. Lu <hongjiu.lu@intel.com> |
1404 | ||
1405 | PR ld/6747 | |
1406 | * elf32-frv.c (elf32_frv_relocate_section): Revert the change | |
1407 | for PR ld/6446 checked in by accident on May 21, 2008. | |
1408 | ||
799c00e0 NC |
1409 | 2008-07-21 Nick Clifton <nickc@redhat.com> |
1410 | ||
1411 | * coff-sh.c (bfd_pe_print_pdata): Define to NULL for non | |
1412 | COFF_WITH_PE based SH ports. | |
1413 | * libpei.h (_bfd_XX_print_ce_compressed_pdata): Prototype. | |
1414 | * arm-wince-pe.c (bfd_pe_print_pdata): Use | |
1415 | _bfd_pe_print_ce_compressed_pdata. | |
1416 | (slurp_symcache, cleanup_syms, pe_print_ce_compressed_pdata): Move | |
1417 | to... | |
1418 | * peXXigen.c: ... here and rename pe_print_ce_compressed_pdata to | |
1419 | _bfd_XX_print_ce_compressed_pdata. | |
1420 | ||
f60e73e9 AM |
1421 | 2008-07-21 Alan Modra <amodra@bigpond.net.au> |
1422 | ||
1423 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Drop | |
1424 | unwanted zero terminators. | |
1425 | ||
dc1859a6 AM |
1426 | 2008-07-21 Alan Modra <amodra@bigpond.net.au> |
1427 | ||
1428 | * elf32-spu.c (spu_elf_relocate_section): Expand | |
1429 | RELOC_FOR_GLOBAL_SYMBOL. Don't warn about undefined symbols for | |
1430 | R_SPU_PPU32 and R_SPU_PPU64 relocations. | |
1431 | ||
89eeb0bc LM |
1432 | 2008-07-21 Luis Machado <luisgpm@br.ibm.com> |
1433 | ||
1434 | * elf-bfd.h: Declare elfcore_write_ppc_vsx. | |
1435 | * elf.c (elfcore_grok_ppc_vsx): New function. | |
1436 | (elfcore_write_ppc_vsx): New function | |
1437 | (elfcore_grok_note): Handle VSX notes. | |
1438 | (elfcore_write_register_note): Handle VSX notes. | |
1439 | ||
a9dc9481 JM |
1440 | 2008-07-18 Joseph Myers <joseph@codesourcery.com> |
1441 | ||
1442 | * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add new parameter. | |
1443 | * bfd-in2.h: Regenerate. | |
1444 | * elf32-arm.c (struct elf_arm_obj_tdata): Add field | |
1445 | no_wchar_size_warning. | |
1446 | (bfd_elf32_arm_set_target_relocs): Add new parameter | |
1447 | no_wchar_warn. | |
1448 | (elf32_arm_merge_eabi_attributes): Give a warning, not an error, | |
1449 | for conflicting wchar_t attributes. Do not warn if | |
1450 | --no-wchar-size-warning. Make diagnostic text more specific. | |
1451 | ||
6cee0a6f L |
1452 | 2008-07-18 H.J. Lu <hongjiu.lu@intel.com> |
1453 | ||
1454 | PR ld/6748 | |
1455 | * elf32-arm.c (elf32_arm_link_hash_table_create): Initialize | |
1456 | new fields added for ARM long call support. | |
1457 | ||
2b5c217d NC |
1458 | 2008-07-18 Danny Backx <dannybackx@users.sourceforge.net> |
1459 | ||
1460 | * pe-arm-wince.c (pe_print_compressed_pdata): Define new function to | |
1461 | print compressed pdata structure as described on MSDN. This only | |
1462 | applies to a limited set of architectures (ARM, SH4). | |
1463 | (slurp_symtab, my_symbol_for_address): Define static helper | |
1464 | functions for pe_print_compressed_pdata. | |
1465 | * coffcode.h (bfd_coff_backend_data): Add _bfd_coff_print_pdata field. | |
1466 | (bfd_coff_have_print_pdata, bfd_coff_print_pdata): Define. | |
1467 | * bfd/peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add check on | |
1468 | bfd_coff_backend_data, call the function if non-null. | |
1469 | * pei-mcore.c: Add target dependent initialisation for | |
1470 | bfd_coff_backend_data. | |
1471 | * coff-sh.c: Likewise. | |
1472 | * coff64-rs6000.c: Likewise. | |
1473 | * coff-rs6000.c: Likewise. | |
1474 | * libcoff-in.h: Likewise. | |
1475 | * cf-i386lynx.c: Likewise. | |
1476 | * coff-alpha.c: Likewise. | |
1477 | * coff-apollo.c: Likewise. | |
1478 | * coff-arm.c: Likewise. | |
1479 | * coff-aux.c: Likewise. | |
1480 | * coff-h8300.c: Likewise. | |
1481 | * coff-h8500.c: Likewise. | |
1482 | * coff-i386.c: Likewise. | |
1483 | * coff-i860.c: Likewise. | |
1484 | * coff-i960.c: Likewise. | |
1485 | * coff-ia64.c: Likewise. | |
1486 | * coff-m68k.c: Likewise. | |
1487 | * coff-m88k.c: Likewise. | |
1488 | * coff-maxq.c: Likewise. | |
1489 | * coff-mips.c: Likewise. | |
1490 | * coff-or32.c: Likewise. | |
1491 | * coff-sparc.c: Likewise. | |
1492 | * coff-tic30.c: Likewise. | |
1493 | * coff-tic4x.c: Likewise. | |
1494 | * coff-tic54x.c: Likewise. | |
1495 | * coff-tic80.c: Likewise. | |
1496 | * coff-w65.c: Likewise. | |
1497 | * coff-we32k.c: Likewise. | |
1498 | * coff-x86_64.c: Likewise. | |
1499 | * coff-z80.c: Likewise. | |
1500 | * coff-z8k.c: Likewise. | |
1501 | * pe-mcore.c: Likewise. | |
1502 | * pe-mips.c: Likewise. | |
1503 | * pe-ppc.c: Likewise. | |
1504 | * peXXigen.c: Likewise. | |
dc1859a6 | 1505 | * pei-ppc.c: Likewise. |
2b5c217d NC |
1506 | * libcoff.h: Regenerate. |
1507 | ||
c96a8570 BS |
1508 | 2008-07-16 Bernd Schmidt <bernd.schmidt@analog.com> |
1509 | ||
1510 | * elf32-bfin.c (bfin_check_relocs, bfin_relocate_section, | |
1511 | bfin_final_link_relocate, bfin_gc_mark_hook, bfin_gc_sweep_hook, | |
1512 | ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE, | |
1513 | struct _bfinfdpic_dynamic_got_info): Moved around to keep FD-PIC code | |
1514 | separate from non-FD-PIC. | |
1515 | ||
605d18d4 DD |
1516 | 2008-07-14 DJ Delorie <dj@redhat.com> |
1517 | ||
1518 | * elf-m10300.c (mn10300_elf_final_link_relocate): Correct overflow | |
1519 | checks for PCREL8, PCREL16, GOTPC16, GOTOFF16, PLT16, and GOT16 | |
1520 | relocs. | |
1521 | (mn10300_elf_relax_section): Correct jump offset check when target | |
1522 | is in a different section. | |
1523 | ||
b0a0b978 JZ |
1524 | 2008-07-15 Jie Zhang <jie.zhang@analog.com> |
1525 | ||
1526 | * elf32-bfin.c (elf32_bfin_special_sections[]): New. | |
1527 | (elf_backend_special_sections): Define. | |
1528 | ||
aaf30c25 CS |
1529 | 2008-07-13 Craig Silverstein <csilvers@google.com> |
1530 | ||
08b78292 | 1531 | PR binutils/6743 |
aaf30c25 CS |
1532 | * dwarf2.c (struct dwarf2_debug): New variable info_ptr_memory. |
1533 | (find_line): Use info_ptr_memory instead of sec_info_ptr. | |
1534 | (_bfd_dwarf2_cleanup_debug_info): Likewise. | |
1535 | ||
1bac266e JZ |
1536 | 2008-07-12 Jie Zhang <jie.zhang@analog.com> |
1537 | ||
1538 | Revert | |
1539 | 2008-07-12 Jie Zhang <jie.zhang@analog.com> | |
1540 | * elf.c (_bfd_elf_map_sections_to_segments): Don't put | |
1541 | executable sections into the same segment with other | |
1542 | read only sections if --sep-code. | |
1543 | * elf32-bfin.c (elf32_bfin_code_in_l1): New variable. | |
1544 | (elf32_bfin_data_in_l1): New variable. | |
1545 | (elf32_bfin_final_write_processing): New. | |
1546 | (elf32_bfin_special_sections[]): New. | |
1547 | (elf_backend_final_write_processing): Define. | |
1548 | (elf_backend_special_sections): Define. | |
1549 | ||
8c684578 JZ |
1550 | 2008-07-12 Jie Zhang <jie.zhang@analog.com> |
1551 | ||
1552 | * elf.c (_bfd_elf_map_sections_to_segments): Don't put | |
1553 | executable sections into the same segment with other | |
1554 | read only sections if --sep-code. | |
1555 | * elf32-bfin.c (elf32_bfin_code_in_l1): New variable. | |
1556 | (elf32_bfin_data_in_l1): New variable. | |
1557 | (elf32_bfin_final_write_processing): New. | |
1558 | (elf32_bfin_special_sections[]): New. | |
1559 | (elf_backend_final_write_processing): Define. | |
1560 | (elf_backend_special_sections): Define. | |
1561 | ||
3076cd1f AS |
1562 | 2008-07-11 Andreas Schwab <schwab@suse.de> |
1563 | ||
1564 | * dwarf2.c (read_section): Take pointer to bfd_size_type instead | |
1565 | of unsigned long as last parameter. | |
1566 | (struct dwarf2_debug): Define dwarf_abbrev_size, dwarf_line_size, | |
1567 | dwarf_str_size and dwarf_ranges_size as bfd_size_type instead of | |
1568 | unsigned long. | |
1569 | ||
0a61c8c2 RS |
1570 | 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com> |
1571 | ||
1572 | * elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0 | |
1573 | for all relocation types. Allow any type of relocation to refer to | |
1574 | __gnu_local_gp. | |
1575 | ||
30c09090 RS |
1576 | 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com> |
1577 | ||
1578 | * elfxx-mips.c (mips_elf_check_mips16_stubs): Use ELF_ST_IS_MIPS16. | |
1579 | (mips_elf_calculate_relocation): Likewise. | |
1580 | (_bfd_mips_elf_add_symbol_hook): Likewise. | |
1581 | (_bfd_mips_elf_finish_dynamic_symbol): Likewise. | |
1582 | (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
1583 | ||
355d10dc AS |
1584 | 2008-07-10 Andreas Schwab <schwab@suse.de> |
1585 | ||
1586 | * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Add missing | |
1587 | paren. | |
1588 | ||
1b315056 CS |
1589 | 2008-07-09 Craig Silverstein <csilvers@google.com> |
1590 | ||
1591 | * Makefile.am (BFD32_LIBS): Add compress.lo. | |
1592 | (BFD32_LIBS_CFILES): Add compress.c. | |
1593 | (BFD_H_FILES): Likewise. | |
1594 | * Makefile.in: Regenerate. | |
1595 | * bfd-in2.h: Regenerate. | |
1596 | * config.in: Add HAVE_ZLIB_H | |
1597 | * configure.in: Add test for libz and zlib.h | |
1598 | * configure: Regenerate. | |
1599 | * dwarf2.c (read_section): New function. | |
1600 | (read_indirect_string): Call new function read_section. | |
1601 | (read_abbrevs): Likewise. | |
1602 | (decode_line_info): Likewise. | |
1603 | (read_debug_ranges): Likewise. | |
1604 | (find_line): Call new function read_section when just one | |
1605 | .zdebug_info section is found, otherwise read and compress | |
1606 | multiple sections. | |
1607 | (_bfd_dwarf2_cleanup_debug_info): Free sec_info_ptr. | |
1608 | * elf.c (_bfd_elf_make_section_from_shdr): Add zdebug prefix. | |
1609 | (special_sections_z): New struct. | |
1610 | (special_sections): Refer to special_sections_z. | |
1611 | * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Recognize | |
1612 | sections named .zdebug_*. | |
1613 | (_bfd_mips_elf_fake_sections): Likewise. | |
1614 | * compress.c: New file. | |
1615 | (bfd_uncompress_section_contents): New function. | |
dc1859a6 | 1616 | |
329dcd78 NC |
1617 | 2008-07-07 Christophe Lyon <christophe.lyon@st.com> |
1618 | ||
1619 | * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in | |
1620 | the presence of a PLT. | |
1621 | ||
c29aae59 AM |
1622 | 2008-07-07 Alan Modra <amodra@bigpond.net.au> |
1623 | ||
1624 | * bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char. | |
1625 | ||
7382d32a AM |
1626 | 2008-07-02 Alan Modra <amodra@bigpond.net.au> |
1627 | ||
1628 | * elf32-ppc.c (is_pic_glink_stub): New function. | |
1629 | (ppc_elf_get_synthetic_symtab): Don't generate symbols when | |
1630 | multiple shared/pie stubs per plt entry. | |
1631 | ||
cb53bf42 RS |
1632 | 2008-06-30 Richard Sandiford <rdsandiford@googlemail.com> |
1633 | ||
1634 | * elf.c (_bfd_elf_get_synthetic_symtab): Increment p by | |
1635 | bed->s->int_rels_per_ext_rel. | |
1636 | ||
6ba2a415 RS |
1637 | 2008-06-30 Richard Sandiford <rdsandiford@googlemail.com> |
1638 | ||
1639 | * syms.c (BSF_SYNTHETIC): New flag. | |
1640 | * elf.c (_bfd_elf_get_synthetic_symtab): Set it. | |
1641 | * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Likewise. | |
1642 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise. | |
1643 | * bfd-in.h (bfd_asymbol_flavour): Return bfd_target_unknown_flavour | |
1644 | for synthetic symbols. | |
1645 | * bfd-in2.h: Regenerate. | |
1646 | ||
3dccd7b7 DJ |
1647 | 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com> |
1648 | ||
1649 | * elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue): | |
1650 | Expand comments. | |
1651 | (arm_map_one_stub): Use | 1 when setting the low bit. | |
1652 | ||
f57718b4 AS |
1653 | 2008-06-29 Andreas Schwab <schwab@suse.de> |
1654 | ||
1655 | * elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing | |
1656 | addend on _GLOBAL_OFFSET_TABLE_. | |
1657 | ||
7413f23f DJ |
1658 | 2008-06-24 Daniel Jacobowitz <dan@codesourcery.com> |
1659 | ||
1660 | * elf32-arm.c (STUB_ENTRY_NAME): Define. | |
1661 | (arm_thumb_thumb_long_branch_stub): Use bx instead of b.n. | |
1662 | (arm_pic_long_branch_stub): Mention R_ARM_REL32 instead of | |
1663 | R_ARM_ABS32. | |
1664 | (struct elf32_arm_stub_hash_entry): Add output_name. | |
1665 | (arm_build_one_stub): Move offsets into the offset argument | |
1666 | of _bfd_final_link_relocate. Correct offset for | |
1667 | arm_thumb_arm_v4t_stub_long_branch. | |
1668 | (elf32_arm_size_stubs): Set stub_entry->output_name. | |
1669 | (elf32_arm_ouput_plt_map_sym): Rename to elf32_arm_output_map_sym. | |
1670 | Update all callers. | |
1671 | (elf32_arm_output_stub_sym): New. | |
1672 | (arm_map_one_stub): Correct formatting. Use elf32_arm_output_stub_sym. | |
1673 | ||
7c39fb20 AM |
1674 | 2008-06-20 Alan Modra <amodra@bigpond.net.au> |
1675 | ||
1676 | * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for | |
1677 | non-branch insns. | |
1678 | ||
f3c29e8a AM |
1679 | 2008-06-20 Alan Modra <amodra@bigpond.net.au> |
1680 | ||
1681 | * elf32-spu.c (build_stub): Allow wraparound on stub branches. | |
1682 | (allocate_spuear_stubs, build_spuear_stubs): Return value from | |
1683 | count_stub/build_stub. | |
1684 | (spu_elf_build_stubs): Correct location of stub reloc error message. | |
1685 | ||
de73c611 SR |
1686 | 2008-06-18 M R Swami Reddy <MR.Swami.Reddy@nsc.com> |
1687 | ||
dc1859a6 | 1688 | * elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD. |
de73c611 | 1689 | |
7a283e07 RW |
1690 | 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
1691 | ||
1692 | * configure: Regenerate. | |
1693 | ||
99302af9 AM |
1694 | 2008-06-17 Alan Modra <amodra@bigpond.net.au> |
1695 | ||
1696 | * elf32-spu.c (struct spu_link_hash_table): Add extra_stack_space. | |
1697 | (spu_elf_check_vma): Add extra_stack_space param, copy to htab. | |
1698 | (spu_elf_auto_overlay): Use it. | |
1699 | (RECURSE_UNMARK): Define as 0. | |
1700 | (unmark_overlay_section): Heed RECURSE_UNMARK. | |
1701 | * elf32-spu.h (spu_elf_check_vma): Update prototype. | |
1702 | ||
ff7eeb89 DD |
1703 | 2008-06-12 DJ Delorie <dj@redhat.com> |
1704 | ||
1705 | * elf32-m32c.c (ELF_MACHINE_ALT1): Define as EM_M32C_OLD. | |
1706 | ||
c13bb2ea PB |
1707 | 2008-06-09 Paul Brook <paul@codesourcery.com> |
1708 | ||
1709 | bfd/ | |
1710 | * elf32-arm.c (elf32_arm_merge_private_bfd_data): Allow BE8 shared | |
1711 | libraries. | |
1712 | ||
f4ac8484 DJ |
1713 | 2008-06-09 Christophe Lyon <christophe.lyon@st.com> |
1714 | ||
1715 | * elf32-arm.c (arm_stub_is_thumb): Define. | |
1716 | (elf32_arm_final_link_relocate): Handle near mode switching stubs. | |
1717 | ||
6a267715 AM |
1718 | 2008-06-07 Alan Modra <amodra@bigpond.net.au> |
1719 | ||
1720 | * elf32-spu.c (spu_elf_auto_overlay): Add valid area below sp | |
1721 | to stack calculation. | |
1722 | ||
23684067 PB |
1723 | 2008-06-06 Paul Brook <paul@codesourcery.com> |
1724 | ||
1725 | bfd/ | |
1726 | * elf32-arm.c (elf32_arm_merge_private_bfd_data): Reject BE8 input. | |
1727 | ||
97407faf AM |
1728 | 2008-06-06 Alan Modra <amodra@bigpond.net.au> |
1729 | ||
1730 | * elf32-spu.c (spu_elf_auto_overlay): Relax requirement that | |
1731 | file names be unique. Specify archive:path in overlay script. | |
1732 | ||
7cfbafbc AM |
1733 | 2008-06-05 Alan Modra <amodra@bigpond.net.au> |
1734 | ||
1735 | PR ld/6590 | |
1736 | * elf64-ppc.c (ppc_build_one_stub): Correct reloc offsets. | |
1737 | ||
0f0a5e58 AM |
1738 | 2008-06-04 Alan Modra <amodra@bigpond.net.au> |
1739 | ||
1740 | * elf.c (ignore_section_sym): Don't test section sym value here. | |
1741 | (elf_map_symbols): Instead check zero value here as was done prior | |
1742 | to 2006-05-26 change. | |
1743 | ||
696b7ad2 NC |
1744 | 2008-06-04 Nick Clifton <nickc@redhat.com> |
1745 | ||
1746 | PR ld/6019 | |
1747 | * elf32-avr.c (elf32_avr_relax_section): Handle the case where | |
1748 | there are no local symbols. | |
1749 | ||
1f27ab8d AM |
1750 | 2008-06-04 Alan Modra <amodra@bigpond.net.au> |
1751 | ||
1752 | * elf32-spu.c (get_sym_h): Don't attempt to read global syms. | |
1753 | (process_stubs): Likewise. | |
1754 | (discover_functions): Don't used cached symbols. | |
1755 | (maybe_insert_function): Correct condition under which function | |
1756 | array is realloc'd. | |
1757 | (mark_functions_via_relocs): Delete unused variable. | |
1758 | ||
adfef0bd NC |
1759 | 2008-05-30 Frediano Ziglio <frediano.ziglio@vodafone.com> |
1760 | Nick Clifton <nickc@redhat.com> | |
1761 | ||
1762 | PR ld/6511 | |
1763 | * elf64-hppa.c (allocate_global_data_opd): Default to using the | |
1764 | dynamic symbol table for local function names in shared libraries. | |
1765 | ||
11701589 JK |
1766 | 2008-05-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
1767 | ||
1768 | * elf.c (assign_file_positions_for_load_sections): Adjust pre-section | |
1769 | gaps based on VMA and P_VADDR instead of LMA and P_PADDR addresses. | |
1770 | ||
124b52c6 AM |
1771 | 2008-05-28 Alan Modra <amodra@bigpond.net.au> |
1772 | ||
1773 | * elf32-spu.c (spu_elf_object_p): New function. | |
1774 | (elf_backend_object_p): Define. | |
1775 | (build_stub): Correct second word of 8 byte overlay stubs. | |
1776 | (spu_elf_relocate_section): Formatting. | |
1777 | ||
bb864ac1 CES |
1778 | 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> |
1779 | ||
1780 | * elf.c (elfcore_write_register_note): New function. | |
1781 | * elf-bfd.h (elfcore_write_register_note): New prototype. | |
1782 | ||
da5938a2 NC |
1783 | 2008-05-22 Christophe Lyon <christophe.lyon@st.com> |
1784 | ||
1785 | * elf32-arm.c (arm_type_of_stub): Ignore STT_SECTION symbols. | |
1786 | (elf32_arm_stub_add_mapping_symbol): Remove. | |
1787 | (elf32_arm_add_stub): Don't generate mapping symbols. Change | |
1788 | prototype. | |
1789 | (elf32_arm_size_stubs): Use new elf32_arm_add_stub | |
1790 | prototype. Don't generate thumb to arm glue for calls. | |
1791 | (arm_map_one_stub): Define. | |
1792 | (elf32_arm_output_arch_local_syms): Generate mapping symbols for | |
1793 | long calls stubs. | |
dc1859a6 | 1794 | |
c2f950c8 L |
1795 | 2008-05-21 Nick Clifton <nickc@redhat.com> |
1796 | ||
1797 | * elf32-arm.c (group_sections): Reformat comments. | |
1798 | ||
1799 | PR ld/6446 | |
1800 | * elf32-frv.c (elf32_frv_relocate_section): Set EF_FRV_PIC by | |
1801 | default (for FDPIC). Clear it if any inter-segment relocations | |
1802 | are found. | |
1803 | ||
1804 | * elf64-hppa.c (elf64_hppa_finalize_opd): Check NULL return | |
1805 | from elf_link_hash_lookup. | |
1806 | ||
7fb9f789 | 1807 | 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com> |
dc1859a6 | 1808 | |
7fb9f789 NC |
1809 | Add multi-GOT support for m68k. |
1810 | * elf32-m68k.c (struct elf_m68k_link_hash_entry: got_entry_key, | |
1811 | glist): New fields. | |
1812 | (struct elf_m68k_got_entry_key, struct elf_m68k_got_entry, | |
1813 | struct elf_m68k_got, struct elf_m68k_bfd2got_entry, | |
1814 | struct elf_m68k_multi_got): New data structures. | |
1815 | (struct elf_m68k_link_hash_table: local_gp_p, use_neg_got_offsets_p, | |
1816 | allow_multigot_p, multi_got_): New fields. | |
1817 | (elf_m68k_multi_got): New macro. | |
1818 | (elf_m68k_link_hash_newfunc): Initialize new fields of | |
1819 | struct elf_m68k_link_hash_entry. | |
1820 | (elf_m68k_link_hash_table_create): Initialize new fields of | |
1821 | struct elf_m68k_link_hash_table. | |
1822 | (elf_m68k_link_hash_table_free): New static function implementing hook. | |
1823 | (elf_m68k_init_got, elf_m68k_clear_got, elf_m68k_create_empty_got): New | |
dc1859a6 | 1824 | static functions for struct elf_m68k_got. |
7fb9f789 NC |
1825 | (elf_m68k_init_got_entry_key, elf_m68k_got_entry_hash, |
1826 | elf_m68k_got_entry_eq): New static functions for | |
1827 | struct elf_m68k_got_entry. | |
1828 | (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT, | |
1829 | ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): New macros. | |
1830 | (enum elf_m68k_get_entry_howto): New enum. | |
1831 | (elf_m68k_get_got_entry, elf_m68k_update_got_entry_type, | |
1832 | elf_m68k_remove_got_entry_type): New static functions for | |
1833 | struct elf_m68k_got_entry. | |
1834 | (elf_m68k_add_entry_to_got): New static function. | |
1835 | (elf_m68k_bfd2got_entry_hash, elf_m68k_bfd2got_entry_eq, | |
1836 | elf_m68k_bfd2got_entry_del, elf_m68k_get_bfd2got_entry): New static | |
1837 | functions for struct elf_m68k_bfd2got_entry. | |
1838 | (struct elf_m68k_can_merge_gots_arg, elf_m68k_can_merge_gots_1, | |
1839 | elf_m68k_can_merge_gots): New traversal. | |
1840 | (struct elf_m68k_merge_gots_arg, elf_m68k_merge_gots_1, | |
1841 | elf_m68k_merge_gots): Ditto. | |
1842 | (struct elf_m68k_finalize_got_offsets_arg, | |
1843 | elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Ditto. | |
1844 | (struct elf_m68k_partition_multi_got_arg, | |
1845 | elf_m68k_partition_multi_got_1, elf_m68k_init_symndx2h_1, | |
1846 | elf_m68k_partition_multi_got): Ditto. | |
1847 | (elf_m68k_find_got_entry_ptr, elf_m68k_remove_got_entry): New static | |
1848 | functions. | |
1849 | (elf_m68k_copy_indirect_symbol): New static function implementing | |
1850 | a hook. | |
1851 | (elf_m68k_check_relocs): Update to add entries to multi-GOT. | |
1852 | (elf_m68k_gc_sweep_hook): Update to remove entries from multi-GOT. | |
1853 | (elf_m68k_always_size_sections): Assign BFDs to GOTs. | |
1854 | (elf_m68k_relocate_section): Update to properly handle GOT relocations. | |
1855 | (elf_m68k_finish_dynamic_symbol): Update to traverse all GOT entries | |
1856 | of a global symbol. | |
1857 | (bfd_elf_m68k_set_target_options): New function. | |
1858 | (bfd_elf32_bfd_link_hash_table_free): Define hook. | |
1859 | (bfd_elf32_bfd_final_link): Change expansion to bfd_elf_final_link | |
1860 | to skip generic calculation of GOT offsets. | |
1861 | (elf_backend_copy_indirect_symbol): Define hook. | |
1862 | * bfd-in.h (bfd_elf_m68k_set_target_options): Declare function. | |
1863 | * bfd-in2.h: Regenerate. | |
1864 | ||
46f2f11d | 1865 | 2008-05-21 André Johansen <andrejoh@gmail.com> |
90b5b1a5 NC |
1866 | |
1867 | PR 868 | |
1868 | * dwarf2.c (_bfd_dwarf2_cleanup_debug_info): Free memory allocated | |
1869 | for filenames in function tables and variable tables. | |
1870 | ||
6ffd7900 AM |
1871 | 2008-05-19 Alan Modra <amodra@bigpond.net.au> |
1872 | ||
1873 | PR 2995, PR 6473 | |
1874 | * elf.c (_bfd_elf_make_section_from_shdr): Leave lma equal to | |
1875 | vma when all p_paddr fields are zero and there is more than | |
1876 | one PT_LOAD header. | |
1877 | ||
906e58ca NC |
1878 | 2008-05-15 Christophe Lyon <christophe.lyon@st.com> |
1879 | ||
1880 | Add long call support for ARM. | |
1881 | * elf32-arm.c (THM2_MAX_FWD_BRANCH_OFFSET): Define. | |
1882 | (THM2_MAX_BWD_BRANCH_OFFSET): Define. | |
1883 | (ARM_MAX_FWD_BRANCH_OFFSET): Define. | |
1884 | (ARM_MAX_BWD_BRANCH_OFFSET): Define. | |
1885 | (THM_MAX_FWD_BRANCH_OFFSET): Define. | |
1886 | (THM_MAX_BWD_BRANCH_OFFSET): Define. | |
1887 | (arm_long_branch_stub): Define. | |
1888 | (arm_pic_long_branch_stub): Define. | |
1889 | (arm_thumb_v4t_long_branch_stub): Define. | |
1890 | (arm_thumb_thumb_long_branch_stub): Define. | |
1891 | (arm_thumb_arm_v4t_long_branch_stub): Define. | |
1892 | (STUB_SUFFIX): Define. | |
1893 | (elf32_arm_stub_type): Define. | |
1894 | (elf32_arm_stub_hash_entry): Define. | |
1895 | (elf32_arm_link_hash_entry): Add stub_cache field. | |
1896 | (arm_stub_hash_lookup): Define. | |
1897 | (elf32_arm_link_hash_table): Add stub_hash_table, stub_bfd, | |
1898 | add_stub_section, layout_sections_again, stub_group, bfd_count, | |
1899 | top_index, input_list fields. | |
1900 | (elf32_arm_link_hash_newfunc): Init new field. | |
1901 | (stub_hash_newfunc): New function. | |
1902 | (elf32_arm_link_hash_table_create): Init stub_hash_table. | |
1903 | (elf32_arm_hash_table_free): New function. | |
1904 | (arm_type_of_stub): New function. | |
1905 | (elf32_arm_stub_name): New function. | |
1906 | (elf32_arm_get_stub_entry): New function. | |
1907 | (elf32_arm_stub_add_mapping_symbol): New function. | |
1908 | (elf32_arm_add_stub): New function. | |
1909 | (arm_build_one_stub): New function. | |
1910 | (arm_size_one_stub): New function. | |
1911 | (elf32_arm_setup_section_lists): New function. | |
1912 | (elf32_arm_next_input_section): New function. | |
1913 | (group_sections): New function. | |
1914 | (elf32_arm_size_stubs): New function. | |
1915 | (elf32_arm_build_stubs): New function. | |
1916 | (bfd_elf32_arm_add_glue_sections_to_bfd): Skip stub sections. | |
1917 | (bfd_elf32_arm_process_before_allocation): No longer handle | |
1918 | R_ARM_CALL and R_ARM_THM_CALL. | |
1919 | (using_thumb_only): New function. | |
1920 | (elf32_arm_final_link_relocate): Redirect calls to stub if range | |
1921 | exceeds encoding capabilities. | |
1922 | (bfd_elf32_bfd_link_hash_table_free): Define. | |
1923 | * bfd-in.h (R_ARM_max): Fix value to 130. | |
1924 | (elf32_arm_setup_section_lists): Protype. | |
1925 | (elf32_arm_next_input_section): Protype. | |
1926 | (elf32_arm_size_stubs): Protype. | |
1927 | (elf32_arm_build_stubs): Protype. | |
1928 | * bfd-in2.h: Regenerate. | |
1929 | ||
86a4952b UW |
1930 | 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
1931 | ||
1932 | * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Fix memset calls. | |
1933 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise. | |
1934 | ||
8944f3c2 AM |
1935 | 2008-05-14 Alan Modra <amodra@bigpond.net.au> |
1936 | ||
1937 | * Makefile.am: Run "make dep-am". | |
1938 | * Makefile.in: Regenerate. | |
1939 | ||
468392fb AM |
1940 | 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
1941 | Alan Modra <amodra@bigpond.net.au> | |
1942 | ||
1943 | * elf32-ppc.c (section_covers_vma): New function. | |
1944 | (ppc_elf_get_synthetic_symtab): New function. | |
1945 | (bfd_elf32_get_synthetic_symtab): Define. | |
1946 | * elf64-ppc.c (section_covers_vma): New function. | |
1947 | (ppc64_elf_get_synthetic_symtab): Generate sym@plt on glink branch | |
1948 | table entries, and __glink_PLTresolve on resolver stub. | |
1949 | (ppc64_elf_build_stubs): Rename __glink sym to __glink_PLTresolve. | |
1950 | ||
1d483afe AM |
1951 | 2008-05-12 Alan Modra <amodra@bigpond.net.au> |
1952 | ||
1953 | PR 6443 | |
1954 | * elf32-ppc.c (MUST_BE_DYN_RELOC): Delete. | |
1955 | (must_be_dyn_reloc): New function. | |
1956 | (ppc_elf_check_relocs): Don't set DF_STATIC_TLS for tprel relocs | |
1957 | in pies. | |
1958 | (ppc_elf_tls_optimize): Optimise pies. | |
1959 | (ppc_elf_relocate_section): Use a section symbol rather than no | |
1960 | symbol if possible for LD->IE TLS sequence, but don't error if | |
1961 | we must use no symbol. | |
1962 | * elf64-ppc.c (MUST_BE_DYN_RELOC): As for elf32-ppc.c. | |
1963 | (must_be_dyn_reloc): Likewise. | |
1964 | (ppc64_elf_check_relocs): Likewise. | |
1965 | (ppc64_elf_tls_optimize): Likewise. | |
1966 | (ppc64_elf_relocate_section): Likewise. | |
1967 | ||
cc5ca406 AM |
1968 | 2008-05-12 Alan Modra <amodra@bigpond.net.au> |
1969 | ||
1970 | * elf32-spu.c (spu_elf_relocate_section): Rename is_ea to is_ea_sym. | |
1971 | ||
536d0ff4 AM |
1972 | 2008-05-10 Paul Pluzhnikov <ppluzhnikov@google.com> |
1973 | ||
1974 | * elfcore.h (elf_core_file_p): Warn about core truncation. | |
1975 | ||
51c8ebc1 BW |
1976 | 2008-05-07 Bob Wilson <bob.wilson@acm.org> |
1977 | ||
1978 | * elf32-xtensa.c (xtensa_property_section_name): New. | |
1979 | (xtensa_make_property_section): New. | |
1980 | (xtensa_get_property_section): Make static. Do not create a new | |
1981 | section if it does not exist. | |
1982 | ||
8374f9d4 AM |
1983 | 2008-05-08 Alan Modra <amodra@bigpond.net.au> |
1984 | ||
1985 | * elf32-spu.c (spu_elf_special_sections): Add "._ea". | |
1986 | (spu_elf_relocate_section): Handle relocations against symbols | |
1987 | defined in ._ea specially. | |
1988 | ||
95720a86 DJ |
1989 | 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com> |
1990 | ||
1991 | * elf32-arm.c (elf32_arm_symbian_link_hash_table_create): Use | |
1992 | ARRAY_SIZE. | |
1993 | (elf32_arm_symbian_plt_sym_val): New. | |
1994 | (elf_backend_plt_sym_val): Define. | |
1995 | ||
5c44b38e AM |
1996 | 2008-05-03 Alan Modra <amodra@bigpond.net.au> |
1997 | ||
1998 | PR 2995, PR 6473 | |
1999 | * elf.c (rewrite_elf_program_header): Rather than clearing | |
2000 | p_paddr_valid at end, don't set it in the first place. Delete | |
2001 | comment no longer relevant. When not p_paddr_valid, don't set | |
2002 | paddr from vaddr, and don't set p_vaddr_offset. | |
2003 | ||
3471d59d CC |
2004 | 2008-05-01 Cary Coutant <ccoutant@google.com> |
2005 | ||
2006 | * elf.c (bfd_elf_get_str_section): Fix memory leak caused by | |
2007 | corrupt string table. | |
2008 | ||
f12a02c0 JB |
2009 | 2008-05-01 Joel Brobecker <brobecker@adacore.com> |
2010 | ||
2011 | * cache.c (cache_bread_1): Renames cache_bread. | |
2012 | (cache_bread): New function. | |
2013 | ||
88967714 AM |
2014 | 2008-05-01 Alan Modra <amodra@bigpond.net.au> |
2015 | ||
2016 | PR 2995, PR 6473 | |
2017 | * elf.c (_bfd_elf_make_section_from_shdr): Always set lma from p_paddr. | |
2018 | (assign_file_positions_for_load_sections): Combine nested "if". | |
2019 | (copy_elf_program_header): Don't set p_paddr_valid or p_vaddr_offset | |
2020 | when all header p_paddr fields are zero. | |
2021 | ||
9239aded AM |
2022 | 2008-04-30 Edmar Wienskoski <edmar@freescale.com> |
2023 | ||
2024 | * cpu-powerpc.c (bfd_powerpc_archs): Add e500mc entry. | |
2025 | ||
266b05cf DJ |
2026 | 2008-04-29 Daniel Jacobowitz <dan@codesourcery.com> |
2027 | ||
2028 | * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound) | |
2029 | (_bfd_elf_canonicalize_dynamic_reloc): Find dynamic relocations | |
2030 | even if they are not loaded. | |
2031 | * elflink.c (_bfd_elf_init_2_index_sections): Set data_index_section | |
2032 | first. | |
2033 | ||
fc2db3b8 NC |
2034 | 2008-04-25 Jay Foad <jay.foad@gmail.com> |
2035 | ||
2036 | * reloc16.c (bfd_coff_reloc16_get_value): Add support for | |
2037 | undefined weak symbols. | |
2038 | ||
ddeca468 NC |
2039 | 2008-04-25 Nick Clifton <nickc@redhat.com> |
2040 | ||
2041 | * po/vi.po: Updated Vietnamese translation. | |
2042 | ||
6194aaab L |
2043 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
2044 | ||
2045 | * aclocal.m4: Regenerate. | |
2046 | * configure: Regenerate. | |
2047 | ||
38d6ea5b CC |
2048 | 2008-04-21 Cary Coutant <ccoutant@google.com> |
2049 | ||
2050 | * archive.c (_bfd_write_archive_contents): Fix incorrect use of | |
2051 | ARFMAG. | |
2052 | ||
131eb6b7 NS |
2053 | 2008-04-21 Nathan Sidwell <nathan@codesourcery.com> |
2054 | ||
2055 | * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Don't | |
2056 | set the value of undefined symbols in shared objects. | |
2057 | (_bfd_mips_vxworks_finish_dynamic_symbol): Clear value for | |
2058 | undefined symbols unless pointer equality is needed. | |
2059 | ||
e0c88096 NC |
2060 | 2008-04-18 Dennis Roberts <dennis.roberts@sunquestinfo.com> |
2061 | ||
2062 | * aix5ppc-core.c: Define macros for the default architecture and | |
2063 | machine for matching core files. | |
2064 | (xcoff64_core_p): Set the architecture and machine to the default | |
2065 | values defined in the macros mentioned above. | |
2066 | * rs6000-core.c: Define macros to determine whether or not the | |
2067 | core file header uses the core_dumpxx header format. | |
2068 | (rs6000coff_core_p): Don't match core files that use the | |
2069 | core_dumpxx header format. | |
2070 | ||
18c1668c PA |
2071 | 2008-04-16 Pedro Alves <pedro@codesourcery.com> |
2072 | ||
2073 | * config.bfd (i[3-7]86-*-dicos*, x86_64-*-dicos*): Add. | |
2074 | ||
739f7f82 DM |
2075 | 2008-04-16 David S. Miller <davem@davemloft.net> |
2076 | ||
2077 | * reloc.c (BFD_RELOC_SPARC_GOTDATA_HIX22, | |
2078 | BFD_RELOC_SPARC_GOTDATA_LOX10, BFD_RELOC_SPARC_GOTDATA_OP_HIX22, | |
2079 | BFD_RELOC_SPARC_GOTDATA_OP_LOX10, BFD_RELOC_SPARC_GOTDATA_OP): New. | |
2080 | * libbfd.h: Regnerate. | |
2081 | * bfd-in2.h: Regenerate. | |
2082 | * elfxx-sparc.c (_bfd_sparc_elf_howto_table): Add entries for | |
2083 | GOTDATA relocations. | |
2084 | (sparc_reloc_map): Likewise. | |
2085 | (_bfd_sparc_elf_check_relocs): Handle R_SPARC_GOTDATA_* like | |
2086 | R_SPARC_GOT*. | |
2087 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
2088 | (_bfd_sparc_elf_relocate_section): Transform R_SPARC_GOTDATA_HIX22, | |
2089 | R_SPARC_GOTDATA_LOX10, R_SPARC_GOTDATA_OP_HIX22, and | |
2090 | R_SPARC_GOTDATA_OP_LOX10 into the equivalent R_SPARC_GOT* reloc. | |
2091 | Simply ignore R_SPARC_GOTDATA_OP relocations. | |
2092 | ||
c5cb8442 TS |
2093 | 2008-04-14 Aurelien Jarno <aurelien@aurel32.net> |
2094 | ||
2095 | * configure.in: Link with the PIC version of libiberty on | |
2096 | Linux/MIPS hosts. | |
2097 | * configure: Regenerate. | |
2098 | ||
19a6653c AM |
2099 | 2008-04-14 Edmar Wienskoski <edmar@freescale.com> |
2100 | ||
2101 | * archures.c: Add bfd_mach_ppc_e500mc. | |
2102 | * bfd-in2.h: Regenerate. | |
2103 | ||
2ec9638b AM |
2104 | 2008-04-08 Alan Modra <amodra@bigpond.net.au> |
2105 | ||
2106 | * elf32-spu.c (spu_elf_build_stubs): Correct error message. | |
2107 | (mark_functions_via_relocs): Remove premature init of symtab_hdr. | |
2108 | (collect_overlays): Commment typo fix. | |
2109 | ||
a94b9d2d AM |
2110 | 2008-04-08 Kees Cook <kees@canonical.com> |
2111 | ||
2112 | * elflink.c (bfd_elf_size_dynamic_sections): Ignore GNU-stack note | |
2113 | in EXEC_P bfds. | |
2114 | ||
9dcc4794 AM |
2115 | 2008-04-08 Alan Modra <amodra@bigpond.net.au> |
2116 | ||
2117 | * elf32-spu.c: Include libiberty.h. | |
2118 | (struct spu_link_hash_table): Add local_stire, overlay_fixed, reserved, | |
2119 | non_ovly_stub, spu_elf_load_ovl_mgr, spu_elf_open_overlay_script, | |
2120 | spu_elf_relink, auto_overlay fields. | |
2121 | (AUTO_OVERLAY, AUTO_RELINK, OVERLAY_RODATA): Define. | |
2122 | (needs_ovl_stub): Flip test so that call to non-function warning | |
2123 | is emitted during relocate_section rather than earlier. | |
2124 | (spu_elf_check_vma): Stash --auto-overlay parameters, and clear | |
2125 | auto_overlay if no section exceeds local store. | |
2126 | (struct call_info): Add count, max_depth, is_pasted fields. | |
2127 | (struct function_info): Add rodata, last_caller, call_count, | |
2128 | depth, new visit flags. | |
2129 | (insert_callee): Increment call count. | |
2130 | (copy_callee): New function. | |
2131 | (mark_functions_via_relocs): Investigate all reloc types to count | |
2132 | possible function pointer stubs for --auto-overlay. Track | |
2133 | last_caller and increment function call_count. | |
2134 | (pasted_function): Insert a "call" into call info for pasted section. | |
2135 | (remove_cycles): Track max depth of calls. Don't emit call graph | |
2136 | pruning warning for --auto-overlay. | |
2137 | (build_call_tree): Don't transfer_calls for --auto-overlay. | |
2138 | Adjust remove_cycles call. | |
2139 | (sort_calls, sort_lib, sort_bfds): New functions. | |
2140 | (struct _mos_param, struct _uos_param, struct _cl_param): New. | |
2141 | (mark_overlay_section, unmark_overlay_section): New functions. | |
2142 | (collect_lib_sectios, auto_ovl_lib_functions): New functions. | |
2143 | (collect_overlays, find_pasted_call): New functions. | |
2144 | (sum_stack): Deal with is_pasted "calls". Exit before printing | |
2145 | when --auto-overlay. | |
2146 | (spu_elf_auto_overlay): New function. | |
2147 | (spu_elf_final_link): Call spu_elf_auto_overlay. | |
2148 | * elf32-spu.h (spu_elf_check_vma): Update prototype. | |
2149 | ||
380814a6 AM |
2150 | 2008-04-07 Alan Modra <amodra@bigpond.net.au> |
2151 | ||
2152 | * elf32-spu.c (allocate_spuear_stubs): Ensure _SPUEAR_ symbol | |
2153 | is defined in overlay section before creating a stub. | |
2154 | (build_spuear_stubs): Likewise. | |
2155 | (spu_elf_size_stubs, spu_elf_build_stubs): Adjust calls. | |
2156 | ||
055ed83b AM |
2157 | 2008-04-02 Alan Modra <amodra@bigpond.net.au> |
2158 | ||
2159 | * elf32-spu.c (insert_callee): Reorder call list so most recent | |
2160 | call is always first. | |
2161 | (interesting_section): Move. | |
2162 | (mark_functions_via_relocs): Fold interesting_section and | |
2163 | reloc_count tests in callers to here. Simplify output section | |
2164 | owner test. | |
2165 | (discover_functions): Set "gaps" when no symbols and some | |
2166 | "interesting_section". Run pasted_function loop for no symbol | |
2167 | bfds. | |
2168 | (for_each_node, transfer_calls): New functions. | |
2169 | (mark_non_root): Adjust to suit for_each_node. | |
2170 | (call_graph_traverse): Likewise. Fix memory leak. Rename to.. | |
2171 | (remove_cycles): ..this. | |
2172 | (build_call_tree): Use for_each_node and transfer_calls. | |
2173 | (struct _sum_stack_param): New. | |
2174 | (sum_stack): Adjust to suit for_each_node. Return error on | |
2175 | malloc failure. Move code to print root node cumulative stack from.. | |
2176 | (spu_elf_stack_analysis): ..here. Use for_each_node. | |
2177 | ||
89a58aeb AM |
2178 | 2008-03-31 Cary Coutant <ccoutant@google.com> |
2179 | ||
2180 | PR 6006 | |
2181 | * archive.c (_bfd_slurp_extended_name_table): Change | |
2182 | ARFMAG[0] to ARFMAG[1]. | |
2183 | (_bfd_construct_extended_name_table): Likewise. | |
2184 | ||
3a3b6725 DJ |
2185 | 2008-03-31 Daniel Jacobowitz <dan@codesourcery.com> |
2186 | ||
2187 | * elfxx-mips.c (mips_elf_record_got_page_entry): Update comment. | |
2188 | (_bfd_mips_elf_check_relocs): Update comments. Always call | |
2189 | mips_elf_record_got_page_entry for R_MIPS_GOT_PAGE. | |
2190 | ||
2191 | 2008-03-27 Cary Coutant <ccoutant@google.com> | |
a8da6403 | 2192 | |
89a58aeb | 2193 | Add support for thin archives. |
a8da6403 NC |
2194 | * archive.c (_bfd_find_nested_archive): New function. |
2195 | (get_extended_arelt_filename): Add origin parameter. | |
2196 | (_bfd_generic_read_ar_hdr_mag): Deal with extended name | |
2197 | combined with a file offset. | |
2198 | (append_relative_path): New function. | |
2199 | (_bfd_get_elt_at_filepos): Deal with external members and | |
2200 | nested archives. | |
2201 | (bfd_generic_openr_next_archived_file): Thin archives. | |
2202 | (bfd_generic_archive_p): Recognize new magic string. | |
2203 | (adjust_relative_path): New function. | |
2204 | (_bfd_construct_extended_name_table): Construct extended | |
2205 | names for thin archive members. | |
2206 | (_bfd_write_archive_contents): Emit new magic string, skip | |
2207 | copying files for thin archives. | |
2208 | * bfd-in.h (bfd_is_thin_archive): New macro. | |
2209 | * bfd.c (struct bfd): New fields for thin archives. | |
2210 | * libbfd-in.h (struct areltdata): New field for thin archives. | |
2211 | * opncls.c (bfd_close): Delete BFDs for nested archives. | |
2212 | ||
c35e54f4 BS |
2213 | 2008-03-25 Bernd Schmidt <bernd.schmidt@analog.com> |
2214 | ||
2215 | * elf32-bfin.c (bfin_final_link_relocate): New function, wrapper around | |
2216 | _bfd_final_link_relocate that also handles R_pcrel24 relocs. | |
2217 | (bfinfdpic_relocate_section, bfin_relocate_section): Use it. | |
2218 | ||
3348747a NS |
2219 | 2008-03-25 Nathan Sidwell <nathan@codesourcery.com> |
2220 | ||
2221 | * elf32-arm.c (elf32_arm_final_link_relocate): Skip dynamic relocs | |
2222 | in vxworks tls_vars sections. | |
2223 | (allocate_dynrelocs, elf32_arm_size_dynamic_sections): Likewise. | |
2224 | * elf32-i386.c (allocate_dynrelocs, | |
2225 | elf_i386_size_dynamic_sections, elf_i386_relocate_section): Likewise. | |
2226 | * elf32-ppc.c (allocate_dynrelocs, ppc_elf_size_dynamic_sections, | |
2227 | ppc_elf_relocate_section): Likewise. | |
2228 | * elf32-sh.c (allocate_dynrelocs, sh_elf_size_dynamic_sections, | |
2229 | sh_elf_relocate_section): Likewise. | |
2230 | * elfxx-sparc.c (allocate_dynrelocs, | |
2231 | _bfd_sparc_elf_size_dynamic_sections, | |
2232 | _bfd_sparc_elf_relocate_section): Likewise. | |
2233 | ||
a1f3c56e AN |
2234 | 2008-03-21 Adam Nemet <anemet@caviumnetworks.com> |
2235 | ||
2236 | * elf.c (_bfd_elf_print_private_bfd_data): Use bfd_fprintf_vma to | |
2237 | print the values from the dynamic section. | |
2238 | ||
51e38d68 RS |
2239 | 2008-03-20 Richard Sandiford <rsandifo@nildram.co.uk> |
2240 | ||
2241 | * elfxx-mips.c (MIPS_ELF_GNU_GOT1_MASK): New macro. | |
2242 | (_bfd_mips_elf_finish_dynamic_sections): Use it instead of 0x80000000. | |
2243 | ||
c65be8d7 AM |
2244 | 2008-03-20 Alan Modra <amodra@bigpond.net.au> |
2245 | ||
2246 | * elf32-spu.c (spu_elf_create_sections): Remove output_bfd parameter. | |
2247 | (spu_elf_find_overlays, spu_elf_size_stubs): Likewise | |
2248 | (process_stubs, discover_functions, build_call_tree): Likewise. | |
2249 | (spu_elf_stack_analysis): Likewise. | |
2250 | (spu_elf_check_vma): Likewise. Move. | |
2251 | (struct call_info): Make "is_tail" a bitfield. | |
2252 | (insert_callee): Clear fun->start and set fun->is_func if we find | |
2253 | a non-tail call. | |
2254 | * elf32-spu.h (spu_elf_create_sections): Update prototype. | |
2255 | (spu_elf_find_overlays, spu_elf_size_stubs, spu_elf_check_vma): Ditto. | |
2256 | ||
58c85be7 RW |
2257 | 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
2258 | ||
2259 | * aclocal.m4: Regenerate. | |
2260 | * configure: Likewise. | |
2261 | * Makefile.in: Likewise. | |
2262 | ||
41bed6dd L |
2263 | 2008-03-16 H.J. Lu <hongjiu.lu@intel.com> |
2264 | ||
2265 | PR ld/5789 | |
2266 | PR ld/5943 | |
2267 | * elf32-i386.c (elf_i386_relocate_section): Issue an error | |
2268 | for R_386_GOTOFF relocaton against undefined hidden/internal | |
2269 | symbols when building a shared object. | |
2270 | ||
2271 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Issue an | |
2272 | error for R_X86_64_PC8/R_X86_64_PC16/R_X86_64_PC32 | |
2273 | relocaton against undefined hidden/internal symbols when | |
2274 | building a shared object. | |
2275 | (elf64_x86_64_finish_dynamic_symbol): Return FALSE when symbol | |
2276 | is referenced locally, but isn't defined in a regular file. | |
2277 | ||
6ad2759d L |
2278 | 2008-03-15 H.J. Lu <hongjiu.lu@intel.com> |
2279 | ||
2280 | * bfd-in.h (BFD_NO_FLAGS, HAS_RELOC, EXEC_P, HAS_LINENO, | |
2281 | HAS_DEBUG, HAS_SYMS, HAS_LOCALS, DYNAMIC, WP_TEXT, D_PAGED, | |
2282 | BFD_IS_RELAXABLE, BFD_TRADITIONAL_FORMAT, BFD_IN_MEMORY, | |
2283 | HAS_LOAD_PAGE, BFD_LINKER_CREATED): Moved to ... | |
2284 | * bfd.c: Here. | |
2285 | ||
2286 | * bfd.c (bfd): Change cacheable, target_defaulted, opened_once, | |
2287 | mtime_set, no_export, output_has_begun and has_armap to bit | |
2288 | field. | |
2289 | ||
2290 | * bfd-in2.h: Regenerated. | |
2291 | ||
c04ea773 DJ |
2292 | 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com> |
2293 | ||
2294 | * cache.c (close_one): Remove mtime hack. | |
2295 | ||
0f2830ff L |
2296 | 2008-03-14 H.J. Lu <hongjiu.lu@intel.com> |
2297 | ||
2298 | PR ld/5913 | |
2299 | * elfxx-ia64.c (elfNN_ia64_tprel_base): Remove BFD_ASSERT. | |
2300 | (elfNN_ia64_dtprel_base): Likewise. | |
2301 | (elfNN_ia64_relocate_section): Go to missing_tls_sec if | |
2302 | tls_sec is NULL before calling elfNN_ia64_tprel_base or | |
2303 | elfNN_ia64_dtprel_base. Report unsupported TLS relocations. | |
2304 | ||
fdba2fcd AM |
2305 | 2008-03-14 Alan Modra <amodra@bigpond.net.au> |
2306 | ||
2307 | * elf32-spu.c (process_stubs, spu_elf_relocate_section): Move | |
2308 | common code to.. | |
2309 | (maybe_needs_stub): ..here, a new function that also omits stubs | |
2310 | for .eh_frame, and.. | |
2311 | (needs_ovl_stub): ..here. Create stubs for labels in code section | |
2312 | referenced by switch jump table. | |
2313 | (spu_elf_find_overlays): Set htab->ovly_load and htab->ovly_return. | |
2314 | (enum _insn_type): Delete. | |
2315 | (enum _stub_type): New. | |
2316 | (count_stub, build_stub): Adjust. | |
2317 | (allocate_spuear_stubs, build_spuear_stubs): Adjust. | |
2318 | ||
72de5009 AM |
2319 | 2008-03-13 Alan Modra <amodra@bigpond.net.au> |
2320 | ||
2321 | * elf.c (_bfd_elf_make_section_from_shdr): Remove unnecessary cast. | |
2322 | (_bfd_elf_assign_file_position_for_section): Simplify align. | |
2323 | (_bfd_elf_init_reloc_shdr): Ensure shift expression wide enough | |
2324 | for sh_addralign. | |
2325 | (elf_fake_sections, swap_out_syms): Likewise. | |
2326 | * elflink.c (bfd_elf_final_link): Likewise. | |
2327 | ||
50e7d84b AM |
2328 | 2008-03-13 Alan Modra <amodra@bigpond.net.au> |
2329 | ||
2330 | * Makefile.am: Run "make dep-am". | |
2331 | * Makefile.in: Regenerate. | |
2332 | * po/SRC-POTFILES.in: Regenerate. | |
2333 | ||
2774f1a6 BS |
2334 | 2008-03-12 Bernd Schmidt <bernd.schmidt@analog.com> |
2335 | ||
2336 | From Jie Zhang <jie.zhang@analog.com> | |
2337 | * elf32-bfin.c (struct bfinfdpic_relocs_info): Make got17m4, | |
2338 | gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4, fdgoffhilo, | |
2339 | gotoff, call and sym not bitfields. | |
2340 | (bfinfdpic_gc_sweep_hook): New function; update the relocation | |
2341 | information for the relocations of the section being removed. | |
2342 | (bfinfdpic_check_relocs): Accumulate the number of relocations | |
2343 | which set got17m4, gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4, | |
2344 | fdgoffhilo, gotoff, call and sym fields. | |
2345 | (elf_backend_gc_sweep_hook): Redefine for FD-PIC. | |
2346 | ||
4fbb74a6 AM |
2347 | 2008-03-12 Alan Modra <amodra@bigpond.net.au> |
2348 | ||
2349 | PR 5900 | |
2350 | * elf-bfd.h: Include elf/internal.h after elf/external.h. | |
2351 | * elfcode.h (elf_swap_symbol_in): Map reserved shndx range. | |
2352 | (elf_swap_symbol_out): Adjust SHN_XINDEX test. | |
2353 | (elf_swap_ehdr_out): Mask SHN_LORESERVE and SHN_XINDEX to values | |
2354 | seen in external structs. | |
2355 | (valid_section_index_p): Delete. | |
2356 | (elf_object_p): Don't increment section numbers over reserved range. | |
2357 | Simplify test for valid sh_link, sh_info and e_shstrndx fields. | |
2358 | (elf_write_shdrs_and_ehdr): Mask SHN_LORESERVE and SHN_XINDEX to values | |
2359 | seen in external structs. Don't increment section numbers over | |
2360 | reserved range. | |
2361 | * elf.c (bfd_elf_sym_name): Remove redundant tests on st_shndx. | |
2362 | (bfd_section_from_shdr): Likewise. | |
2363 | (group_signature): Range check before accessing elf_elfsections. | |
2364 | (_bfd_elf_setup_sections): Likewise. | |
2365 | (bfd_section_from_shdr): Likewise. | |
2366 | (bfd_section_from_shdr): Don't increment section number over | |
2367 | reserved sections. | |
2368 | (assign_file_positions_for_non_load_sections): Likewise. | |
2369 | (assign_file_positions_except_relocs): Likewise. | |
2370 | (_bfd_elf_write_object_contents): Likewise. | |
2371 | (assign_section_numbers): Likewise. Adjust for changed SHN_*. | |
2372 | (prep_headers): Delete unused variable. | |
2373 | * elflink.c (bfd_elf_link_record_local_dynamic_symbol): Adjust | |
2374 | for changed SHN_* values. | |
2375 | (check_dynsym, elf_link_input_bfd): Likewise. | |
2376 | (bfd_elf_final_link): Likewise. Don't skip over reserved section | |
2377 | range. | |
2378 | (elf_fixup_link_order): Check that sh_link field is valid. | |
2379 | * elf-hppa.h (elf_hppa_add_symbol_hook): Make "index" unsigned. | |
2380 | * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Range check before | |
2381 | accesssing elf_elfsections. | |
2382 | * elf32-avr.c (elf32_avr_size_stubs): Likewise. | |
2383 | * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. | |
2384 | * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Likewise. | |
2385 | * elf64-hppa.c (elf64_hppa_check_relocs): Adjust for changed | |
2386 | SHN_* defines. Test for SHN_BAD return from | |
2387 | _bfd_elf_section_from_bfd_section | |
2388 | ||
cb33740c AM |
2389 | 2008-03-12 Alan Modra <amodra@bigpond.net.au> |
2390 | ||
2391 | * elf-bfd.h (_bfd_elf_section_from_bfd_section): Update prototype. | |
2392 | * elf.c (_bfd_elf_section_from_bfd_section): Return unsigned int, | |
2393 | SHN_BAD on error. | |
2394 | (_bfd_elf_print_private_bfd_data): Test for SHN_BAD result from | |
2395 | _bfd_elf_section_from_bfd_section, not -1. | |
2396 | (swap_out_syms): Likewise. | |
2397 | * elflink.c (elf_link_add_object_symbols): Likewise. | |
2398 | (bfd_elf_get_bfd_needed_list): Likewise. | |
2399 | (bfd_elf_match_symbols_in_sections): Likewise. | |
2400 | (elf_link_add_object_symbols): Don't bother testing for symbols | |
2401 | using normal sections before calling bfd_section_from_elf_index. | |
2402 | (elf_link_input_bfd, bfd_elf_final_link): Likewise. | |
2403 | (bfd_elf_reloc_symbol_deleted_p): Likewise. | |
2404 | * elfcode.h (elf_slurp_symbol_table): Likewise. | |
2405 | * elf32-spu.c (get_sym_h): Likewise. | |
2406 | * elf32-xtensa.c (get_elf_r_symndx_section): Likewise. | |
2407 | * elf64-ppc.c (opd_entry_value, get_sym_h, ppc64_elf_edit_toc): Ditto. | |
2408 | * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise. | |
2409 | ||
5f5fb9ec AM |
2410 | 2008-03-11 Alan Modra <amodra@bigpond.net.au> |
2411 | ||
2412 | * elf32-spu.c (spu_elf_relocate_section): Test identical conditions | |
2413 | to those in process_stubs for overlay symbols. | |
2414 | ||
b1cc4aeb PB |
2415 | 2008-03-09 Paul Brook <paul@codesourcery.com> |
2416 | ||
2417 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Handle new | |
2418 | Tag_VFP_arch values. | |
2419 | ||
12a0a0fd PB |
2420 | 2008-03-08 Paul Brook <paul@codesourcery.com> |
2421 | ||
2422 | * elf32-arm.c (insert_thumb_branch): Rewrite. | |
2423 | (elf32_thumb_to_arm_stub): Use new insert_thumb_branch. | |
2424 | ||
39623e12 PB |
2425 | 2008-03-07 Paul Brook <paul@codesourcery.com> |
2426 | ||
2427 | * elf32-arm.c (elf32_arm_howto_table_1): Fix bitmasks for MOVW and | |
2428 | MOVT relocations. | |
2429 | (elf32_arm_final_link_relocate): Fix off by one MOVW/MOVT sign | |
2430 | extension. | |
2431 | (elf32_arm_relocate_section): Handle MOVW and MOVT | |
2432 | relocations. Improve safety check for other weird relocations. | |
2433 | (elf32_arm_check_relocs): Only set h->needs_plt for branch/call | |
2434 | relocations. | |
2435 | ||
77cba8a3 | 2436 | 2008-03-03 Bob Wilson <bob.wilson@acm.org> |
50e7d84b | 2437 | |
77cba8a3 BW |
2438 | * xtensa-isa.c (xtensa_isa_num_pipe_stages): Make max_stage static and |
2439 | only compute its value once. | |
50e7d84b | 2440 | |
4a628337 AM |
2441 | 2008-03-03 Alan Modra <amodra@bigpond.net.au> |
2442 | ||
2443 | * elf32-spu.c (struct got_entry): Add "addend" field. | |
2444 | (count_stub, build_stub): Use a new stub if relocation addend | |
2445 | differs from existing stubs for this symbol. | |
2446 | (process_stubs): Deal with addends. | |
2447 | (spu_elf_relocate_section, spu_elf_output_symbol_hook): Likewise. | |
2448 | ||
d95edcac L |
2449 | 2008-03-02 H.J. Lu <hongjiu.lu@intel.com> |
2450 | ||
2451 | PR ld/5789 | |
2452 | * elflink.c (_bfd_elf_symbol_refs_local_p): Always return true | |
2453 | for hidden and local symbols. | |
2454 | ||
89200bf8 AM |
2455 | 2008-03-03 Alan Modra <amodra@bigpond.net.au> |
2456 | ||
2457 | * elf32-ppc.c (allocate_dynrelocs): Discard relocs on | |
2458 | undefined symbols with internal or hidden visibility. | |
2459 | (ppc_elf_relocate_section): Likewise. Use SYMBOL_CALLS_LOCAL | |
2460 | rather than SYMBOL_REFERENCES_LOCAL on branches. Don't | |
2461 | return immediately on dynamic reloc error. | |
2462 | ||
176a0d42 AM |
2463 | 2008-03-01 Alan Modra <amodra@bigpond.net.au> |
2464 | ||
2465 | * elf64-ppc.c (build_plt_stub): Add relocs on plt call stubs | |
2466 | if emitrelocations. | |
2467 | (get_relocs): New function, split out from.. | |
2468 | (ppc_build_one_stub): ..here. Add relocs on plt_branch stubs if | |
2469 | emitrelocations. Remove indx temp. | |
2470 | (ppc_size_one_stub): Count new stub relocs. | |
2471 | (ppc64_elf_size_stubs): Count new glink reloc. | |
2472 | (ppc64_elf_build_stubs): Emit glink reloc if emitrelocations. | |
2473 | (ppc64_elf_finish_dynamic_sections): Output glink relocs. | |
2474 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Describe non-pic | |
2475 | glink code. | |
2476 | ||
911f096e AM |
2477 | 2008-02-28 Alan Modra <amodra@bigpond.net.au> |
2478 | ||
2479 | * elf32-spu.c (mark_functions_via_relocs): Don't assume that | |
2480 | the "->start" pointer reaches to function origin, so that we | |
2481 | can handle functions split over more than two sections. | |
2482 | (build_call_tree): Likewise. | |
2483 | (pasted_function): Don't attempt to set fun->start back to the | |
2484 | function origin, just go back one section. | |
2485 | ||
ad9563d6 CM |
2486 | 2008-02-27 Catherine Moore <clm@codesourcery.com> |
2487 | ||
2488 | * elf.c ( _bfd_elf_print_private_bfd_data): Call | |
2489 | elf_backend_get_target_dtag if defined. | |
2490 | * elf32-mips.c (elf_backend_get_target_dtag): Define. | |
2491 | * elf64-mips.c: Likewise. | |
2492 | * elfn32-mips.c: Likewise. | |
2493 | * elfxx-mips.c (_bfd_mips_elf_get_target_dtag): New. | |
2494 | * elfxx-mips.h (_bfd_mips_elf_get_target_dtag): Declare. | |
2495 | * elf-bfd.h (elf_backend_get_target_dtag): Add prototype. | |
2496 | * elfxx-target.h (elf_backend_get_target_dtag): Add default. | |
911f096e | 2497 | (elf_backend_data): Add elf_backend_get_target_dtag. |
ad9563d6 | 2498 | |
625af618 AM |
2499 | 2008-02-26 Alan Modra <amodra@bigpond.net.au> |
2500 | ||
2501 | * elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed | |
2502 | for R_PPC_REL32 syms. Don't set non_got_ref on branch reloc syms, | |
2503 | and assume branch relocs are not dynamic when non-shared. | |
2504 | (readonly_dynrelocs): New function, split out from.. | |
2505 | (maybe_set_textrel): ..here, renamed from old readonly_dynrelocs. | |
2506 | (ppc_elf_adjust_dynamic_symbol): For symbols generating plt entries, | |
2507 | clear non_got_ref.. | |
2508 | (allocate_dynrelocs): ..and don't set u.def for undefined weak. | |
2509 | Do allow dynamic relocs on undefined symbols. | |
2510 | (ppc_elf_adjust_dynamic_symbol): Use readonly_dynrelocs. | |
2511 | (ppc_elf_relocate_section): Mirror dynamic reloc changes in | |
2512 | check_relocs. | |
2513 | (ppc_elf_finish_dynamic_symbol): Don't give a warning on weak | |
2514 | plt symbols needing pointer_equality_needed. | |
2515 | ||
1cd81501 AM |
2516 | 2008-02-23 Alan Modra <amodra@bigpond.net.au> |
2517 | ||
2518 | * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change. | |
2519 | ||
0eb4a168 AM |
2520 | 2008-02-23 Alan Modra <amodra@bigpond.net.au> |
2521 | ||
2522 | * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy | |
2523 | pointer_equality_needed. | |
2524 | (ppc_elf_check_relocs): Split out non-branch relocs from others | |
2525 | that might emit dynamic relocs. Set pointer_equality_needed | |
2526 | for their symbols. Don't set non_got_ref on branch reloc symbols. | |
2527 | (ppc_elf_hash_symbol): New function. | |
2528 | (elf_backend_hash_symbol): Define. | |
2529 | (ppc_elf_finish_dynamic_symbol): Handle pointer_equality_needed. | |
2530 | Error if pointer_equality_needed on weak plt symbol. | |
2531 | ||
3ae181ee L |
2532 | 2008-02-22 H.J. Lu <hongjiu.lu@intel.com> |
2533 | ||
2534 | PR ld/5788 | |
2535 | * elflink.c (elf_create_symbuf): Correct buffer size and | |
2536 | position. | |
2537 | ||
34b5e0b2 NC |
2538 | 2008-02-22 Nick Clifton <nickc@redhat.com> |
2539 | ||
2540 | PR 868 | |
3ae181ee | 2541 | * dwarf2.c: Revert previous patch. All of the allocate memory is |
34b5e0b2 | 2542 | on an obstack which will be freed at some other time. |
0eb4a168 | 2543 | |
515ef31d NC |
2544 | 2008-02-20 Nick Clifton <nickc@redhat.com> |
2545 | ||
2546 | PR 868 | |
2547 | * libbfd.c (bfd_realloc_or_free): New function. Performs like | |
2548 | bfd_realloc, but if the (re)allocation fails, the pointer is | |
2549 | freed. | |
2550 | * libbfd-in.h: Prototype. | |
2551 | * libbfd.h: Regenerate. | |
2552 | * bfdio.c (bfd_bwrite): Use the new function. | |
2553 | (bfd_seek): Likewise. | |
2554 | * bfdwin.c:(bfd_get_file_window): Likewise. | |
2555 | * elf-strtab.c (_bfd_elf_strtab_add): Likewise. | |
2556 | * elf32-ppc.c (ppc_elf_relax_section): Likewise. | |
2557 | * elf32-xtensa.c (vsprintf_msg): Likewise. | |
2558 | * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise. | |
2559 | * stabs.c (_bfd_link_seciton_stabs): Likewise. | |
2560 | * vms-misc.c (_bfd_vms_get_record): Likewise. | |
2561 | * vms-tir.c (check_section): Likewise. | |
2562 | * vms.c (vms_new_section_hook): Likewise. | |
2563 | * elf32-arm.c (elf32_arm_section_map_add): Check that the | |
2564 | allocation of sec_data->map succeeded before using it. | |
2565 | * elflink.c (elf_link_output_sym): Do not overwrite finfo-> | |
2566 | symshndxbuf until it is known that the reallocation succeeded. | |
2567 | ||
b42bf1e0 NC |
2568 | 2008-02-20 Diogo de Carvalho Kraemer <diogo@kraemer.eng.br> |
2569 | Nick Clifton <nickc@redhat.com> | |
2570 | ||
2571 | PR 868 | |
2572 | * dwarf2.c (read_abbrevs): Free the abbreviation table if we run | |
2573 | out of memory. | |
2574 | (decode_line_info): Free the line_info_table before returning a | |
2575 | failure result. | |
2576 | (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table. | |
2577 | Free the line table. Free the function table. Free the variable | |
2578 | table. | |
2579 | ||
0a40daed MK |
2580 | 2008-02-17 Mark Kettenis <kettenis@gnu.org> |
2581 | ||
2582 | * elf.c (swap_out_syms): Avoid preprocessing directive within | |
2583 | macro arg. | |
2584 | ||
3f001e84 JK |
2585 | 2008-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
2586 | ||
2587 | * elf.c (assign_file_positions_for_load_sections): Set the type of | |
2588 | PT_NOTE sections to SHT_NOTE. | |
2589 | ||
37da76e8 AM |
2590 | 2008-02-17 Ulrich Weigand <uweigand@de.ibm.com> |
2591 | ||
2592 | * simple.c (bfd_simple_get_relocated_section_contents): Set | |
2593 | link_info.output_bfd. | |
2594 | ||
d74e4b29 NS |
2595 | 2008-02-16 Nathan Sidwell <nathan@codesourcery.com> |
2596 | ||
2597 | * dwarf2.c (find_line): Don't trust debug information after an | |
2598 | unparseable compilation unit. | |
2599 | ||
f856272b AM |
2600 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
2601 | ||
2602 | PR 5765 | |
2603 | * section.c (SEC_LINK_DUPLICATES): Correct. Renumber following flags. | |
2604 | * bfd-in2.h: Regenerate. | |
2605 | ||
0c8d6e5c AM |
2606 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
2607 | ||
2608 | * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA. | |
2609 | * elf.c (bfd_elf_allocate_object): Don't check for already allocated | |
2610 | tdata. | |
2611 | * elf32-hppa.c (elf32_hppa_mkobject): New function. | |
2612 | (bfd_elf32_mkobject): Define. | |
2613 | * elf32-ppc.c (is_ppc_elf_target): Delete. Replace all uses with.. | |
2614 | (is_ppc_elf): ..this new macro. | |
2615 | * elf64-ppc.c (is_ppc64_elf_target): Delete. Replace all uses with.. | |
2616 | (is_ppc64_elf): ..this new macro. | |
2617 | ||
f13a99db AM |
2618 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
2619 | ||
2620 | * elflink.c: Replace all accesses to hash->creator field with | |
2621 | output_bfd->xvec. | |
2622 | * cofflink.c: Likewise. | |
2623 | * coff-h8300.c: Likewise. | |
2624 | * ecoff.c: Likewise. | |
2625 | * elf32-m68hc1x.c: Likewise. | |
2626 | * elf32-ppc.c: Likewise. | |
2627 | * elf64-alpha.c: Likewise. | |
2628 | * elf64-ppc.c: Likewise. | |
2629 | * elf64-sparc.c: Likewise. | |
2630 | * elfxx-mips.c: Likewise. | |
2631 | * i386linux.c: Likewise. | |
2632 | * m68klinux.c: Likewise. | |
2633 | * sparclinux.c: Likewise. | |
2634 | * sunos.c: Likewise. | |
2635 | * xcofflink.c: Likewise. | |
2636 | * linker.c: Likewise. | |
2637 | (_bfd_link_hash_table_init): Don't store creator. | |
2638 | ||
e81819a5 NC |
2639 | 2008-02-14 Peter Jones <pjones@redhat.com> |
2640 | ||
2641 | * efi-rtdrv-ia32.c: New file. | |
2642 | * efi-bsdrv-ia32.c: New file. | |
2643 | * efi-rtdrv-ia64.c: New file. | |
2644 | * efi-bsdrv-ia64.c: New file. | |
2645 | * efi-rtdrv-x86_64.c: New file. | |
2646 | * efi-bsdrv-x86_64.c: New file. | |
2647 | * peicode.h (pe_bfd_object_p): Add support for boot service and | |
2648 | runtime service drivers. | |
2649 | * libpei.h: Add macros for EFI formats, and rename the efi application | |
2650 | format macros to disambiguate. | |
2651 | * targets.c: Add bfd_target _vec externs. | |
2652 | (_bfd_tar): Add EFI _vec entries. | |
2653 | * config.bfd: Add EFI vectors into the selection routines. | |
2654 | * configure.in: add EFI _vec entries. | |
2655 | * configure: Regenerate. | |
2656 | * Makefile.am: Add EFI files. | |
2657 | * Makefile.in: Regenerate. | |
2658 | ||
ab1579fd NS |
2659 | 2008-02-14 Nathan Sidwell <nathan@codesourcery.com> |
2660 | ||
2661 | * dwarf1.c (struct dwarf1_debug): Add syms member. | |
2662 | (alloc_dwarf1_unit, alloc_dwarf1_func): Check for out of memory. | |
2663 | (parse_line_table, _bfd_dwarf1_find_nearest_line): Relocate | |
2664 | section contents, check for out of memory. | |
2665 | ||
2666 | * dwarf1.c (struct dwarf1_debug): Change data pointers to bfd_byte. | |
2667 | (parse_die): Change data pointers to bfd_byte. | |
2668 | (parse_line_table, parse_functions_in_unit): Likewise. | |
2669 | ||
d40f3da9 AM |
2670 | 2008-02-14 Alan Modra <amodra@bigpond.net.au> |
2671 | ||
2672 | * elflink.c (compute_bucket_count): Warning fixes. | |
2673 | ||
f15557e4 DD |
2674 | 2008-02-12 DJ Delorie <dj@redhat.com> |
2675 | ||
2676 | * elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of | |
2677 | relocation pointing to local symbol in merged section. | |
2678 | ||
2679 | * elf32-iq2000.c (iq2000_elf_relocate_offset16): New. | |
2680 | (iq2000_elf_relocate_section): Call it. | |
2681 | ||
0ffa91dd NC |
2682 | 2008-02-12 Nick Clifton <nickc@redhat.com> |
2683 | ||
2684 | PR ld/5692 | |
2685 | * elf-bfd.h (enum elf_object_id): New enum, used to identify | |
2686 | target specific extensions to the elf_obj_tdata structure. | |
2687 | (struct elf_obj_tdata): New field 'object_id'. | |
2688 | (elf_object_id, elf_program_header_size, elf_symtab_hdr): New | |
2689 | macros for accessing fields in the elf_obj_tdata structure. | |
2690 | (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object. | |
2691 | (bfd_elf_allocate_object): New function. | |
2692 | * elf.c (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object | |
2693 | and implement by calling bfd_elf_allocate_object. | |
2694 | (bfd_elf_allocate_object): New function: Allocates an | |
2695 | elf_obj_tdata structure, possibly with a target specific | |
2696 | extension. | |
2697 | * elfxx-target.h (bfd_elfNN_mkobject): Use | |
2698 | bfd_elf_make_generic_object as the default value. | |
2699 | * elf32-arm.c (elf32_arm_obj_tdata): Rename to elf_arm_obj_tdata | |
2700 | for consistency with other, similar structures. | |
2701 | (is_arm_elf): New macro. Checks a BFD to make sure that is an ARM | |
2702 | ELF bfd. | |
2703 | (elf32_arm_mkobject): Call bfd_elf_allocate_object. | |
2704 | (bfd_elf32_arm_vfp11_erratum_scan): Use is_arm_elf macro to check | |
2705 | the bfd being processed. | |
2706 | (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise. | |
2707 | (bfd_elf32_arm_set_target_relocs): Likewise. | |
2708 | (bfd_elf32_arm_final_link_relocate): Likewise. | |
2709 | (bfd_elf32_arm_copy_private_bfd_data): Likewise. | |
2710 | (bfd_elf32_arm_merge_eabi_attributes): Likewise. | |
2711 | (bfd_elf32_arm_merge_private_bfd_data): Likewise. | |
2712 | (bfd_elf32_arm_check_relocs): Likewise. | |
2713 | (bfd_elf32_arm_gc_mark_extra_sections): Likewise. | |
2714 | (bfd_elf32_arm_size_dynamic_sections): Likewise. | |
2715 | (bfd_elf32_arm_process_before_allocation): Use elf_symtab_hdr. | |
2716 | (bfd_elf32_arm_init_maps): Likewise. | |
2717 | (bfd_elf32_arm_final_link_relocate): Likewise. | |
2718 | (bfd_elf32_arm_relocate_section): Likewise. | |
2719 | (bfd_elf32_arm_gc_sweep_hook): Likewise. | |
2720 | (bfd_elf32_arm_check_relocs): Likewise. | |
2721 | (bfd_elf32_arm_size_dynamic_sections): Likewise. | |
2722 | * elf32-i386.c (elf_i386_mkobject): Call bfd_elf_allocate_object. | |
2723 | (is_i386_elf): New macro. Checks a BFD to make sure that is an x86 | |
2724 | ELF bfd. | |
2725 | (elf_i386_check_relocs): Use is_i386_elf macro to check the bfd | |
2726 | being processed. | |
2727 | (elf_i386_size_dynamic_sections): Likewise. | |
2728 | (elf_i386_relocate_section): Likewise. | |
2729 | (elf_i386_check_relocs): Use elf_symtab_hdr. | |
2730 | (elf_i386_gc_sweep_hook): Likewise. | |
2731 | (elf_i386_size_dynamic_sections): Likewise. | |
2732 | (elf_i386_relocate_section): Likewise. | |
2733 | * elf32-ppc.c (ppc_elf_mkobject): Call bfd_elf_allocate_object. | |
2734 | (elf_create_pointer_linker_section): Use is_ppc_elf_target to | |
2735 | verify that the bfd before accessing target specific fields. | |
2736 | (ppc_elf_check_relocs): Likewise. | |
2737 | (elf_finish_pointer_linker_section): Likewise. | |
2738 | (elf_create_pointer_linker_section): Use elf_symtab_hdr. | |
2739 | (ppc_elf_check_relocs): Likewise. | |
2740 | (ppc_elf_gc_sweep_hook): Likewise. | |
2741 | (ppc_elf_tls_optimize): Likewise. | |
2742 | (ppc_elf_size_dynamic_sections): Likewise. | |
2743 | (ppc_elf_relax_section): Likewise. | |
2744 | (ppc_elf_relocate_section): Likewise. | |
2745 | * elf32-s390.c (struct elf_s390_obj_tdata): Add a comment | |
2746 | reminding programmers to keep this structure in sync with the one | |
2747 | defined in elf64-s390.c. | |
2748 | (elf_s390_mkobject): Call bfd_elf_allocate_object. | |
2749 | (is_s390_elf): New macro. Checks a BFD to make sure that is an s390 | |
2750 | ELF bfd. | |
2751 | (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd | |
2752 | being processed. | |
2753 | (elf_s390_size_dynamic_sections): Likewise. | |
2754 | (elf_s390_relocate_section): Likewise. | |
2755 | (elf_s390_check_relocs): Use elf_symtab_hdr. | |
2756 | (elf_s390_gc_sweep_hook): Likewise. | |
2757 | (elf_s390_size_dynamic_sections): Likewise. | |
0eb4a168 | 2758 | (elf_s390_relocate_section): Likewise. |
0ffa91dd NC |
2759 | * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object. |
2760 | (is_sh_elf): New macro. Checks a BFD to make sure that is an SH | |
2761 | ELF bfd. | |
2762 | (sh_elf_size_dynamic_sections): Use is_sh_elf macro to check the | |
2763 | bfd being processed. | |
2764 | (sh_elf_relocate_section): Likewise. | |
2765 | (sh_elf_check_relocs): Likewise. | |
2766 | (sh_elf_copy_private_data): Likewise. | |
2767 | (sh_elf_relax_section): Use elf_symtab_hdr. | |
2768 | (sh_elf_size_dynamic_sections): Likewise. | |
2769 | (sh_elf_relocate_section): Likewise. | |
2770 | (sh_elf_get_relocated_section_contents): Likewise. | |
2771 | (sh_elf_gc_sweep_hook): Likewise. | |
2772 | (sh_elf_check_relocs): Likewise. | |
2773 | * elf64-alpha.c (elf64_alpha_mkobject): Call bfd_elf_allocate_object. | |
2774 | (is_alpha_elf): New macro. Checks a BFD to make sure that is an | |
2775 | Alpha ELF bfd. | |
2776 | (elf64_alpha_create_got_section): Use is_alpha_elf macro to check | |
2777 | the bfd being processed. | |
2778 | (elf64_alpha_create_dynamic_section): Likewise. | |
2779 | (elf64_alpha_check_relocs): Likewise. | |
2780 | (elf64_alpha_size_got_sections): Likewise. | |
2781 | (elf64_alpha_relax_section): Likewise. | |
2782 | (elf64_alpha_relocate_section): Likewise. | |
2783 | (elf64_alpha_final_link): Likewise. | |
2784 | (elf64_alpha_check_relocs): Use elf_symtab_hdr. | |
2785 | (elf64_alpha_relax_section): Likewise. | |
2786 | (elf64_alpha_relocate_section_r): Likewise. | |
2787 | (elf64_alpha_relocate_section): Likewise. | |
2788 | * elf64-ppc.c (ppc64_elf_mkobject): Call bfd_elf_allocate_object. | |
2789 | (ppc64_elf_check_relocs): Use is_ppc64_elf_target to check the bfd | |
2790 | being processed. | |
2791 | (opd_entry_value): Likewise. | |
2792 | (allocate_dynrelocs): Likewise. | |
2793 | (ppc64_elf_relocate_section): Likewise. | |
2794 | (ppc64_elf_check_relocs): Use elf_symtab_hdr. | |
2795 | (opd_entry_value): Likewise. | |
2796 | (ppc64_elf_gc_sweep_hook): Likewise. | |
2797 | (get_sym_h): Likewise. | |
2798 | (ppc64_elf_edit_opd): Likewise. | |
2799 | (ppc64_elf_tls_optimize): Likewise. | |
2800 | (ppc64_elf_edit_toc): Likewise. | |
2801 | (ppc64_elf_size_dynamic_sections): Likewise. | |
2802 | (toc_adjusting_stub_needed): Likewise. | |
2803 | (ppc64_elf_size_stubs): Likewise. | |
2804 | (ppc64_elf_relocate_section): Likewise. | |
2805 | * elf64-s390.c (struct elf_s390_obj_tdata): Add a comment | |
2806 | reminding programmers to keep this structure in sync with the one | |
2807 | defined in elf32-s390.c. | |
2808 | (elf_s390_mkobject): Call bfd_elf_allocate_object. | |
2809 | (is_s390_elf): New macro. Checks a BFD to make sure that is an s390 | |
2810 | ELF bfd. | |
2811 | (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd | |
2812 | being processed. | |
2813 | (elf_s390_size_dynamic_sections): Likewise. | |
0eb4a168 | 2814 | (elf_s390_relocate_section): Likewise. |
0ffa91dd NC |
2815 | (elf_s390_check_relocs): Use elf_symtab_hdr. |
2816 | (elf_s390_gc_sweep_hook): Likewise. | |
2817 | (elf_s390_size_dynamic_sections): Likewise. | |
2818 | (elf_s390_relocate_section): Likewise. | |
2819 | * elf64-x86_64.c (elf64_x86_64_mkobject): Call bfd_elf_allocate_object. | |
2820 | (is_x86_64_elf): New macro. Checks a BFD to make sure that is an | |
2821 | x86_64 ELF bfd. | |
2822 | (elf64_x86_64_check_relocs): Use is_x86_64_elf macro to check the bfd | |
2823 | being processed. | |
2824 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
2825 | (elf64_x86_64_relocate_section): Likewise. | |
2826 | (elf64_x86_64_check_relocs): Use elf_symtab_hdr. | |
2827 | (elf64_x86_64_gc_sweep_hook): Likewise. | |
2828 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
2829 | (elf64_x86_64_relocate_section): Likewise. | |
2830 | * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Call bfd_elf_allocate_object. | |
2831 | (is_sparc_elf): New macro. Checks a BFD to make sure that is a Sparc | |
2832 | ELF bfd. | |
2833 | (_bfd_sparc_elf_check_relocs): Use is_sparc_elf macro to check the | |
2834 | bfd being processed. | |
2835 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
2836 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
2837 | (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr. | |
2838 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
2839 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
0eb4a168 | 2840 | (_bfd_sparc_elf_relocate_section): Likewise. |
0ffa91dd | 2841 | |
be4291f1 AM |
2842 | 2008-02-12 Alan Modra <amodra@bigpond.net.au> |
2843 | ||
2844 | PR 5303, 5755 | |
2845 | * arange-set.c: Delete. | |
2846 | * arange-set.h: Delete. | |
2847 | * dwarf2.c: Revert 2007-09-21 changes. | |
2848 | * Makefile.am: Likewise. | |
2849 | * Makefile.in: Regenerate. | |
2850 | * po/SRC-POTFILES.in: Regenerate. | |
2851 | ||
7a84e3da BS |
2852 | 2008-02-11 Bernd Schmidt <bernd.schmidt@analog.com> |
2853 | ||
2854 | * elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it | |
2855 | if necessary. | |
2856 | (elf32_bfin_merge_private_bfd_data): Simplify, and ensure object type | |
2857 | mismatches are detected. | |
2858 | ||
ca889129 BS |
2859 | * elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to |
2860 | emit invalid relocs or rofixup entries for deleted .eh_frame entries. | |
2861 | ||
662ed161 DJ |
2862 | 2008-02-11 Daniel Jacobowitz <dan@codesourcery.com> |
2863 | ||
2864 | * cache.c (cache_bread): Set bfd_error_file_truncated if EOF | |
2865 | was reached. | |
2866 | * srec.c (srec_scan): Calculate the checksum. Complain on mismatch. | |
2867 | ||
2e444bea AM |
2868 | 2008-02-07 Alan Modra <amodra@bigpond.net.au> |
2869 | ||
2870 | * elf32-spu.c (spu_elf_size_stubs): Revert 2008-01-28 doubling | |
2871 | of _ovly_buf_table size. | |
2872 | (spu_elf_build_stubs): Use low bit of .size as "present" bit. | |
2873 | Adjust initialisations relating to _ovly_buf_table. | |
2874 | ||
d9ab3f29 | 2875 | 2008-02-04 Bob Wilson <bob.wilson@acm.org> |
0eb4a168 | 2876 | |
d9ab3f29 BW |
2877 | * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid |
2878 | relocation, do not continue processing it. Ignore R_XTENSA_ASM_EXPAND | |
2879 | relocations against dynamic symbols. | |
2880 | (elf_xtensa_finish_dynamic_sections): Do not fail if there is no | |
2881 | .xt.lit section. | |
0eb4a168 | 2882 | |
bb8541b9 L |
2883 | 2008-02-04 Kai Tietz <kai.tietz@onevision.com> |
2884 | H.J. Lu <hongjiu.lu@intel.com> | |
2885 | ||
2886 | PR 5715 | |
2887 | * warning.m4: Enable -Wno-format by default when using gcc on | |
2888 | mingw. | |
2889 | * configure: Regenerated. | |
2890 | ||
6f179bd0 AN |
2891 | 2008-02-04 Adam Nemet <anemet@caviumnetworks.com> |
2892 | ||
2893 | * archures.c: Update copyright. | |
2894 | (bfd_mach_mips_octeon): New macro. | |
2895 | * bfd-in2.h: Regenerate. | |
2896 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle Octeon. | |
2897 | (mips_set_isa_flags): Likewise. | |
2898 | (mips_mach_extensions): Add Octeon. | |
2899 | * cpu-mips.c: Update copyright. | |
2900 | (I_mipsocteon): New enum constant. | |
2901 | (arch_info_struct): Add Octeon. | |
2902 | ||
d16c7321 AM |
2903 | 2008-02-04 Alan Modra <amodra@bigpond.net.au> |
2904 | ||
2905 | * elf32-spu.c (spu_elf_relocate_section): Correct return type. | |
2906 | Return error status on unexpected relocation errors. | |
2907 | ||
e44a2c9c AM |
2908 | 2008-02-04 Alan Modra <amodra@bigpond.net.au> |
2909 | ||
2910 | PR ld/5692 | |
2911 | * elf.c (bfd_elf_get_elf_syms): Revert 2008-01-31. Instead abort | |
2912 | on non-ELF input. | |
2913 | * elf32-arm.c (elf32_arm_size_dynamic_sections): Skip glue | |
2914 | processing on non-ELF input. | |
2915 | ||
f8a52b59 BW |
2916 | 2008-01-31 Marc Gauthier <marc@tensilica.com> |
2917 | ||
2918 | * config.bfd (xtensa*-*-*): Recognize processor variants. | |
2919 | ||
b7c368d0 NC |
2920 | 2008-01-31 Nick Clifton <nickc@redhat.com> |
2921 | ||
2922 | PR ld/5692 | |
2923 | * elf.c (bfd_elf_get_elf_syms): Check the return value of | |
2924 | get_elf_backend_data. | |
2925 | ||
00b2bfc1 NC |
2926 | 2008-01-28 Fabian Groffen <grobian@gentoo.org> |
2927 | ||
2928 | * config.bfd (x86_64-*-solaris2): Add support for this target. | |
2929 | ||
47f6dab9 AM |
2930 | 2008-01-28 Alan Modra <amodra@bigpond.net.au> |
2931 | ||
2932 | Rewrite SPU overlay handling code. Put overlay calls stubs in the | |
2933 | overlays where possible. Use a faster call stub, or optionally at | |
2934 | compile time, a more compact stub. Double size of _ovly_buf_table | |
2935 | so that low bit of _ovly_table.buf can be used as a "present" bit. | |
2936 | Reserve an extra _ovly_table entry for index zero. | |
2937 | * elf32-spu.c: (struct spu_link_hash_table): Delete a number of fields, | |
2938 | add new ones. | |
2939 | (struct got_entry): New. | |
2940 | (struct spu_stub_hash_entry): Delete. | |
2941 | (stub_hash_newfunc, spu_elf_link_hash_table_free): Delete. | |
2942 | (spu_elf_link_hash_table_create): Adjust for struct changes. | |
2943 | (spu_stub_name): Delete. | |
2944 | (spu_elf_find_overlays): Don't track sections from overlay regions. | |
2945 | Instead set ovl_buf number in spu elf section data. Error if | |
2946 | overlays in one region don't start at the same address. Adjust | |
2947 | for struct _spu_elf_section_data changes. | |
2948 | (SIZEOF_STUB1, SIZEOF_STUB2, ILA_79, ILA_78): Delete. | |
2949 | (OVL_STUB_SIZE, BRSL, LNOP, ILA): Define. | |
2950 | (needs_ovl_stub): Adjust for struct _spu_elf_section_data changes. | |
2951 | (enum _insn_type): New. | |
2952 | (count_stub, build_stub): New functions. | |
2953 | (allocate_spuear_stubs): Use count_stub. | |
2954 | (build_spuear_stubs): Use build_stub. | |
2955 | (populate_stubs, sort_stubs): Delete. | |
2956 | (process_stubs): New function. | |
2957 | (write_one_stub): Delete. | |
2958 | (spu_elf_size_stubs, spu_elf_build_stubs): Rewrite. | |
2959 | (alloc_stack_info): Adjust for struct _spu_elf_section_data changes. | |
2960 | (maybe_insert_function, check_function_ranges): Likewise. | |
2961 | (find_function, pasted_function, build_call_tree): Likewise. | |
2962 | (spu_elf_stack_analysis, spu_elf_modify_segment_map): Likewise. | |
2963 | (spu_elf_modify_program_headers): Likewise. | |
2964 | (interesting_section): Detect stub sections differently. Delete | |
2965 | htab param, adjust all callers. | |
2966 | (spu_elf_relocate_section): Rewrite stub handling. | |
2967 | (spu_elf_output_symbol_hook): Likewise. | |
2968 | (bfd_elf32_bfd_link_hash_table_free): Delete. | |
2969 | * elf32-spu.h (struct _spu_elf_section_data): Move input-only and | |
2970 | output-only fields into a union. Add ovl_buf. | |
2971 | (spu_elf_size_stubs, spu_elf_build_stubs): Update prototypes. | |
2972 | ||
c006d697 DD |
2973 | 2008-01-25 DJ Delorie <dj@redhat.com> |
2974 | ||
2975 | * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New. | |
2976 | ||
6e3d6dc1 NC |
2977 | 2008-01-25 Kai Tietz <kai.tietz@onevision.com> |
2978 | ||
2979 | * bfd-in.h: Add mingw I64 support. | |
2980 | * bfd-in2.h: Regenerated. | |
2981 | * bfd.c: (bfd_get_sign_extend_vma): Add pe-x86-64 and pei-x86-64. | |
2982 | ||
fbb3bb98 AM |
2983 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
2984 | ||
2985 | PR 4453 | |
2986 | * format.c (bfd_check_format_matches): Don't accept archives as | |
2987 | fully matching unless they have a map. | |
2988 | ||
297d8443 AM |
2989 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
2990 | ||
2991 | * elflink.c (_bfd_elf_link_output_relocs): Correct error return. | |
2992 | ||
66cd82b5 AM |
2993 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
2994 | ||
2995 | * ecoff.c (_bfd_ecoff_archive_p): Delete. | |
2996 | * libecoff.h (_bfd_ecoff_archive_p): Delete. | |
2997 | * coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p. | |
2998 | * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise. | |
2999 | (ecoff_biglittle_vec): Likewise. | |
3000 | ||
85f7a9cb AM |
3001 | 2008-01-19 Alan Modra <amodra@bigpond.net.au> |
3002 | ||
3003 | PR 5646 | |
3004 | * elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr | |
3005 | non-NULL before dereferencing. | |
3006 | ||
74f0fb50 AM |
3007 | 2008-01-15 Alan Modra <amodra@bigpond.net.au> |
3008 | ||
3009 | PR 5604 | |
3010 | * elf-bfd.h (struct elf_backend_data): Add gc_keep. Remove param | |
3011 | names from others. | |
3012 | (_bfd_elf_gc_keep): Declare. | |
3013 | * elfxx-target.h (elf_backend_gc_keep): Define. | |
3014 | (elfNN_bed): Init new field. | |
3015 | * elflink.c (_bfd_elf_gc_keep): New function. | |
3016 | (bfd_elf_gc_sections): Call gc_keep. | |
3017 | * elf64-ppc.c (elf_backend_gc_keep): Define. | |
3018 | (struct _ppc64_elf_section_data): Move .opd related fields to | |
3019 | a struct so they don't occupy the same storage. Adjust accesses | |
3020 | throughout file. | |
3021 | (ppc64_elf_gc_keep): New function, split out from.. | |
3022 | (ppc64_elf_gc_mark_hook): ..here. Don't call _bfd_elf_gc_mark | |
3023 | to mark .opd section, just set gc_mark. | |
3024 | (ppc64_elf_edit_opd): Remove no_opd_opt parm. Don't set opd->adjust | |
3025 | unless we are changing .opd. Test non-NULL opd->adjust at all | |
3026 | accesses throughout file. | |
3027 | * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype. | |
3028 | ||
787daa7a AM |
3029 | 2008-01-15 Alan Modra <amodra@bigpond.net.au> |
3030 | ||
3031 | * bfd-in.h (BFD_HOST_LONG_LONG): Delete. | |
3032 | * bfd-in2.h: Regenerate. | |
3033 | ||
7dda2462 TG |
3034 | 2008-01-11 Tristan Gingold <gingold@adacore.com> |
3035 | Eric Botcazou <ebotcazou@adacore.com> | |
3036 | ||
3037 | * elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a | |
3038 | relocatable. | |
3039 | * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise. | |
3040 | * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise. | |
3041 | * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise. | |
3042 | * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise. | |
3043 | * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise. | |
3044 | * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise. | |
3045 | * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise. | |
3046 | * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise. | |
3047 | * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise. | |
3048 | * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise. | |
3049 | * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise. | |
3050 | * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise. | |
3051 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise. | |
3052 | * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise. | |
3053 | * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
3054 | * elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output | |
3055 | or executable output with relocations. | |
3056 | ||
d2e2e649 NC |
3057 | 2008-01-09 Nick Clifton <nickc@redhat.com> |
3058 | ||
3059 | PR gas/5552 | |
3060 | * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field | |
3061 | to FALSE for all relocs. | |
3062 | ||
184d07da RS |
3063 | 2008-01-09 Richard Sandiford <rsandifo@nildram.co.uk> |
3064 | ||
3065 | PR ld/5526 | |
3066 | * elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged | |
3067 | fields. Rename u.cie.u.merged to u.cie.u.merged_with. | |
3068 | (eh_frame_sec_info): Add a cies field. | |
3069 | (eh_frame_hdr_info): Add a merge_cies field. | |
3070 | * elf-eh-frame.c (cie): Add a reloc_index member to the personality | |
3071 | union. | |
3072 | (_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead | |
3073 | of hdr_info->cies. | |
3074 | (_bfd_elf_parse_eh_frame): Remove tmp_cie. Ccreate an array of | |
3075 | cie structures in all cases and use it instead of extended_cies. | |
3076 | If merging, store the cie array in sec_info->cies and point each | |
3077 | CIE's eh_fde_cie at the associated element. Do not try to | |
3078 | calculate the value of the personality routine here; record the | |
3079 | offset of the relocation instead. Do not merge CIEs here. | |
3080 | (_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here... | |
3081 | (_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead. | |
3082 | (_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE. | |
3083 | (find_merged_cie): New function. | |
3084 | (_bfd_elf_gc_mark_fdes): Use it. Free sec_info->cies. | |
3085 | ||
780b2360 NC |
3086 | 2008-01-07 Nick Clifton <nickc@redhat.com> |
3087 | ||
3088 | PR binutils/5535 | |
3089 | * vms.c (vms_close_and_cleanup): Check for the presence of a | |
3090 | vms_private_data_struct before examining any of its fields. | |
3091 | ||
ace79388 L |
3092 | 2008-01-07 H.J. Lu <hongjiu.lu@intel.com> |
3093 | ||
3094 | PR ld/5522 | |
3095 | * elflink.c (elf_link_input_bfd): Don't write out a section if | |
3096 | its output section is marked with SEC_NEVER_LOAD. | |
3097 | ||
6c7ac64e | 3098 | For older changes see ChangeLog-2007 |
56882138 AM |
3099 | \f |
3100 | Local Variables: | |
3101 | mode: change-log | |
3102 | left-margin: 8 | |
3103 | fill-column: 74 | |
3104 | version-control: never | |
3105 | End: |