Commit | Line | Data |
---|---|---|
0bc43230 AM |
1 | 2007-09-15 Nick Clifton <nickc@redhat.com> |
2 | ||
3 | * bfd.c (_bfd_default_error_handler): fflush stdout. | |
4 | ||
3ea6b9a5 AM |
5 | 2007-09-14 Alan Modra <amodra@bigpond.net.au> |
6 | ||
7 | * opncls.c (find_separate_debug_file): Ensure bfd_set_error has | |
8 | been called on all error return paths. | |
9 | (bfd_fill_in_gnu_debuglink_section): Use bfd_malloc, not malloc. | |
10 | Clear padding after filename | |
11 | ||
5a1dcb7e AM |
12 | 2007-09-14 Alan Modra <amodra@bigpond.net.au> |
13 | ||
14 | * format.c (bfd_check_format_matches): Record matching targets even | |
15 | when "matching" is NULL to allow bfd_associated_vector matches. | |
16 | Consolidate error return code. Consolidate ok return code. Always | |
17 | restore original target and format on error. | |
18 | ||
bce5e5c9 AM |
19 | 2007-09-14 Alan Modra <amodra@bigpond.net.au> |
20 | ||
21 | * configure.in: Delete BFD_HOST_LONG_LONG and bfd checks for | |
22 | long long. Partly revert 2007-07-12 change, so that | |
23 | BFD_HOST_64BIT_LONG and BFD_HOST_64BIT_LONG_LONG are set | |
24 | independent of "void *" size. | |
25 | * configure: Regenerate. | |
26 | * config.in: Regenerate. | |
27 | * Makefile.in: Regenerate. | |
28 | ||
01a3c213 AM |
29 | 2007-09-12 Alan Modra <amodra@bigpond.net.au> |
30 | ||
31 | * elf-bfd.h (struct elf_backend_data): Delete elf_backend_sprintf_vma | |
32 | and elf_backend_fprintf_vma. | |
33 | (_bfd_elf_sprintf_vma, _bfd_elf_fprintf_vma): Delete. | |
34 | * elf.c (_bfd_elf_sprintf_vma, _bfd_elf_fprintf_vma): Delete. | |
35 | * elfxx-target.h (elf_backend_sprintf_vma): Don't define. | |
36 | (elf_backend_fprintf_vma): Likewise. | |
37 | (elfNN_bed): Don't init removed fields. | |
38 | * bfd.c (is32bit): New function. | |
39 | (bfd_sprintf_vma, bfd_fprintf_vma): Use the above. | |
40 | ||
8d100c32 KH |
41 | 2007-09-11 Nathan Sidwell <nathan@codesourcery.com> |
42 | ||
43 | * archures.c: Add bfd_mach_mcf_isa_c_nodiv, | |
44 | bfd_mach_mcf_isa_c_nodiv_mac & bfd_mach_mcf_isa_c_nodiv_emac. | |
45 | * ieee.c (ieee_write_processor): Update coldfire architecture | |
46 | list. | |
47 | * bfd-in2.h: Rebuilt. | |
48 | * cpu-m68k.c (arch_info_struct): Add isa_c nodiv architectures. | |
49 | (m68k_arch_features): Likewise. | |
50 | * elf32-m68k.c (elf32_m68k_object_p): Add EF_M68K_CF_ISA_C_NODIV. | |
51 | (elf32_m68k_print_private_bfd_data): Likewise. | |
52 | ||
2f629d23 JB |
53 | 2007-09-11 Jan Beulich <jbeulich@novell.com> |
54 | ||
55 | * elf64-i386.c (elf64_i386_tls_transition): Remove redundant 'const'. | |
56 | * elf64-x86_64.c (elf64_x86_64_tls_transition): Likewise. | |
57 | ||
2b953679 AM |
58 | 2007-09-08 Alan Modra <amodra@bigpond.net.au> |
59 | ||
60 | * elf64-ppc.c (func_desc_adjust): When resolving undefined | |
61 | references to dot-symbols, transfer def_regular and | |
62 | def_dynamic from the descriptor symbol. | |
63 | ||
78b8434d AM |
64 | 2007-09-08 Alan Modra <amodra@bigpond.net.au> |
65 | ||
66 | * config.bfd: Set want64 for spu-*-elf. | |
67 | ||
98ece1b3 AM |
68 | 2007-09-08 Alan Modra <amodra@bigpond.net.au> |
69 | ||
70 | PR ld/2864, ld/5006 | |
71 | * elf.c (special_sections): Comment typo. | |
72 | (elf_fake_sections): Force SHT_PROGBITS for sections that are | |
73 | SHT_NOBITS if BFD section flags say they have contents. | |
74 | ||
5dff4664 MS |
75 | 2007-09-04 Michael Snyder <msnyder@access-company.com> |
76 | ||
77 | * elf32-bfin.c (howto_table): Cut and paste error? | |
78 | Name field of reloc is wrong. | |
79 | ||
b427ea91 AM |
80 | 2007-09-04 Alan Modra <amodra@bigpond.net.au> |
81 | ||
82 | * elf32-spu.c (elf_howto_table): Formatting. | |
83 | ||
aff90a5f L |
84 | 2007-09-02 H.J. Lu <hongjiu.lu@intel.com> |
85 | ||
86 | PR ld/4986 | |
87 | * dwarf2.c (new_line_sorts_after): Undo the last change. | |
88 | (add_line_info): Only keep the last entry with the same address | |
89 | and end sequence. | |
90 | ||
39934745 L |
91 | 2007-08-31 H.J. Lu <hongjiu.lu@intel.com> |
92 | ||
93 | PR ld/4986 | |
94 | * dwarf2.c (new_line_sorts_after): Also compare line number. | |
95 | ||
3a4743fe NC |
96 | 2007-08-31 Jesse Michael <jmichael@suse.de> |
97 | ||
98 | * mach-o.c (bfd_mach_o_make_bfd_section): Fix test for non | |
99 | zerofill sections. | |
100 | ||
5c5d6806 BW |
101 | 2007-08-28 David Heine <dlheine@tensilica.com> |
102 | ||
103 | * elf32-xtensa.c (compute_ebb_actions): Update removed_bytes when | |
104 | narrowing instructions. | |
105 | ||
7f6a71ff | 106 | 2007-08-28 Mark Shinwell <shinwell@codesourcery.com> |
39934745 | 107 | Joseph Myers <joseph@codesourcery.com> |
7f6a71ff JM |
108 | |
109 | * elf32-arm.c (elf32_arm_compare_mapping): Compare first on vma, | |
110 | then on type. | |
111 | ||
0b3e17e9 NC |
112 | 2007-08-28 Robert Sebastian Gerus <arachnist@gmail.com> |
113 | ||
114 | * config.bfd: Add support for i[3-7]86-*-dragonfly*. | |
115 | * configure.in: Likewise. | |
116 | * configure: Regenerate. | |
117 | ||
b15fa79e AM |
118 | 2007-08-25 Ulrich Weigand <uweigand@de.ibm.com> |
119 | Alan Modra <amodra@bigpond.net.au> | |
120 | ||
121 | * elf.c (elfcore_grok_spu_note): New function. | |
122 | (elf_parse_notes): Call it. | |
123 | ||
534a31f6 L |
124 | 2007-08-24 H.J. Lu <hongjiu.lu@intel.com> |
125 | ||
126 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Adjust | |
127 | indentation. | |
128 | ||
4a6636fb PA |
129 | 2007-08-24 Pedro Alves <pedro_alves@portugalmail.pt> |
130 | ||
131 | * elf.c (elfcore_grok_win32pstatus): Remove HAVE_WIN32_PSTATUS_T | |
132 | guard. Make it host independent. | |
133 | (elfcore_grok_note): Remove HAVE_WIN32_PSTATUS_T guard around | |
134 | NT_WIN32PSTATUS. | |
135 | ||
718175fa JK |
136 | 2007-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
137 | ||
82fc7765 JK |
138 | * elf-bfd.h (struct elf_obj_tdata): New BUILD_ID_SIZE, BUILD_ID. |
139 | * elf.c (elfcore_read_notes): Split to ... | |
718175fa JK |
140 | (elf_read_notes) ... here ... |
141 | (elf_parse_notes): ... and here. Check `bfd_get_format (abfd)' with | |
142 | the former subfunctions called only for BFD_CORE. | |
143 | Call ELFOBJ_GROK_GNU_NOTE for BFD_OBJECT files with the owner "GNU". | |
144 | (_bfd_elf_make_section_from_shdr): Call ELF_PARSE_NOTES for SHT_NOTEs. | |
145 | (bfd_section_from_phdr): Update the call for renamed ELFCORE_READ_NOTES. | |
146 | (elfobj_grok_gnu_build_id, elfobj_grok_gnu_note): New functions. | |
147 | Code advisory: Roland McGrath | |
148 | ||
f1187097 DJ |
149 | 2007-08-24 Daniel Jacobowitz <dan@codesourcery.com> |
150 | ||
151 | * elf64-mips.c (elf_backend_sign_extend_vma): Define. | |
152 | ||
a30e5f5f AM |
153 | 2007-08-24 Alan Modra <amodra@bigpond.net.au> |
154 | ||
155 | * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Warning fix. | |
156 | ||
a351bca6 L |
157 | 2007-08-23 H.J. Lu <hongjiu.lu@intel.com> |
158 | ||
159 | * Makefile.am: Run "make dep-am". | |
160 | * Makefile.in: Regenerated. | |
161 | ||
142411ca L |
162 | 2007-08-23 H.J. Lu <hongjiu.lu@intel.com> |
163 | ||
164 | * elf32-i386.c: Include "bfd_stdint.h". | |
165 | (elf_i386_rtype_to_howto): New function. | |
166 | (elf_i386_info_to_howto_rel): Use it. | |
167 | (x86_64_opcode16): New union type. | |
168 | (elf_i386_check_tls_transition): New function. | |
169 | (elf_i386_tls_transition): Updated to check transition and | |
170 | issue an error if a transition isn't supported. | |
171 | (elf_i386_check_relocs): Return FALSE if | |
172 | elf_i386_tls_transition returns FALSE. | |
173 | (elf_i386_gc_sweep_hook): Likewise. | |
174 | (elf_i386_relocate_section): Likewise. Remove BFD_ASSERT | |
175 | on TLS transitions. | |
176 | ||
177 | * elf64-x86-64.c: Include "bfd_stdint.h". | |
178 | (x86_64_opcode16): New union type. | |
179 | (x86_64_opcode32): Likewise. | |
180 | (elf64_x86_64_check_tls_transition): New function. | |
181 | (elf64_x86_64_tls_transition): Updated to check transition and | |
182 | issue an error if a transition isn't supported. | |
183 | (elf64_x86_64_check_relocs): Return FALSE if | |
184 | elf64_x86_64_tls_transition returns FALSE. | |
185 | (elf64_x86_64_gc_sweep_hook): Likewise. | |
186 | (elf64_x86_64_relocate_section): Likewise. Remove BFD_ASSERT | |
187 | on TLS transitions. | |
188 | ||
eae50df2 L |
189 | 2007-08-22 H.J. Lu <hongjiu.lu@intel.com> |
190 | ||
191 | * elfxx-ia64.c: Convert to ISO C90 prototypes. | |
192 | (elfNN_hpux_backend_section_from_bfd_section): Make it static. | |
193 | ||
9a2e389a L |
194 | 2007-08-22 H.J. Lu <hongjiu.lu@intel.com> |
195 | ||
196 | * elf64-x86-64.c: Remove trailing whitespace. | |
197 | * elfxx-ia64.c: Likewise. | |
198 | ||
2f3bf80a L |
199 | 2007-08-21 H.J. Lu <hongjiu.lu@intel.com> |
200 | ||
201 | * elf32-i386.c (elf_i386_tls_transition): Accept a pointer | |
202 | to ELF hash entry instead of an integer for local test. | |
203 | (elf_i386_check_relocs): Updated. | |
204 | (elf_i386_gc_sweep_hook): Likewise. | |
205 | (elf_i386_relocate_section): Likewise. | |
206 | ||
207 | * elf64-x86-64.c (elf64_x86_64_tls_transition): Accept a | |
208 | pointer to ELF hash entry instead of an integer for local | |
209 | test. | |
210 | (elf64_x86_64_check_relocs): Updated. | |
211 | (elf64_x86_64_gc_sweep_hook): Likewise. | |
212 | (elf64_x86_64_relocate_section): Likewise. | |
213 | ||
3bfa9139 L |
214 | 2007-08-20 H.J. Lu <hongjiu.lu@intel.com> |
215 | ||
216 | * elf32-i386.c (elf_i386_tls_transition): Break long line. | |
217 | * elf64-x86-64.c (elf64_x86_64_tls_transition): Likewise. | |
218 | ||
19ec0de7 JK |
219 | 2007-08-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
220 | ||
221 | * elfxx-target.h [ELF_COMMONPAGESIZE && ELF_MAXPAGESIZE] | |
222 | (ELF_MINPAGESIZE): Fixed its size guess. Sanity checked its size. | |
223 | (ELF_COMMONPAGESIZE, ELF_MAXPAGESIZE): Sanity checked their size. | |
224 | ||
75ea2736 NC |
225 | 2007-08-20 Nick Clifton <nickc@redhat.com> |
226 | ||
227 | * elflink.c (elf_fixup_link_order): Rewrite conversion of | |
228 | s->alignment_power into an offset mask in order to avoid a gcc | |
229 | error message. | |
230 | ||
7e976ae4 JJ |
231 | 2007-08-17 Jakub Jelinek <jakub@redhat.com> |
232 | ||
233 | * config.bfd: Handle sparcv*-*-linux-* the same as sparc-*-linux-*. | |
234 | Change sparc64-*-linux-* to sparc64*-*-linux-*. | |
235 | ||
e9f27433 AM |
236 | 2007-08-17 Alan Modra <amodra@bigpond.net.au> |
237 | ||
238 | * po/Make-in: Add --msgid-bugs-address to xgettext invocation. | |
239 | ||
2b05f1b7 L |
240 | 2007-08-16 H.J. Lu <hongjiu.lu@intel.com> |
241 | ||
242 | * elf.c: Revert last change. | |
243 | ||
94b11780 L |
244 | 2007-08-16 H.J. Lu <hongjiu.lu@intel.com> |
245 | ||
246 | * elf.c (get_segment_type): Change PT_GNU_STACK to PT_GNU_ATTR. | |
247 | (bfd_section_from_phdr): Likewise. | |
248 | (get_program_header_size): Likewise. Add a PT_GNU_ATTR segment | |
249 | if there is an attribute section. | |
250 | (_bfd_elf_map_sections_to_segments): Likewise. | |
251 | (IS_SECTION_IN_INPUT_SEGMENT): Likewise. | |
252 | ||
a3fadc9a L |
253 | 2007-08-14 H.J. Lu <hongjiu.lu@intel.com> |
254 | ||
255 | PR ld/4918 | |
256 | * elf32-i386.c (elf_i386_relocate_section): Allow R_386_PC32 | |
257 | on ___tls_get_addr for GD->LE/LD->LE transitions when not | |
258 | building shared library. | |
259 | ||
260 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Allow | |
261 | R_X86_64_PC32 on __tls_get_addr for GD->LE/LD->LE transitions | |
262 | when not building shared library. | |
263 | ||
3fec76aa JK |
264 | 2007-08-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
265 | ||
266 | * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): LOADBASE is now | |
267 | initialized only on the first PT_LOAD. New variable LOADBASE_SET. | |
268 | Removed PF_R checking for IA-64 vDSOs as redundant now. | |
269 | Code advisory: Roland McGrath | |
270 | ||
8275b357 RS |
271 | 2007-08-13 Richard Sandiford <richard@codesourcery.com> |
272 | ||
273 | * elfxx-mips.c (mips_elf_link_hash_table): Add computed_got_sizes. | |
274 | (mips_elf_record_global_got_symbol): Increment local_gotno for | |
275 | each forced-local symbol. | |
276 | (_bfd_mips_elf_check_relocs): Pass forced-local call symbols to | |
277 | mips_elf_record_global_got_symbol for VxWorks too. | |
278 | (_bfd_mips_elf_always_size_sections): Set computed_got_sizes | |
279 | to true after computing the GOT size. | |
280 | (_bfd_mips_elf_hide_symbol): Increase local_gotno whenever | |
281 | got.offset == 1. Only adjust global_gotno if computed_got_sizes. | |
282 | For VxWorks, add a local entry when hiding a symbol that needs a | |
283 | plt but has not been marked as needing a global got entry. | |
284 | (_bfd_mips_elf_link_hash_table_create): Set computed_got_sizes to | |
285 | false. | |
286 | ||
649aeae3 DJ |
287 | 2007-08-12 Daniel Jacobowitz <dan@codesourcery.com> |
288 | ||
289 | * coffgen.c (coff_get_normalized_symtab): Correct cast. | |
290 | ||
3dea8fca AM |
291 | 2007-08-13 Alan Modra <amodra@bigpond.net.au> |
292 | ||
293 | * elf.c (elf_modify_segment_map): Add remove_empty_load param. | |
294 | Don't remove empty PT_LOAD header if false. | |
295 | (_bfd_elf_map_sections_to_segments): If user phdrs, pass false | |
296 | to elf_modify_segment_map. | |
297 | (assign_file_positions_for_load_sections): Pass false to | |
298 | elf_modify_segment_map. | |
299 | ||
ac2df442 AM |
300 | 2007-08-13 Alan Modra <amodra@bigpond.net.au> |
301 | ||
302 | * elf64-ppc.c (ADDI_R12_R12, LD_R11_0R2, LD_R2_0R2): Define. | |
303 | Update stub comments. | |
304 | (build_plt_stub): Build two variants, one without "addis". | |
305 | (ppc_build_one_stub): Build stubs without "addis" if possible. | |
306 | (ppc_size_one_stub): Size new stubs. | |
307 | ||
2f964f43 RS |
308 | 2007-08-11 Richard Sandiford <richard@codesourcery.com> |
309 | ||
310 | * config.bfd (sh-*-vxworks): Define targ_underscore to "yes". | |
311 | ||
6b8f0fd5 MS |
312 | 2007-08-09 Michael Snyder <msnyder@access-company.com> |
313 | ||
314 | * aoutx.h (aout_get_external_symbols): Return if count is zero. | |
315 | ||
6d33f217 L |
316 | 2007-08-09 H.J. Lu <hongjiu.lu@intel.com> |
317 | ||
318 | PR ld/4909 | |
319 | * elf.c (print_segment_map): New function. | |
320 | (assign_file_positions_for_load_sections): Call print_segment_map | |
321 | when a section can't be allocated in segment. | |
322 | ||
c309eac2 JK |
323 | 2007-08-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
324 | ||
325 | * opncls.c (bfd_openr_iovec): Fix the OPEN parameter macro expansion. | |
326 | ||
e6902efc NC |
327 | 2007-08-07 Nick Clifton <nickc@redhat.com> |
328 | ||
329 | * po/bfd.pot: Updated template. | |
330 | * po/BLD-POTFILES.in: Regenerate. | |
331 | ||
d5191d0c AM |
332 | 2007-08-07 Alan Modra <amodra@bigpond.net.au> |
333 | ||
334 | * elf.c: (_bfd_elf_make_section_from_phdr): Properly handle | |
335 | bss segments. | |
336 | ||
5eda1c47 DJ |
337 | 2007-08-06 Daniel Jacobowitz <dan@codesourcery.com> |
338 | ||
339 | * Makefile.am (BUILD_HFILES): Clean bfd_stdint.h. | |
340 | * Makefile.in: Regenerated. | |
341 | ||
be118e79 DJ |
342 | 2007-08-06 Daniel Jacobowitz <dan@codesourcery.com> |
343 | ||
344 | * configure.in: Update version to 2.18.50. | |
345 | * configure: Regenerated. | |
346 | ||
bd97cb95 DJ |
347 | 2007-08-06 Paul Brook <paul@codesourcery.com> |
348 | ||
349 | * elf32-arm.c (elf32_arm_link_hash_entry): Add | |
350 | plt_maybe_thumb_refcount. | |
351 | (elf32_arm_link_hash_newfunc): Set plt_maybe_thumb_refcount. | |
352 | (elf32_arm_copy_indirect_symbol): Ditto. | |
353 | (elf32_arm_adjust_dynamic_symbol): Ditto. | |
354 | (bfd_elf32_arm_process_before_allocation): Handle R_ARM_THM_JUMP24. | |
355 | (arm_add_to_rel): Ditto. | |
356 | (elf32_arm_final_link_relocate): Merge R_ARM_THM_JUMP24 with | |
357 | R_ARM_THM_CALL. Handle R_ARM_THM_JUMP19 against a PLT stub. | |
358 | (elf32_arm_gc_sweep_hook): Call check_use_blx. Update plt counts | |
359 | for R_ARM_THM_JUMP24 and R_ARM_THM_JUMP19. | |
360 | (elf32_arm_check_relocs): Update plt counts for R_ARM_THM_JUMP24 | |
361 | and R_ARM_THM_JUMP19. | |
362 | (allocate_dynrelocs): Use plt_maybe_thumb_refcount. | |
363 | (elf32_arm_finish_dynamic_symbol): Ditto. | |
364 | (elf32_arm_output_plt_map): Ditto. | |
365 | ||
c981028a DJ |
366 | 2007-08-06 Daniel Jacobowitz <dan@codesourcery.com> |
367 | ||
368 | * elf.c (rewrite_elf_program_header): Handle sections not sorted | |
369 | by address. | |
370 | (copy_elf_program_header): Likewise. | |
371 | ||
f7231afc L |
372 | 2007-08-04 H.J. Lu <hongjiu.lu@intel.com> |
373 | ||
374 | * elf-bfd.h (xvec_get_elf_backend_data): Add const. | |
375 | ||
376 | * elfcode.h (elf_object_p): Use xvec_get_elf_backend_data. | |
377 | * elfcore.h (elf_core_file_p): Likewise. | |
378 | ||
bd33be6e L |
379 | 2007-08-02 H.J. Lu <hongjiu.lu@intel.com> |
380 | ||
381 | * coffcode.h (ALIGN_SET): Removed. | |
382 | (ELIFALIGN_SET): Likewise. | |
383 | (coff_set_alignment_hook): Handle IMAGE_SCN_ALIGN_128BYTES, | |
384 | IMAGE_SCN_ALIGN_256BYTES, IMAGE_SCN_ALIGN_512BYTES, | |
385 | IMAGE_SCN_ALIGN_1024BYTES, IMAGE_SCN_ALIGN_2048BYTES, | |
386 | IMAGE_SCN_ALIGN_4096BYTES and IMAGE_SCN_ALIGN_8192BYTES. | |
387 | ||
dcf6c779 MS |
388 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
389 | ||
9b0ec667 MS |
390 | * vms-tir.c (new_section): Fix cut and paste error. |
391 | ||
20c6e70e MS |
392 | * aoutx.h (aout_link_add_symbols): Return if count is zero. |
393 | ||
dcf6c779 MS |
394 | * elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so |
395 | pointer must be non-null. | |
396 | ||
e708816d NC |
397 | 2007-08-01 Tristan Gingold <gingold@adacore.com> |
398 | ||
399 | * coffcode.h (coff_sort_func_alent): New function. | |
400 | (coff_slurp_line_table): Sort line table if not already sorted. | |
401 | ||
55b581a6 JJ |
402 | 2007-08-01 Jakub Jelinek <jakub@redhat.com> |
403 | ||
404 | * elf.c (_bfd_elf_map_sections_to_segments): Work around buggy | |
405 | GCC 3.4.x warning. | |
406 | ||
ad756e3f AM |
407 | 2007-08-01 Alan Modra <amodra@bigpond.net.au> |
408 | ||
409 | * aoutx.h (swap_ext_reloc_in): Set howto to NULL for unknown | |
410 | r_type. | |
411 | (swap_std_reloc_in): Likewise. | |
412 | (aout_link_input_section_std): Likewise. Return with an error | |
413 | on unexpected relocation type. | |
414 | (aout_link_input_section_ext): Likewise. | |
415 | ||
f6e688f7 AM |
416 | 2007-08-01 Alan Modra <amodra@bigpond.net.au> |
417 | ||
418 | PR4694 | |
419 | * aoutx.h (final_link): Write a zero in first word of | |
420 | stringtab if no symbols rather than corrupting last byte | |
421 | of text/data. | |
422 | ||
1c5265b5 JJ |
423 | 2007-07-31 Jakub Jelinek <jakub@redhat.com> |
424 | ||
425 | * elf.c (get_program_header_size): Adjacent loadable .note* | |
426 | sections need just one PT_NOTE segment. | |
427 | (_bfd_elf_map_sections_to_segments): Likewise. | |
428 | ||
9ee2139f MS |
429 | 2007-07-30 Michael Snyder <msnyder@access-company.com> |
430 | ||
431 | * coffgen.c (_bfd_coff_read_internal_relocs): Revert change of | |
432 | 2007-07-26. Buffer still in use, can't be freed. | |
433 | ||
c6aa130f MS |
434 | 2007-07-27 Michael Snyder <msnyder@access-company.com> |
435 | ||
d63388ff MS |
436 | * cofflink.c (coff_link_add_symbols): Return if count is zero. |
437 | ||
50a39e97 MS |
438 | * coff-i386.c (coff_i386_rtype_to_howto): Off by one error. |
439 | ||
87b32780 MS |
440 | * aoutx.h (slurp_symbol_table): Return if count == 0. |
441 | ||
9d7038d3 MS |
442 | * coffgen.c (_bfd_coff_read_internal_relocs): Return if count is zero. |
443 | ||
c6aa130f MS |
444 | * elf32-i386.c (elf_i386_check_relocs): Check for null pointer. |
445 | ||
170bfeb9 L |
446 | 2007-07-27 H.J. Lu <hongjiu.lu@intel.com> |
447 | ||
448 | * config.bfd (x86_64-*-mingw*): Don't include x86_64coff_vec. | |
449 | ||
507f5898 MS |
450 | 2007-07-26 Michael Snyder <msnyder@access-company.com> |
451 | ||
452 | * coff-i386.c (coff_i386_rtype_to_howto): Guard against null. | |
a6626e8c MS |
453 | |
454 | * linker.c (bfd_section_already_linked_table_insert): Change | |
455 | return type from void to boolean. Return FALSE on failure. | |
456 | (_bfd_generic_section_already_linked): Test return value of | |
457 | bfd_section_already_linked_table_insert, call fatal on error. | |
458 | ||
459 | * elflink.c (_bfd_elf_section_already_linked): Test return value | |
460 | of bfd_section_already_linked_table_insert, call fatal on error. | |
461 | ||
462 | * libbfd-in.h (bfd_section_already_linked_table_insert): Update | |
463 | return type to bfd_boolean. | |
464 | ||
465 | * libbfd.h: Regenerate. | |
466 | ||
36e44abd AN |
467 | 2007-07-26 Adam Nemet <anemet@caviumnetworks.com> |
468 | ||
469 | * archive.c (do_slurp_bsd_armap, do_slurp_coff_armap, | |
470 | bfd_slurp_armap): Improve function comment. | |
471 | ||
b7fd5ce1 MS |
472 | 2007-07-26 Michael Snyder <msnyder@access-company.com> |
473 | ||
2d4f3e92 MS |
474 | * linker.c (already_linked_newfunc): Check for NULL return from |
475 | bfd_hash_allocate. | |
476 | ||
ac38308c MS |
477 | * coffgen.c (fixup_symbol_value): Guard against null; |
478 | bfd_is_com_section will dereference the section pointer. | |
479 | ||
c82a7c57 MS |
480 | * syms.c (bfd_decode_symclass): Guard against NULL, since |
481 | bfd_is_com_section dereferences the pointer. | |
482 | ||
3d7b34d8 MS |
483 | * srec.c (srec_scan): Check for EOF (critical because return value |
484 | will be used as array index). | |
485 | ||
44c62d9e MS |
486 | * coffgen.c (_bfd_coff_read_internal_relocs): If internal_relocs |
487 | are not to be cached, free the temporary buffer. | |
488 | ||
078c4bfc MS |
489 | * aoutx.h (slurp_reloc_table): Return TRUE if reloc_size == zero |
490 | or count == zero. | |
491 | ||
814b5378 MS |
492 | * tekhex.c (first_phase): Check return value for null. |
493 | ||
b7fd5ce1 MS |
494 | * elf.c (_bfd_elf_get_synthetic_symtab): Remove meaningless |
495 | pointer increment. | |
496 | ||
b9da616a AM |
497 | 2007-07-26 Alan Modra <amodra@bigpond.net.au> |
498 | ||
33774f08 AM |
499 | * elflink.c (_bfd_elf_fix_symbol_flags): Remove unnecessary |
500 | check on dynobj. Remove bed shadow. | |
501 | ||
e62071b6 AM |
502 | * srec.c (srec_get_section_contents): Return immediately on |
503 | count zero. Check that offset and count are within section. | |
504 | * libbfd.c (_bfd_generic_get_section_contents): Check that | |
505 | offset + count does not overflow. | |
506 | ||
b9da616a AM |
507 | * srec.c (srec_canonicalize_symtab): Don't alloc when symcount |
508 | is zero. Correct return value on error. | |
509 | * mmo.c (mmo_canonicalize_symtab): Likewise. | |
510 | * binary.c (binary_canonicalize_symtab) Correct return on error. | |
511 | ||
c2c96631 TS |
512 | 2007-07-26 Thiemo Seufer <ths@mips.com> |
513 | ||
514 | * bfd.c (_bfd_set_gp_value): Use abort instead of BFD_FAIL. | |
515 | ||
d4947150 AM |
516 | 2007-07-26 Alan Modra <amodra@bigpond.net.au> |
517 | ||
518 | * reloc.c (bfd_generic_get_relocated_section_contents): Avoid | |
519 | bfd_canonicalize_reloc call when bfd_get_reloc_upper_bound | |
520 | says there are no relocs. | |
521 | ||
bd210d54 | 522 | 2007-07-26 Doug Kwan <dougkwan@google.com> |
d4947150 | 523 | |
bd210d54 NC |
524 | Speed up bfd_dwarf2_find_line. |
525 | * dwarf2.c (struct dwarf2_debug): Add new fields to support function | |
526 | and variable info hash tables. Add last_comp_unit, info_hash_count, | |
527 | funcinfo_hash_table, varinfo_hash_table, hash_units_head. | |
528 | (struct comp_unit): Add prev_unit, cached. | |
529 | (struct info_list_node, struct info_hash_entry, | |
530 | struct info_hash_table): New. | |
531 | (info_hash_table_newfunc, create_info_hash_table, | |
532 | insert_info_hash_table, lookup_info_hash_table): New functions | |
533 | implementing function and variable info hash tables. | |
534 | (scan_unit_for_symbols): Add checks to make sure hash tables are | |
535 | consistent with compilation units. | |
536 | (comp_unit_maybe_decode_line_info): New function. | |
537 | (comp_unit_find_line): Use comp_unit_maybe_decode_line_info. | |
538 | (reverse_funcinfo_list, reverse_varinfo_list, comp_unit_hash_info, | |
539 | info_hash_lookup_funcinfo, info_hash_lookup_varinfo, | |
540 | stash_maybe_update_info_hash_table, stash_verify_info_hash_table, | |
541 | stash_maybe_enable_info_hash_tables, stash_find_line_fast): New | |
542 | functions. Make use of info hash tables to speed up | |
543 | bfd_dwarf2_find_line. | |
544 | (find_line): Use hash table for faster lookup if it is turned on. | |
545 | Also add code to maintain bi-directional link in comp units. | |
546 | ||
353c5574 MS |
547 | 2007-07-25 Michael Snyder <msnyder@access-company.com> |
548 | ||
549 | * coffgen.c (_bfd_coff_get_external_symbols): Nothing to be done | |
550 | if size == 0; return and avoid possible null pointer issues. | |
551 | ||
f08c429c AM |
552 | 2007-07-25 Alan Modra <amodra@bigpond.net.au> |
553 | ||
554 | * linker.c (generic_link_add_symbol_list): Warning fix. | |
555 | ||
d0f16d5e MS |
556 | 2007-07-24 Michael Snyder <msnyder@access-company.com> |
557 | ||
f6eea5ae MS |
558 | * opncls.c (bfd_make_writable): Check return from bfd_malloc. |
559 | ||
d0f16d5e MS |
560 | * elflink.c (bfd_elf_final_link): Avoid redundant frees -- return |
561 | on bfd_malloc error rather than goto error_return. | |
562 | ||
4d269e42 AM |
563 | 2007-07-24 Alan Modra <amodra@bigpond.net.au> |
564 | ||
565 | * elflink.c (_bfd_elf_link_just_syms, merge_sections_remove_hook, | |
566 | _bfd_elf_merge_sections, _bfd_elf_link_hash_newfunc, | |
567 | _bfd_elf_link_hash_copy_indirect, _bfd_elf_link_hash_hide_symbol, | |
568 | _bfd_elf_link_hash_table_init, _bfd_elf_link_hash_table_create, | |
569 | bfd_elf_set_dt_needed_name, bfd_elf_get_dyn_lib_class, | |
570 | bfd_elf_set_dyn_lib_class, bfd_elf_get_needed_list, | |
571 | bfd_elf_get_runpath_list, bfd_elf_get_dt_soname, | |
572 | bfd_elf_get_bfd_needed_list, struct elf_symbuf_symbol, | |
573 | struct elf_symbuf_head, struct elf_symbol, elf_sort_elf_symbol, | |
574 | elf_sym_name_compare, elf_create_symbuf, | |
575 | bfd_elf_match_symbols_in_sections, | |
576 | _bfd_elf_match_sections_by_type): Move to here.. | |
577 | * elf.c: ..from here. | |
578 | ||
a26587ba RS |
579 | 2007-07-23 Richard Sandiford <richard@codesourcery.com> |
580 | ||
581 | * elflink.c (_bfd_elf_fix_symbol_flags): Only assert the type | |
582 | of weakdef->root.type if weakdef has no regular definition. | |
583 | ||
0e53d9da AN |
584 | 2007-07-22 Adam Nemet <anemet@caviumnetworks.com> |
585 | ||
586 | * elfxx-mips.c (struct mips_elf_link_hash_table): Add new field | |
587 | small_data_overflow_reported. | |
588 | (_bfd_mips_elf_link_hash_table_create): Initialize it. | |
589 | (_bfd_mips_elf_relocate_section) <bfd_reloc_overflow>: Report | |
590 | small-data section overflow. | |
591 | ||
6b33789f NC |
592 | 2007-07-19 Doug Kwan <dougkwan@google.com> |
593 | ||
4d269e42 AM |
594 | PR binutils/4797 |
595 | * dwarf2.c: (find_line) Do not dereference functionname_ptr if | |
596 | do_line is true. | |
6b33789f | 597 | |
13161072 | 598 | 2007-07-18 Bob Wilson <bob.wilson@acm.org> |
4d269e42 | 599 | |
13161072 BW |
600 | * elf32-xtensa.c (xtensa_callback_required_dependence): Ignore |
601 | non-ELF sections. | |
4d269e42 | 602 | |
e29297b7 | 603 | 2007-07-18 Bob Wilson <bob.wilson@acm.org> |
4d269e42 | 604 | |
e29297b7 BW |
605 | * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Get section |
606 | vma and size for dynamic tags from the output sections. | |
4d269e42 | 607 | |
a5d1b3b5 AM |
608 | 2007-07-18 Alan Modra <amodra@bigpond.net.au> |
609 | ||
610 | * elf-bfd.h (struct sym_sec_cache): Delete "sec". Add "shndx". | |
611 | * elf.c (bfd_section_from_r_symndx): Don't cache bfd section of | |
612 | symbol. Instead cache ELF section index. Remove redundant | |
613 | checks of st_shndx. | |
614 | ||
d955dada MF |
615 | 2007-07-15 Mike Frysinger <vapier@gentoo.org> |
616 | ||
617 | * trad-core.c (NBPG): If not defined, set to getpagesize(). | |
618 | ||
979dc3bc RM |
619 | 2007-07-13 Roland McGrath <roland@redhat.com> |
620 | ||
621 | * elf-bfd.h (struct elf_obj_tdata): Revert last change. | |
622 | Add after_write_object_contents, after_write_object_contents_info. | |
623 | * elf.c (_bfd_elf_write_object_contents): Revert last change. | |
624 | Instead, call after_write_object_contents if set. | |
625 | ||
d2df793a NC |
626 | 2007-07-12 Kai Tietz <kai.tietz@onevision.com> |
627 | ||
628 | * bfd-in.h: (BFD_HOST_64BIT_LONG_LONG): New. | |
629 | (BFD_HOSTPTR_T): Host pointer type for casting a | |
630 | pointer to an integer type. | |
631 | (bfd_hostptr_t): The typedef of BFD_HOSTPTR_T. | |
632 | (sprintf_vma, fprintf_vma): Add support for long long prints. | |
633 | * bfd-in2.h: Regenerate. | |
634 | * configure.in: (BFD_HOST_64BIT_LONG_LONG): New. | |
635 | (BFD_HOSTPTR_T): Host pointer type for casting a | |
636 | pointer to an integer type. Default is "unsigned long". | |
637 | (AC_CHECK_SIZEOF(void *)): New. | |
638 | (host64): Set it if the pointer size is 8. | |
639 | * configure: Regenerate. | |
640 | * config.in: Add macro SIZEOF_VOID_P. | |
641 | * coffcode.h: Replace host ptr type assuming "long" with | |
642 | bfd_hostptr_t type. | |
643 | * coffgen.c: Likewise. | |
644 | * elf-eh-frame.c: Likewise. | |
645 | * peicode.h: Likewise. | |
646 | ||
a3a4ddad L |
647 | 2007-07-10 H.J. Lu <hongjiu.lu@intel.com> |
648 | ||
649 | * Makefile.in: Regenerated. | |
650 | ||
329b43c4 L |
651 | 2007-07-10 H.J. Lu <hongjiu.lu@intel.com> |
652 | ||
653 | PR binutils/4756 | |
654 | * simple.c (bfd_simple_get_relocated_section_content): Don't | |
655 | apply relocation on executable and shared library. | |
656 | ||
cfd2c773 NS |
657 | 2007-07-10 Nathan Sidwell <nathan@codesourcery.com> |
658 | ||
659 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't eliminate | |
660 | copy relocs on vxworks. | |
661 | ||
1489a3a0 AM |
662 | 2007-07-10 Alan Modra <amodra@bigpond.net.au> |
663 | ||
664 | * elf32-arm.c (elf32_arm_size_info): Init checksum_contents field. | |
665 | * elf64-alpha.c (alpha_elf_size_info): Likewise. | |
666 | * elf64-hppa.c (hppa64_elf_size_info): Likewise. | |
667 | * elf64-mips.c (mips_elf64_size_info): Likewise. | |
668 | * elf64-s390.c (s390_elf64_size_info): Likewise. | |
669 | * elf64-sparc.c (elf64_sparc_size_info): Likewise. | |
670 | ||
00cbee0a L |
671 | 2007-07-09 H.J. Lu <hongjiu.lu@intel.com> |
672 | ||
673 | * elflink.c (bfd_elf_record_link_assignment): Handle indirect | |
674 | symbol. | |
675 | (_bfd_elf_merge_symbol): Properly update normal symbol when | |
676 | overriding the versioned symbol from a dynamic library. | |
677 | ||
fd2f25da RM |
678 | 2007-07-09 Roland McGrath <roland@redhat.com> |
679 | ||
680 | * elf-bfd.h (struct elf_obj_tdata): Add members | |
681 | emit_note_gnu_build_id and note_gnu_build_id_sec. | |
682 | * elf.c (_bfd_id_note_section_size): New global function. | |
683 | (read_hex, _bfd_elf_write_build_id_section): New static functions. | |
684 | (_bfd_elf_write_object_contents): Call _bfd_elf_write_build_id_section | |
685 | if emit_note_gnu_build_id is set. | |
686 | * Makefile.am (elf.lo): Update dependencies. | |
687 | ||
688 | * elf-bfd.h (struct elf_size_info): Add checksum_contents hook. | |
689 | (bfd_elf32_checksum_contents, bfd_elf64_checksum_contents): Declare. | |
690 | * elfcode.h (elf_checksum_contents): New macro and function. | |
691 | (NAME(_bfd_elf,size_info)): Initialize checksum_contents hook. | |
692 | ||
9af2a943 AM |
693 | 2007-07-06 Michael Snyder <msnyder@access-company.com> |
694 | ||
695 | * elflink.c (elf_link_add_object_symbols): Return via | |
696 | error_free_vers on "notice" failure. | |
697 | ||
a93221e5 L |
698 | 2007-07-04 H.J. Lu <hongjiu.lu@intel.com> |
699 | ||
700 | * peicode.h (pe_bfd_object_p): Don't check PE vs. EFI target | |
701 | if arch is unknown. | |
702 | ||
b4928193 NC |
703 | 2007-07-04 Nick Clifton <nickc@redhat.com> |
704 | ||
705 | Import this patch from an internal tree: | |
9af2a943 | 706 | |
b4928193 NC |
707 | 2001-07-17 Richard Henderson <rth@redhat.com> |
708 | ||
709 | * elf32-mep.c (mep_final_link_relocate) [R_MEP_HI16S]: Correctly | |
710 | compensate for high bit set in R_MEP_LOW16. | |
711 | ||
3cfad14c JM |
712 | 2007-07-03 Joseph Myers <joseph@codesourcery.com> |
713 | ||
714 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Copy type from | |
715 | input attributes if value has been copied. | |
716 | ||
cd123cb7 NC |
717 | 2007-07-03 Nick Clifton <nickc@redhat.com> |
718 | ||
719 | * COPYING: Replace with GPLv3 text. | |
720 | * aix386-core.c: Update copyright notice to refer to GPLv3. | |
721 | * aix5ppc-core.c, aout0.c, aout32.c, aout64.c, aout-adobe.c, | |
722 | aout-arm.c, aout-cris.c, aoutf1.h, aout-ns32k.c, aout-sparcle.c, | |
723 | aout-target.h, aout-tic30.c, aoutx.h, archive64.c, archive.c, | |
724 | archures.c, armnetbsd.c, bfd.c, bfd-in.h, bfdio.c, bfdwin.c, | |
725 | binary.c, bout.c, cache.c, cf-i386lynx.c, cf-sparclynx.c, | |
726 | cisco-core.c, coff64-rs6000.c, coff-alpha.c, coff-apollo.c, | |
727 | coff-arm.c, coff-aux.c, coffcode.h, coffgen.c, coff-go32.c, | |
728 | coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i860.c, coff-i960.c, | |
729 | coff-ia64.c, cofflink.c, coff-m68k.c, coff-m88k.c, coff-maxq.c, | |
730 | coff-mcore.c, coff-mips.c, coff-or32.c, coff-pmac.c, coff-ppc.c, | |
731 | coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c, | |
732 | coff-svm68k.c, coffswap.h, coff-tic30.c, coff-tic4x.c, | |
733 | coff-tic54x.c, coff-tic80.c, coff-u68k.c, coff-w65.c, | |
734 | coff-we32k.c, coff-x86_64.c, coff-z80.c, coff-z8k.c, corefile.c, | |
735 | cpu-alpha.c, cpu-arc.c, cpu-arm.c, cpu-avr.c, cpu-bfin.c, | |
736 | cpu-cr16.c, cpu-cr16c.c, cpu-cris.c, cpu-crx.c, cpu-d10v.c, | |
737 | cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, cpu-h8300.c, | |
738 | cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, cpu-i860.c, | |
739 | cpu-i960.c, cpu-ia64.c, cpu-ia64-opc.c, cpu-ip2k.c, cpu-iq2000.c, | |
740 | cpu-m10200.c, cpu-m10300.c, cpu-m32c.c, cpu-m32r.c, cpu-m68hc11.c, | |
741 | cpu-m68hc12.c, cpu-m68k.c, cpu-m88k.c, cpu-maxq.c, cpu-mcore.c, | |
742 | cpu-mep.c, cpu-mips.c, cpu-mmix.c, cpu-msp430.c, cpu-mt.c, | |
743 | cpu-ns32k.c, cpu-openrisc.c, cpu-or32.c, cpu-pdp11.c, cpu-pj.c, | |
744 | cpu-powerpc.c, cpu-rs6000.c, cpu-s390.c, cpu-score.c, cpu-sh.c, | |
745 | cpu-sparc.c, cpu-spu.c, cpu-tic30.c, cpu-tic4x.c, cpu-tic54x.c, | |
746 | cpu-tic80.c, cpu-v850.c, cpu-vax.c, cpu-w65.c, cpu-we32k.c, | |
747 | cpu-xc16x.c, cpu-xstormy16.c, cpu-xtensa.c, cpu-z80.c, cpu-z8k.c, | |
748 | demo64.c, doc/chew.c, dwarf1.c, dwarf2.c, ecoff.c, ecofflink.c, | |
749 | ecoffswap.h, efi-app-ia32.c, efi-app-ia64.c, efi-app-x86_64.c, | |
750 | elf32-am33lin.c, elf32-arc.c, elf32-arm.c, elf32-avr.c, | |
751 | elf32-avr.h, elf32-bfin.c, elf32.c, elf32-cr16.c, elf32-cr16c.c, | |
752 | elf32-cris.c, elf32-crx.c, elf32-d10v.c, elf32-d30v.c, | |
753 | elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-gen.c, | |
754 | elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, elf32-i370.c, | |
755 | elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c, | |
756 | elf32-iq2000.c, elf32-m32c.c, elf32-m32r.c, elf32-m68hc11.c, | |
757 | elf32-m68hc12.c, elf32-m68hc1x.c, elf32-m68hc1x.h, elf32-m68k.c, | |
758 | elf32-m88k.c, elf32-mcore.c, elf32-mep.c, elf32-mips.c, | |
759 | elf32-msp430.c, elf32-mt.c, elf32-openrisc.c, elf32-or32.c, | |
760 | elf32-pj.c, elf32-ppc.c, elf32-ppc.h, elf32-s390.c, elf32-score.c, | |
761 | elf32-sh64.c, elf32-sh64-com.c, elf32-sh64.h, elf32-sh.c, | |
762 | elf32-sh-symbian.c, elf32-sparc.c, elf32-spu.c, elf32-spu.h, | |
763 | elf32-v850.c, elf32-vax.c, elf32-xc16x.c, elf32-xstormy16.c, | |
764 | elf32-xtensa.c, elf64-alpha.c, elf64.c, elf64-gen.c, elf64-hppa.c, | |
765 | elf64-hppa.h, elf64-mips.c, elf64-mmix.c, elf64-ppc.c, | |
766 | elf64-ppc.h, elf64-s390.c, elf64-sh64.c, elf64-sparc.c, | |
767 | elf64-x86-64.c, elf-attrs.c, elf-bfd.h, elf.c, elfcode.h, | |
768 | elfcore.h, elf-eh-frame.c, elf-hppa.h, elflink.c, elf-m10200.c, | |
769 | elf-m10300.c, elfn32-mips.c, elf-strtab.c, elf-vxworks.c, | |
770 | elf-vxworks.h, elfxx-ia64.c, elfxx-mips.c, elfxx-mips.h, | |
771 | elfxx-sparc.c, elfxx-sparc.h, elfxx-target.h, epoc-pe-arm.c, | |
772 | epoc-pei-arm.c, format.c, freebsd.h, gen-aout.c, genlink.h, | |
773 | hash.c, host-aout.c, hosts/alphavms.h, hp300bsd.c, hp300hpux.c, | |
774 | hppabsd-core.c, hpux-core.c, i386aout.c, i386bsd.c, i386dynix.c, | |
775 | i386freebsd.c, i386linux.c, i386lynx.c, i386mach3.c, i386msdos.c, | |
776 | i386netbsd.c, i386os9k.c, ieee.c, ihex.c, init.c, irix-core.c, | |
777 | libaout.h, libbfd.c, libbfd-in.h, libcoff-in.h, libecoff.h, | |
778 | libhppa.h, libieee.h, libnlm.h, liboasys.h, libpei.h, libxcoff.h, | |
779 | linker.c, lynx-core.c, m68k4knetbsd.c, m68klinux.c, m68knetbsd.c, | |
780 | m88kmach3.c, m88kopenbsd.c, mach-o.c, mach-o.h, mach-o-target.c, | |
781 | mep-relocs.pl, merge.c, mipsbsd.c, mmo.c, netbsd-core.c, netbsd.h, | |
782 | newsos3.c, nlm32-alpha.c, nlm32.c, nlm32-i386.c, nlm32-ppc.c, | |
783 | nlm32-sparc.c, nlm64.c, nlm.c, nlmcode.h, nlmswap.h, nlm-target.h, | |
784 | ns32k.h, ns32knetbsd.c, oasys.c, opncls.c, osf-core.c, | |
785 | pc532-mach.c, pdp11.c, pe-arm.c, pe-arm-wince.c, pef.c, pef.h, | |
786 | pef-traceback.h, pe-i386.c, pei-arm.c, pei-arm-wince.c, peicode.h, | |
787 | pei-i386.c, pei-mcore.c, pei-mips.c, pei-ppc.c, pei-sh.c, | |
788 | pei-x86_64.c, pe-mcore.c, pe-mips.c, pe-ppc.c, pe-sh.c, | |
789 | pe-x86_64.c, peXXigen.c, ppcboot.c, ptrace-core.c, reloc16.c, | |
790 | reloc.c, riscix.c, rs6000-core.c, sco5-core.c, section.c, | |
791 | simple.c, som.c, som.h, sparclinux.c, sparclynx.c, sparcnetbsd.c, | |
792 | srec.c, stabs.c, stab-syms.c, stamp-h.in, sunos.c, syms.c, | |
793 | sysdep.h, targets.c, targmatch.sed, tekhex.c, ticoff.h, | |
794 | trad-core.c, vax1knetbsd.c, vaxbsd.c, vaxnetbsd.c, versados.c, | |
795 | vms.c, vms-gsd.c, vms.h, vms-hdr.c, vms-misc.c, vms-tir.c, | |
796 | xcofflink.c, xcoff-target.h, xsym.c, xsym.h, xtensa-isa.c, | |
797 | xtensa-modules.c: Likewise. | |
798 | * elf32-sh-relocs.h: Add copyright notice. | |
799 | * hosts/alphalinux.h, hosts/decstation.h, hosts/delta68.h, | |
800 | hosts/dpx2.h, hosts/hp300bsd.h, hosts/i386bsd.h, | |
801 | hosts/i386linux.h, hosts/i386mach3.h, hosts/i386sco.h, | |
802 | hosts/i860mach3.h, hosts/m68kaux.h, hosts/m68klinux.h, | |
803 | hosts/m88kmach3.h, hosts/mipsbsd.h, hosts/mipsmach3.h, | |
804 | hosts/news.h, hosts/news-mips.h, hosts/pc532mach.h, | |
805 | hosts/riscos.h, hosts/symmetry.h, hosts/tahoe.h, hosts/vaxbsd.h, | |
806 | hosts/vaxlinux.h, hosts/vaxult2.h, hosts/vaxult.h: Likewise. | |
807 | * bfd-in2.h, libbfd.h, libcoff.h: Regenerate. | |
808 | ||
741d6ea8 JM |
809 | 2007-07-02 Joseph Myers <joseph@codesourcery.com> |
810 | ||
811 | * elfxx-mips.c (mips_elf_calculate_relocation): Handle | |
812 | R_MIPS_TLS_DTPREL32 and R_MIPS_TLS_DTPREL64. | |
813 | * elf64-mips.c (mips_elf64_howto_table_rela): Support | |
814 | R_MIPS_TLS_DTPREL64. | |
815 | ||
ae351704 AM |
816 | 2007-07-02 Alan Modra <amodra@bigpond.net.au> |
817 | ||
818 | * Makefile.am: Run "make dep-am". | |
819 | * Makefile.in: Regenerate. | |
820 | * aclocal.m4: Regenerate. | |
821 | * config.in: Regenerate. | |
822 | * po/SRC-POTFILES.in: Regenerate. | |
823 | * po/bfd.pot: Regenerate. | |
824 | ||
3e5484db AM |
825 | 2007-07-02 Alan Modra <amodra@bigpond.net.au> |
826 | ||
827 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Tidy | |
828 | symsec != NULL tests. | |
829 | ||
08a40648 AM |
830 | 2007-07-02 Alan Modra <amodra@bigpond.net.au> |
831 | ||
832 | PR 4712 | |
833 | * elf.c (assign_file_positions_for_load_sections): Adjust lma | |
834 | by p_vaddr_offset. | |
835 | ||
86b57e31 L |
836 | 2007-06-30 H.J. Lu <hongjiu.lu@intel.com> |
837 | ||
838 | * aclocal.m4: Regenerated. | |
839 | * Makefile.in: Likewise. | |
840 | ||
34c8bcba JM |
841 | 2007-06-29 Joseph Myers <joseph@codesourcery.com> |
842 | ||
843 | * elf32-ppc.c (ppc_elf_merge_obj_attributes): New. | |
844 | (ppc_elf_merge_private_bfd_data): Call it. | |
845 | ||
2cf19d5c JM |
846 | 2007-06-29 Joseph Myers <joseph@codesourcery.com> |
847 | ||
848 | * elfxx-mips.c (mips_elf_merge_obj_attributes): New. | |
849 | (_bfd_mips_elf_merge_private_bfd_data): Call it. | |
850 | ||
104d59d1 JM |
851 | 2007-06-29 Joseph Myers <joseph@codesourcery.com> |
852 | ||
853 | * elf-attrs.c: New. | |
854 | * Makefile.am (BFD32_BACKENDS): Add elf-attrs.lo. | |
855 | (BFD32_BACKENDS_CFILES): Add elf-attrs.c. | |
856 | (elf-attrs.lo): Generate dependencies. | |
857 | * Makefile.in: Regenerate. | |
858 | * configure.in (elf): Add elf-attrs.lo. | |
859 | * configure: Regenerate. | |
860 | * elf-bfd.h (struct elf_backend_data): Add entries for object | |
861 | attributes. | |
862 | (NUM_KNOWN_OBJ_ATTRIBUTES, obj_attribute, obj_attribute_list, | |
863 | OBJ_ATTR_PROC, OBJ_ATTR_GNU, OBJ_ATTR_FIRST, OBJ_ATTR_LAST, | |
864 | Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility): | |
865 | New. | |
866 | (struct elf_obj_tdata): Add entries for object attributes. | |
867 | (elf_known_obj_attributes, elf_other_obj_attributes, | |
868 | elf_known_obj_attributes_proc, elf_other_obj_attributes_proc): | |
869 | New. | |
870 | (bfd_elf_obj_attr_size, bfd_elf_set_obj_attr_contents, | |
871 | bfd_elf_get_obj_attr_int, bfd_elf_add_obj_attr_int, | |
872 | bfd_elf_add_proc_attr_int, bfd_elf_add_obj_attr_string, | |
873 | bfd_elf_add_proc_attr_string, bfd_elf_add_obj_attr_compat, | |
874 | bfd_elf_add_proc_attr_compat, _bfd_elf_attr_strdup, | |
875 | _bfd_elf_copy_obj_attributes, _bfd_elf_obj_attrs_arg_type, | |
876 | _bfd_elf_parse_attributes, _bfd_elf_merge_object_attributes): New. | |
877 | * elf.c (_bfd_elf_copy_private_bfd_data): Copy object attributes. | |
878 | (bfd_section_from_shdr): Handle attributes sections. | |
879 | * elflink.c (bfd_elf_final_link): Handle attributes sections. | |
880 | * elfxx-target.h (elf_backend_obj_attrs_vendor, | |
881 | elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type, | |
882 | elf_backend_obj_attrs_section_type): New. | |
883 | (elfNN_bed): Update. | |
884 | * elf32-arm.c (NUM_KNOWN_ATTRIBUTES, aeabi_attribute, | |
885 | aeabi_attribute_list): Remove. | |
886 | (struct elf32_arm_obj_tdata): Remove object attributes fields. | |
887 | (check_use_blx, bfd_elf32_arm_set_vfp11_fix, using_thumb2, | |
888 | elf32_arm_copy_private_bfd_data, elf32_arm_merge_eabi_attributes): | |
889 | Update for new object attributes interfaces. | |
890 | (uleb128_size, is_default_attr, eabi_attr_size, | |
891 | elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute, | |
892 | elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link, | |
893 | elf32_arm_new_eabi_attr, elf32_arm_get_eabi_attr_int, | |
894 | elf32_arm_add_eabi_attr_int, attr_strdup, | |
895 | elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat, | |
896 | copy_eabi_attributes, elf32_arm_parse_attributes): Remove. Moved | |
897 | to generic code in elf-attrs.c. | |
898 | (elf32_arm_obj_attrs_arg_type): New. | |
899 | (elf32_arm_fake_sections): Do not handle .ARM.attributes. | |
900 | (elf32_arm_section_from_shdr): Do not handle SHT_ARM_ATTRIBUTES. | |
901 | (bfd_elf32_bfd_final_link): Remove. | |
902 | (elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section, | |
903 | elf_backend_obj_attrs_arg_type, | |
904 | elf_backend_obj_attrs_section_type): New. | |
905 | * elf32-bfin.c (bfin_elf_copy_private_bfd_data): Copy object | |
906 | attributes. | |
907 | * elf32-frv.c (frv_elf_copy_private_bfd_data): Likewise. | |
908 | * elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Likewise. | |
909 | * elf32-mep.c (mep_elf_copy_private_bfd_data): Likewise. | |
910 | * elf32-mt.c (mt_elf_copy_private_bfd_data): Likewise. | |
911 | * elf32-sh.c (sh_elf_copy_private_data): Likewise. | |
912 | * elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise. | |
913 | ||
5ab79981 PB |
914 | 2007-06-29 Paul Brook <paul@codesourcery.com> |
915 | ||
916 | * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Suppress | |
917 | call veneers for call relocations against undefined symbols. | |
918 | (elf32_arm_final_link_relocate): Turn call to undefined symbol | |
919 | into a jump to the next instruction. | |
920 | ||
c6aa130f | 921 | 2007-06-29 Michael Snyder <msnyder@access-company.com> |
32e8a950 NC |
922 | |
923 | * bfd.c (bfd_demangle): Plug memory leak (Coverity). | |
924 | ||
3d3d428f NC |
925 | 2007-06-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com> |
926 | ||
927 | * Makefile.am: Add cr16 related entry | |
928 | * Makefile.in: Regenerate | |
929 | * archures.c: Add bfd_cr16_arch | |
930 | * bfd-in2.h: Regenerate | |
931 | * config.bfd: Add cr16-elf | |
932 | * configure.in: Add bfd_elf32_cr16_vec | |
933 | * configure: Regenerate. | |
934 | * targets.c: Added cr16 related information | |
935 | * cpu-cr16.c: New file. | |
936 | * elf32-cr16.c: New file. | |
937 | * reloc.c: Added cr16 relocs. | |
938 | ||
c55fe096 AM |
939 | 2007-06-29 Alan Modra <amodra@bigpond.net.au> |
940 | ||
941 | * elflink.c (_bfd_elf_link_assign_sym_version): Improve error | |
942 | message for undefined version nodes. | |
943 | (elf_gc_sweep): Don't warn when zero size sections are | |
944 | removed. | |
945 | ||
375de94a AM |
946 | 2007-06-29 Nathan Froyd <froydnj@codesourcery.com> |
947 | ||
948 | * elf32-ppc.c (ppc_elf_info_to_howto): Check for invalid relocation | |
949 | types. | |
950 | ||
7d3287cb AM |
951 | 2007-06-29 Alan Modra <amodra@bigpond.net.au> |
952 | ||
953 | * elf32-spu.c (spu_elf_fake_sections): New function. | |
954 | (elf_backend_fake_sections): Define. | |
955 | ||
6a3cd2b4 AM |
956 | 2007-06-29 Alan Modra <amodra@bigpond.net.au> |
957 | ||
958 | * elf.c (assign_file_positions_for_load_sections): Use elf | |
959 | section header sh_size rather than bfd section size, simplifying | |
960 | .tbss handling. | |
961 | ||
bf988460 AM |
962 | 2007-06-29 Alan Modra <amodra@bigpond.net.au> |
963 | ||
36fc76ae | 964 | PR ld/4701 |
bf988460 AM |
965 | * elf.c (assign_file_positions_for_load_sections): Ensure bss |
966 | segments meet gABI alignment requirements. Don't allocate | |
967 | file space for bss sections in a segment also containing file | |
968 | or program headers. | |
969 | ||
60b31e8d AM |
970 | 2007-06-27 Alan Modra <amodra@bigpond.net.au> |
971 | ||
cc481421 AM |
972 | * bfd.c (struct bfd): Rename "next" to "archive_next". |
973 | * archive.c: Rename uses throughout file. | |
974 | * archive64.c: Likewise. | |
975 | * coff-rs6000.c: Likewise. | |
976 | * ecoff.c: Likewise. | |
977 | * som.c: Likewise. | |
978 | * bfd-in2.h: Regenerate. | |
979 | ||
60b31e8d AM |
980 | * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over |
981 | input bfds. | |
58eb693e | 982 | * elf32-spu.c (spu_elf_create_sections): Likewise. |
60b31e8d | 983 | |
bec42b15 NC |
984 | 2007-06-26 H.J. Lu <hongjiu.lu@intel.com> |
985 | ||
986 | * dwarf2.c (find_line): New. Contains the duplicated code from: | |
987 | (_bfd_dwarf2_find_nearest_line): Use it. | |
988 | (_bfd_dwarf2_find_line): Use it. | |
989 | ||
3d3e6f9a JM |
990 | 2007-06-26 Joseph Myers <joseph@codesourcery.com> |
991 | ||
992 | * elf32-arm.c (copy_eabi_attributes): Copy type of attributes. | |
993 | ||
b314ec0e RS |
994 | 2007-06-25 Richard Sandiford <richard@codesourcery.com> |
995 | ||
996 | * elfxx-mips.c (mips_elf_calculate_relocation): Allow local stubs | |
997 | to be used for calls from MIPS16 code. | |
998 | ||
0d4a1476 AS |
999 | 2007-06-23 Andreas Schwab <schwab@suse.de> |
1000 | ||
1001 | * configure.in (--with-separate-debug-dir): New option. | |
1002 | * configure: Regenerate. | |
1003 | * Makefile.am (dwarf2.lo): Add rule to pass DEBUGDIR. | |
1004 | * Makefile.in: Regenerate. | |
1005 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Pass DEBUGDIR to | |
1006 | bfd_follow_gnu_debuglink. | |
1007 | (_bfd_dwarf2_find_line): Likewise. | |
1008 | ||
0d161102 NC |
1009 | 2007-06-22 Nick Clifton <nickc@redhat.com> |
1010 | ||
1011 | * dwarf2.c: Add support for reading in debug information via a | |
1012 | .gnu_debuglink section: | |
1013 | (struct dwarf2_debug): Add bfd field to record the bfd containing | |
1014 | the debug info. | |
1015 | (parse_comp_unit): Remove ABFD parameter. Instead use the bfd | |
1016 | field in the dwarf2_debug structure. | |
1017 | (_bfd_dwarf2_find_nearest_line): If a debug info section could not | |
1018 | be found in the current bfd call bfd_follow_gnu_debuglink to see | |
1019 | if another file contains the debug information. If it does, open | |
1020 | it and continue. | |
1021 | (_bfd_dwarf2_find_line): Likewise. | |
1022 | ||
293a0124 L |
1023 | 2007-06-19 H.J. Lu <hongjiu.lu@intel.com> |
1024 | ||
1025 | PR ld/4590 | |
1026 | * elfxx-ia64.c (sort_dyn_sym_info): Keep the valid got_offset | |
1027 | when removing duplicated entries. | |
1028 | (get_dyn_sym_info): Initialize the got_offset field to -1. | |
1029 | Update call to sort_dyn_sym_info. | |
1030 | (elfNN_ia64_relocate_section): Call sort_dyn_sym_info to sort | |
1031 | array of addend and remove duplicates. | |
1032 | ||
dc1f3d8a L |
1033 | 2007-06-18 H.J. Lu <hongjiu.lu@intel.com> |
1034 | ||
1035 | * libpei.h (_bfd_XXi_final_link_postscript): Remove | |
1036 | duplication. | |
1037 | (bfd_target_pei_p): New. | |
1038 | (bfd_target_pei_arch): New | |
1039 | (bfd_target_efi_p): Likewise. | |
1040 | (bfd_target_efi_arch): New | |
1041 | (bfd_pe_executable_p): Use bfd_target_pei_p and | |
1042 | bfd_target_efi_p. | |
1043 | ||
1044 | * peicode.h (arch_type): New enum. | |
1045 | (pe_arch): New function. | |
1046 | (pe_bfd_object_p): Don't match PE/EFI target with EFI/PE file | |
1047 | if there is an EFI/PE target. | |
1048 | ||
79887925 L |
1049 | 2007-06-14 H.J. Lu <hongjiu.lu@intel.com> |
1050 | ||
1051 | * Makefile.am (ACLOCAL_AMFLAGS): Add -I . -I ../config. | |
1052 | ||
1053 | * acinclude.m4: Don't include m4 files. Remove libtool | |
1054 | kludge. | |
1055 | ||
1056 | * Makefile.in: Regenerated. | |
79887925 L |
1057 | * aclocal.m4: Likewise. |
1058 | * configure: Likewise. | |
1059 | ||
99ded152 BW |
1060 | 2007-06-11 Sterling Augustine <sterling@tensilica.com> |
1061 | Bob Wilson <bob.wilson@acm.org> | |
bf988460 | 1062 | |
99ded152 BW |
1063 | * elf32-xtensa.c (extend_ebb_bounds_forward): Use renamed |
1064 | XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM. | |
1065 | (extend_ebb_bounds_backward, compute_text_actions): Likewise. | |
1066 | (compute_ebb_proposed_actions, coalesce_shared_literal): Likewise. | |
1067 | (xtensa_get_property_predef_flags): Likewise. | |
1068 | (compute_removed_literals): Pass new arguments to is_removable_literal. | |
1069 | (is_removable_literal): Add sec, prop_table and ptblsize arguments. | |
1070 | Do not remove literal if the NO_TRANSFORM property flag is set. | |
bf988460 | 1071 | |
cbf2cba4 RS |
1072 | 2007-05-31 Richard Sandiford <rsandifo@nildram.co.uk> |
1073 | ||
1074 | * elfxx-mips.c (mips_elf_initialize_tls_index): When processing a | |
1075 | type (3) single-GOT entry, read tls_type from the hash table entry | |
1076 | rather than the GOT entry. | |
1077 | ||
a9a4c53e AM |
1078 | 2007-06-01 Alan Modra <amodra@bigpond.net.au> |
1079 | ||
1080 | * simple.c (bfd_simple_get_relocated_section_contents): Init | |
1081 | input_bfds_tail. | |
1082 | ||
02bf8d82 AM |
1083 | 2007-05-30 Alan Modra <amodra@bigpond.net.au> |
1084 | ||
42bb2e33 AM |
1085 | * elf.c (elf_fake_sections): Adjust test for SHT_NOBITS sections |
1086 | created by objcopy --only-keep-debug. | |
1087 | (_bfd_elf_init_private_section_data): Only change elf_section_type | |
1088 | if it is SHT_NULL. | |
1089 | ||
02bf8d82 AM |
1090 | * elf.c (assign_file_positions_for_load_sections): Correct sh_type |
1091 | to SHT_NOBITS earlier. Base actions in rest of function on sh_type | |
1092 | and sh_flags instead of bfd section flags. Delete voff and code | |
1093 | keeping nobits segments aligned. | |
1094 | ||
4e591bc1 EC |
1095 | 2007-05-25 Eric Christopher <echristo@apple.com> |
1096 | ||
1097 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): | |
1098 | Check that sym_sec isn't NULL before accessing. | |
1099 | ||
37ad9514 SE |
1100 | 2007-05-24 Steve Ellcey <sje@cup.hp.com> |
1101 | ||
1102 | * Makefile.in: Regnerate. | |
1103 | * configure: Regenerate. | |
1104 | * aclocal.m4: Regenerate. | |
1105 | * doc/Makefile.in: Regenerate. | |
1106 | ||
91a5743d PB |
1107 | 2007-05-22 Paul Brook <paul@codesourcery.com> |
1108 | ||
1109 | * elf32-arm.c (output_arch_syminfo): Replace plt_shndx and plt_offset | |
1110 | with sec and sec_shndx. | |
1111 | (elf32_arm_ouput_plt_map_sym): Use them. | |
1112 | (elf32_arm_output_arch_local_syms): Output mapping symbols for | |
1113 | interworking glue. | |
1114 | ||
26079076 PB |
1115 | 2007-05-18 Paul Brook <paul@codesourcery.com> |
1116 | ||
1117 | * elf32-arm.c (ARM2THUMB_V5_STATIC_GLUE_SIZE): Define. | |
1118 | (a2t1v5_ldr_insn, a2t1v5_ldr_insn): New. | |
1119 | (record_arm_to_thumb_glue): Add v5t non-pic glue. | |
1120 | (elf32_arm_create_thumb_stub): Ditto. | |
1121 | ||
91ac5911 L |
1122 | 2007-05-16 H.J. Lu <hongjiu.lu@intel.com> |
1123 | Alan Modra <amodra@bigpond.net.au> | |
1124 | ||
1125 | * elflink.c (_bfd_elf_adjust_dynamic_copy): Align dynamic bss | |
1126 | section to the minimum alignment. | |
1127 | ||
027297b7 L |
1128 | 2007-05-15 H.J. Lu <hongjiu.lu@intel.com> |
1129 | Alan Modra <amodra@bigpond.net.au> | |
1130 | ||
1131 | PR ld/4504 | |
1132 | * elf-bfd.h (_bfd_elf_adjust_dynamic_copy): New. | |
1133 | * elflink.c (_bfd_elf_adjust_dynamic_copy): New. | |
1134 | ||
1135 | * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Call | |
1136 | _bfd_elf_adjust_dynamic_copy to adjust for the copy in dynamic | |
1137 | bss section. | |
1138 | * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise. | |
1139 | * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise. | |
1140 | * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
1141 | * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise. | |
1142 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise. | |
1143 | * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise. | |
1144 | * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise. | |
1145 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. | |
1146 | * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
1147 | * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise. | |
1148 | * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise. | |
1149 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
1150 | * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
1151 | * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise. | |
1152 | * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise. | |
1153 | * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Likewise. | |
1154 | * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise. | |
1155 | ||
5c18022e RS |
1156 | 2007-05-15 Richard Sandiford <richard@codesourcery.com> |
1157 | ||
1158 | * elfxx-mips.c (mips_elf_create_local_got_entry): Remove | |
1159 | input_section argument. Create .rela.dyn relocations against | |
1160 | symbol 0 rather than the section symbol. | |
1161 | (mips_elf_local_got_index): Remove input_section argument. | |
1162 | Update call to mips_elf_create_local_got_entry. | |
1163 | (mips_elf_got_page, mips_elf_got16_entry): Likewise. | |
1164 | (mips_elf_calculate_relocation): Update calls to | |
1165 | mips_elf_local_got_index, mips_elf_got16_entry and mips_elf_got_page. | |
1166 | ||
a00a1f35 MS |
1167 | 2007-05-15 Mark Shinwell <shinwell@codesourcery.com> |
1168 | ||
1169 | * elf32-arm.c (elf32_arm_final_link_relocate): Correctly | |
1170 | handle the Thumb-2 JUMP19 relocation. | |
1171 | ||
0414f35b AM |
1172 | 2007-05-15 Alan Modra <amodra@bigpond.net.au> |
1173 | ||
1174 | PR 4479 | |
1175 | * elf.c (elf_fake_sections): Don't allow backend to change | |
1176 | SHT_NOBITS if called for strip/objcopy --only-keep-debug. | |
1177 | * elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove similar | |
1178 | fix from here. | |
1179 | ||
74f2e02b AM |
1180 | 2007-05-14 Alan Modra <amodra@bigpond.net.au> |
1181 | ||
1182 | * elf.c (bfd_elf_string_from_elf_section): Return NULL on | |
1183 | invalid shstrndx. | |
1184 | (bfd_elf_get_str_section): Likewise. | |
1185 | ||
f137a54e AM |
1186 | 2007-05-12 Alan Modra <amodra@bigpond.net.au> |
1187 | ||
1188 | PR 4497 | |
1189 | * elf-eh-frame.c (struct cie): Add "local_personality". Make | |
1190 | "personality" a union. | |
1191 | (cie_eq): Compare local_personality too. Adjust personality | |
1192 | comparison. | |
1193 | (_bfd_elf_discard_section_eh_frame): Check binding on personality | |
1194 | reloc sym to allow for bad symtab. Use stashed local syms rather | |
1195 | than reading personality local sym. Handle discarded sections. | |
1196 | ||
4f4416b5 AM |
1197 | 2007-05-12 Alan Modra <amodra@bigpond.net.au> |
1198 | ||
1199 | * elf32-spu.c (elf_howto_table): Add howto for R_SPU_ADDR16X. | |
1200 | ||
016687f8 AM |
1201 | 2007-05-11 Alan Modra <amodra@bigpond.net.au> |
1202 | ||
1203 | * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype. | |
1204 | (enum ppc_elf_plt_type): Move from.. | |
1205 | * elf32-ppc.c: ..here. | |
1206 | (struct ppc_elf_obj_tdata): Add makes_plt_call and has_rel16. | |
1207 | (struct ppc_elf_link_hash_table): Reorder. Add old_bfd. Delete | |
1208 | can_use_new_plt. Make is_vxworks a bitfield. | |
1209 | (ppc_elf_link_hash_table_create): Don't clear is_vxworks (again). | |
1210 | (ppc_elf_check_relocs): Update setting of reloc flags. Set old_bfd. | |
1211 | (ppc_elf_select_plt_layout): Modify parameters. Use bfd reloc | |
1212 | flags to better detect object files needing old bss-style plt. | |
1213 | Allow secure plt to be used without rel16 relocs being detected. | |
1214 | Warn if secure plt request cannot be allowed. | |
1215 | ||
ece5ef60 AM |
1216 | 2007-05-11 Alan Modra <amodra@bigpond.net.au> |
1217 | ||
1218 | * reloc.c (BFD_RELOC_SPU_PPU32, BFD_RELOC_SPU_PPU64): Define. | |
1219 | * elf-bfd.h (struct elf_backend_data): Change return type of | |
1220 | elf_backend_relocate_section to int. | |
1221 | * elf32-spu.c (elf_howto_table): Add howtos for R_SPU_PPU32 and | |
1222 | R_SPU_PPU64. | |
1223 | (spu_elf_bfd_to_reloc_type): Convert new relocs. | |
1224 | (spu_elf_count_relocs): New function. | |
1225 | (elf_backend_count_relocs): Define. | |
1226 | (spu_elf_relocate_section): Arrange to emit R_SPU_PPU32 and | |
1227 | R_SPU_PPU64 relocs. | |
1228 | * elflink.c (elf_link_input_bfd): Emit relocs if relocate_section | |
1229 | returns 2. | |
1230 | * bfd-in2.h: Regenerate. | |
1231 | * libbfd.h: Regenerate. | |
1232 | ||
d3753b85 RS |
1233 | 2007-05-10 Richard Sandiford <richard@codesourcery.com> |
1234 | ||
1235 | * elf32-arm.c (elf32_arm_check_relocs): Don't create PLT entries | |
1236 | for R_ARM_ABS12 relocs. | |
1237 | (elf32_arm_finish_dynamic_symbol): Fix the loop that creates | |
1238 | non-shared VxWorks PLT entries. | |
1239 | ||
ef8c95ad AM |
1240 | 2007-05-11 Alan Modra <amodra@bigpond.net.au> |
1241 | ||
1242 | PR 4454 | |
1243 | * elf-eh-frame.c (struct cie): Make "personality" a bfd_vma. | |
1244 | (_bfd_elf_discard_section_eh_frame): Handle local syms on | |
1245 | personality relocation. | |
1246 | ||
8c252fd9 RS |
1247 | 2007-05-10 Richard Sandiford <richard@codesourcery.com> |
1248 | ||
1249 | * elf.c (assign_file_positions_for_load_sections): Use p_memsz | |
1250 | rather than p_filesz to calculate the LMA of the end of a segment. | |
1251 | ||
b186458a JJ |
1252 | 2007-05-10 Jakub Jelinek <jakub@redhat.com> |
1253 | ||
1254 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc | |
1255 | processing if symbol is defined in the executable. | |
1256 | ||
88571279 AO |
1257 | 2007-05-10 Alexandre Oliva <aoliva@redhat.com> |
1258 | ||
1259 | * elf32-frv.c (_frvfdpic_check_discarded_relocs): New. | |
1260 | (frvfdpic_elf_discard_info): New. | |
1261 | (elf_backend_discard_info): Define for FDPIC. | |
1262 | ||
2e6030b9 MS |
1263 | 2007-05-09 Mark Shinwell <shinwell@codesourcery.com> |
1264 | ||
1265 | * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't | |
1266 | attempt to scan if the bfd doesn't correspond to an ELF image. | |
1267 | (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise. | |
1268 | ||
0d4cc892 AO |
1269 | 2007-05-08 Alexandre Oliva <aoliva@redhat.com> |
1270 | ||
1271 | * elf32-frv.c (elf32_frv_relocate_section): Discard dynamic relocs | |
1272 | for which _bfd_elf_section_offset returns -1. | |
1273 | ||
d0249648 AM |
1274 | 2007-05-08 Alan Modra <amodra@bigpond.net.au> |
1275 | ||
1276 | * elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms. | |
1277 | (mark_functions_via_relocs): Likewise. | |
1278 | ||
1182cb93 AM |
1279 | 2007-05-07 Alan Modra <amodra@bigpond.net.au> |
1280 | ||
1281 | * elflink.c (bfd_elf_final_link): Correct reloc handling for | |
1282 | elf_backend_count_relocs. | |
1283 | (bfd_elf_discard_info): Print an error if we can't read syms. | |
1284 | ||
b16f296e AM |
1285 | 2007-05-07 Alan Modra <amodra@bigpond.net.au> |
1286 | ||
1287 | * elf32-spu.c (spu_elf_reloc_type_lookup): Return NULL on | |
1288 | invalid reloc code. | |
1289 | (spu_elf_gc_mark_hook, spu_elf_section_processing): Delete functions. | |
1290 | (elf_backend_gc_mark_hook, elf_backend_section_processing): Don't | |
1291 | define. | |
1292 | ||
7c928300 AM |
1293 | 2007-05-07 Alan Modra <amodra@bigpond.net.au> |
1294 | ||
1295 | * elf.c (assign_file_positions_for_load_sections): Don't check | |
1296 | core segment. | |
1297 | ||
fc66a176 L |
1298 | 2007-05-04 H.J. Lu <hongjiu.lu@intel.com> |
1299 | ||
1300 | * elflink.c (elf_link_sort_relocs): Return if both .rela.dyn | |
1301 | and .rel.dyn aren't present. | |
1302 | ||
3410fea8 NC |
1303 | 2007-05-04 Nick Clifton <nickc@redhat.com> |
1304 | ||
1305 | * elflink.c (elf_link_sort_relocs): If both .rela.dyn and .rel.dyn | |
1306 | sections are present examine the indirect sections in an attempt | |
1307 | to compute the correct relocation size. If there is any | |
1308 | ambiguity, produce an error and refuse to sort. | |
1309 | ||
7bdca076 SL |
1310 | 2007-05-03 Sandra Loosemore <sandra@codesourcery.com> |
1311 | ||
1312 | * elf32-arm.c (allocate_dynrelocs): Fix typo in comment. | |
1313 | ||
22184a77 NC |
1314 | 2007-05-03 Vincent Riviere <vincent.riviere@freesbee.fr> |
1315 | Nick Clifton <nickc@redhat.com> | |
1316 | ||
1317 | PR gas/3041 | |
1318 | * aoutx.h (swap_std_reloc_out): Treat relocs against weak symbols | |
1319 | in the same way as relocs against external symbols. | |
1320 | ||
627b32bc AM |
1321 | 2007-05-02 Alan Modra <amodra@bigpond.net.au> |
1322 | ||
1323 | * elf.c (assign_file_positions_for_load_sections): Set sh_offset | |
1324 | here. Set sh_type to SHT_NOBITS if we won't be allocating | |
1325 | file space. Don't bump p_memsz for non-alloc sections. Adjust | |
1326 | section-in-segment check. | |
1327 | (assign_file_positions_for_non_load_sections): Don't set sh_offset | |
1328 | here for sections that have already been handled above. | |
1329 | ||
49fa1e15 AM |
1330 | 2007-04-30 Alan Modra <amodra@bigpond.net.au> |
1331 | ||
1332 | * elf32-spu.c (struct spu_link_hash_table): Add stack_analysis | |
1333 | and emit_stack_syms bitfields. | |
1334 | (get_sym_h): Read all symbols if stack analysis will be done. | |
1335 | (spu_elf_create_sections): Add stack_analysis and emit_stack_syms | |
1336 | params, and stash in hash table. | |
1337 | (is_hint): Split off from.. | |
1338 | (is_branch): ..here. Adjust callers. | |
1339 | (spu_elf_size_stubs): Add stack_analysis param. Arrange to read | |
1340 | and keep all syms. | |
1341 | (write_one_stub): Fix mem leak. | |
1342 | (find_function_stack_adjust): New function. | |
1343 | (sort_syms_syms, sort_syms_psecs): New vars. | |
1344 | (sort_syms): New function. | |
1345 | (struct call_info, struct function_info): New. | |
1346 | (struct spu_elf_stack_info): New. | |
1347 | (alloc_stack_info, maybe_insert_function, func_name): New functions. | |
1348 | (is_nop, insns_at_end, check_function_ranges): Likewise. | |
1349 | (find_function, insert_callee, mark_functions_via_relocs): Likewise. | |
1350 | (pasted_function, interesting_section, discover_functions): Likewise. | |
1351 | (mark_non_root, call_graph_traverse, build_call_tree): Likewise. | |
1352 | (sum_stack, spu_elf_stack_analysis, spu_elf_final_link): Likewise. | |
1353 | (bfd_elf32_bfd_final_link): Define. | |
1354 | * elf32-spu.h (struct _spu_elf_section_data): Add stack_info field. | |
1355 | (spu_elf_create_sections, spu_elf_size_stubs): Update prototypes. | |
1356 | ||
9ddf8309 TS |
1357 | 2007-04-28 Sergey Rogozhkin <rogozhkin@niisi.msk.ru> |
1358 | ||
1359 | * elfxx-mips.c (mips_elf_create_dynamic_relocation): Don't access | |
1360 | memory which we might not own. | |
1361 | ||
95147441 BW |
1362 | 2007-04-27 Bob Wilson <bob.wilson@acm.org> |
1363 | ||
1364 | * elf32-xtensa.c (elf_xtensa_make_sym_local): Restore deleted function. | |
1365 | (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Likewise. | |
1366 | (elf_xtensa_allocate_dynrelocs): Use elf_xtensa_make_sym_local. | |
1367 | ||
bcc2cc8e BW |
1368 | 2007-04-27 Bob Wilson <bob.wilson@acm.org> |
1369 | ||
1370 | * elf32-xtensa.c (xtensa_read_table_entries): Step through table | |
1371 | contents and relocs in parallel. | |
4e591bc1 | 1372 | |
f29f96b6 BW |
1373 | 2007-04-27 Bob Wilson <bob.wilson@acm.org> |
1374 | ||
1375 | * elf32-xtensa.c (relax_property_section): Remove extra irel increment. | |
1376 | ||
2ce18a16 AM |
1377 | 2007-04-27 Alan Modra <amodra@bigpond.net.au> |
1378 | ||
1379 | * cpu-rs6000.c: Write Mimi's name in ASCII. | |
1380 | * coff-rs6000.c: Likewise. | |
1381 | * rs6000-core.c: Likewise. | |
1382 | ||
eddc20ad AM |
1383 | 2007-04-27 Alan Modra <amodra@bigpond.net.au> |
1384 | ||
1385 | * sysdep.h: Include config.h first. | |
1386 | Many files: Include sysdep.h before bfd.h. | |
1387 | * Makefile.am: Run "make dep-am". | |
1388 | * Makefile.in: Regenerate. | |
1389 | ||
495443d4 AM |
1390 | 2007-04-25 Alan Modra <amodra@bigpond.net.au> |
1391 | ||
1392 | * sysdep.h: Revert last change. | |
1393 | ||
40b1c6c5 NC |
1394 | 2007-04-24 Nick Clifton <nickc@redhat.com> |
1395 | ||
1396 | * coffcode.h (coff_slurp_reloc_table): Initialise dst.r_offset. | |
1397 | * coff-m68k.c (m68kcoff_rtype_to_howto): Initialize relent.howto. | |
1398 | ||
64be1553 AM |
1399 | 2007-04-24 Alan Modra <amodra@bigpond.net.au> |
1400 | ||
1401 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Warn if | |
1402 | eh_frame_hdr table won't be created. | |
1403 | ||
d5efd9fc AM |
1404 | 2007-04-24 Alan Modra <amodra@bigpond.net.au> |
1405 | ||
1406 | * acinclude.m4: Include config/stdint.m4. | |
1407 | * configure.in: Invoke GCC_HEADER_STDINT. | |
1408 | * sysdep.h: Don't include ansidecl.h here. | |
1409 | * configure: Regenerate. | |
1410 | * config.in: Regenerate. | |
1411 | * Makefile.in: Regenerate. | |
1412 | ||
9a2e615a NS |
1413 | 2007-04-23 Nathan Sidwell <nathan@codesourcery.com> |
1414 | ||
1415 | * archures.c (bfd_mach_mcf_isa_c, bfd_mach_mcf_isa_c_mac, | |
1416 | bfd_mach_mcf_isa_c_emac): New. | |
1417 | * elf32-m68k.c (ISAC_PLT_ENTRY_SIZE, elf_isac_plt0_entry, | |
1418 | elf_isac_plt_entry, elf_isac_plt_info): New. | |
1419 | (elf32_m68k_object_p): Add ISA_C. | |
1420 | (elf32_m68k_print_private_bfd_data): Print ISA_C. | |
1421 | (elf32_m68k_get_plt_info): Detect ISA_C. | |
1422 | * cpu-m68k.c (arch_info): Add ISAC. | |
1423 | (m68k_arch_features): Likewise, | |
1424 | (bfd_m68k_compatible): ISAs B & C are not compatible. | |
1425 | ||
1b0b5b1b NC |
1426 | 2007-04-21 Nick Clifton <nickc@redhat.com> |
1427 | ||
1428 | * ecoff.c (_bfd_ecoff_write_armap): Initialise rehash. | |
1429 | (ecoff_link_add_archive_symbols): Likewise. | |
1430 | * coff-m68k.c (m68kcoff_common_addend_rtype_to_howto): Initialise | |
1431 | relent.howto. | |
1432 | * ieee.c (parse_int): Initialise x. | |
1433 | (must_parse_int): Initialise result. | |
1434 | (ieee_slurp_external_symbols): Initialise value. | |
1435 | ||
bd7803a9 AM |
1436 | 2007-04-21 Alan Modra <amodra@bigpond.net.au> |
1437 | ||
1438 | * config.bfd (spu-*-elf): Delete targ_selvecs. | |
1439 | ||
964597d0 NC |
1440 | 2007-04-19 Nick Clifton <nickc@redhat.com> |
1441 | ||
1442 | * coffcode.h (coff_rtype_to_howto): Initialise genrel.howto. | |
1443 | ||
01e76792 AM |
1444 | 2007-04-19 Alan Modra <amodra@bigpond.net.au> |
1445 | ||
1446 | * bfd.c (bfd_demangle): New function. | |
1447 | * Makefile.am: Run "make dep-am". | |
1448 | * Makefile.in: Regenerate. | |
1449 | * bfd-in2.h: Regenerate. | |
1450 | ||
ee5c21a0 DJ |
1451 | 2007-04-18 Matthias Klose <doko@ubuntu.com> |
1452 | ||
1453 | * Makefile.am (libbfd_la_LDFLAGS): Use bfd soversion. | |
1454 | (bfdver.h): Use the date in non-release builds for the soversion. | |
1455 | * Makefile.in: Regenerate. | |
1456 | ||
fcb93ecf PB |
1457 | 2007-04-17 Paul Brook <paul@codesourcery.com> |
1458 | ||
1459 | * elf.c (_bfd_elf_is_function_type): New function. | |
1460 | * elflink.c (_bfd_elf_merge_symbol): Use bed->is_function_type. | |
1461 | (_bfd_elf_dynamic_symbol_p, _bfd_elf_symbol_refs_local_p, | |
1462 | is_global_data_symbol_definition, elf_link_add_object_symbols): Ditto. | |
1463 | * elf-bfd.h (elf_backend_data): Add is_function_type. | |
1464 | (_bfd_elf_is_function_type): Add prototype. | |
1465 | * elfxx-target.h (elf_backend_is_function_type): Add default | |
1466 | definition. | |
1467 | (elfNN_bed): Add elf_backend_is_function_type. | |
1468 | * elf32-arm.c (elf32_arm_is_function_type): New function. | |
1469 | (elf_backend_is_function_type): Define. | |
1470 | ||
5750dcec DJ |
1471 | 2007-04-17 Daniel Jacobowitz <dan@codesourcery.com> |
1472 | ||
1473 | * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Put | |
1474 | DT_MIPS_RLD_MAP before DT_DEBUG again. | |
1475 | ||
cfbc9945 SE |
1476 | 2007-04-14 Steve Ellcey <sje@cup.hp.com> |
1477 | ||
1478 | * Makefile.am: Add ACLOCAL_AMFLAGS. | |
1479 | * configure.in: Change macro call order. | |
1480 | * Makefile.in: Regnerate. | |
1481 | * doc/Makefile.in: Regenerate. | |
1482 | * configure: Regenerate. | |
1483 | ||
3fcd97f1 JJ |
1484 | 2007-04-14 Jakub Jelinek <jakub@redhat.com> |
1485 | ||
1486 | * elflink.c (bfd_elf_final_link): Don't free symbuf for | |
1487 | non-elf input bfds. | |
1488 | (bfd_elf_size_dynamic_sections): Don't access elf_section_data | |
1489 | for non-elf input bfds. | |
1490 | ||
af5978fb RS |
1491 | 2007-04-12 Richard Sandiford <richard@codesourcery.com> |
1492 | ||
1493 | * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add | |
1494 | DT_MIPS_RTLD_MAP for PIEs. | |
1495 | ||
9e3313ae RS |
1496 | 2007-04-12 Richard Sandiford <richard@codesourcery.com> |
1497 | ||
1498 | * elfxx-mips.c (mips_elf_calculate_relocation): Set DT_TEXTREL | |
1499 | when creating a __GOTT_BASE__ or __GOTT_INDEX__ relocation | |
1500 | in a read-only section. | |
1501 | (_bfd_mips_elf_check_relocs): Likewise. | |
1502 | ||
1d25768e BW |
1503 | 2007-04-12 Bob Wilson <bob.wilson@acm.org> |
1504 | ||
1505 | * elf32-xtensa.c (xtensa_is_insntable_section): New. | |
1506 | (xtensa_is_proptable_section): New. | |
1507 | (elf_xtensa_discard_info_for_section): Handle "full" .xt.prop property | |
1508 | tables with 12-byte entries, as well as tables with 8-byte entries. | |
1509 | Sort the relocations before examining them. | |
1510 | (relax_property_section): Use xtensa_is_proptable_section and | |
1511 | xtensa_is_littable_section. Rewrite code for combining table entries | |
1512 | to be more robust in case of unexpected relocations. Do not set offset | |
1513 | of unused relocations to less than zero. | |
1514 | (xtensa_is_property_section): Use other functions instead of | |
1515 | duplicating section name comparisons. | |
1516 | (xtensa_is_littable_section): Use CONST_STRNEQ for ".gnu.linkonce.p.". | |
1517 | (xtensa_get_property_predef_flags): Use xtensa_is_insntable_section. | |
4e591bc1 | 1518 | |
e1e5c0b5 | 1519 | 2007-04-12 Bob Wilson <bob.wilson@acm.org> |
4e591bc1 | 1520 | |
e1e5c0b5 BW |
1521 | * elf32-xtensa.c (elf_xtensa_gc_mark_hook): Don't follow references |
1522 | from Xtensa property sections. | |
4e591bc1 | 1523 | |
2c67c5f3 AM |
1524 | 2007-04-12 Alan Modra <amodra@bigpond.net.au> |
1525 | ||
1526 | * elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data | |
1527 | is non-NULL before dereferencing. | |
1528 | ||
8776bb8a NS |
1529 | 2007-04-11 Nathan Sidwell <nathan@codesourcery.com> |
1530 | ||
1531 | * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot | |
1532 | relocs too. | |
1533 | ||
4a828aab RH |
1534 | 2007-04-10 Richard Henderson <rth@redhat.com> |
1535 | ||
1536 | * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip. | |
1537 | (elf64_alpha_size_got_sections): Remove unused something_changed local. | |
1538 | (elf64_alpha_size_plt_section): Return void. | |
1539 | (elf64_alpha_size_rela_got_section): Likewise. | |
4e591bc1 | 1540 | (elf64_alpha_relax_section): Only regenerate got+plt if the |
4a828aab RH |
1541 | relax_trip counter has changed. |
1542 | ||
91506736 DJ |
1543 | 2007-04-09 Daniel Jacobowitz <dan@codesourcery.com> |
1544 | ||
1545 | * Makefile.am (bfdver.h): Do not generate doc/bfdver.texi. | |
1546 | * doc/Makefile.am (DOCFILES): Add bfdver.texi. | |
1547 | (bfdver.texi): New rule. | |
1548 | * Makefile.in, doc/Makefile.in: Regenerated. | |
1549 | ||
da6bcfca MT |
1550 | 2007-04-03 Matt Thomas <matt@netbsd.org> |
1551 | ||
4e591bc1 | 1552 | * elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc |
da6bcfca MT |
1553 | in a shared object if it is not in a CODE section or if it is against |
1554 | a section symbol. This allows DWARF2 to use pcrel format. | |
1555 | ||
9267588c L |
1556 | 2007-04-05 H.J. Lu <hongjiu.lu@intel.com> |
1557 | ||
1558 | PR ld/4304 | |
1559 | * elflink.c (bfd_elf_final_link): Call einfo callback in | |
1560 | bfd_link_info instead of _bfd_error_handler for DT_TEXTREL | |
1561 | warning. | |
1562 | ||
c1b2796f AM |
1563 | 2007-04-05 Alan Modra <amodra@bigpond.net.au> |
1564 | ||
1565 | * elf32-spu.c (spu_elf_output_symbol_hook): New function. | |
1566 | (elf_backend_link_output_symbol_hook): Define. | |
1567 | ||
970ccc77 NC |
1568 | 2007-04-02 Nick Clifton <nickc@redhat.com> |
1569 | ||
1570 | PR binutils/4292 | |
1571 | * bfd.c (bfd_fprintf_vma): Do not print addresses of 32-bit | |
1572 | targets as 64-bit values, even if running on a 64-bit host. | |
1573 | * coffgen.c (coff_print_symbol): Likewise. | |
1574 | ||
1783205a NC |
1575 | 2007-03-29 Nick Clifton <nickc@redhat.com> |
1576 | ||
1577 | PR binutils/4110 | |
1578 | * elf.c (IS_VALID_GROUP_SECTION_HEADER): New macro. | |
1579 | (setup_group): Use it. Report corrupt group section headers. | |
1580 | (bfd_section_from_shdr): Use new macro. Replace constant 4 with | |
1581 | GRP_ENTRY_SIZE. Cope with NULLs in the group section table. | |
1582 | (elf_fake_section): Replace constant 4 with GRP_ENTRY_SIZE. | |
1583 | ||
2ce859a1 AM |
1584 | 2007-03-29 Alan Modra <amodra@bigpond.net.au> |
1585 | ||
1586 | PR ld/4267 | |
947844a3 AM |
1587 | * elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma |
1588 | for rel->r_info values. | |
1589 | (bfd_elf_perform_complex_relocation): Likewise. | |
2ce859a1 AM |
1590 | * elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for |
1591 | unused entries. Don't clear plt.plist in loop. | |
1592 | ||
39817122 RS |
1593 | 2007-03-28 Richard Sandiford <richard@codesourcery.com> |
1594 | ||
1595 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela. | |
1596 | * elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32): | |
1597 | Merge into... | |
1598 | (sparc_elf_append_rela): ...this new function. | |
1599 | (SPARC_ELF_APPEND_RELA): Delete. | |
1600 | (_bfd_sparc_elf_link_hash_table_create): Don't initialize | |
1601 | the deleted append_rela field. | |
1602 | (_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela | |
1603 | instead of SPARC_ELF_APPEND_RELA. | |
1604 | (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. Use the | |
1605 | elf_size_info structure to find the size of a RELA entry and | |
1606 | the associated swap-out function. | |
1607 | (sparc64_finish_dyn, sparc64_finish_dyn): Merge into... | |
1608 | (sparc_finish_dyn): ...this new function. | |
1609 | (_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly. | |
1610 | ||
4ecceb71 RS |
1611 | 2007-03-28 Richard Sandiford <richard@codesourcery.com> |
1612 | Phil Edwards <phil@codesourcery.com> | |
1613 | ||
1614 | * doc/bfd.texinfo: Put the contents after the title page rather | |
1615 | than at the end of the document. | |
1616 | ||
d4d2b80b AS |
1617 | 2007-03-27 Andreas Schwab <schwab@suse.de> |
1618 | ||
1619 | * elfxx-ia64.c (elf_backend_default_execstack): Define to 0. | |
1620 | ||
831480e9 | 1621 | 2007-03-26 H.J. Lu <hongjiu.lu@intel.com> |
5bd8253d L |
1622 | |
1623 | * configure: Regenerated. | |
1624 | ||
f4b39977 AM |
1625 | 2007-03-26 Alan Modra <amodra@bigpond.net.au> |
1626 | ||
1627 | * elf32-spu.c (struct stubarr): Add stub_hash_table and err fields. | |
1628 | (allocate_spuear_stubs): New function. | |
1629 | (spu_elf_size_stubs): Call allocate_spuear_stubs. | |
1630 | ||
157090f7 AM |
1631 | 2007-03-26 Alan Modra <amodra@bigpond.net.au> |
1632 | ||
1633 | * aout-adobe.c (aout_32_bfd_reloc_name_lookup): Define. | |
1634 | * aout-arm.c (MY_bfd_reloc_name_lookup): Define. | |
1635 | (MY (bfd_reloc_name_lookup)): New function. | |
1636 | * aout-ns32k.c (MY (bfd_reloc_name_lookup)): New function. | |
1637 | * aout-target.h (NAME (aout, reloc_name_lookup)): Declare. | |
1638 | (MY_bfd_reloc_name_lookup): Define. | |
1639 | * aout-tic30.c (tic30_aout_reloc_name_lookup): New function. | |
1640 | (MY_bfd_reloc_name_lookup): Define. | |
1641 | * aoutx.h (NAME (aout, reloc_type_lookup)): Don't declare. | |
1642 | (NAME (aout, reloc_name_lookup)): New function. | |
1643 | * bout.c (b_out_bfd_reloc_name_lookup): New function. | |
1644 | * coff-alpha.c (alpha_bfd_reloc_name_lookup): New function. | |
1645 | (_bfd_ecoff_bfd_reloc_name_lookup): Define. | |
1646 | * coff-arm.c (coff_arm_reloc_name_lookup): New function. | |
1647 | (coff_bfd_reloc_name_lookup): Define. | |
1648 | * coff-i386.c (coff_bfd_reloc_name_lookup): Define. | |
1649 | (coff_i386_reloc_name_lookup): New function. | |
1650 | * coff-i860.c (coff_i860_reloc_name_lookup): New function. | |
1651 | (coff_bfd_reloc_name_lookup): Define. | |
1652 | * coff-i960.c (coff_i960_reloc_name_lookup): New function. | |
1653 | (coff_bfd_reloc_name_lookup): Define. | |
1654 | * coff-m68k.c (m68k_reloc_name_lookup): New function. | |
1655 | (coff_bfd_reloc_name_lookup): Define. | |
1656 | * coff-maxq.c (maxq_reloc_name_lookup): New function. | |
1657 | (coff_bfd_reloc_name_lookup): Define. | |
1658 | * coff-mcore.c (mcore_coff_reloc_name_lookup): New function. | |
1659 | (coff_bfd_reloc_name_lookup): Define. | |
1660 | * coff-mips.c (mips_bfd_reloc_name_lookup): New function. | |
1661 | (_bfd_ecoff_bfd_reloc_name_lookup): Define. | |
1662 | * coff-ppc.c (ppc_coff_reloc_name_lookup): New function. | |
1663 | (coff_bfd_reloc_name_lookup): Define. | |
1664 | * coff-rs6000.c (coff_bfd_reloc_name_lookup): Define. | |
1665 | (_bfd_xcoff_reloc_name_lookup): New function. | |
1666 | (rs6000coff_vec, pmac_xcoff_vec): Init new field. | |
1667 | * coff-sh.c (coff_bfd_reloc_name_lookup): Define. | |
1668 | (sh_coff_reloc_name_lookup): New function. | |
1669 | * coff-sparc.c (coff_sparc_reloc_name_lookup): New function. | |
1670 | (coff_bfd_reloc_name_lookup): Define. | |
1671 | * coff-tic30.c (coff_bfd_reloc_name_lookup): Define. | |
1672 | (tic30_coff_reloc_name_lookup): New function. | |
1673 | * coff-tic4x.c (coff_bfd_reloc_name_lookup): Define. | |
1674 | (tic4x_coff_reloc_name_lookup): New function. | |
1675 | * coff-tic54x.c (coff_bfd_reloc_name_lookup): Define. | |
1676 | (tic54x_coff_reloc_name_lookup): New function. | |
1677 | * coff-x86_64.c (coff_bfd_reloc_name_lookup): Define. | |
1678 | (coff_amd64_reloc_name_lookup): New function. | |
1679 | * coff-z80.c (coff_z80_reloc_name_lookup): New function. | |
1680 | (coff_bfd_reloc_name_lookup): Define. | |
1681 | * coff-z8k.c (coff_z8k_reloc_name_lookup): New function. | |
1682 | (coff_bfd_reloc_name_lookup): Define. | |
1683 | * coff64-rs6000.c (coff_bfd_reloc_name_lookup): Define. | |
1684 | (xcoff64_reloc_name_lookup): New function. | |
1685 | (rs6000coff64_vec, aix5coff64_vec): Init new field. | |
1686 | * coffcode.h (coff_bfd_reloc_name_lookup): Define. | |
1687 | * elf-hppa.h (elf_hppa_reloc_name_lookup): New function. | |
1688 | * elf-m10200.c (bfd_elf32_bfd_reloc_name_lookup): New function. | |
1689 | * elf-m10300.c (bfd_elf32_bfd_reloc_name_lookup): New function. | |
1690 | * elf32-arc.c (bfd_elf32_bfd_reloc_name_lookup): New function. | |
1691 | * elf32-arm.c (elf32_arm_reloc_name_lookup): New function. | |
1692 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1693 | * elf32-avr.c (bfd_elf32_bfd_reloc_name_lookup): New function. | |
1694 | * elf32-bfin.c (bfin_bfd_reloc_name_lookup): New function. | |
1695 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1696 | * elf32-cr16c.c (elf_cr16c_reloc_name_lookup): New function. | |
1697 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1698 | * elf32-cris.c (cris_reloc_name_lookup): New function. | |
1699 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1700 | * elf32-crx.c (elf_crx_reloc_name_lookup): New function. | |
1701 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1702 | * elf32-d10v.c (bfd_elf32_bfd_reloc_name_lookup): New function. | |
1703 | * elf32-d30v.c (bfd_elf32_bfd_reloc_name_lookup): New function. | |
1704 | * elf32-dlx.c (elf32_dlx_reloc_name_lookup): New function. | |
1705 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1706 | * elf32-fr30.c (fr30_reloc_name_lookup): New function. | |
1707 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1708 | * elf32-frv.c (frv_reloc_name_lookup): New function. | |
1709 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1710 | * elf32-gen.c (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1711 | * elf32-h8300.c (elf32_h8_reloc_name_lookup): New function. | |
1712 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1713 | * elf32-hppa.c (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1714 | * elf32-i370.c (i370_elf_reloc_name_lookup): New function. | |
1715 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1716 | * elf32-i386.c (elf_i386_reloc_name_lookup): New function. | |
1717 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1718 | * elf32-i860.c (elf32_i860_reloc_name_lookup): New function. | |
1719 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1720 | * elf32-i960.c (elf32_i960_reloc_name_lookup): New function. | |
1721 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1722 | * elf32-ip2k.c (ip2k_reloc_name_lookup): New function. | |
1723 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1724 | * elf32-iq2000.c (iq2000_reloc_name_lookup): New function. | |
1725 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1726 | * elf32-m32c.c (m32c_reloc_name_lookup): New function. | |
1727 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1728 | * elf32-m32r.c (bfd_elf32_bfd_reloc_name_lookup): New function. | |
1729 | * elf32-m68hc11.c (bfd_elf32_bfd_reloc_name_lookup): New function. | |
1730 | * elf32-m68hc12.c (bfd_elf32_bfd_reloc_name_lookup): New function. | |
1731 | * elf32-m68k.c (reloc_name_lookup): New function. | |
1732 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1733 | * elf32-m88k.c (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1734 | * elf32-mcore.c (mcore_elf_reloc_name_lookup): New function. | |
1735 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1736 | * elf32-mep.c (mep_reloc_name_lookup): New function. | |
1737 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1738 | * elf32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function. | |
1739 | (mips_vxworks_bfd_reloc_name_lookup): Likewise. | |
1740 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1741 | * elf32-msp430.c (bfd_elf32_bfd_reloc_name_lookup): New function. | |
1742 | * elf32-mt.c (mt_reloc_name_lookup): New function. | |
1743 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1744 | * elf32-openrisc.c (openrisc_reloc_name_lookup): New function. | |
1745 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1746 | * elf32-or32.c (bfd_elf32_bfd_reloc_name_lookup): New function. | |
1747 | * elf32-pj.c (pj_elf_reloc_name_lookup): New function. | |
1748 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1749 | * elf32-ppc.c (ppc_elf_reloc_name_lookup): New function. | |
1750 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1751 | * elf32-s390.c (elf_s390_reloc_name_lookup): New function. | |
1752 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1753 | * elf32-score.c (elf32_score_reloc_name_lookup): New function. | |
1754 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1755 | * elf32-sh.c (sh_elf_reloc_name_lookup): New function. | |
1756 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1757 | * elf32-sparc.c (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1758 | * elf32-spu.c (spu_elf_reloc_name_lookup): New function. | |
1759 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1760 | * elf32-v850.c (v850_elf_reloc_name_lookup): New function. | |
1761 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1762 | * elf32-vax.c (reloc_name_lookup): New function. | |
1763 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1764 | * elf32-xc16x.c (xc16x_reloc_name_lookup): New function. | |
1765 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1766 | * elf32-xstormy16.c (xstormy16_reloc_name_lookup): New function. | |
1767 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1768 | * elf32-xtensa.c (elf_xtensa_reloc_name_lookup): New function. | |
1769 | (bfd_elf32_bfd_reloc_name_lookup): Define. | |
1770 | * elf64-alpha.c (elf64_alpha_bfd_reloc_name_lookup): New function. | |
1771 | (bfd_elf64_bfd_reloc_name_lookup): Define. | |
1772 | * elf64-gen.c (bfd_elf64_bfd_reloc_name_lookup): Define. | |
1773 | * elf64-hppa.c (bfd_elf64_bfd_reloc_name_lookup): Define. | |
1774 | * elf64-mips.c (bfd_elf64_bfd_reloc_name_lookup): New function. | |
1775 | * elf64-mmix.c (bfd_elf64_bfd_reloc_name_lookup): New function. | |
1776 | * elf64-ppc.c (ppc64_elf_reloc_name_lookup): New function. | |
1777 | (bfd_elf64_bfd_reloc_name_lookup): Define. | |
1778 | * elf64-s390.c (elf_s390_reloc_name_lookup): New function. | |
1779 | (bfd_elf64_bfd_reloc_name_lookup): Define. | |
1780 | * elf64-sh64.c (sh_elf64_reloc_name_lookup): New function. | |
1781 | (bfd_elf64_bfd_reloc_name_lookup): Define. | |
1782 | * elf64-sparc.c (bfd_elf64_bfd_reloc_name_lookup): Define. | |
1783 | * elf64-x86-64.c (elf64_x86_64_reloc_name_lookup): New function. | |
1784 | (bfd_elf64_bfd_reloc_name_lookup): Define. | |
1785 | * elfn32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function. | |
1786 | * elfxx-ia64.c (elfNN_ia64_reloc_name_lookup): New function. | |
1787 | (bfd_elfNN_bfd_reloc_name_lookup): Define. | |
1788 | * elfxx-sparc.c (_bfd_sparc_elf_reloc_name_lookup): New function. | |
1789 | * elfxx-sparc.h (_bfd_sparc_elf_reloc_name_lookup): Declare. | |
1790 | * i386msdos.c (msdos_bfd_reloc_name_lookup): Define. | |
1791 | * i386os9k.c (aout_32_bfd_reloc_name_lookup): Define. | |
1792 | * ieee.c (ieee_bfd_reloc_name_lookup): Define. | |
1793 | * libaout.h (NAME (aout, reloc_name_lookup)): Declare. | |
1794 | * libbfd-in.h (_bfd_norelocs_bfd_reloc_name_lookup): Declare. | |
1795 | * mipsbsd.c (MY_bfd_reloc_name_lookup): Define. | |
1796 | (MY(reloc_type_lookup)): Rename from MY(reloc_howto_type_lookup). | |
1797 | (MY(reloc_name_lookup)): New function. | |
1798 | * nlm-target.h (nlm_bfd_reloc_name_lookup): Define. | |
1799 | * oasys.c (oasys_bfd_reloc_name_lookup): Define. | |
1800 | * pdp11.c (NAME (aout, reloc_name_lookup)): New function. | |
1801 | * pe-mips.c (coff_mips_reloc_name_lookup): New function. | |
1802 | (coff_bfd_reloc_name_lookup): Define. | |
1803 | * reloc.c (bfd_reloc_name_lookup): New function. | |
1804 | * riscix.c (riscix_reloc_name_lookup): New function. | |
1805 | (MY_bfd_reloc_name_lookup): Define. | |
1806 | * som.c (som_bfd_reloc_name_lookup): New function. | |
1807 | * targets.c (struct bfd_target): Add reloc_name_lookup. | |
1808 | (BFD_JUMP_TABLE_RELOCS): Add NAME##_bfd_reloc_name_lookup. | |
1809 | * versados.c (versados_bfd_reloc_name_lookup): Define. | |
1810 | * vms.c (vms_bfd_reloc_name_lookup): New function. | |
1811 | * bfd-in2.h: Regenerate. | |
1812 | * libbfd.h: Regenerate. | |
1813 | ||
2d82d84d TS |
1814 | 2007-03-26 Thiemo Seufer <ths@mips.com> |
1815 | ||
a5cb1fd7 | 1816 | PR ld/4208 |
2d82d84d TS |
1817 | * elfxx-mips.c (mips_elf_next_relocation): Don't signal an error if no |
1818 | matching relocation is found. | |
1819 | (_bfd_mips_elf_relocate_section): Only warn about missing relocations. | |
1820 | ||
831480e9 | 1821 | 2007-03-23 H.J. Lu <hongjiu.lu@intel.com> |
1a27db7d L |
1822 | |
1823 | * configure: Regenerated. | |
1824 | ||
a1ac8190 JM |
1825 | 2007-03-23 Joseph Myers <joseph@codesourcery.com> |
1826 | ||
1827 | * configure.in: Use ACX_PKGVERSION and ACX_BUGURL. | |
1828 | * configure: Regenerate. | |
1829 | ||
aa7a0635 AM |
1830 | 2007-03-23 Alan Modra <amodra@bigpond.net.au> |
1831 | ||
1832 | * elf32-spu.c (spu_stub_name): Don't put input section in stub name. | |
1833 | Remove input_sec param. Adjust all calls. | |
1834 | (write_one_stub): Adjust stub symbol. | |
1835 | (needs_ovl_stub): New function, extracted from.. | |
1836 | (spu_elf_size_stubs): ..here. | |
1837 | (spu_elf_relocate_section): Use needs_ovl_stub. | |
1838 | ||
e49e529d JM |
1839 | 2007-03-22 Joseph Myers <joseph@codesourcery.com> |
1840 | ||
1841 | * Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi | |
1842 | if nonempty. | |
1843 | * configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix. | |
1844 | * Makefile.in, configure, doc/Makefile.in: Regenerate. | |
1845 | ||
831480e9 | 1846 | 2007-03-22 H.J. Lu <hongjiu.lu@intel.com> |
50572669 L |
1847 | |
1848 | PR ld/4210 | |
1849 | * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual | |
1850 | address and virtual size of the last section for the image | |
1851 | size. | |
1852 | ||
0920dee7 L |
1853 | 2007-03-22 H.J. Lu <hongjiu.lu@intel.com> |
1854 | ||
1855 | PR ld/4007 | |
1856 | * elf.c (assign_file_positions_for_load_sections): Check if | |
1857 | all sections are in the segment. | |
1858 | ||
831480e9 | 1859 | 2007-03-20 H.J. Lu <hongjiu.lu@intel.com> |
749b8d9d L |
1860 | |
1861 | PR ld/4208 | |
1862 | * elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing | |
1863 | matching LO16 relocation for HI16 relocation. | |
1864 | ||
27e55c4d PB |
1865 | 2007-03-20 Paul Brook <paul@codesourcery.com> |
1866 | ||
1867 | * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype. | |
1868 | * bfd-in2.h: Regenerate. | |
1869 | * elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer. | |
1870 | (record_arm_to_thumb_glue): Use globals->pic_veneer. | |
1871 | (elf32_arm_create_thumb_stub): Ditto. | |
1872 | (bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer. | |
1873 | ||
bf21ed78 MS |
1874 | 2007-03-18 Mark Shinwell <shinwell@codesourcery.com> |
1875 | ||
1876 | * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add "bfd *" | |
1877 | argument and extra last argument. | |
1878 | * bfd-in2.h: Regenerate. | |
1879 | * elf32-arm.c (elf32_arm_obj_tdata): Add no_enum_size_warning | |
1880 | member. | |
1881 | (bfd_elf32_arm_set_target_relocs): Add "bfd *" argument and | |
1882 | extra last argument. Set no_enum_size_warning appropriately. | |
1883 | (elf32_arm_merge_eabi_attributes): Improve enum sizes | |
1884 | diagnostic, suppressing it when no_enum_size_warning dictates. | |
1885 | ||
5f6999aa NC |
1886 | 2007-03-20 Nick Clifton <nickc@redhat.com> |
1887 | ||
1888 | PR binutils/3535 | |
1889 | * elf.c (copy_private_bfd_data): Widen the scope of Solaris | |
1890 | specific conditions that need the program headers to be | |
1891 | rewritten. | |
1892 | ||
831480e9 | 1893 | 2007-03-19 H.J. Lu <hongjiu.lu@intel.com> |
d13c9dc6 L |
1894 | |
1895 | * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic, | |
1896 | MajorLinkerVersion, MinorLinkerVersion, SizeOfCode, | |
1897 | SizeOfInitializedData, SizeOfUninitializedData, | |
1898 | AddressOfEntryPoint, BaseOfCode and BaseOfData in internal | |
1899 | extra PE a.out header. | |
1900 | (IMAGE_NT_OPTIONAL_HDR_MAGIC): Defined as 0x10b if not defined. | |
1901 | (IMAGE_NT_OPTIONAL_HDR64_MAGIC): Defined as 0x20b if not | |
1902 | defined. | |
1903 | (IMAGE_NT_OPTIONAL_HDRROM_MAGIC): Defined as 0x107 if not | |
1904 | defined. | |
1905 | (_bfd_XX_print_private_bfd_data_common): Also print Magic, | |
1906 | MajorLinkerVersion, MinorLinkerVersion, SizeOfCode, | |
1907 | SizeOfInitializedData, SizeOfUninitializedData, | |
1908 | AddressOfEntryPoint, BaseOfCode and BaseOfData from internal | |
1909 | extra PE a.out header. | |
1910 | ||
831480e9 | 1911 | 2007-03-18 H.J. Lu <hongjiu.lu@intel.com> |
739bb57e L |
1912 | |
1913 | * targets.c (_bfd_target_vector): Add bfd_efi_app_x86_64_vec | |
1914 | only if BFD64 is defined. | |
1915 | ||
5384511f AM |
1916 | 2007-03-17 Alan Modra <amodra@bigpond.net.au> |
1917 | ||
1918 | * elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub | |
1919 | on setjmp calls. | |
1920 | ||
187b3d5d L |
1921 | 2007-03-15 H.J. Lu <hongjiu.lu@intel.com> |
1922 | ||
1923 | * doc/Makefile.in: Regenerated. | |
1924 | ||
c428fa83 L |
1925 | 2007-03-15 H.J. Lu <hongjiu.lu@intel.com> |
1926 | ||
1927 | * Makefile.am (bfdver.h): Substitute report_bugs_to. Also | |
1928 | create doc/bfdver.texi. | |
1929 | * Makefile.in: Regenerated. | |
1930 | ||
1931 | * configure.in (--with-bugurl): New option. | |
1932 | * configure: Regenerated. | |
1933 | ||
1934 | * version.h (REPORT_BUGS_TO): New. | |
1935 | ||
d1036acb L |
1936 | 2007-03-13 H.J. Lu <hongjiu.lu@intel.com> |
1937 | ||
1938 | PR binutils/3826 | |
1939 | * elf-bfd.h (elf_backend_data): Add elf_osabi. | |
1940 | (_bfd_elf_set_osabi): New. | |
1941 | ||
1942 | * elf.c (_bfd_elf_set_osabi): New. | |
1943 | ||
1944 | * elf32-hppa.c (elf32_hppa_post_process_headers): Removed. | |
1945 | (elf_backend_post_process_headers): Defined with | |
1946 | _bfd_elf_set_osabi. | |
1947 | (ELF_OSABI): Properly defined for each target. | |
1948 | ||
1949 | * elf32-i370.c (i370_elf_post_process_headers): Removed. | |
1950 | (ELF_OSABI): Defined. | |
1951 | (elf_backend_post_process_headers): Defined with | |
1952 | _bfd_elf_set_osabi. | |
1953 | ||
1954 | * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for | |
1955 | freebsd. | |
1956 | (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi. | |
1957 | ||
1958 | * elf32-msp430.c (elf32_msp430_post_process_headers): Removed. | |
1959 | (ELF_OSABI): Defined. | |
1960 | (elf_backend_post_process_headers): Defined with | |
1961 | _bfd_elf_set_osabi. | |
1962 | ||
1963 | * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for | |
1964 | freebsd. | |
1965 | (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with | |
1966 | elf_osabi. | |
1967 | ||
1968 | * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI | |
1969 | with elf_osabi. | |
1970 | (ELF_OSABI): Properly defined for each target. | |
1971 | (elf_backend_post_process_headers): Defined with | |
1972 | _bfd_elf_set_osabi for Linux. | |
1973 | ||
1974 | * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed. | |
1975 | (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd. | |
1976 | (elf_backend_post_process_headers): Defined with | |
1977 | _bfd_elf_set_osabi. | |
1978 | ||
1979 | * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed. | |
1980 | (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd. | |
1981 | (elf_backend_post_process_headers): Defined with | |
1982 | _bfd_elf_set_osabi. | |
1983 | ||
1984 | * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target | |
1985 | with any ELF target of the compatible machine for which we do not | |
1986 | have a specific backend. | |
1987 | ||
1988 | * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI | |
1989 | with elf_osabi. | |
1990 | ||
1991 | * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE. | |
1992 | (elfNN_bed): Initialize elf_osabi with ELF_OSABI. | |
1993 | ||
d4c87fc1 AM |
1994 | 2007-03-08 Alan Modra <amodra@bigpond.net.au> |
1995 | ||
1996 | * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out | |
1997 | V850_OTHER_* bits. | |
1998 | ||
9c6fc49d AM |
1999 | 2007-03-08 Alan Modra <amodra@bigpond.net.au> |
2000 | ||
2001 | * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo. | |
2002 | (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c. | |
2003 | Run "make dep-am". | |
2004 | * Makefile.in: Regenerate. | |
2005 | * po/SRC-POTFILES.in: Regenerate. | |
2006 | ||
faed74d6 L |
2007 | 2007-03-07 H.J. Lu <hongjiu.lu@intel.com> |
2008 | ||
2009 | * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec. | |
2010 | (x86_64-*-kfreebsd*-gnu): Likewise. | |
2011 | (x86_64-*-netbsd*): Likewise. | |
2012 | (x86_64-*-openbsd*): Likewise. | |
2013 | (x86_64-*-linux-*): Likewise. | |
2014 | ||
2015 | * configure.in: Support bfd_efi_app_x86_64_vec. | |
2016 | * configure: Regenerated. | |
2017 | ||
2018 | * efi-app-x86_64.c: New file. | |
2019 | ||
2020 | * targets.c (bfd_efi_app_x86_64_vec): New. | |
2021 | (_bfd_target_vector): Add bfd_efi_app_x86_64_vec. | |
2022 | ||
15344ad7 L |
2023 | 2007-03-07 Kai Tietz <kai.tietz@onevision.com> |
2024 | ||
2025 | * reloc.c (bfd_generic_get_relocated_section_contents): Remove | |
2026 | const for type reloc_howto_type. | |
2027 | ||
ab96bf03 AM |
2028 | 2007-03-07 Alan Modra <amodra@bigpond.net.au> |
2029 | ||
2030 | PR 3958 | |
2031 | * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link. | |
2032 | (elf_discarded_section): Move.. | |
2033 | * bfd-in.h: ..to here. | |
2034 | * bfd-in2.h: Regenerate. | |
2035 | * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols | |
2036 | from discarded sections before relocate_section has done its job. | |
2037 | * reloc.c (bfd_generic_get_relocated_section_contents): Handle | |
2038 | relocs against symbols from discarded sections. | |
2039 | * elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on | |
2040 | SECREL32. | |
2041 | (elf_hppa_relocate_section): Handle relocatable link after setting | |
2042 | sec, sym, h etc. for final link. Squash error messages for | |
2043 | relocatable link. Clear section contents for relocs against | |
2044 | symbols in discarded sections, and zero reloc. Remove existing | |
2045 | zero r_symndx code. | |
2046 | * elf-m10200.c (mn10200_elf_relocate_section): Likewise. | |
2047 | * elf-m10300.c (mn10300_elf_relocate_section): Likewise. | |
2048 | * elf32-arm.c (elf32_arm_relocate_section): Likewise. | |
2049 | * elf32-avr.c (elf32_avr_relocate_section): Likewise. | |
2050 | * elf32-bfin.c (bfinfdpic_relocate_section): Likewise. | |
2051 | (bfin_relocate_section): Likewise. | |
2052 | * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise. | |
2053 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
2054 | * elf32-crx.c (elf32_crx_relocate_section): Likewise. | |
2055 | * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. | |
2056 | * elf32-fr30.c (fr30_elf_relocate_section): Likewise. | |
2057 | * elf32-frv.c (elf32_frv_relocate_section): Likewise. | |
2058 | * elf32-h8300.c (elf32_h8_relocate_section): Likewise. | |
2059 | * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. | |
2060 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
2061 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
2062 | * elf32-i860.c (elf32_i860_relocate_section): Likewise. | |
2063 | * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise. | |
2064 | * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise. | |
2065 | * elf32-m32c.c (m32c_elf_relocate_section): Likewise. | |
2066 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
2067 | * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise. | |
2068 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
2069 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. | |
2070 | * elf32-mep.c (mep_elf_relocate_section): Likewise. | |
2071 | * elf32-msp430.c (elf32_msp430_relocate_section): Likewise. | |
2072 | * elf32-mt.c (mt_elf_relocate_section): Likewise. | |
2073 | * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise. | |
2074 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
2075 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
2076 | * elf32-score.c (_bfd_score_elf_relocate_section): Likewise. | |
2077 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
2078 | * elf32-spu.c (spu_elf_relocate_section): Likewise. | |
2079 | * elf32-v850.c (v850_elf_relocate_section): Likewise. | |
2080 | * elf32-vax.c (elf_vax_relocate_section): Likewise. | |
2081 | * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise. | |
2082 | * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise. | |
2083 | * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise. | |
2084 | * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise. | |
2085 | (elf64_alpha_relocate_section): Likewise. | |
2086 | * elf64-mmix.c (mmix_elf_relocate_section): Likewise. | |
2087 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
2088 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
2089 | * elf64-sh64.c (sh_elf64_relocate_section): Likewise. | |
2090 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
2091 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
2092 | * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise. | |
2093 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. | |
2094 | ||
2095 | * elf32-arm.c (elf32_arm_relocate_section): Always adjust section | |
2096 | symbols for relocatable link. Don't use always-zero st_value. | |
2097 | (elf_backend_rela_normal): Don't define. | |
2098 | * elf32-bfin.c (bfinfdpic_relocate_section): Use | |
2099 | RELOC_FOR_GLOBAL_SYMBOL. | |
2100 | * elf32-frv.c (elf32_frv_relocate_section): Likewise. | |
2101 | * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE | |
2102 | section symbol adjustments with same for relocatable link. | |
2103 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
2104 | * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move.. | |
2105 | (elf32_m68hc11_check_relocs): ..to here. | |
2106 | * elf32-score.c (score_elf_final_link_relocate): Remove zero | |
2107 | r_symndx code. | |
2108 | * elfxx-mips.c (mips_elf_calculate_relocation): Likewise. | |
2109 | ||
0e922b77 AM |
2110 | 2007-03-07 Alan Modra <amodra@bigpond.net.au> |
2111 | ||
2112 | PR 4144 | |
2113 | * elf.c (assign_file_positions_for_load_sections): Don't | |
2114 | adjust p_memsz for !SEC_LOAD section vma modulo page size. | |
2115 | Instead, use the same lma based adjustment for SEC_LOAD | |
2116 | sections. | |
2117 | ||
25c6282a BW |
2118 | 2007-03-01 Bob Wilson <bob.wilson@acm.org> |
2119 | ||
2120 | * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing. | |
2121 | (find_relaxable_sections): Do not increment src_count for unknown | |
2122 | opcodes. Decode only once instead of calling is_l32r_relocation. | |
2123 | (compute_text_actions): Remove unused no_insn_move flag. Assert that | |
2124 | src_next matches src_count in relax_info. | |
2125 | ||
066c2a57 JM |
2126 | 2007-03-01 Joseph Myers <joseph@codesourcery.com> |
2127 | ||
2128 | * Makefile.am (bfdver.h): Use "." not " " between version number | |
2129 | and date. | |
2130 | * Makefile.in: Regenerate. | |
2131 | * configure.in (PKGVERSION): Default to "(GNU Binutils) ". | |
2132 | * configure: Regenerate. | |
2133 | ||
ed6ba298 NS |
2134 | 2007-02-28 Nathan Sidwell <nathan@codesourcery.com> |
2135 | ||
2136 | * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza. | |
2137 | ||
7a8757b3 AM |
2138 | 2007-02-27 Alan Modra <amodra@bigpond.net.au> |
2139 | ||
2140 | * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const. | |
2141 | * elf32-spu.c (ovl_mgr_pread): Add const to casts. | |
2142 | ||
024b2372 CD |
2143 | 2007-02-23 Carlos O'Donell <carlos@codesourcery.com> |
2144 | ||
2145 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit | |
2146 | DWARF even with 64-bit addresses. | |
2147 | (_bfd_dwarf2_find_nearest_line): Likewise. | |
2148 | ||
cb3ff1e5 NC |
2149 | 2007-02-23 Nick Clifton <nickc@redhat.com> |
2150 | ||
2151 | PR binutils/3535 | |
2152 | * elf.c (copy_private_bfd_data): Always rewrite the program | |
2153 | headers when a Solaris interpreter segment is involved. | |
2154 | ||
6a5bb875 PB |
2155 | 2007-02-22 Paul Brook <paul@codesourcery.com> |
2156 | ||
2157 | * elflink.c (gc_mark_hook_fn): Remove. | |
2158 | (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn. | |
2159 | (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections. | |
2160 | * elf-bfd.h (elf_gc_mark_hook_fn): Define. | |
2161 | (elf_backend_data): Add gc_mark_extra_sections. | |
2162 | * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default | |
2163 | definition. | |
2164 | (elfNN_bed): Add elf_backend_gc_mark_extra_sections. | |
2165 | * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function. | |
2166 | (elf_backend_gc_mark_extra_sections): Define. | |
2167 | ||
2889e75b NC |
2168 | 2007-02-21 Nick Clifton <nickc@redhat.com> |
2169 | ||
2170 | * elf.c (_bfd_elf_map_sections_to_segments): If the | |
2171 | override_segment_assignment callback is defined then call it. | |
2172 | ||
78859468 AM |
2173 | 2007-02-21 Alan Modra <amodra@bigpond.net.au> |
2174 | ||
2175 | * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args. | |
2176 | ||
ae0d2616 TS |
2177 | 2007-02-19 Thiemo Seufer <ths@mips.com> |
2178 | ||
2179 | * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove | |
2180 | translation marker from untranslatable strings. | |
2181 | ||
6bfdb61b AM |
2182 | 2007-02-19 Alan Modra <amodra@bigpond.net.au> |
2183 | ||
2184 | * elf-bfd.h (struct elf_backend_data): Add default_execstack. | |
2185 | * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack. | |
2186 | * elfxx-target.h (elf_backend_default_execstack): Define to 1. | |
2187 | (elfNN_bed): Init new field. | |
2188 | * elf64-ppc.c (elf_backend_default_execstack): Define to 0. | |
2189 | ||
92f01d61 JM |
2190 | 2007-02-17 Mark Mitchell <mark@codesourcery.com> |
2191 | Nathan Sidwell <nathan@codesourcery.com> | |
2192 | Vladimir Prus <vladimir@codesourcery.com | |
2193 | Joseph Myers <joseph@codesourcery.com> | |
2194 | ||
2195 | * configure.in (--with-pkgversion): New option. | |
2196 | * configure: Regenerate. | |
2197 | * Makefile.am (bfdver.h): Substitute for @bfd_version_package@. | |
2198 | * Makefile.in: Regenerate. | |
2199 | * version.h (BFD_VERSION_STRING): Define using | |
2200 | @bfd_version_package@. | |
2201 | ||
c0e3f241 CD |
2202 | 2007-02-16 Carlos O'Donell <carlos@codesourcery.com> |
2203 | ||
2204 | * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): | |
2205 | Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT | |
2206 | and EF_MIPS_UCODE. | |
2207 | ||
72f6ea61 AM |
2208 | 2007-02-15 Alan Modra <amodra@bigpond.net.au> |
2209 | ||
2210 | * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define, | |
2211 | declare. | |
2212 | (_bfd_norelocs_canonicalize_reloc): Likewise. | |
2213 | * libbfd.h: Regenerate. | |
2214 | * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function. | |
2215 | (_bfd_norelocs_canonicalize_reloc): Likewise. | |
2216 | * binary.c (binary_bfd_reloc_type_lookup): Don't define. | |
2217 | (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise. | |
2218 | (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS. | |
2219 | * ihex.c: Similarly. | |
2220 | * mach-o-target.c: Similarly. | |
2221 | * mach-o.c: Similarly. | |
2222 | * mmo.c: Similarly. | |
2223 | * pef.c: Similarly. | |
2224 | * ppcboot.c: Similarly. | |
2225 | * srec.c: Similarly. | |
2226 | * xsym.c: Similarly. | |
2227 | ||
fab4a87f L |
2228 | 2007-02-14 H.J. Lu <hongjiu.lu@intel.com> |
2229 | ||
2230 | PR ld/3953 | |
2231 | * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol | |
2232 | when adding default symbol. | |
2233 | ||
e4e0193e AM |
2234 | 2007-02-13 Alan Modra <amodra@bigpond.net.au> |
2235 | ||
2236 | * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt" | |
2237 | for branch lookup table. | |
2238 | ||
84f5d08e AM |
2239 | 2007-02-12 Alan Modra <amodra@bigpond.net.au> |
2240 | ||
2241 | * elf64-ppc.c (create_linkage_sections): Don't create | |
2242 | .rela.rodata.brlt for --emit-relocs. | |
2243 | (ppc_build_one_stub): Create relocs for brlt --emit-relocs here. | |
2244 | (ppc_size_one_stub): Count them. Simplify test of stub type | |
2245 | when counting stub relocs. Set SEC_RELOC too. | |
2246 | (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC. | |
2247 | (ppc64_elf_finish_dynamic_sections): Output brlt relocs. | |
2248 | ||
4aac632e AM |
2249 | 2007-02-12 Alan Modra <amodra@bigpond.net.au> |
2250 | ||
2251 | * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs | |
2252 | with a zero symbol index. | |
2253 | ||
8da3dbc5 AM |
2254 | 2007-02-12 Alan Modra <amodra@bigpond.net.au> |
2255 | ||
2256 | * elflink.c (bfd_elf_discard_info): Tidy setting of "eh". | |
2257 | ||
b31847af DB |
2258 | 2007-02-05 Dave Brolley <brolley@redhat.com> |
2259 | Stan Cox <scox@redhat.com> | |
2260 | ||
2261 | PR ld/3972 | |
2262 | * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms. | |
2263 | ||
722b0ff7 | 2264 | 2007-02-05 Dave Brolley <brolley@redhat.com> |
e382d174 DB |
2265 | Richard Sandiford <rsandifo@redhat.com> |
2266 | Stan Cox <scox@redhat.com> | |
2267 | Nick Clifton <nickc@redhat.com> | |
2268 | DJ Delorie <dj@redhat.com> | |
2269 | Frank Ch. Eigler <fche@redhat.com> | |
2270 | Ben Elliston <bje@redhat.com> | |
2271 | Richard Henderson <rth@redhat.com> | |
2272 | ||
2273 | * Makefile.am (ALL_MACHINES): Add cpu-mep.lo. | |
2274 | (ALL_MACHINES_CFILES): Add CPU_MEP.c. | |
2275 | (BFD32_BACKENDS): Add elf32-mep.lo. | |
2276 | (BFD32_BACKENDS_CFILES): Add elf32-mep.c. | |
2277 | (cpu-mep.lo,elf32-mep.lo): New targets. | |
2278 | * archures.c (bfd_arch_mep): New enumerator. | |
2279 | (bfd_mach_mep, bfd_mach_mep_h1): New macros. | |
2280 | (bfd_mep_arch): New external variable. | |
2281 | (bfd_archures_list): Add bfd_mep_arch. | |
2282 | * config.bfd: Support mep-*-elf. | |
2283 | * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec. | |
2284 | * reloc.c (BFD_RELOC_MEP_*): New relocation numbers. | |
2285 | * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern | |
2286 | declarations. | |
2287 | (_bfd_target_vector): Add bfd_elf32_mep_vec and | |
2288 | bfd_elf32_mep_little_vec. | |
722b0ff7 DB |
2289 | * mep-relocs.pl: New file. |
2290 | * cpu-mep.c: New file. | |
2291 | * elf32-mep.c: New file. | |
2292 | * bfd-in2.h: Regenerate. | |
e382d174 | 2293 | * po/POTFILES.in: Regenerate. |
722b0ff7 DB |
2294 | * libbfd.h: Regenerate. |
2295 | * Makefile.in: Regenerate. | |
2296 | * configure: Regenerate. | |
2297 | ||
d9352518 DB |
2298 | 2007-02-05 Dave Brolley <brolley@redhat.com> |
2299 | ||
2300 | * elflink.c (evaluate_complex_relocation_symbols): Check for | |
2301 | STT_SRELC for global symbols. | |
2302 | (perform_complex_relocations): Renamed to | |
2303 | perform_complex_relocation and now examines only one relocation. | |
2304 | (elf_link_input_bfd): Don't call perform_complex_relocations. | |
74e880a7 | 2305 | * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype. |
d9352518 DB |
2306 | * elf32-mep.c (mep_elf_howto_table): Add R_RELC. |
2307 | (OD,OS,OU): #undefs corrected to N, S and U repectively. | |
2308 | (mep_reloc_type_lookup): Handle BFD_RELOC_RELC. | |
2309 | (complex_reloc_installation_howto): Removed. | |
2310 | (mep_info_to_howto_rela): Remove special case for r_type==0xff. | |
2311 | (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation. | |
2312 | ||
d9352518 | 2313 | 2007-02-05 Dave Brolley <brolley@redhat.com> |
e382d174 DB |
2314 | Richard Sandiford <rsandifo@redhat.com> |
2315 | DJ Delorie <dj@redhat.com> | |
2316 | Graydon Hoare <graydon@redhat.com> | |
2317 | Nick Clifton <nickc@cambridge.redhat.com> | |
2318 | Jeff Holcomb <jeffh@redhat.com> | |
2319 | Frank Ch. Eigler <fche@redhat.com> | |
2320 | ||
2321 | * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype. | |
2322 | * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC. | |
2323 | * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC. | |
2324 | * elflink.c (set_symbolValue): New static function. | |
d9352518 DB |
2325 | (resolve_symbol): Likewise. |
2326 | (resolve_section): Likewise. | |
2327 | (undefined_reference): Likewise. | |
2328 | (eval_symbol): Likewise. | |
2329 | (evaluate_complex_relocation_symbols): Likewise. | |
2330 | (put_value): Likewise. | |
2331 | (get_value): Likewise. | |
e382d174 DB |
2332 | (decode_complex_addend): |
2333 | (bfd_elf_perform_complex_relocation): New function. | |
2334 | (elf_link_input_bfd): Call evaluate_complex_relocation_symbols. | |
2335 | * reloc.c (BFD_RELOC_RELC): New relocation number. | |
2336 | * syms.c (BSF_RELC,BSF_SRELC): New macros. | |
d9352518 | 2337 | |
f1ab2340 | 2338 | 2007-02-05 Bob Wilson <bob.wilson@acm.org> |
74e880a7 | 2339 | |
f1ab2340 BW |
2340 | * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete. |
2341 | (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete. | |
2342 | (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size) | |
2343 | (elf_xtensa_allocate_got_size): Replace these with... | |
2344 | (elf_xtensa_allocate_dynrelocs): ...this new function. | |
2345 | (elf_xtensa_size_dynamic_sections): Use it. | |
74e880a7 | 2346 | |
e5f131d1 | 2347 | 2007-02-05 Bob Wilson <bob.wilson@acm.org> |
74e880a7 | 2348 | |
e5f131d1 BW |
2349 | * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT> |
2350 | <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>: | |
2351 | Set src_mask to zero. | |
2352 | <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask. | |
2353 | <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE. | |
74e880a7 | 2354 | |
4608f3d9 BW |
2355 | 2007-02-02 Bob Wilson <bob.wilson@acm.org> |
2356 | ||
2357 | * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to... | |
2358 | (elf_xtensa_dynamic_symbol_p): ...this. | |
2359 | ||
f0e6fdb2 BW |
2360 | 2007-02-02 Bob Wilson <bob.wilson@acm.org> |
2361 | ||
2362 | * elf32-xtensa.c (plt_reloc_count): Move into link hash table. | |
2363 | (struct elf_xtensa_link_hash_table): New. | |
2364 | (elf_xtensa_hash_table): New. | |
2365 | (elf_xtensa_link_hash_table_create): New. | |
2366 | (elf_xtensa_check_relocs): Update plt_reloc_count references. | |
2367 | Update arguments to add_extra_plt_sections. | |
2368 | (elf_xtensa_create_dynamic_sections): Record new sections in the hash | |
2369 | table. Update for plt_reloc_count and add_extra_plt_sections. | |
2370 | (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj | |
2371 | argument with link info. Update calls to elf_xtensa_get_plt_section | |
2372 | and elf_xtensa_get_gotplt_section. | |
2373 | (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections) | |
2374 | (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections) | |
2375 | (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections) | |
2376 | (relax_property_section): Get sections from the hash table and update | |
2377 | function calls. | |
2378 | (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace | |
2379 | dynobj argument with link info. Get sections for first plt chunk from | |
2380 | the hash table. | |
2381 | (bfd_elf32_bfd_link_hash_table_create): Define. | |
2382 | ||
c15f73f9 JJ |
2383 | 2007-02-02 Jakub Jelinek <jakub@redhat.com> |
2384 | ||
2385 | * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *. | |
2386 | * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types. | |
2387 | (struct elf_symbol): Change first member into union. | |
2388 | (elf_sort_elf_symbol): Compare pointers to internal syms rather than | |
2389 | internal syms. Only compare st_shndx fields. | |
2390 | (elf_create_symbuf): New function. | |
2391 | (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available | |
2392 | for bfds, use a binary search, otherwise don't qsort symbols | |
2393 | unnecessarily only to select which symbols are for the particular | |
2394 | shndx. | |
2395 | ||
effdf42a NC |
2396 | 2007-02-01 Nick Clifton <nickc@redhat.com> |
2397 | ||
2398 | PR ld/3852 | |
2399 | * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields | |
2400 | in the elf_link_hash_table structure. | |
2401 | ||
183e98be AM |
2402 | 2007-02-01 Alan Modra <amodra@bigpond.net.au> |
2403 | ||
2404 | * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note. | |
2405 | * elfxx-target.h (elf_backend_write_core_note): Define and use. | |
2406 | * elf.c (elfcore_write_prpsinfo): Call the above. Add support for | |
2407 | 32-bit core note on 64-bit target. | |
2408 | (elfcore_write_prstatus): Likewise. | |
2409 | (elfcore_write_lwpstatus): Make note_name const. | |
2410 | (elfcore_write_prfpreg): Likewise. | |
2411 | (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit | |
2412 | target. | |
2413 | * elf32-ppc.c (ppc_elf_write_core_note): New function. | |
2414 | (elf_backend_write_core_note): Define. | |
2415 | * elf64-ppc.c (ppc64_elf_write_core_note): New function. | |
2416 | (elf_backend_write_core_note): Define. | |
2417 | ||
fc523535 | 2418 | 2007-01-31 H.J. Lu <hongjiu.lu@intel.com> |
16cecee5 L |
2419 | |
2420 | * elf32-cris.c (INCLUDED_TARGET_FILE): Removed. | |
2421 | (elf32_bed): Defined for elf32-us-cris. | |
2422 | ||
2423 | * elf64-sh64.c (elf64_bed): Defined for Linux. | |
2424 | (INCLUDED_TARGET_FILE): Removed. | |
2425 | ||
2426 | * elfxx-target.h (elfNN_bed): Always define. Don't check | |
2427 | INCLUDED_TARGET_FILE. | |
2428 | ||
c9b57b7e DD |
2429 | 2007-01-31 DJ Delorie <dj@redhat.com> |
2430 | ||
2431 | * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning | |
2432 | message for dangerous relocs, special case the common user error. | |
2433 | ||
53020534 L |
2434 | 2007-01-30 H.J. Lu <hongjiu.lu@intel.com> |
2435 | ||
2436 | * elf.c (copy_elf_program_header): Start from the first section | |
2437 | in a segment and stop when all sections in a segment are | |
2438 | accounted for. | |
2439 | ||
c7b8f16e JB |
2440 | 2007-01-29 Julian Brown <julian@codesourcery.com> |
2441 | ||
2442 | * bfd-in2.h: Regenerate. | |
2443 | * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11 | |
2444 | instruction scanning should be done. | |
2445 | (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan) | |
2446 | (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes. | |
2447 | (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to | |
2448 | prototype. | |
2449 | * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info | |
2450 | argument. | |
2451 | * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME) | |
2452 | (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros. | |
2453 | (elf32_vfp11_erratum_type): New enum. | |
2454 | (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to | |
2455 | veneers. | |
2456 | (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist. | |
2457 | (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size, | |
2458 | vfp11_fix and num_vfp11_fixes fields. | |
2459 | (elf32_arm_link_hash_table_create): Initialise vfp11_fix, | |
2460 | vfp11_erratum_glue_size, num_vfp11_fixes fields. | |
2461 | (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer. | |
2462 | (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum | |
2463 | glue section. | |
2464 | (elf32_arm_section_map_add): Add an code/data mapping symbol entry | |
2465 | to a section's map. | |
2466 | (record_vfp11_erratum_veneer): Create a single veneer, and its | |
2467 | associated symbols. | |
2468 | (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue. | |
2469 | (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input | |
2470 | BFDs. | |
2471 | (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround | |
2472 | required. | |
2473 | (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes. | |
2474 | (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn. | |
2475 | (bfd_arm_vfp11_write_mask): Update write mask according to coded | |
2476 | register number. | |
2477 | (bfd_arm_vfp11_antidependency): New function. | |
2478 | (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn. | |
2479 | (elf32_arm_compare_mapping): Declare. | |
2480 | (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input | |
2481 | BFD for potential erratum-triggering insns. Record results. | |
2482 | (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers | |
2483 | and branches to veneers have been placed in virtual memory after | |
2484 | layout. | |
2485 | (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global | |
2486 | hash table. | |
2487 | (elf32_arm_output_symbol_hook): Remove. | |
2488 | (elf32_arm_write_section): Output veneers, and branches to veneers. | |
2489 | Use maps from input sections, not output sections, for code | |
2490 | byte-swapping. | |
2491 | * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument. | |
2492 | * elf32-score.c (_bfd_score_elf_write_section): Likewise. | |
2493 | * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise. | |
2494 | * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise. | |
2495 | ||
2496 | 2007-01-27 H.J. Lu <hongjiu.lu@intel.com> | |
83d1651b L |
2497 | |
2498 | * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux. | |
b8210914 | 2499 | (INCLUDED_TARGET_FILE): Removed. |
83d1651b | 2500 | |
914dfb0f DA |
2501 | 2007-01-27 Mike Frysinger <vapier@gentoo.org> |
2502 | ||
2503 | * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd. | |
2504 | (INCLUDED_TARGET_FILE): Remove. | |
2505 | ||
78eba9b6 DD |
2506 | 2007-01-25 DJ Delorie <dj@redhat.com> |
2507 | ||
2508 | * elf32-m32c.c (m32c_elf_howto_table): Don't complain about | |
2509 | R_M32C_16 or R_M32C_24 relocs. | |
2510 | ||
64ee10b6 NC |
2511 | 2007-01-25 Nick Clifton <nickc@redhat.com> |
2512 | ||
2513 | PR binutils/3874 | |
2514 | * elf32-avr.c (avr_link_hash_table): Check to make sure that the | |
2515 | hash table was created by elf32_avr_link_hash_table_create before | |
2516 | using it. | |
2517 | (elf32_avr_link_hash_newfunc): New function. Just pass the call | |
2518 | through to _bfd_elf_link_hash_newfunc. | |
2519 | (elf32_avr_link_hash_table_create): Use | |
2520 | elf32_avr_link_hash_newfunc instead of | |
2521 | _bfd_elf_link_hash_newfunc. | |
2522 | (elf32_avr_relocate_section): Check for the hash table pointer | |
2523 | being NULL. | |
2524 | (elf32_avr_relax_section, avr_build_one_stub, | |
2525 | elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs, | |
2526 | elf32_avr_build_stubs): Likewise. | |
2527 | ||
40b36307 L |
2528 | 2007-01-16 H.J. Lu <hongjiu.lu@intel.com> |
2529 | ||
2530 | PR ld/3831 | |
2531 | * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an | |
2532 | argument, Elf_Internal_Sym *. | |
2533 | ||
2534 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data | |
2535 | symbol dynamic if info->dynamic_data is TRUE. | |
2536 | (bfd_elf_record_link_assignment): Updated call to | |
2537 | bfd_elf_record_link_assignment. | |
2538 | (_bfd_elf_merge_symbol): Likewise. Always call | |
2539 | bfd_elf_link_mark_dynamic_symbol. | |
2540 | ||
fc523535 | 2541 | 2007-01-12 H.J. Lu <hongjiu.lu@intel.com> |
a454209d L |
2542 | |
2543 | * Makefile.am (BFD_LIBS): Removed. | |
2544 | * Makefile.in: Regenerated. | |
2545 | ||
fc523535 | 2546 | 2007-01-11 H.J. Lu <hongjiu.lu@intel.com> |
21e40a48 L |
2547 | |
2548 | PR binutils/3631 | |
2549 | * Makefile.am (OFILES): Add @bfd64_libs@. | |
2550 | (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES). | |
2551 | * Makefile.in: Regenerated. | |
2552 | ||
2553 | * configure.in (bfd_libs): Replaced by ... | |
2554 | (bfd64_libs): This. | |
2555 | * configure: Regenerated. | |
2556 | ||
59e0647f NS |
2557 | 2007-01-11 Nathan Sidwell <nathan@codesourcery.com> |
2558 | ||
2559 | * elf.c (assign_file_positions_for_load_sections): We can | |
2560 | require fewer phdrs than expected. | |
2561 | ||
3bdcfdf4 KH |
2562 | 2007-01-08 Kazu Hirata <kazu@codesourcery.com> |
2563 | ||
2564 | * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido. | |
2565 | * bfd-in2.h: Regenerate. | |
2566 | * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of | |
2567 | bfd_mach_cpu32_fido. | |
2568 | (m68k_arch_features): Use fido_a instead of cpu32. | |
2569 | (bfd_m68k_compatible): Reject the combination of Fido and | |
2570 | ColdFire. Accept the combination of CPU32 and Fido with a | |
2571 | warning. | |
2572 | * elf32-m68k.c (elf32_m68k_object_p, | |
2573 | elf32_m68k_merge_private_bfd_data, | |
2574 | elf32_m68k_print_private_bfd_data): Treat Fido as an | |
2575 | architecture by itself. | |
2576 | ||
42037fe5 NC |
2577 | 2007-01-08 Kai Tietz <kai.tietz@onevision.com> |
2578 | ||
2579 | * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*. | |
2580 | ||
ebe8b991 JJ |
2581 | 2007-01-05 Jakub Jelinek <jakub@redhat.com> |
2582 | ||
2583 | * texhex.c (first_phase): Don't fall through into the default | |
2584 | case. | |
2585 | (pass_over): Replace abort () calls with return FALSE. Fix | |
2586 | buffer overflow. | |
2587 | ||
b327f31f AM |
2588 | 2007-01-04 Jie Zhang <jie.zhang@analog.com> |
2589 | ||
2590 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set | |
2591 | SEC_EXCLUDE on zero size .eh_frame. | |
2592 | ||
10a2343e | 2593 | For older changes see ChangeLog-2006 |
56882138 AM |
2594 | \f |
2595 | Local Variables: | |
2596 | mode: change-log | |
2597 | left-margin: 8 | |
2598 | fill-column: 74 | |
2599 | version-control: never | |
2600 | End: |