| 1 | 2009-03-27 Nick Clifton <nickc@redhat.com> |
| 2 | |
| 3 | * section.c (bfd_get_section_contents): Detect and handle the case |
| 4 | where a section has the SEC_IN_MEMORY flag set but no actual |
| 5 | contents allocated. |
| 6 | |
| 7 | 2009-03-26 Alan Modra <amodra@bigpond.net.au> |
| 8 | |
| 9 | PR 6494 |
| 10 | * elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO |
| 11 | p_filesz and p_memsz are equal. Use p_memsz as the segment size. |
| 12 | (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO |
| 13 | if we don't find matching PT_LOAD when copying. |
| 14 | |
| 15 | 2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com> |
| 16 | |
| 17 | * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of |
| 18 | the reloc descriptions. |
| 19 | |
| 20 | 2009-03-25 Hans-Peter Nilsson <hp@axis.com> |
| 21 | |
| 22 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> |
| 23 | <R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols. |
| 24 | <case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto. |
| 25 | |
| 26 | 2009-03-24 H.J. Lu <hongjiu.lu@intel.com> |
| 27 | |
| 28 | * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static. |
| 29 | (bfd_i386_arch_intel_syntax): Likewise. |
| 30 | (i8086_arch): Likewise. |
| 31 | (bfd_x86_64_arch): Likewise. |
| 32 | |
| 33 | 2009-03-24 Hans-Peter Nilsson <hp@axis.com> |
| 34 | |
| 35 | * elf32-cris.c (cris_elf_relocate_section): <case |
| 36 | R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local |
| 37 | symbols for non-allocated sections. Don't check whether to |
| 38 | generate R_CRIS_DTPMOD for non-allocated sections. |
| 39 | (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't |
| 40 | handle relocation GC:ing if applied to non-allocated section. |
| 41 | (cris_elf_check_relocs): Similar. |
| 42 | |
| 43 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> |
| 44 | <R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size |
| 45 | when emitting a known TP offset in the GOT. |
| 46 | |
| 47 | 2009-03-23 Alan Modra <amodra@bigpond.net.au> |
| 48 | |
| 49 | * elf64-ppc.c (synthetic_opd): Delete. |
| 50 | (compare_symbols): Look for .opd name rather than section match. |
| 51 | (ppc64_elf_get_synthetic_symtab): Likewise. |
| 52 | |
| 53 | 2009-03-21 Alan Modra <amodra@bigpond.net.au> |
| 54 | |
| 55 | * elf32-ppc.c (is_pic_glink_stub): Delete. |
| 56 | (is_nonpic_glink_stub): New function. |
| 57 | (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather |
| 58 | than first pic one. |
| 59 | (struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix. |
| 60 | |
| 61 | 2009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com> |
| 62 | Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
| 63 | |
| 64 | * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_* |
| 65 | macros for visibilty and locality checks. |
| 66 | (elf_s390_adjust_dynamic_symbol): Likewise. |
| 67 | (allocate_dynrelocs): Likewise. |
| 68 | (elf_s390_relocate_section): Likewise. |
| 69 | (elf_s390_finish_dynamic_symbol): Likewise. |
| 70 | * elf64-s390.c (elf_s390_check_relocs): Likewise. |
| 71 | (elf_s390_adjust_dynamic_symbol): Likewise. |
| 72 | (allocate_dynrelocs): Likewise. |
| 73 | (elf_s390_relocate_section): Likewise. |
| 74 | (elf_s390_finish_dynamic_symbol): Likewise. |
| 75 | |
| 76 | 2009-03-19 Kai Tietz <kai.tietz@onevision.com> |
| 77 | |
| 78 | * bfd-in2.h: Regenerated. |
| 79 | * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY |
| 80 | for debugging sections and map memory read/write dependent on |
| 81 | SEC_COFF_NOREAD. |
| 82 | (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections |
| 83 | without memory read flags set. |
| 84 | * section.c: Add SEC_COFF_NOREAD to section flags. |
| 85 | |
| 86 | 2009-03-19 Andreas Schwab <schwab@linux-m68k.org> |
| 87 | |
| 88 | * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long |
| 89 | for format string. |
| 90 | |
| 91 | 2009-03-19 Alan Modra <amodra@bigpond.net.au> |
| 92 | |
| 93 | * elf32-spu.c (spu_elf_find_overlays): Separate error return from |
| 94 | "no overlays" return. If there are overlays, create overlay |
| 95 | manager entry symbols here, so that.. |
| 96 | (spu_elf_build_stubs): ..we don't need to set them up here. |
| 97 | Simplify entry symbol tests. |
| 98 | * elf32-spu.h (spu_elf_find_overlays): Update prototype. |
| 99 | |
| 100 | 2009-03-18 Mark Kettenis <kettenis@gnu.org> |
| 101 | |
| 102 | * elf.c (elfcore_grok_openbsd_procinfo) |
| 103 | (elfcore_grok_openbsd_note): New functions. |
| 104 | (elf_parse_notes): Handle notes from OpenBSD ELF core files. |
| 105 | |
| 106 | 2009-03-18 Alan Modra <amodra@bigpond.net.au> |
| 107 | |
| 108 | * vms-hdr.c: Don't include alloca.h. |
| 109 | * elf32-m68hc1x.c: Include alloca-conf.h. |
| 110 | * xsym.c: Likewise. |
| 111 | * elf64-hppa.c: Likewise. Remove existing #if's handling alloca. |
| 112 | * som.c: Likewise. |
| 113 | * Makefile.am: Run "make dep-am". |
| 114 | * Makefile.in: Regenerate. |
| 115 | |
| 116 | 2009-03-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 117 | |
| 118 | * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test. |
| 119 | |
| 120 | 2009-03-17 Alan Modra <amodra@bigpond.net.au> |
| 121 | |
| 122 | * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit. |
| 123 | Add compact_stub. |
| 124 | (emum _ovly_flavour): Delete ovly_compact, ovly_none. |
| 125 | * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and |
| 126 | ovly_return fields with ovly_entry[2]. Adjust all users. |
| 127 | (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler |
| 128 | when soft-icache. |
| 129 | (spu_elf_build_stubs): Likewise. |
| 130 | (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for |
| 131 | ovly_flavour changes. Update all callers. |
| 132 | (ovl_stub_size_log2): New function. |
| 133 | (build_stub): Handle compact icache stubs. Use different manager |
| 134 | entry point for stubs in non-icache area. |
| 135 | (spu_elf_size_stubs): Don't allocate space for indirect branch |
| 136 | descriptors. |
| 137 | (spu_elf_build_stubs): And don't built them. |
| 138 | |
| 139 | 2009-03-16 Andrew Stubbs <ams@codesourcery.com> |
| 140 | |
| 141 | * dwarf2.c (read_section): Always use rawsize, if available. |
| 142 | |
| 143 | 2009-03-16 Alan Modra <amodra@bigpond.net.au> |
| 144 | |
| 145 | * simple.c (bfd_simple_get_relocated_section_contents): Use larger |
| 146 | of rawsize and size for buffer. |
| 147 | |
| 148 | 2009-03-15 Ulrich Weigand <uweigand@de.ibm.com> |
| 149 | |
| 150 | * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay |
| 151 | parameter just because fixed sections fit into local store. |
| 152 | (spu_elf_auto_overlay): Do not declare as "noreturn". Skip |
| 153 | generating overlays if fixed sections plus reserved stack |
| 154 | and heap space fit into local store. |
| 155 | |
| 156 | 2009-03-15 Alan Modra <amodra@bigpond.net.au> |
| 157 | |
| 158 | * elf32-spu.c (build_stub): Correct icache set_id. |
| 159 | (spu_elf_relocate_section): Likewise. |
| 160 | |
| 161 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 162 | |
| 163 | * xcofflink.c (xcoff_link_check_archive_element): Only free the |
| 164 | symbol table if it was created by the current call. |
| 165 | |
| 166 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 167 | |
| 168 | * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors |
| 169 | class XMC_DS rather than XMC_UA. |
| 170 | |
| 171 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 172 | |
| 173 | * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the |
| 174 | bfd_boolean export_defineds parameter with an unsigned int |
| 175 | auto_export_flags parameter. |
| 176 | * bfd-in2.h: Regenerate. |
| 177 | * xcofflink.c (xcoff_archive_contains_shared_object_p): New function, |
| 178 | split out from xcoff_build_ldsyms. |
| 179 | (xcoff_covered_by_expall_p): New function. |
| 180 | (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms |
| 181 | but with extra code to handle -bexpfull and -bexpall. |
| 182 | (xcoff_mark_auto_exports): New function. |
| 183 | (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether |
| 184 | a function should be automatically exported. |
| 185 | (bfd_xcoff_size_dynamic_sections): Replace the export_defineds |
| 186 | parameter with an auto_export_flags parameter. Update ldinfo |
| 187 | accordingly. Use xcoff_mark_auto_exports to mark all automatically- |
| 188 | exported symbols. |
| 189 | |
| 190 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 191 | |
| 192 | * xcofflink.c (xcoff_mark_symbol_by_name): New function. |
| 193 | (bfd_xcoff_size_dynamic_sections): Use it to mark the entry, |
| 194 | init and fini functions. Do garbage collection for objects |
| 195 | without an entry point too. |
| 196 | |
| 197 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 198 | |
| 199 | * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to |
| 200 | check whether a symbol has csect information. |
| 201 | (coff_print_aux): Likewise. |
| 202 | * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect |
| 203 | information for C_AIX_WEAKEXT too. |
| 204 | (_bfd_xcoff_swap_aux_out): Likewise. |
| 205 | (xcoff_reloc_type_br): Handle defweak symbols too. |
| 206 | * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect |
| 207 | information for C_AIX_WEAKEXT too. |
| 208 | (_bfd_xcoff64_swap_aux_out): Likewise. |
| 209 | (xcoff64_reloc_type_br): Handle defweak symbols too. |
| 210 | * coffgen.c (coff_print_symbol): Handle auxillary function |
| 211 | information for C_AIX_WEAKEXT too. |
| 212 | * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK |
| 213 | instead of BSF_GLOBAL if the L_WEAK flag is set. |
| 214 | (xcoff_dynamic_definition_p): New function. |
| 215 | (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym |
| 216 | defines h. Don't change h if ldsym isn't the definition. Otherwise, |
| 217 | always take the symbol class from the ldsym. Use weak bfd symbol |
| 218 | types for weak ldsyms. |
| 219 | (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P. |
| 220 | Fix the check for whether a definition is from a shared object. |
| 221 | Allow redefinitions of weak symbols. |
| 222 | (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P. |
| 223 | (xcoff_keep_symbol_p): Likewise. |
| 224 | (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P. |
| 225 | (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P. |
| 226 | Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols, |
| 227 | but mark them as L_WEAK. |
| 228 | (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT |
| 229 | instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT. |
| 230 | |
| 231 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 232 | |
| 233 | * xcofflink.c (xcoff_mark): When walking the relocations, |
| 234 | only mark the target symbol or the target section, not both. |
| 235 | (xcoff_final_definition_p): New function. |
| 236 | (xcoff_keep_symbol_p): Use it to check whether an external XCOFF |
| 237 | symbol is a valid definition of the associated output symbol. |
| 238 | Use XCOFF_ALLOCATED to stop the same hash table entry having |
| 239 | two output symbols. |
| 240 | (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when |
| 241 | keeping a symbol. |
| 242 | (xcoff_link_input_bfd): Use xcoff_final_definition_p. |
| 243 | |
| 244 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 245 | |
| 246 | * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute |
| 247 | symbols as XMC_XO. |
| 248 | |
| 249 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 250 | |
| 251 | * libcoff-in.h (xcoff_tdata): Add a lineno_counts field. |
| 252 | * libcoff.h: Regenerate. |
| 253 | * xcofflink.c (xcoff_link_add_symbols): Record per-symbol |
| 254 | line-number counts in the bfd's lineno_counts field. |
| 255 | Don't keep per-csect line-number counts. |
| 256 | (xcoff_sweep): Don't update per-csect line-number counts. |
| 257 | (bfd_xcoff_size_dynamic_sections): Count the number of line-number |
| 258 | entries in each output section. |
| 259 | (xcoff_link_input_bfd): Get the number of line numbers from |
| 260 | the bfd's lineno_counts field, rather than recalculating it |
| 261 | from scratch. Fix the range check when updating C_BINCL and |
| 262 | C_EINCL symbols. |
| 263 | (_bfd_xcoff_bfd_final_link): Don't count the output line numbers |
| 264 | here. Don't expect csects to have line-number counts. |
| 265 | |
| 266 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 267 | |
| 268 | * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long. |
| 269 | * libcoff.h: Regenerate. |
| 270 | * xcofflink.c (xcoff_keep_symbol_p): New function, using the |
| 271 | "skip" logic from xcoff_link_input_bfd. |
| 272 | (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic |
| 273 | objects in a dynamic link, rather than checking whether csectpp |
| 274 | is null. Always allocate debug_index for other objects, |
| 275 | and always go through the loop. Update the type of debug_index |
| 276 | after the change above. Read the auxillary csect information |
| 277 | and use xcoff_keep_symbol_p to decide whether a symbol should |
| 278 | be kept. Set its debug_index to -2 if not. |
| 279 | (xcoff_link_input_bfd): Update the type of debug_index after |
| 280 | the change above and always expect it to be nonnull. Use it to |
| 281 | test whether a symbol should be stripped, rather than making the |
| 282 | decision here. Postpone all symbol creation to the second pass. |
| 283 | |
| 284 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 285 | |
| 286 | * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when |
| 287 | creating a descriptor. |
| 288 | (xcoff_sweep): Don't mark toc_section unless it's needed. |
| 289 | (bfd_xcoff_size_dynamic_sections): Skip the toc_section |
| 290 | when marking every bfd. |
| 291 | (xcoff_link_input_bfd): Skip all TOC anchors. |
| 292 | (xcoff_toc_section_p, xcoff_find_tc0): New functions. |
| 293 | (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor |
| 294 | to -1; call xcoff_find_tc0 instead. |
| 295 | |
| 296 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 297 | |
| 298 | * libcoff-in.h (xcoff_section_tdata): Update commentary. |
| 299 | * libcoff.h: Regenerate. |
| 300 | * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER |
| 301 | symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than |
| 302 | the previous symbol's csect. Treat last_symndx as an inclusive value |
| 303 | and simplify its handling. |
| 304 | (xcoff_mark): Treat last_symndx as an inclusive value. Only mark |
| 305 | symbols with the right csect. Don't mark rsec when processing |
| 306 | relocations against undefined or absolute sections. |
| 307 | (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag |
| 308 | of bfd_und_section_ptr. |
| 309 | (xcoff_link_input_bfd): Likewise. |
| 310 | |
| 311 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 312 | |
| 313 | * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations |
| 314 | against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED |
| 315 | flag is set. Assert that all undefined symbols are either |
| 316 | imported or defined by a dynamic object. |
| 317 | * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise. |
| 318 | * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol |
| 319 | handling to all relocations. Only set XCOFF_CALLED for function |
| 320 | symbols. |
| 321 | (xcoff_find_function): New function, split out from... |
| 322 | (bfd_xcoff_export_symbol) ...here. |
| 323 | (xcoff_set_import_path): New function, split out from... |
| 324 | (bfd_xcoff_import_symbol): ...here. Remove assertion for old |
| 325 | meaning of XCOFF_CALLED. |
| 326 | (xcoff_mark_symbol): If we mark an undefined and unimported |
| 327 | symbol, find some way of defining it. If the symbol is a function |
| 328 | descriptor, fill in its definition automatically. If the symbol |
| 329 | is a function, mark its descriptor and allocate room for global |
| 330 | linkage code. Otherwise mark the symbol as implicitly imported. |
| 331 | Move the code for creating function descriptors from... |
| 332 | (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to |
| 333 | check for symbols that were implicitly defined. |
| 334 | (xcoff_mark): Don't count any dynamic relocations against |
| 335 | function symbols. |
| 336 | (bfd_xcoff_size_dynamic_sections): Save the rtld parameter |
| 337 | in the xcoff link info. |
| 338 | (xcoff_link_input_bfd): Remove handling of undefined and |
| 339 | unexported symbols. |
| 340 | |
| 341 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 342 | |
| 343 | * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute |
| 344 | if the target is absolute. Fix comment typo. |
| 345 | (xcoff_ppc_relocate_section): Remove FIXME. |
| 346 | * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute |
| 347 | if the target is absolute. |
| 348 | |
| 349 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 350 | |
| 351 | * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy |
| 352 | R_POS and R_NEG relocations against absolute symbols to the |
| 353 | .loader section. |
| 354 | |
| 355 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 356 | |
| 357 | * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype |
| 358 | to 2 for bfd_mach_ppc_620. |
| 359 | |
| 360 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
| 361 | |
| 362 | * config.bfd: Treat AIX 6+ in the same way as AIX 5. |
| 363 | * configure.in: Likewise. |
| 364 | * configure: Regenerate. |
| 365 | |
| 366 | 2009-03-13 H.J. Lu <hongjiu.lu@intel.com> |
| 367 | |
| 368 | PR binutils/9945 |
| 369 | * elf.c (assign_section_numbers): Generate symbol table if there |
| 370 | is any relocation in output. |
| 371 | (_bfd_elf_compute_section_file_positions): Likewise. |
| 372 | |
| 373 | 2009-03-13 Nick Clifton <nickc@redhat.com> |
| 374 | |
| 375 | PR 9934 |
| 376 | * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section. |
| 377 | * elflink.c (elf_link_read_relocs_from_section): Use |
| 378 | NUM_SHDR_ENTRIES. Gracefully handle the case where there are |
| 379 | relocs but no symbol table. |
| 380 | * elf32-arm.c (elf32_arm_check_relocs): Likewise. |
| 381 | |
| 382 | 2009-03-12 H.J. Lu <hongjiu.lu@intel.com> |
| 383 | |
| 384 | PR ld/9938 |
| 385 | * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp |
| 386 | to check ___tls_get_addr. |
| 387 | |
| 388 | * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use |
| 389 | strncmp to check __tls_get_addr. |
| 390 | |
| 391 | 2009-03-12 Andrew Stubbs <ams@codesourcery.com> |
| 392 | |
| 393 | * dwarf2.c (read_section): Always check the offset, even when the |
| 394 | section has been read before. |
| 395 | |
| 396 | 2009-03-11 H.J. Lu <hongjiu.lu@intel.com> |
| 397 | |
| 398 | * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in |
| 399 | comments. |
| 400 | |
| 401 | 2009-03-11 Chris Demetriou <cgd@google.com> |
| 402 | |
| 403 | * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag. |
| 404 | * bfd-in2.h: Regenerate. |
| 405 | * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT |
| 406 | flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file |
| 407 | mode. |
| 408 | (bsd_write_armap): Likewise. |
| 409 | (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT |
| 410 | flag is set, do nothing. |
| 411 | (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0 |
| 412 | for timestamp. |
| 413 | |
| 414 | 2009-03-11 Ulrich Weigand <uweigand@de.ibm.com> |
| 415 | |
| 416 | * elf32-spu.c (find_function_stack_adjust): Handle sf instruction |
| 417 | used to update stack pointer. |
| 418 | |
| 419 | 2009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
| 420 | |
| 421 | PR binutils/9921 |
| 422 | * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE |
| 423 | for unknown symbols in absolute section. |
| 424 | |
| 425 | 2009-03-06 Nick Clifton <nickc@redhat.com> |
| 426 | |
| 427 | * po/es.po: Updated Spanish translation. |
| 428 | |
| 429 | 2009-03-05 Christophe Lyon <christophe.lyon@st.com> |
| 430 | |
| 431 | * elf32-arm.c (group_sections): Take next section size into |
| 432 | account before accepting to group it. |
| 433 | |
| 434 | 2009-03-05 Christophe Lyon <christophe.lyon@st.com> |
| 435 | |
| 436 | * elf32-arm.c (arm_type_of_stub): Handle long branches targetting |
| 437 | PLT entries. |
| 438 | (elf32_arm_final_link_relocate): Likewise. |
| 439 | |
| 440 | 2009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de> |
| 441 | |
| 442 | PR 9923 |
| 443 | * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type. |
| 444 | |
| 445 | 2009-03-04 Alan Modra <amodra@bigpond.net.au> |
| 446 | |
| 447 | * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New. |
| 448 | * section.c (struct bfd_section): Add has_tls_get_addr_call. |
| 449 | (BFD_FAKE_SECTION): Init new flag. |
| 450 | * ecoff.c (bfd_debug_section): Likewise. |
| 451 | * bfd-in2.h: Regenerate. |
| 452 | * libbfd.h: Regenerate. |
| 453 | * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD. |
| 454 | (ppc_elf_reloc_type_lookup): Handle new relocs. |
| 455 | (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such |
| 456 | without marker relocs. |
| 457 | (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs |
| 458 | if section has no old-style calls. |
| 459 | (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too. |
| 460 | Don't try to optimize new-style __tls_get_addr call when handling |
| 461 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD |
| 462 | relocs. |
| 463 | * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD. |
| 464 | (ppc64_elf_reloc_type_lookup): Handle new relocs. |
| 465 | (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such |
| 466 | without marker relocs. |
| 467 | (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs |
| 468 | if section has no old-style calls. Set toc_ref for new relocs as |
| 469 | appropriate. |
| 470 | (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too. |
| 471 | Don't try to optimize new-style __tls_get_addr call when handling |
| 472 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD |
| 473 | relocs. |
| 474 | |
| 475 | 2009-03-04 Alan Modra <amodra@bigpond.net.au> |
| 476 | |
| 477 | PR 6768 |
| 478 | * configure.in: Test for ld --as-needed support. Link shared |
| 479 | libbfd against libm. |
| 480 | * configure: Regenerate. |
| 481 | |
| 482 | 2009-03-03 Alan Modra <amodra@bigpond.net.au> |
| 483 | |
| 484 | * Makefile.am: Run "make dep-am". |
| 485 | * Makefile.in: Regenerate. |
| 486 | |
| 487 | 2009-03-02 Qinwei <qinwei@sunnorth.com.cn> |
| 488 | |
| 489 | * elf32-score7.c: New file. |
| 490 | * elf32-score.h: New file. |
| 491 | * elf32-score.c: Add code to support score 7. Set score7 as the |
| 492 | default. |
| 493 | * cpu-score.c: Add score7 architecure. |
| 494 | (compatibile): New function. |
| 495 | * Makefile.am: Add rules for building elf32-score7 object. |
| 496 | * Makefile.in: Regenerate. |
| 497 | * configure.in: Add elf32-score7 object to score vectors. |
| 498 | * configure: Regenerate. |
| 499 | * reloc.c: Add score7 relocs. |
| 500 | * archures.c: Add score3 and score7 machine numbers. |
| 501 | * bfd-in2.h: Regenerate. |
| 502 | * libbfd.h: Regenerate. |
| 503 | |
| 504 | 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
| 505 | |
| 506 | * configure: Regenerate. |
| 507 | |
| 508 | 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
| 509 | |
| 510 | * elf32-hppa.c (hppa32_elf_local_refcounts): New function. |
| 511 | (elf32_hppa_check_relocs): Use it. |
| 512 | |
| 513 | * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to |
| 514 | elf64-hppa.c. |
| 515 | (elf_hppa_unmark_useless_dynamic_symbols): Likewise. |
| 516 | (elf_hppa_remark_useless_dynamic_symbols): Likewise. |
| 517 | (elf_hppa_is_dynamic_loader_symbol): Likewise. |
| 518 | (elf_hppa_record_segment_addrs): Likewise. |
| 519 | (elf_hppa_final_link): Likewise. |
| 520 | (elf_hppa_relocate_insn): Likewise. |
| 521 | (elf_hppa_final_link_relocate): Likewise. |
| 522 | (elf64_hppa_relocate_section): Likewise. |
| 523 | * elf64-hppa.c: Insert above. |
| 524 | |
| 525 | 2009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
| 526 | |
| 527 | * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link. |
| 528 | (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table. |
| 529 | (elf_hppa_relocate_section): Likewise. |
| 530 | * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive |
| 531 | from struct elf_link_hash_entry. Add count field. |
| 532 | (struct elf64_hppa_dyn_hash_table): Delete. |
| 533 | (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field. |
| 534 | (elf64_hppa_hash_table): Rename to hppa_link_hash_table. |
| 535 | (hppa_elf_hash_entry, eh_name): Define. |
| 536 | (elf64_hppa_new_dyn_hash_entry): Delete. |
| 537 | (elf64_hppa_dyn_hash_lookup): Delete. |
| 538 | (elf64_hppa_dyn_hash_traverse): Delete. |
| 539 | (get_dyn_name): Delete. |
| 540 | (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead |
| 541 | of struct elf64_hppa_dyn_hash_entry *. |
| 542 | (elf64_hppa_finalize_dlt, llocate_global_data_dlt, |
| 543 | allocate_global_data_plt, allocate_global_data_stub, |
| 544 | allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries): |
| 545 | Likewise. |
| 546 | (hppa64_link_hash_newfunc): New. |
| 547 | (elf64_hppa_hash_table_create): Rework. |
| 548 | (count_dyn_reloc): Likewise. |
| 549 | (hppa64_elf_local_refcounts): New. |
| 550 | (elf64_hppa_check_relocs): Rework using standard technique for recording |
| 551 | local DLT, PLT and OPD reference counts. |
| 552 | (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct |
| 553 | elf_link_hash_entry *. |
| 554 | (elf64_hppa_mark_exported_functions, allocate_global_data_dlt, |
| 555 | allocate_global_data_plt, allocate_global_data_stub, |
| 556 | allocate_global_data_opd, allocate_dynrel_entries, |
| 557 | elf64_hppa_adjust_dynamic_symbol, |
| 558 | elf64_hppa_mark_milli_and_exported_functions): Likewise. |
| 559 | (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections): |
| 560 | Use hppa_link_hash_table. Rework. |
| 561 | (elf64_hppa_link_output_symbol_hook): Rework. |
| 562 | (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd, |
| 563 | elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc, |
| 564 | elf64_hppa_finish_dynamic_sections): Likewise. |
| 565 | |
| 566 | 2009-02-26 Christophe Lyon <christophe.lyon@st.com> |
| 567 | |
| 568 | * elf32-arm.c (stub_reloc_type): Removed. |
| 569 | (insn_sequence): Renamed reloc_type field to r_type. |
| 570 | (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub. |
| 571 | (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise. |
| 572 | (elf32_arm_stub_long_branch_thumb_only_pic): Likewise. |
| 573 | (elf32_arm_stub_type): Add new enum entries for the new stubs. |
| 574 | (arm_stub_is_thumb): Catch new stubs. |
| 575 | (arm_type_of_stub): Handle new stubs. |
| 576 | (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs. |
| 577 | (bfd_elf32_arm_process_before_allocation): Remove useless |
| 578 | condition. |
| 579 | |
| 580 | 2009-02-25 H.J. Lu <hongjiu.lu@intel.com> |
| 581 | |
| 582 | * elf.c (elf_find_function): Use is_function_type to check |
| 583 | function symbol. |
| 584 | |
| 585 | 2009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com> |
| 586 | |
| 587 | * xtensa-modules.c: Revert to previous version 1.11 due |
| 588 | to inadvertant commit. |
| 589 | |
| 590 | 2009-02-24 Sterling Augustine <sterling@tensilica.com> |
| 591 | |
| 592 | * elf32-xtensa.c (text_action_add): Separate test for action |
| 593 | type. Break if saved action is ta_widen_insn at same offset. |
| 594 | |
| 595 | 2009-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
| 596 | |
| 597 | * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename |
| 598 | to elf32_arm_stub_long_branch_any_arm_pic. |
| 599 | (elf32_arm_stub_long_branch_any_thumb_pic): New. |
| 600 | (enum elf32_arm_stub_type, arm_type_of_stub) |
| 601 | (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC |
| 602 | separately. |
| 603 | |
| 604 | 2009-02-24 Joseph Myers <joseph@codesourcery.com> |
| 605 | |
| 606 | * elf32-arm.c (PREV_SEC): Update comment. |
| 607 | (group_sections): Rename argument to stubs_always_after_branch. |
| 608 | Reverse the list and place stubs at the end of input sections. |
| 609 | Undefine NEXT_SEC. |
| 610 | (elf32_arm_size_stubs): Update to use stubs_always_after_branch. |
| 611 | |
| 612 | 2009-02-23 Daniel Jacobowitz <dan@codesourcery.com> |
| 613 | |
| 614 | * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset. |
| 615 | Fix formatting. |
| 616 | (arm_size_one_stub): Remove unnecessary break. |
| 617 | (arm_map_one_stub): Fix formatting. Return after BFD_FAIL. |
| 618 | |
| 619 | 2009-02-23 Christophe Lyon <christophe.lyon@st.com> |
| 620 | |
| 621 | * elf32-arm.c (stub_insn_type): New type. |
| 622 | (stub_reloc_type): Likewise. |
| 623 | (insn_sequence): Likewise. |
| 624 | (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence. |
| 625 | (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise. |
| 626 | (elf32_arm_stub_long_branch_thumb_only): Likewise. |
| 627 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. |
| 628 | (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise. |
| 629 | (elf32_arm_stub_long_branch_any_any_pic): Likewise. |
| 630 | (elf32_arm_stub_hash_entry): Add new helper fields. |
| 631 | (stub_hash_newfunc): Initialize these new fields. |
| 632 | (arm_build_one_stub): Encode Arm and Thumb instructions separately |
| 633 | to take endianness into account. |
| 634 | (arm_size_one_stub): Compute size of stubs using insn_sequence. |
| 635 | (arm_map_one_stub): Code is now more generic, thanks to |
| 636 | insn_sequence. |
| 637 | |
| 638 | 2009-02-23 Christophe Lyon <christophe.lyon@st.com> |
| 639 | |
| 640 | * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub |
| 641 | code. |
| 642 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. |
| 643 | (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when |
| 644 | BLX is not available. Fix typo in warning message. Add comments |
| 645 | and improve formatting. |
| 646 | (arm_build_one_stub): Adjust to new |
| 647 | elf32_arm_stub_long_branch_v4t_thumb_arm stub. |
| 648 | (arm_map_one_stub): Likewise. |
| 649 | |
| 650 | 2009-02-23 Tristan Gingold <gingold@adacore.com> |
| 651 | Eric Botcazou <ebotcazou@adacore.com> |
| 652 | Douglas B Rupp <rupp@gnat.com> |
| 653 | |
| 654 | * vms.h: Update copyright year, fix comments, reorder declarations. |
| 655 | (_bfd_save_vms_section): Remove the prototype. |
| 656 | (EGPS_S_V_NO_SHIFT): New constant. |
| 657 | (bfd_vms_set_section_flags): New prototype. |
| 658 | (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New |
| 659 | constants. |
| 660 | (EGSY_S_W_FLAGS): Ditto. |
| 661 | (EGSY_S_V_QUAD_VAL): Ditto. |
| 662 | (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto. |
| 663 | (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX, |
| 664 | EGST_S_B_NAMLNG): Ditto. |
| 665 | (ESRF_S_B_NAMLNG): Ditto. |
| 666 | (ETIR_S_C_HEADER_SIZE): Ditto. |
| 667 | (EGPS_S_V_ALLOC_64BIT): Ditto. |
| 668 | (DST_S_C_EPILOG): Ditto. |
| 669 | (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto. |
| 670 | (DST_S_C_SRC_INCRLNUM_B): Ditto. |
| 671 | (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto. |
| 672 | (DST_S_L_PCLINE_UNSLONG): Ditto. |
| 673 | (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto |
| 674 | (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto |
| 675 | (DST_S_C_SOURCE_HEADER_SIZE): Ditto. |
| 676 | (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto. |
| 677 | (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto. |
| 678 | (DST_S_B_SRC_UNSBYTE): Ditto. |
| 679 | (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto. |
| 680 | Add prototypes. |
| 681 | (vms_section, vms_reloc): Remove types. |
| 682 | (hdr_struc): Replaced by ... |
| 683 | (hdr_struct): ... new type. |
| 684 | (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants. |
| 685 | (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto. |
| 686 | (EMH_DATE_LENGTH): Ditto. |
| 687 | (eom_struc): Replaced by ... |
| 688 | (eom_struct): ... new type. |
| 689 | (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants. |
| 690 | (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto. |
| 691 | (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto. |
| 692 | (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto. |
| 693 | (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto. |
| 694 | (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto. |
| 695 | (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto. |
| 696 | (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto. |
| 697 | (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto. |
| 698 | (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto. |
| 699 | (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto. |
| 700 | (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto. |
| 701 | (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto. |
| 702 | (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto. |
| 703 | (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto. |
| 704 | (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto. |
| 705 | (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto. |
| 706 | (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH) |
| 707 | (DBG_S_C_DMT_PSECT_SIZE): Ditto. |
| 708 | (enum file_type_enum): New type. |
| 709 | (struct location_struct): Removed. |
| 710 | (struct fileinfo, struct srecinfo, struct lineinfo): New types. |
| 711 | (struct funcinfo, struct module): Ditto. |
| 712 | (struct vms_private_data_struct): Update fields. |
| 713 | (struct vms_section_data_struct): New type. |
| 714 | |
| 715 | * vms.c: Update copyright year, fix comments, |
| 716 | Fix includes for DECC, add prototypes. |
| 717 | (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove |
| 718 | some initializers. |
| 719 | Use flavour to set is_vax, location_stack is removed. |
| 720 | (struct pair): Declare. |
| 721 | (fill_section_ptr): Initialize variables at declaration. |
| 722 | Add guard to set SECTION_SYM flag, handlde und section. |
| 723 | (vms_fixup_sections): Use struct pair for fill_section_ptr argument. |
| 724 | (_bfd_vms_slurp_object_records): New function, replaces previous |
| 725 | vms_object_p. |
| 726 | (vms_slurp_module): New function. |
| 727 | (vms_slurp_image): Ditto. |
| 728 | (vms_object_p): Complete rewrite. |
| 729 | (vms_mkobject): Use is_vax field to slect architecture. |
| 730 | (free_reloc_stream): New function. |
| 731 | (vms_convert_to_var): Ditto. |
| 732 | (vms_convert_to_var_1): Ditto. |
| 733 | (vms_convert_to_var_unix_filename): Ditto. |
| 734 | (vms_close_and_cleanup): Call free_reloc_stream, convert file to |
| 735 | VAR format on VMS. |
| 736 | (vms_new_section_hook): Set alignment to 0, allocate private data. |
| 737 | (vms_get_section_contents): Load content. |
| 738 | (vms_get_symbol_info): Handle undefined section. |
| 739 | (vms_find_nearest_line): Handle. |
| 740 | (alloc_reloc_stream): New function. |
| 741 | (vms_slurp_reloc_table): Ditto. |
| 742 | (vms_get_reloc_upper_bound): Make it real. |
| 743 | (vms_canonicalize_reloc): Do the real work. |
| 744 | (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA, |
| 745 | ALPHA_R_BOH. |
| 746 | (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH. |
| 747 | (vms_set_arch_mach): Check arch. |
| 748 | (vms_set_section_contents): Copy the content after allocation. |
| 749 | (vms_alpha_vec): Update object flags. |
| 750 | |
| 751 | * vms-tir.c: Update copyright year, fix comments, |
| 752 | add prototypes for new functions. |
| 753 | (dst_define_location): New function. |
| 754 | (dst_restore_location): New function. |
| 755 | (dst_retrieve_location): New function. |
| 756 | (dst_check_allocation): New function. |
| 757 | (image_dump): Call dst_check_allocation. |
| 758 | (image_write_b): Ditto. |
| 759 | (image_write_w): Ditto. |
| 760 | (image_write_l): Ditto. |
| 761 | (image_write_q): Ditto. |
| 762 | (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW, |
| 763 | STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC, |
| 764 | CTL_STKDL. |
| 765 | Call error handler instead of abort if name is not known. |
| 766 | (etir_sta): Add quarter_relocs argument and set it. |
| 767 | Fix cast. |
| 768 | (etir_sto): Ditto. |
| 769 | (etir_opr): Ditto, return FALSE in case of error. |
| 770 | (etir_ctl): Add quarter_relocs argument and set it, fix cast. |
| 771 | Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL. |
| 772 | (etir_stc): Add quarter_relocs argument and set it, fix cast. |
| 773 | Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA. |
| 774 | Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL. |
| 775 | Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS. |
| 776 | Return FALSE in case of error. |
| 777 | (tir_sta): Change sign of psect. |
| 778 | (tir_ctl): Ditto. |
| 779 | (tir_cmd): Fix cast. Makes tir_table static const. |
| 780 | (etir_cmd): Add quarter_relocs argument, makes etir_table const, |
| 781 | add argument to explain. |
| 782 | (analyze_etir): Initialize maxptr, add quarter_relocs |
| 783 | declaration, move some declarations into inner scopes. |
| 784 | Handle quarter_relocs and STO_IMM. |
| 785 | (_bfd_vms_slurp_tir): Use constant instead of hard-coded values. |
| 786 | (_bfd_vms_slurp_relocs): New function. |
| 787 | (_bfd_vms_decode_relocs): New function. |
| 788 | (sto_imm): Rewritten. |
| 789 | (start_first_etbt_record): New function. |
| 790 | (start_another_etbt_record): Ditto. |
| 791 | (etir_output_check): Ditto. |
| 792 | (defer_reloc_p): Ditto. |
| 793 | (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to |
| 794 | a for-loop. Correctly deals with contents, deals with .vmsdebug, |
| 795 | rewritte relocations handling. |
| 796 | (_bfd_vms_write_tbt): Removed. |
| 797 | (_bfd_vms_write_dbg): Ditto. |
| 798 | |
| 799 | * vms-misc.c: Update copyright year, Fix comments. |
| 800 | (_bfd_vms_get_header_values): Use 'size' instead of 'length'. |
| 801 | (maybe_adjust_record_pointer_for_object): New function. |
| 802 | (_bfd_vms_get_first_record): New function, replaces ... |
| 803 | (_bfd_vms_get_record): .. removed. |
| 804 | (_bfd_vms_get_object_record): New function. |
| 805 | (_bfd_vms_get_object_record): New function. |
| 806 | (vms_get_remaining_object_record): New function, replaces ... |
| 807 | (_bfd_vms_get_next_record): ... removed. |
| 808 | (add_new_contents): Removed. |
| 809 | (_bfd_save_vms_section): Removed. |
| 810 | (_bfd_get_vms_section): Removed. |
| 811 | (_bfd_vms_output_flush): Write in VAR format. |
| 812 | (new_symbol): Don't make UND section. |
| 813 | |
| 814 | * vms-hdr.c: Update copyright year, update list of record handled. |
| 815 | (_bfd_vms_slurp_hdr): rec_length renamed to rec_size. |
| 816 | (_bfd_vms_write_hdr): Strip vms and unix patches, |
| 817 | add comments, truncate module name at 31 characters, |
| 818 | use constants instead of hard-coded value, |
| 819 | write BFD version instead of a fixed string. |
| 820 | (_bfd_vms_slurp_ihd): New function. |
| 821 | (_bfd_vms_slurp_isd): Ditto. |
| 822 | (_bfd_vms_slurp_ihs): Ditto. |
| 823 | (new_module): Ditto. |
| 824 | (parse_module): Ditto |
| 825 | (build_module_list): Ditto. |
| 826 | (module_find_nearest_line): Ditto. |
| 827 | (_bfd_vms_find_nearest_dst_line): Ditto. |
| 828 | (vms_slurp_debug): Ditto. |
| 829 | (_bfd_vms_slurp_dbg): Ditto. |
| 830 | (_bfd_vms_slurp_tbt): Ditto. |
| 831 | (_bfd_vms_write_dbg): Ditto. |
| 832 | (_bfd_vms_write_tbt): Ditto. |
| 833 | |
| 834 | * vms-gsd.c: Update copyright year, update list of records handled. |
| 835 | (EVAX_LITERALS_NAME): New macro. |
| 836 | (evax_section_flags): Add an entry for EVAX_LITERALS_NAME. |
| 837 | (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd. |
| 838 | (register_universal_symbol): New function and prototype. |
| 839 | (_bfd_vms_slurp_gsd): Fix indentations and casts, |
| 840 | improve debug messages, |
| 841 | use constants instead of hard-coded value, |
| 842 | fix missing endianness conversion, |
| 843 | handle global symbol (SYMG). |
| 844 | (bfd_vms_set_section_flags): New function. |
| 845 | (_bfd_vms_write_gsd): Don't write .vmsdebug section, |
| 846 | handle section literals, |
| 847 | fix indentation, |
| 848 | handle section bfd and vms flags, |
| 849 | don't output LIB$INITIALIZE symbol, |
| 850 | fix handling of weak symbols, |
| 851 | fix evax vs vax procedure descriptor, |
| 852 | handle absolute symbols. |
| 853 | |
| 854 | * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR, |
| 855 | BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations. |
| 856 | |
| 857 | * makefile.vms (DEFS): Fix flags for VMS. |
| 858 | |
| 859 | * bfdio.c (real_fopen): Handle multiple VMS fopen attributes. |
| 860 | |
| 861 | * bfd-in2.h: Regenerated. |
| 862 | * libbfd.h: Regenerated. |
| 863 | |
| 864 | 2009-02-20 Cary Coutant <ccoutant@google.com> |
| 865 | |
| 866 | * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime |
| 867 | in struct stat. |
| 868 | |
| 869 | 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com> |
| 870 | |
| 871 | PR gas/7059 |
| 872 | * coffcode.h (coff_write_object_contents): Don't let the string |
| 873 | table offset overflow the s_name field when using long section names. |
| 874 | |
| 875 | 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com> |
| 876 | |
| 877 | * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which |
| 878 | control long section name handling with ECOFF_NO_LONG_SECTION_NAMES. |
| 879 | * coff-mips.c (mips_ecoff_backend_data): Likewise. |
| 880 | * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which |
| 881 | control long section name handling with XCOFF_NO_LONG_SECTION_NAMES. |
| 882 | (bfd_pmac_xcoff_backend_data): Likewise. |
| 883 | * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise. |
| 884 | (bfd_xcoff_aix5_backend_data): Likewise. |
| 885 | (xcoff64_write_object_contents): Delete unused long_section_names |
| 886 | local variable. |
| 887 | * coff-sh.c (bfd_coff_small_swap_table): Initialise long section |
| 888 | name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire |
| 889 | struct non-const. |
| 890 | * coffcode.h (documentation): Update to describe long section names. |
| 891 | (COFFLONGSECTIONCATHELPER): New helper macro. |
| 892 | (BLANKOR1TOODD): Likewise. |
| 893 | (COFF_ENABLE_LONG_SECTION_NAMES): Likewise. |
| 894 | (COFF_LONG_SECTION_NAMES_SETTER): Likewise. |
| 895 | (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise. |
| 896 | (bfd_coff_set_long_section_names_allowed): New function. |
| 897 | (bfd_coff_set_long_section_names_disallowed): Likewise. |
| 898 | (struct bfd_coff_backend_data): Add new backend hook function |
| 899 | pointer _bfd_coff_set_long_section_names. |
| 900 | (bfd_coff_set_long_section_names): New backend hook. |
| 901 | (coff_write_object_contents): Only generate long section names if |
| 902 | bfd_coff_long_section_names() indicates they are currently enabled. |
| 903 | (bfd_coff_std_swap_table): Make non-const, and initialise long |
| 904 | section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. |
| 905 | (ticoff0_swap_table): Likewise to both. |
| 906 | (ticoff1_swap_table): Again, likewise to both. |
| 907 | * coffgen.c (make_a_section_from_file): Allow long section names |
| 908 | as inputs even if not currently allowed for outputs. |
| 909 | * ecoff.c (_bfd_ecoff_no_long_sections): New function. |
| 910 | * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank. |
| 911 | * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 912 | * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 913 | * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 914 | * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 915 | * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 916 | * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 917 | * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 918 | * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 919 | * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 920 | * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 921 | * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 922 | * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 923 | * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 924 | * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 925 | * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 926 | * libcoff-in.h: Update copyright year to cause updated copyright |
| 927 | year in generated libcoff.h, and fix typo. |
| 928 | * libcoff.h: Regenerated. |
| 929 | * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro. |
| 930 | (_bfd_ecoff_no_long_sections): Add prototype. |
| 931 | * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro. |
| 932 | * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already |
| 933 | defined by an including .c file. |
| 934 | * ticoff.h (ticoff0_swap_table): Make non-const, and initialise |
| 935 | long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. |
| 936 | (ticoff1_swap_table): Likewise to both. |
| 937 | |
| 938 | 2009-02-18 Christophe Lyon <christophe.lyon@st.com> |
| 939 | |
| 940 | * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic |
| 941 | stub. Catch default case error. |
| 942 | (arm_map_one_stub): Add missing Thumb mapping symbol. |
| 943 | |
| 944 | 2009-02-18 Bjoern Haase <bjoern.m.haase@web.de> |
| 945 | |
| 946 | PR 9841 |
| 947 | * elf32-avr.c: Handle case where no local symbos exist correctly. |
| 948 | |
| 949 | 2009-02-16 Christophe Lyon <christophe.lyon@st.com> |
| 950 | |
| 951 | bfd/ |
| 952 | * elf32-arm.c (arm_long_branch_stub, |
| 953 | arm_thumb_v4t_long_branch_stub, |
| 954 | arm_thumb_thumb_long_branch_stub, |
| 955 | arm_thumb_arm_v4t_long_branch_stub, |
| 956 | arm_thumb_arm_v4t_short_branch_stub, |
| 957 | arm_pic_long_branch_stub): |
| 958 | Renamed to elf32_arm_stub_long_branch_any_any, |
| 959 | elf32_arm_stub_long_branch_v4t_arm_thumb, |
| 960 | elf32_arm_stub_long_branch_thumb_only, |
| 961 | elf32_arm_stub_long_branch_v4t_thumb_arm, |
| 962 | elf32_arm_stub_short_branch_v4t_thumb_arm, |
| 963 | elf32_arm_stub_long_branch_any_any_pic. |
| 964 | (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch, |
| 965 | arm_thumb_thumb_stub_long_branch, |
| 966 | arm_thumb_arm_v4t_stub_long_branch, |
| 967 | arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch): |
| 968 | Renamed to arm_stub_long_branch_any_any, |
| 969 | arm_stub_long_branch_v4t_arm_thumb, |
| 970 | arm_stub_long_branch_thumb_only, |
| 971 | arm_stub_long_branch_v4t_thumb_arm, |
| 972 | arm_stub_short_branch_v4t_thumb_arm, |
| 973 | arm_stub_long_branch_any_any_pic. |
| 974 | |
| 975 | 2009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
| 976 | |
| 977 | * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used |
| 978 | in branch offset check. |
| 979 | |
| 980 | 2009-02-15 Alan Modra <amodra@bigpond.net.au> |
| 981 | |
| 982 | * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx, |
| 983 | add toc.symndx and toc.add. |
| 984 | (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here. |
| 985 | Set up toc.add. |
| 986 | (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all |
| 987 | callers. |
| 988 | (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd. |
| 989 | (branch_reloc_hash_match): New function, extracted from.. |
| 990 | (ppc64_elf_tls_optimize): ..here. |
| 991 | (ppc64_elf_relocate_section): Properly set addends when optimizing |
| 992 | tls sequences. Avoid unnecessary reading and writing of insns. |
| 993 | Only redo reloc when symbol changed. Bypass symbol checks when |
| 994 | using tlsld_got. |
| 995 | * elf32-ppc.c (ppc_elf_tls_setup): Correct comment. |
| 996 | (branch_reloc_hash_match): New function, extracted from.. |
| 997 | (ppc_elf_tls_optimize): ..here. |
| 998 | (ppc_elf_relocate_section): Avoid unnecessary reading of insns. |
| 999 | Don't clear addend on zapped __tls_get_addr reloc. |
| 1000 | |
| 1001 | 2009-02-12 Nick Clifton <nickc@redhat.com> |
| 1002 | |
| 1003 | PR 9827 |
| 1004 | * elflink.c (bfd_elf_final_link): When counting the relocations, |
| 1005 | if the header size has not been set yet then assume that it will |
| 1006 | match the output section's reloc type. |
| 1007 | |
| 1008 | 2009-02-12 Nathan Sidwell <nathan@codesourcery.com> |
| 1009 | |
| 1010 | * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for |
| 1011 | relocatable link. |
| 1012 | |
| 1013 | 2009-02-09 Alan Modra <amodra@bigpond.net.au> |
| 1014 | |
| 1015 | * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors. |
| 1016 | (find_function): Likewise. |
| 1017 | (pasted_function): Don't error if no prior function found. |
| 1018 | (discover_functions): Revert 2008-12-10 change. Extend first |
| 1019 | function range to start of section. |
| 1020 | |
| 1021 | 2009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
| 1022 | |
| 1023 | * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert |
| 1024 | functions to C90. |
| 1025 | * elf64-hppa.h: Likewise. |
| 1026 | |
| 1027 | 2009-02-06 Joseph Myers <joseph@codesourcery.com> |
| 1028 | |
| 1029 | * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special |
| 1030 | .sbss handling. |
| 1031 | |
| 1032 | 2009-02-04 Alan Modra <amodra@bigpond.net.au> |
| 1033 | |
| 1034 | * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize. |
| 1035 | Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*. |
| 1036 | |
| 1037 | 2009-02-03 Sandip Matte <sandip@rmicorp.com> |
| 1038 | |
| 1039 | * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr. |
| 1040 | * archures.c (bfd_mach_mips_xlr): Define. |
| 1041 | * bfd-in2.h: Regenerate. |
| 1042 | * cpu-mips.c (I_xlr): Define. |
| 1043 | (arch_info_struct): Add XLR entry. |
| 1044 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR. |
| 1045 | (mips_set_isa_flags): Handle bfd_mach_mips_xlr |
| 1046 | (mips_mach_extensions): Add XLR entry. |
| 1047 | |
| 1048 | 2009-02-03 Eric B. Weddington <eric.weddington@atmel.com> |
| 1049 | |
| 1050 | * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound. |
| 1051 | |
| 1052 | 2009-02-03 Carlos O'Donell <carlos@codesourcery.com> |
| 1053 | |
| 1054 | * configure.in: AC_SUBST pdfdir. |
| 1055 | * Makefile.am: Add install-pdf, install-pdf-am |
| 1056 | and install-pdf-recursive targets. Define pdfdir. |
| 1057 | * doc/Makefile.am: Define pdf__strip_dir. Add |
| 1058 | install-pdf and install-pdf-am targets. |
| 1059 | * po/Make-in: Add install-pdf target. |
| 1060 | * configure: Regenerate. |
| 1061 | * Makefile.in: Regenerate |
| 1062 | * doc/Makefile.in: Regenerate. |
| 1063 | |
| 1064 | 2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com> |
| 1065 | |
| 1066 | * bfd-in2.h: Regenerate. |
| 1067 | * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and |
| 1068 | fields from n_entries to n_slots where appropriate, update comments. |
| 1069 | (HOWTO): Add TLS relocations. |
| 1070 | (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*. |
| 1071 | (enum elf_m68k_got_offset_size): New enum. |
| 1072 | (struct elf_m68k_got_entry.type): Move field to ... |
| 1073 | (struct elf_m68k_got_entry_key): ... here. Update all uses. |
| 1074 | (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static |
| 1075 | functions. |
| 1076 | (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static |
| 1077 | functions. |
| 1078 | (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries |
| 1079 | fields into n_entries array. Update comments. |
| 1080 | (elf_m68k_init_got): Simplify, update all uses. |
| 1081 | (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update. |
| 1082 | (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot |
| 1083 | GOT entries; update name, update all uses. |
| 1084 | (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto. |
| 1085 | (elf_m68k_get_got_entry): Update. |
| 1086 | (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries, |
| 1087 | simplify. |
| 1088 | (elf_m68k_remove_got_entry_type): Simplify. |
| 1089 | (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update. |
| 1090 | (elf_m68k_can_merge_gots): Update. |
| 1091 | (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update. |
| 1092 | (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot |
| 1093 | GOT entries, simplify. |
| 1094 | (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same. |
| 1095 | (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff |
| 1096 | field, remove obsoleted local_n_entries field. |
| 1097 | (elf_m68k_partition_multi_got_2): New static function. |
| 1098 | (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it; |
| 1099 | update. |
| 1100 | (elf_m68k_remove_got_entry_type): Update. |
| 1101 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. |
| 1102 | (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary |
| 1103 | update of sgot->size and srelgot->size. |
| 1104 | (elf_m68k_gc_sweep_hook): Update. |
| 1105 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. |
| 1106 | (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle |
| 1107 | TLS relocations. |
| 1108 | * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations. |
| 1109 | * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*. |
| 1110 | |
| 1111 | 2009-02-02 DJ Delorie <dj@redhat.com> |
| 1112 | |
| 1113 | * elf32-mep.c (config_names): Regenerate configuration. |
| 1114 | |
| 1115 | 2009-02-02 Alan Modra <amodra@bigpond.net.au> |
| 1116 | |
| 1117 | * elf-bfd.h (bfd_elf_get_str_section): Don't declare. |
| 1118 | (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise. |
| 1119 | * elf.c (bfd_elf_get_str_section): Make static. |
| 1120 | (bfd_elf_find_section): Delete. |
| 1121 | * libbfd.h: Regenerate. |
| 1122 | |
| 1123 | 2009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 1124 | |
| 1125 | * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove. |
| 1126 | (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs. |
| 1127 | |
| 1128 | 2009-01-31 Alan Modra <amodra@bigpond.net.au> |
| 1129 | |
| 1130 | * elflink.c (on_needed_list): New function. |
| 1131 | (elf_link_add_object_symbols): Link in --as-needed libs if they |
| 1132 | satisfy undefined symbols in other libs. |
| 1133 | |
| 1134 | 2009-01-30 Julian Brown <julian@codesourcery.com> |
| 1135 | |
| 1136 | * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with |
| 1137 | EXEC_P or DYNAMIC flags, and skip sections which are being linked |
| 1138 | with --just-symbols (-R). |
| 1139 | |
| 1140 | 2009-01-29 Adam Nemet <anemet@caviumnetworks.com> |
| 1141 | |
| 1142 | * dwarf2.c (read_rangelist): Use read_address to read low_pc and |
| 1143 | high_pc in order to properly sign-extend VMAs. |
| 1144 | |
| 1145 | 2009-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
| 1146 | Mark Shinwell <shinwell@codesourcery.com> |
| 1147 | Catherine Moore <clm@codesourcery.com> |
| 1148 | |
| 1149 | * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments. |
| 1150 | |
| 1151 | 2009-01-28 Catherine Moore <clm@codesourcery.com> |
| 1152 | |
| 1153 | * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and |
| 1154 | SEC_LOAD for dynamic relocation sections. |
| 1155 | |
| 1156 | 2009-01-27 Hans-Peter Nilsson <hp@axis.com> |
| 1157 | |
| 1158 | * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table |
| 1159 | (info)->tls_size, not elf_hash_table (info)->tls_sec->size for |
| 1160 | the size of local TLS data. |
| 1161 | |
| 1162 | 2009-01-27 Andreas Schwab <schwab@suse.de> |
| 1163 | |
| 1164 | * mach-o.c (bfd_mach_o_archive_p): Restrict the number of |
| 1165 | architectures in the archive. |
| 1166 | |
| 1167 | 2009-01-27 Hans-Peter Nilsson <hp@axis.com> |
| 1168 | |
| 1169 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL> |
| 1170 | <R_CRIS_32_DTPREL>: Correct relocation value. |
| 1171 | |
| 1172 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8> |
| 1173 | <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined |
| 1174 | symbols with non-default visibility. |
| 1175 | |
| 1176 | 2009-01-26 Nathan Sidwell <nathan@codesourcery.com> |
| 1177 | |
| 1178 | * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs |
| 1179 | describing the trampolines. |
| 1180 | (ppc_elf_relocate_section): Update relocs to describe the |
| 1181 | trampolines. |
| 1182 | |
| 1183 | 2009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
| 1184 | |
| 1185 | * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that |
| 1186 | branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F |
| 1187 | and R_PARISC_PCREL12F relocations. |
| 1188 | |
| 1189 | 2009-01-24 Alan Modra <amodra@bigpond.net.au> |
| 1190 | |
| 1191 | PR 6022 |
| 1192 | * elflink.c (find_version_for_sym): New function split out from, |
| 1193 | but without export_dynamic test, .. |
| 1194 | (_bfd_elf_link_assign_sym_version): ..here. |
| 1195 | (_bfd_elf_export_symbol): Use it. |
| 1196 | |
| 1197 | 2009-01-23 Alan Modra <amodra@bigpond.net.au> |
| 1198 | |
| 1199 | * elf-bfd.h (struct elf_assign_sym_version_info): Delete. |
| 1200 | (struct elf_info_failed, struct elf_find_verdep_info): Move to.. |
| 1201 | * elflink.c: ..here, somewhat modified. |
| 1202 | * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol, |
| 1203 | _bfd_elf_link_find_version_dependencies, |
| 1204 | _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section, |
| 1205 | _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol, |
| 1206 | _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't |
| 1207 | declare.. |
| 1208 | * elflink.c: ..and make static here. |
| 1209 | (_bfd_elf_link_find_version_dependencies): Adjust for removal |
| 1210 | of output_bfd from struct elf_find_verdep_info. |
| 1211 | (_bfd_elf_link_assign_sym_version): Similarly adjust to use |
| 1212 | struct elf_info_failed. |
| 1213 | (bfd_elf_size_dynamic_sections): Adjust. |
| 1214 | |
| 1215 | 2009-01-22 Alan Modra <amodra@bigpond.net.au> |
| 1216 | |
| 1217 | PR 6832 |
| 1218 | * dwarf2.c (find_line): Don't update stash->sec_info_ptr until |
| 1219 | after comp_unit_find_line call. |
| 1220 | |
| 1221 | 2009-01-21 Nick Clifton <nickc@redhat.com> |
| 1222 | |
| 1223 | PR 9769 |
| 1224 | * vmsutil.c (vms_file_stats_name): Remove use of unsupported |
| 1225 | tm_gmtoff field in struct tm. |
| 1226 | |
| 1227 | 2009-01-21 Alan Modra <amodra@bigpond.net.au> |
| 1228 | |
| 1229 | * elf32-spu.h (struct spu_elf_params): Add non_ia_text. |
| 1230 | * elf32-spu.c (mark_overlay_section): Only include .text.ia.* |
| 1231 | sections in soft-icache lines unless non_ia_text. Don't add |
| 1232 | rodata if doing so would exceed line size. |
| 1233 | |
| 1234 | 2009-01-19 Hans-Peter Nilsson <hp@axis.com> |
| 1235 | |
| 1236 | * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol |
| 1237 | types than bfd_link_hash_indirect, before early return, call |
| 1238 | _bfd_elf_link_hash_copy_indirect. |
| 1239 | |
| 1240 | 2009-01-19 Andrew Stubbs <ams@codesourcery.com> |
| 1241 | |
| 1242 | * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering. |
| 1243 | * elf-bfd.h (elf_backend_data): Add obj_attrs_order. |
| 1244 | * elf32-arm.c (elf32_arm_obj_attrs_order): New function. |
| 1245 | (elf_backend_obj_attrs_order): New define. |
| 1246 | * elfxx-target.h (elf_backend_obj_attrs_order): New define. |
| 1247 | (elfNN_bed): Add elf_backend_obj_attrs_order. |
| 1248 | |
| 1249 | 2009-01-19 Andrew Stubbs <ams@codesourcery.com> |
| 1250 | |
| 1251 | * elf-attrs.c (is_default_attr): Substitute magic numbers with macros. |
| 1252 | (obj_attr_size): Likewise. |
| 1253 | (write_obj_attribute): Likewise. |
| 1254 | (_bfd_elf_copy_obj_attributes): Likewise. |
| 1255 | (_bfd_elf_parse_attributes): Likewise. |
| 1256 | * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define. |
| 1257 | (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines. |
| 1258 | (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines. |
| 1259 | (ATTR_TYPE_HAS_NO_DEFAULT): New define. |
| 1260 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers |
| 1261 | with macros. |
| 1262 | |
| 1263 | 2009-01-19 Andrew Stubbs <ams@codesourcery.com> |
| 1264 | |
| 1265 | * elf-attrs.c (is_default_attr): Support defaultless attributes. |
| 1266 | (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type. |
| 1267 | (bfd_elf_add_obj_attr_string): Likewise. |
| 1268 | (bfd_elf_add_obj_attr_int_string): Likewise. |
| 1269 | (_bfd_elf_parse_attributes): Allow for unknown flag bits in type. |
| 1270 | * elf-bfd.h (struct obj_attribute): Document new flag bit. |
| 1271 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that |
| 1272 | Tag_nodefaults has no default value. |
| 1273 | (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults |
| 1274 | comment to reflect the new state. |
| 1275 | |
| 1276 | 2009-01-19 Alan Modra <amodra@bigpond.net.au> |
| 1277 | |
| 1278 | PR 9695 |
| 1279 | * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC. |
| 1280 | (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC. |
| 1281 | (adjust_z_magix): Delete dead code handling QMAGIC. |
| 1282 | |
| 1283 | 2009-01-16 Kai Tietz <kai.tietz@onevision.com> |
| 1284 | |
| 1285 | * coffcode.h (styp_to_sec_flags): Correct interpretation of |
| 1286 | IMAGE_SCN_MEM_DISCARDABLE. |
| 1287 | |
| 1288 | 2009-01-16 Alan Modra <amodra@bigpond.net.au> |
| 1289 | |
| 1290 | * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute |
| 1291 | SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS. |
| 1292 | * configure.in (commonbfdlib): Delete. |
| 1293 | (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/ |
| 1294 | (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such |
| 1295 | is available, not just for linux. |
| 1296 | * po/SRC-POTFILES.in: Regenerate. |
| 1297 | * Makefile.in: Regenerate. |
| 1298 | * configure: Regenerate. |
| 1299 | |
| 1300 | 2009-01-15 Andrew Stubbs <ams@codesourcery.com> |
| 1301 | Julian Brown <julian@codesourcery.com> |
| 1302 | |
| 1303 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known |
| 1304 | ARM attributes in ABI 2.07. |
| 1305 | * elf32-arm.c (get_secondary_compatible_arch): New function. |
| 1306 | (set_secondary_compatible_arch): New function. |
| 1307 | (tag_cpu_arch_combine): New function. |
| 1308 | (elf32_arm_copy_one_eabi_other_attribute): Delete function. |
| 1309 | (elf32_arm_copy_eabi_other_attribute_list): Delete function. |
| 1310 | (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to |
| 1311 | make it fit with order_01243. |
| 1312 | Add support for Tag_also_compatible_with, |
| 1313 | Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use, |
| 1314 | Tag_MPextension_use, Tag_nodefaults and Tag_conformance. |
| 1315 | Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name, |
| 1316 | Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension, |
| 1317 | Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed, |
| 1318 | Tag_VFP_arch and Tag_ABI_FP_16bit_format. |
| 1319 | Rework the way unknown attributes are handled. |
| 1320 | Defer errors until all attributes have been processed. |
| 1321 | |
| 1322 | 2009-01-15 Andrew Stubbs <ams@codesourcery.com> |
| 1323 | |
| 1324 | * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to |
| 1325 | bfd_elf_add_obj_attr_int_string. |
| 1326 | Read Tag_compatibility from its new location in the attribute array, |
| 1327 | rather than the attribute list. |
| 1328 | (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat -> |
| 1329 | bfd_elf_add_obj_attr_int_string. |
| 1330 | (_bfd_elf_parse_attributes): Likewise. |
| 1331 | (_bfd_elf_merge_object_attributes): There's now only one |
| 1332 | Tag_compatibility, and it's in the array, not the list. |
| 1333 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include |
| 1334 | Tag_compatibility. |
| 1335 | (bfd_elf_add_obj_attr_compat): Rename to |
| 1336 | bfd_elf_add_obj_attr_int_string. |
| 1337 | (bfd_elf_add_proc_attr_compat): Rename to |
| 1338 | bfd_elf_add_proc_attr_int_string. |
| 1339 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle |
| 1340 | Tag_compatibility. |
| 1341 | |
| 1342 | 2009-01-15 Douglas B Rupp <rupp@gnat.com> |
| 1343 | |
| 1344 | * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo |
| 1345 | (BFD32_BACKENDS_CFILES): Add new file vmsutil.c |
| 1346 | (vmsutil.lo): Add dependency rule. |
| 1347 | * Makefile.in: Regenerate. |
| 1348 | * config.bfd (ia64*-*-*vms*): Add case. |
| 1349 | * configure.in (bfd_elf64_ia64_vms_vec): Add case. |
| 1350 | * configure: Regenerate. |
| 1351 | * vmsutil.c: New file. |
| 1352 | * vmsutil.h: New file. |
| 1353 | * elf-bfd.h (struct bfd_elf_special_section): Change type of |
| 1354 | attr to bfd_vma. |
| 1355 | * elfxx-ia64.c (elfNN_vms_post_process_headers, |
| 1356 | elfNN_vms_section_processing, elfNN_vms_final_write_processing, |
| 1357 | elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr, |
| 1358 | elfNN_vms_object_p): New functions |
| 1359 | * targets.c (bfd_elf64_ia64_vms_vec): New target. |
| 1360 | |
| 1361 | 2009-01-14 H.J. Lu <hongjiu.lu@intel.com> |
| 1362 | |
| 1363 | PR ld/9727 |
| 1364 | * elflink.c (elf_gc_sweep): Exclude the group section if the |
| 1365 | first member of the section group is excluded. |
| 1366 | |
| 1367 | 2009-01-14 Alan Modra <amodra@bigpond.net.au> |
| 1368 | |
| 1369 | PR 9735 |
| 1370 | * syms.c (_bfd_stab_section_find_nearest_line): Don't free |
| 1371 | saved filename, use bfd_alloc rather than bfd_malloc for it. |
| 1372 | |
| 1373 | 2009-01-13 Alan Modra <amodra@bigpond.net.au> |
| 1374 | |
| 1375 | * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute. |
| 1376 | |
| 1377 | 2009-01-13 Alan Modra <amodra@bigpond.net.au> |
| 1378 | |
| 1379 | * elf32-spu.c (remove_cycles): Always set call->max_depth. |
| 1380 | |
| 1381 | 2009-01-12 Alan Modra <amodra@bigpond.net.au> |
| 1382 | |
| 1383 | * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask. |
| 1384 | |
| 1385 | 2009-01-12 Alan Modra <amodra@bigpond.net.au> |
| 1386 | |
| 1387 | * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2, |
| 1388 | num_lines_log2. |
| 1389 | (struct got_entry): Add br_addr. |
| 1390 | (struct call_info): Add priority. |
| 1391 | (struct function_info): Add lr_store and sp_adjust. |
| 1392 | (spu_elf_setup): Init line_size_log2 and num_lines_log2. |
| 1393 | (spu_elf_find_overlays): For soft-icache, mark any section within cache |
| 1394 | area as an overlay, and check that no other overlays exist. Look up |
| 1395 | icache overlay manager entry sym. |
| 1396 | (BRA_STUBS, BRA, BRASL): Define. |
| 1397 | (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub. |
| 1398 | (needs_ovl_stub): Adjust for soft-icache. Return priority encoded |
| 1399 | in branch insn. |
| 1400 | (count_stub, build_stub): Support soft-icache. |
| 1401 | (build_spuear_stubs, process_stubs): Adjust build_stub call. |
| 1402 | (spu_elf_size_stubs): Size soft-icache stubs. |
| 1403 | (overlay_index): New function. |
| 1404 | (spu_elf_build_stubs): Make static. Support soft-icache. |
| 1405 | (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache. |
| 1406 | (find_function_stack_adjust): Save lr store and stack adjust insn |
| 1407 | offsets. |
| 1408 | (maybe_insert_function): Adjust find_function_stack_adjust call. |
| 1409 | (mark_functions_via_relocs): Retrieve priority. |
| 1410 | (remove_cycles): Only warn about pruned arcs when stack_analysis. |
| 1411 | (sort_calls): Sort by priority first. |
| 1412 | (mark_overlay_section): Ignore .ovl.init. |
| 1413 | (sum_stack): Only print when stack_analysis. |
| 1414 | (print_one_overlay_section): New function, extracted from.. |
| 1415 | (spu_elf_auto_overlay): ..here. Support soft-icache overlays. |
| 1416 | (spu_elf_stack_analysis): Only print when htab->stack_analysis. |
| 1417 | (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive |
| 1418 | analysis. Call spu_elf_build_stubs. |
| 1419 | (spu_elf_relocate_section): For soft-icache encode overlay index |
| 1420 | into addresses. |
| 1421 | (spu_elf_output_symbol_hook): Support soft-icache. |
| 1422 | (spu_elf_modify_program_headers: Likewise. |
| 1423 | |
| 1424 | * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename |
| 1425 | num_regions to num_lines. Add line_size and max_branch. |
| 1426 | (enum _ovly_flavour): Add ovly_soft_icache. |
| 1427 | (spu_elf_build_stubs): Delete. |
| 1428 | |
| 1429 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 1430 | |
| 1431 | * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4 |
| 1432 | relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'. |
| 1433 | |
| 1434 | 2009-01-07 Hans-Peter Nilsson <hp@axis.com> |
| 1435 | |
| 1436 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> |
| 1437 | <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in |
| 1438 | the program, the known offset starts at the negative size of the |
| 1439 | TLS section. |
| 1440 | <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: |
| 1441 | Similar. |
| 1442 | |
| 1443 | 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com> |
| 1444 | |
| 1445 | * config.bfd: Add lm32-*-rtems*. |
| 1446 | |
| 1447 | 2009-01-03 H.J. Lu <hongjiu.lu@intel.com> |
| 1448 | |
| 1449 | * coff-ppc.c: Add 2009 to Copyright. |
| 1450 | * elf32-cris.c: Likewise. |
| 1451 | * elflink.c: Likewise. |
| 1452 | |
| 1453 | 2009-01-03 Hans-Peter Nilsson <hp@axis.com> |
| 1454 | |
| 1455 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename |
| 1456 | gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry. |
| 1457 | |
| 1458 | 2009-01-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1459 | |
| 1460 | PR ld/9679 |
| 1461 | * elflink.c (elf_merge_st_other): New. |
| 1462 | (_bfd_elf_merge_symbol): Use it on skipped weak definitions and |
| 1463 | hide them if needed. |
| 1464 | (elf_link_add_object_symbols): Updated. |
| 1465 | |
| 1466 | 2009-01-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1467 | |
| 1468 | PR ld/9676 |
| 1469 | * elflink.c (elf_link_add_object_symbols): Update def_dynamic, |
| 1470 | ref_dynamic and dynamic_def fields when setting def_regular |
| 1471 | to 1. |
| 1472 | |
| 1473 | 2009-01-02 Curtis Mackie <curtmackevo@gmail.com> |
| 1474 | |
| 1475 | PR 9682 |
| 1476 | * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string |
| 1477 | literal. |
| 1478 | |
| 1479 | For older changes see ChangeLog-2008 |
| 1480 | \f |
| 1481 | Local Variables: |
| 1482 | mode: change-log |
| 1483 | left-margin: 8 |
| 1484 | fill-column: 74 |
| 1485 | version-control: never |
| 1486 | End: |