1 1.1 christos 2005-12-31 Valeriy E. Ushakov <uwe (a] NetBSD.org> 2 1.1 christos Kaz Kojima <kkojima (a] rr.iij4u.or.jp> 3 1.1 christos 4 1.1 christos * elf32-sh.c (sh_elf_relocate_section): Don't reset relocation 5 1.1 christos for R_SH_REL32 in shared objects if the symbol is locally called. 6 1.1 christos 7 1.1 christos 2005-12-31 Alan Modra <amodra (a] bigpond.net.au> 8 1.1 christos 9 1.1 christos * elf64-ppc.c (ppc64_elf_relocate_section): Adjust relocs against 10 1.1 christos opd section sym when opd has been edited. Use correct addend 11 1.1 christos when determining branch 'y' bit and branch overflow. Adjust and 12 1.1 christos save opd relocs for ld -r too. 13 1.1 christos 14 1.1 christos 2005-12-30 Eric Christopher <echristo (a] apple.com> 15 1.1 christos 16 1.1 christos * elfxx-mips.c (mips_elf_record_global_got_symbol): Add assert 17 1.1 christos to verify we have a got. 18 1.1 christos (_bfd_mips_elf_check_relocs): Add R_MIPS_TLS_GOTTPREL to relocs 19 1.1 christos needing a GOT. 20 1.1 christos 21 1.1 christos 2005-12-30 John David Anglin <dave.anglin (a] nrc-cnrc.gc.ca> 22 1.1 christos 23 1.1 christos * configure.host (hppa*64*-*-hpux*): Set host64 to true. 24 1.1 christos 25 1.1 christos 2005-12-29 Nick Clifton <nickc (a] redhat.com> 26 1.1 christos 27 1.1 christos * hash.c (bfd_hash_set_default_size): Add more entries to the 28 1.1 christos hash_size_primes table. 29 1.1 christos 30 1.1 christos * stabs.c (_bfd_link_section_stabs): Use bfd_hash_table_init 31 1.1 christos rather than bfd_hash_table_init_n(...,251) so that the size of the 32 1.1 christos hash table can be controlled by the user. 33 1.1 christos 34 1.1 christos 2005-12-27 John David Anglin <dave.anglin (a] nrc-cnrc.gc.ca> 35 1.1 christos 36 1.1 christos * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Use info->executable 37 1.1 christos instead of !info->shared. 38 1.1 christos 39 1.1 christos 2005-12-27 Jan-Benedict Glaw <jbglaw (a] lug-owl.de> 40 1.1 christos 41 1.1 christos * vaxlinux.h: New file. (TRAD_CORE_EXTRA_SIZE_ALLOWED): Define. 42 1.1 christos (HOST_MACHINE_ARCH): Define. This allows cross-building vax-linux 43 1.1 christos hosted binutils. 44 1.1 christos 45 1.1 christos 2005-12-27 Nathan Sidwell <nathan (a] codesourcery.com> 46 1.1 christos 47 1.1 christos * elf32-mt.c (mt_elf_merge_private_bfd_data): Do not allow mixing 48 1.1 christos object files from different mt variants. 49 1.1 christos 50 1.1 christos 2005-12-27 Leif Ekblad <leif (a] rdos.net> 51 1.1 christos 52 1.1 christos * config.bfd: Add support for RDOS targets. 53 1.1 christos 54 1.1 christos 2005-12-27 Marty Leisner <leisner (a] rochester.rr.com> 55 1.1 christos 56 1.1 christos * dwarf2.c (lookup_symbol_in_function_table): Check for a function 57 1.1 christos name before passing it to strcmp. 58 1.1 christos 59 1.1 christos 2005-12-27 Alan Modra <amodra (a] bigpond.net.au> 60 1.1 christos 61 1.1 christos * elf.c (elf_find_function): Don't ignore section syms. 62 1.1 christos Simplify filename logic. 63 1.1 christos 64 1.1 christos 2005-12-27 Alan Modra <amodra (a] bigpond.net.au> 65 1.1 christos 66 1.1 christos * elf32-ppc.c (add_stub_sym): Pass info rather than htab. 67 1.1 christos Use different names for pic vs non-pic, '.' instead of '_'. 68 1.1 christos (allocate_dynrelocs): Adjust add_stub_sym call. 69 1.1 christos 70 1.1 christos 2005-12-27 Alan Modra <amodra (a] bigpond.net.au> 71 1.1 christos 72 1.1 christos * elf.c (bfd_section_from_shdr): Treat invalid reloc sections as 73 1.1 christos normal sections rather than returning false. 74 1.1 christos 75 1.1 christos 2005-12-27 Alan Modra <amodra (a] bigpond.net.au> 76 1.1 christos 77 1.1 christos * coff-h8300.c (h8300_reloc16_extra_cases): Use input section 78 1.1 christos "output_offset" instead of link order "offset". 79 1.1 christos * coff-h8500.c (extra_case): Likewise. 80 1.1 christos * coff-w65.c (w65_reloc16_extra_cases): Likewise. 81 1.1 christos * coff-z80.c (extra_case): Likewise. 82 1.1 christos * coff-z8k.c (extra_case): Likewise. 83 1.1 christos * linker.c (default_indirect_link_order): Likewise, "size" too. 84 1.1 christos * ecoff.c (ecoff_indirect_link_order): Likewise. 85 1.1 christos 86 1.1 christos 2005-12-27 Alan Modra <amodra (a] bigpond.net.au> 87 1.1 christos 88 1.1 christos * Makefile.am: Run "make dep-am". 89 1.1 christos * Makefile.in: Regenerate. 90 1.1 christos * po/SRC-POTFILES.in: Regenerate. 91 1.1 christos 92 1.1 christos 2005-12-24 Alan Modra <amodra (a] bigpond.net.au> 93 1.1 christos 94 1.1 christos * aix5ppc-core.c: Remove duplicate prototypes. 95 1.1 christos (xcoff64_core_file_matches_executable_p): Provide implementation 96 1.1 christos for !AIX_5_CORE. 97 1.1 christos * corefile.c (generic_core_file_matches_executable_p): Correct 98 1.1 christos syntax error in prototype. 99 1.1 christos * libbfd-in.h (generic_core_file_matches_executable_p): Delete. 100 1.1 christos * libbfd.h: Regenerate. 101 1.1 christos * bfd-in2.h: Regenerate. 102 1.1 christos 103 1.1 christos 2005-12-23 Michael Weiser <michael (a] weiser.dinsnail.net> 104 1.1 christos 105 1.1 christos PR 1150 106 1.1 christos * elf-bfd.h (struct elf_backend_data): New field 107 1.1 christos 'elf_backend_ignore_undef_symbol'. 108 1.1 christos * elfxx-target.h (elf_backend_ignore_undef_symbol): Define to NULL 109 1.1 christos if not already defined. 110 1.1 christos (elfNN_bed): Initialise the elf_backend_ignore_undef_symbol field. 111 1.1 christos * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): New function. 112 1.1 christos * elfxx-mips.h (elf_backend_ignore_undef_symbol): Define and 113 1.1 christos prototype. 114 1.1 christos * elflink.c (elf_link_output_extsym): Check 115 1.1 christos elf_backend_ignore_undef_symbol before reporting an undefined 116 1.1 christos symbol in a shared library. 117 1.1 christos 118 1.1 christos 2005-12-23 Joel Brobecker <brobecker (a] adacore.com> 119 1.1 christos 120 1.1 christos * corefile.c (generic_core_file_matches_executable_p): New function. 121 1.1 christos * libbfd-in.h (generic_core_file_matches_executable_p): Add 122 1.1 christos declaration. 123 1.1 christos * libbfd.h: Regenerate. 124 1.1 christos * hpux-core.c: ANSIfy function declarations and prototypes. 125 1.1 christos (thread_section_p): Manually expand bfd_section_name macro 126 1.1 christos to make it clear that parameter ABFD is not used. 127 1.1 christos (hpux_core_core_file_matches_executable_p): Delete, replaced 128 1.1 christos by macro pointing to generic_core_file_matches_executable_p. 129 1.1 christos 130 1.1 christos * aix386-core.c: Replace core_file_matches_executable_p null 131 1.1 christos implementation by generic_core_file_matches_executable_p by 132 1.1 christos using a macro. 133 1.1 christos * aix5ppc-core.c: Likewise. 134 1.1 christos * cisco-core.c: Likewise. 135 1.1 christos * hppabsd-core.c: Likewise. 136 1.1 christos * irix-core.c: Likewise. 137 1.1 christos * lynx-core.c: Likewise. 138 1.1 christos * mach-o.c: Likewise. 139 1.1 christos * netbsd-core.c: Likewise. 140 1.1 christos * osf-core.c: Likewise. 141 1.1 christos * ptrace-core.c: Likewise. 142 1.1 christos * sco5-core.c: Likewise. 143 1.1 christos * trad-core.c: Likewise. 144 1.1 christos 145 1.1 christos 2005-12-19 David Heine <dlheine (a] tensilica.com> 146 1.1 christos 147 1.1 christos * elf32-xtensa.c (action_list_count, xlate_map_entry, xlate_map, 148 1.1 christos xlate_offset_with_removed_text, build_xlate_map, free_xlate_map): New. 149 1.1 christos (check_section_ebb_pcrels_fit): Build new xlate_map, use it and free it 150 1.1 christos when finished. 151 1.1 christos 152 1.1 christos 2005-12-16 Nathan Sidwell <nathan (a] codesourcery.com> 153 1.1 christos 154 1.1 christos Second part of ms1 to mt renaming. 155 1.1 christos * archures.c (bfd_arch_mt): Renamed. 156 1.1 christos (bfd_mt_arch): Renamed. 157 1.1 christos (bfd_archures_list): Adjusted. 158 1.1 christos * bfd-in2.h: Rebuilt. 159 1.1 christos * config.bfd (mt): Remove special case targ_archs. 160 1.1 christos (mt-*-elf): Rename bfd_elf32_mt_vec. 161 1.1 christos * configure: Rebuilt. 162 1.1 christos * configure.in (bfd_elf32_mt_vec): Renamed. 163 1.1 christos (selarchs) Remove mt special case. 164 1.1 christos * cpu-mt.c (arch_info_struct): Adjust. 165 1.1 christos (bfd_mt_arch): Renamed, adjust. 166 1.1 christos * elf32-mt.c (mt_reloc_type_lookup, mt_info_to_howto_rela, 167 1.1 christos mt_elf_relocate_hi16, mt_final_link_relocate, mt_relocate_section, 168 1.1 christos mt_elf_howto_table): Renamed, adjusted. 169 1.1 christos (mt_elf_gc_mark_hook, mt_elf_gc_sweep_hook, mt_elf_check_relocs, 170 1.1 christos elf32_mt_machine, mt_elf_object_p, mt_elf_set_private_flags, 171 1.1 christos mt_elf_copy_private_bfd_data, mt_elf_merge_private_bfd_data, 172 1.1 christos mt_elf_print_private_bfd_data): Renamed, adjusted. 173 1.1 christos (TARGET_BIG_SYM, TARGET_BIG_NAME, ELF_ARCH, ELF_MACHINE_CODE, 174 1.1 christos ELF_MAXPAGESIZE, elf_info_to_howto, elf_backend_relocate_section, 175 1.1 christos bfd_elf32_bfd_reloc_type_lookup, elf_backend_gc_mark_hook, 176 1.1 christos elf_backend_gc_sweep_hook, elf_backend_check_relocs, 177 1.1 christos eld_backend_object_p, bfd_elf32_bfd_set_private_flags, 178 1.1 christos bfd_elf32_bfd_copy_private_bfd_data, 179 1.1 christos bfd_elf32_bfd_merge_private_bfd_data, 180 1.1 christos bfd_elf32_bfd_print_private_bfd_data): Adjusted. 181 1.1 christos * libbfd.h: Regenerated. 182 1.1 christos * reloc.c (BFD_RELOC_MT_PC16, BFD_RELOC_MT_HI16, 183 1.1 christos BFD_RELOC_MT_LO16, BFD_RELOC_MT_GNU_VTINHERIT, 184 1.1 christos BFD_RELOC_MT_GNU_VTENTRY, BFD_RELOC_MT_PCINSN8): Renamed. 185 1.1 christos * targets.c (bfd_elf32_mt_vec): Renamed. 186 1.1 christos (_bfd_target_vector): Adjusted. 187 1.1 christos 188 1.1 christos 2005-12-13 H.J. Lu <hongjiu.lu (a] intel.com> 189 1.1 christos 190 1.1 christos PR ld/2008 191 1.1 christos * elf.c (_bfd_elf_setup_sections): Return FALSE if 192 1.1 christos elf_linked_to_section will be set to NULL. 193 1.1 christos 194 1.1 christos * format.c (bfd_check_format_matches): Don't check the default 195 1.1 christos target twice. 196 1.1 christos 197 1.1 christos 2005-12-13 Alan Modra <amodra (a] bigpond.net.au> 198 1.1 christos 199 1.1 christos * elf64-ppc.c (ppc64_elf_relocate_section): Force tail calls in 200 1.1 christos shared libs to resolve locally. 201 1.1 christos 202 1.1 christos 2005-12-12 Paul Brook <paul (a] codesourcery.com> 203 1.1 christos 204 1.1 christos * bfd-in2.h: Regenerate. 205 1.1 christos * elf32-arm.c (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PCREL_CALL and 206 1.1 christos BFD_RELOC_ARM_PCREL_JUMP. 207 1.1 christos (check_use_blx): New function. 208 1.1 christos (bfd_elf32_arm_process_before_allocation): Don't allocate glue if 209 1.1 christos using BLX. 210 1.1 christos (elf32_arm_final_link_relocate): Perform bl<->blx conversion for 211 1.1 christos R_ARM_CALL and R_ARM_THM. 212 1.1 christos (elf32_arm_get_eabi_attr_int): New function. 213 1.1 christos (elf32_arm_size_dynamic_sections): Call check_use_blx. 214 1.1 christos * libbfd.h: Regenerate. 215 1.1 christos * reloc.c: Add BFD_RELOC_ARM_PCREL_CALL and BFD_RELOC_ARM_PCREL_JUMP. 216 1.1 christos 217 1.1 christos 2005-12-12 Nathan Sidwell <nathan (a] codesourcery.com> 218 1.1 christos 219 1.1 christos * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, 220 1.1 christos BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace ms1 with mt. 221 1.1 christos (cpu_mt.lo, elf32-mt.lo): Update target and dependency names. 222 1.1 christos * Makefile.in: Rebuilt. 223 1.1 christos * config.bfd: Replace ms1 arch with mt. 224 1.1 christos * configure.in: Replace ms1 files with mt files. 225 1.1 christos * configure: Rebuilt. 226 1.1 christos * elf32-mt.c: Renamed from elf32-ms1.c. Update include files. 227 1.1 christos * cpu-mt.c: Renamed from cpu-ms1.c. 228 1.1 christos 229 1.1 christos 2005-12-12 Alan Modra <amodra (a] bigpond.net.au> 230 1.1 christos 231 1.1 christos * elf64-ppc.c (ppc64_elf_size_stubs): Don't consider non-ppc64 input. 232 1.1 christos 233 1.1 christos 2005-12-10 Alan Modra <amodra (a] bigpond.net.au> 234 1.1 christos 235 1.1 christos * elflink.c (elf_gc_mark_dynamic_ref_symbol): Use !info-executable 236 1.1 christos to test for linking shared libs, not info->shared. 237 1.1 christos 238 1.1 christos 2005-12-08 Alan Modra <amodra (a] bigpond.net.au> 239 1.1 christos 240 1.1 christos * elf32-ppc.c (struct ppc_elf_link_hash_table): Add emit_stub_syms. 241 1.1 christos (ppc_elf_select_plt_layout): Add emit_stub_syms param, save to htab. 242 1.1 christos (add_stub_sym): New function. 243 1.1 christos (allocate_dynrelocs): Call add_stub_sym. 244 1.1 christos (ppc_elf_size_dynamic_sections): Emit __glink and __glink_PLTresolve 245 1.1 christos when emit_stub_syms. 246 1.1 christos * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype. 247 1.1 christos 248 1.1 christos 2005-12-08 Alan Modra <amodra (a] bigpond.net.au> 249 1.1 christos 250 1.1 christos * reloc.c (enum complain_overflow): Correct comments. 251 1.1 christos (bfd_check_overflow): Combine complain_overflow_bitfield and 252 1.1 christos complain_overflow_signed code. 253 1.1 christos (_bfd_relocate_contents): Likewise. 254 1.1 christos (bfd_howto_32): Use complain_overflow_dont. 255 1.1 christos * elf32-d10v.c (elf_d10v_howto_table): Revert 2002-06-17 change. 256 1.1 christos * bfd-in2.h: Regenerate. 257 1.1 christos 258 1.1 christos 2005-12-07 H.J. Lu <hongjiu.lu (a] intel.com> 259 1.1 christos 260 1.1 christos * elf.c (assign_section_numbers): Remove extra code in the last 261 1.1 christos change. 262 1.1 christos 263 1.1 christos 2005-12-07 H.J. Lu <hongjiu.lu (a] intel.com> 264 1.1 christos Andreas Schwab <schwab (a] suse.de> 265 1.1 christos 266 1.1 christos PR binutils/1991 267 1.1 christos * elf.c (assign_section_numbers): Always use the output section 268 1.1 christos when setting up sh_link for SHF_LINK_ORDER. 269 1.1 christos 270 1.1 christos 2005-12-07 Thiemo Seufer <ths (a] networkno.de> 271 1.1 christos H.J. Lu <hongjiu.lu (a] intel.com> 272 1.1 christos 273 1.1 christos PR ld/1932 274 1.1 christos * bfd-in.h (bfd_elf_record_link_assignment): Add output_bfd 275 1.1 christos and hidden arguments. 276 1.1 christos 277 1.1 christos * bfd.c (bfd_hide_symbol): Removed. 278 1.1 christos 279 1.1 christos * bfd-in2.h: Regenerated. 280 1.1 christos 281 1.1 christos * elflink.c (bfd_elf_record_link_assignment): Handle hidden 282 1.1 christos symbols which were provided by a linker script. 283 1.1 christos 284 1.1 christos 2005-12-06 Paul Gilliam <pgilliam (a] us.ibm.com> 285 1.1 christos 286 1.1 christos * cpu-powerpc.c (bfd_powerpc_archs): Add ppc 750. 287 1.1 christos 288 1.1 christos 2005-11-18 Mark Kettenis <kettenis (a] gnu.org> 289 1.1 christos 290 1.1 christos * elf64-hppa.c (elf64_hppa_section_from_phdr): Create .kernel 291 1.1 christos pseudo-section. Make sure .reg section comes after the proc 292 1.1 christos section it's generated from. 293 1.1 christos 294 1.1 christos 2005-12-01 Kazuhiro Inaoka <inaoka.kazuhiro (a] renesas.com> 295 1.1 christos 296 1.1 christos * elf32-m32r.c (m32r_elf_sweep_hook): Fix an illegal duplicate check. 297 1.1 christos (m32r_elf_relocate_section): Fix R_M32R_10_PCREL_RELA linkage bug. 298 1.1 christos (m32r_elf_gc_sweep_hook): Likewise. 299 1.1 christos (m32r_elf_check_relocs): Likewise. 300 1.1 christos 301 1.1 christos 2005-11-24 Alan Modra <amodra (a] bigpond.net.au> 302 1.1 christos 303 1.1 christos * elf-bfd.h (_bfd_generic_match_sections_by_type): Don't define. 304 1.1 christos * libbfd-in.h (_bfd_generic_match_sections_by_type): Delete. 305 1.1 christos * libbfd.c (_bfd_generic_match_sections_by_type): Delete. 306 1.1 christos * targets.c (bfd_match_sections_by_type): Don't define. 307 1.1 christos (BFD_JUMP_TABLE_LINK): Remove _bfd_generic_match_sections_by_type. 308 1.1 christos * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise. 309 1.1 christos * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise. 310 1.1 christos * bfd-in2.h: Regenerate. 311 1.1 christos * libbfd.h: Regenerate. 312 1.1 christos 313 1.1 christos 2005-11-23 Daniel Jacobowitz <dan (a] codesourcery.com> 314 1.1 christos Thiemo Seufer <ths (a] networkno.de> 315 1.1 christos 316 1.1 christos * elf32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for 317 1.1 christos R_MIPS_PC16. 318 1.1 christos (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16. 319 1.1 christos (bfd_elf32_bfd_reloc_type_lookup): Don't handle 320 1.1 christos BFD_RELOC_16_PCREL_S2. 321 1.1 christos * elf64-mips.c (mips_elf64_howto_table_rel): Use rightshift 2 for 322 1.1 christos R_MIPS_PC16. 323 1.1 christos (mips_elf64_howto_table_rela): Likewise. 324 1.1 christos (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16. 325 1.1 christos (bfd_elf64_bfd_reloc_type_lookup): Don't handle 326 1.1 christos BFD_RELOC_16_PCREL_S2. 327 1.1 christos * elfn32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for 328 1.1 christos R_MIPS_PC16. 329 1.1 christos (elf_mips_howto_table_rela): Likewise. 330 1.1 christos (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16. 331 1.1 christos (bfd_elf32_bfd_reloc_type_lookup): Don't handle 332 1.1 christos BFD_RELOC_16_PCREL_S2. 333 1.1 christos * elfxx-mips.c: Formatting fixes. 334 1.1 christos (mips_elf_calculate_relocation): Handle R_MIPS_GNU_REL16_S2 335 1.1 christos and R_MIPS_PC16 identically. 336 1.1 christos 337 1.1 christos 2005-11-23 Frederic Riss <frederic.riss (a] st.com> 338 1.1 christos 339 1.1 christos * elfcode.h (elf_object_p): Delay the setting of start_address 340 1.1 christos until we're sure the backend matches the binary. 341 1.1 christos 342 1.1 christos 2005-11-20 John David Anglin <dave.anglin (a] nrc-cnrc.gc.ca> 343 1.1 christos 344 1.1 christos * som.c (som_decode_symclass): Decode BSF_WEAK symbols in the same 345 1.1 christos manner as bfd_decode_symclass. 346 1.1 christos 347 1.1 christos 2005-11-18 Alan Modra <amodra (a] bigpond.net.au> 348 1.1 christos 349 1.1 christos * elf64-ppc.c (ppc64_elf_check_relocs): Don't set has_14bit_branch 350 1.1 christos on branches to same section. 351 1.1 christos 352 1.1 christos 2005-11-17 Randolph Chung <tausq (a] debian.org> 353 1.1 christos 354 1.1 christos * elf64-hppa.c (elf64_hppa_object_p): Recognize corefiles under 355 1.1 christos hppa64-hp-hpux11.11. 356 1.1 christos (elf64_hppa_section_from_phdr): New function. 357 1.1 christos (elf_backend_section_from_phdr): Define. 358 1.1 christos 359 1.1 christos 2005-11-11 Nick Clifton <nickc (a] redhat.com> 360 1.1 christos 361 1.1 christos PR 1150 362 1.1 christos * elfxx-mips.c (mips_elf_calculate_relocation): Ignore an 363 1.1 christos undefined symbol if it is optional. 364 1.1 christos (_bfd_mips_elf_merge_symbol_attribute): Make sure that the 365 1.1 christos optional flag is merged as well as the visibility. 366 1.1 christos * elfxx-mips.h (_bfd_mips_elf_merge_symbol_attribute): Prototype. 367 1.1 christos (elf_backend_merge_symbol_attribute): Define. 368 1.1 christos 369 1.1 christos 2005-11-08 Nathan Sidwell <nathan (a] codesourcery.com> 370 1.1 christos 371 1.1 christos Add ms2 support 372 1.1 christos * archures.c (bfd_mach_ms2): Define. 373 1.1 christos * cpu-ms1.c (arch_info_struct): Add ms2 stanza. 374 1.1 christos * elf32-ms1.c (elf32_ms1_machine): Add ms2 case. 375 1.1 christos (ms1_elf_merge_private_bfd_data): Remove unused variables. Add 376 1.1 christos correct merging logic, with workaround. 377 1.1 christos (ms1_elf_print_private_bfd_data): Add ms2 case. 378 1.1 christos * reloc.c (BFD_RELOC_MS1_PCINSN8): Add ms2 specific reloc. 379 1.1 christos * libbfd.h: Regenerated. 380 1.1 christos * bfd-in2.h: Regenerated. 381 1.1 christos 382 1.1 christos 2005-11-07 Steve Ellcey <sje (a] cup.hp.com> 383 1.1 christos 384 1.1 christos * warning.m4 (AM_BINUTILS_WARNINGS): Default to empty string 385 1.1 christos if compiler is not GCC. 386 1.1 christos * configure: Regenerate 387 1.1 christos 388 1.1 christos 2005-11-07 Steve Ellcey <sje (a] cup.hp.com> 389 1.1 christos 390 1.1 christos * configure: Regenerate after modifying bfd/warning.m4. 391 1.1 christos 392 1.1 christos 2005-11-07 Steve Ellcey <sje (a] cup.hp.com> 393 1.1 christos 394 1.1 christos * configure.host (ia64-*-hpux*): Set _LARGEFILE64_SOURCE. 395 1.1 christos 396 1.1 christos 2005-11-03 Daniel Jacobowitz <dan (a] codesourcery.com> 397 1.1 christos 398 1.1 christos * configure.in: Check for fopen64. 399 1.1 christos * libbfd-in.h (real_fopen): New prototype. 400 1.1 christos * configure, config.in, libbfd.h: Regenerated. 401 1.1 christos * bfdio.c (real_fopen): New function. 402 1.1 christos * opncls.c (bfd_fopen, bfd_fill_in_gnu_debuglink_section): Use it. 403 1.1 christos * cache.c (bfd_open_file): Likewise. 404 1.1 christos 405 1.1 christos 2005-11-03 Thiemo Seufer <ths (a] networkno.de> 406 1.1 christos 407 1.1 christos * elfxx-mips.c (mips_elf_calculate_relocation): Handle only 408 1.1 christos forced local symbols here. 409 1.1 christos (mips_elf_create_dynamic_relocation): Likewise. 410 1.1 christos (_bfd_mips_elf_finish_dynamic_symbol): Fix typo in comment. 411 1.1 christos 412 1.1 christos 2005-11-03 Alan Modra <amodra (a] bigpond.net.au> 413 1.1 christos 414 1.1 christos * elf.c (elf_fake_sections): When calculating tbss size, just use 415 1.1 christos the last link_order. 416 1.1 christos (assign_file_positions_for_segments): Likewise. 417 1.1 christos * elflink.c (bfd_elf_final_link): Likewise. 418 1.1 christos (elf_reloc_link_order): Correct comment. 419 1.1 christos 420 1.1 christos 2005-11-02 Alan Modra <amodra (a] bigpond.net.au> 421 1.1 christos 422 1.1 christos PR ld/1775 423 1.1 christos * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Add required 424 1.1 christos parentheses. 425 1.1 christos 426 1.1 christos 2005-10-29 H.J. Lu <hongjiu.lu (a] intel.com> 427 1.1 christos 428 1.1 christos * Makefile.am: Run "make dep-am". 429 1.1 christos * Makefile.in: Regenerated. 430 1.1 christos 431 1.1 christos * dep-in.sed: Replace " ./" with " ". 432 1.1 christos 433 1.1 christos 2005-10-29 H.J. Lu <hongjiu.lu (a] intel.com> 434 1.1 christos 435 1.1 christos * hpux-core.c: Include <machine/reg.h> only if HPUX_CORE is 436 1.1 christos define. 437 1.1 christos * osf-core.c: Include <sys/core.h> only if OSF_CORE is defined. 438 1.1 christos * sco5-core.c: Include <sys/paccess.h> and <sys/region.h> only 439 1.1 christos if SCO5_CORE is defined. 440 1.1 christos 441 1.1 christos 2005-10-29 Mark Kettenis <kettenis (a] gnu.org> 442 1.1 christos 443 1.1 christos * Makefile.am: Run "make dep-am". 444 1.1 christos * Makefile.in: Regenerate. 445 1.1 christos 446 1.1 christos 2005-10-28 Joel Brobecker <brobecker (a] adacore.com> 447 1.1 christos 448 1.1 christos From Eric Botcazou <botcazou (a] adacore.com> 449 1.1 christos * coffcode.h (coff_compute_section_file_positions): Fix small 450 1.1 christos error in preprocessor directives. 451 1.1 christos 452 1.1 christos 2005-10-28 Joel Brobecker <brobecker (a] adacore.com> 453 1.1 christos 454 1.1 christos Mostly from Eric Botcazou <botcazou (a] adacore.com> 455 1.1 christos * rs6000-core.c: ANSIfy all function definitions. 456 1.1 christos Add missing function prototypes. 457 1.1 christos (ptr_to_uint): New type. 458 1.1 christos (rs6000coff_core_p): Use it as intermediate step in casts. 459 1.1 christos (rs6000coff_core_file_matches_executable_p): Likewise. 460 1.1 christos * xcoff-target.h (rs6000coff_core_p): Fix prototype. 461 1.1 christos (rs6000coff_core_file_matches_executable_p): Likewise. 462 1.1 christos 463 1.1 christos 2005-10-28 H.J. Lu <hongjiu.lu (a] intel.com> 464 1.1 christos 465 1.1 christos PR binutils/1472 466 1.1 christos * aoutx.h (NAME (aout, machine_type)): Handle 467 1.1 christos bfd_mach_sparc_v8plus, bfd_mach_sparc_v8plusa, 468 1.1 christos bfd_mach_sparc_v8plusb, bfd_mach_sparc_v9, bfd_mach_sparc_v9a 469 1.1 christos and bfd_mach_sparc_v9b. 470 1.1 christos 471 1.1 christos 2005-10-28 Hans-Peter Nilsson <hp (a] axis.com> 472 1.1 christos 473 1.1 christos PR ld/1567 474 1.1 christos * elf32-cris.c (cris_elf_howto_table) <R_CRIS_32>: Set 475 1.1 christos complain_on_overflow field to complain_overflow_dont. 476 1.1 christos 477 1.1 christos 2005-10-27 Alan Modra <amodra (a] bigpond.net.au> 478 1.1 christos 479 1.1 christos PR 973 480 1.1 christos * cache.c (enum cache_flag): New. 481 1.1 christos (close_one): Save file mtime. 482 1.1 christos (bfd_cache_lookup): Add flag arg, adjust all users. 483 1.1 christos (bfd_cache_lookup_worker): Likewise. 484 1.1 christos (cache_btell): Use CACHE_NO_OPEN and return abfd->where if file 485 1.1 christos not open. 486 1.1 christos (cache_bflush): Similarly, and return success of file not open. 487 1.1 christos (cache_bseek): Use CACHE_NO_SEEK if SEEK_SET or SEEK_END. 488 1.1 christos (cache_bstat): Use CACHE_NO_SEEK_ERROR. 489 1.1 christos 490 1.1 christos * bfdwin.c (bfd_get_file_window): Seek into file in place of 491 1.1 christos using bfd_cache_lookup. 492 1.1 christos 493 1.1 christos * cache.c (BFD_CACHE_MAX_OPEN): Make private to this file. 494 1.1 christos (bfd_last_cache, bfd_cache_lookup, bfd_cache_lookup_worker): Likewise. 495 1.1 christos * libbfd-in.h (bfd_cache_lookup_worker, bfd_last_cache): Delete. 496 1.1 christos * libbfd.h: Regenerate. 497 1.1 christos 498 1.1 christos * hppabsd-core.c (hppabsd_core_core_file_p): Use bfd_stat, not fstat. 499 1.1 christos * sco5-core.c (sco5_core_file_p): Likewise. 500 1.1 christos * trad-core.c (trad_unix_core_file_p): Likewise. 501 1.1 christos 502 1.1 christos * cache.c: Reorganize file to avoid forward reference. 503 1.1 christos 504 1.1 christos 2005-10-26 Alan Modra <amodra (a] bigpond.net.au> 505 1.1 christos 506 1.1 christos * cache.c (bfd_cache_lookup_worker): Don't abort on failing to 507 1.1 christos reopen file. 508 1.1 christos (cache_btell, cache_bseek, cache_bflush, cache_bstat): Return -1 on 509 1.1 christos bfd_cache_lookup failure. 510 1.1 christos (cache_bread, cache_bwrite): Return 0 on the same. 511 1.1 christos * bfdwin.c (bfd_get_file_window): Likewise. 512 1.1 christos * hppabsd-core.c (hppabsd_core_core_file_p): Likewise. 513 1.1 christos * sco5-core.c (sco5_core_file_p): Likewise. 514 1.1 christos * trad-core.c (trad_unix_core_file_p): Likewise. 515 1.1 christos 516 1.1 christos 2005-10-26 Alan Modra <amodra (a] bigpond.net.au> 517 1.1 christos 518 1.1 christos * cache.c (bfd_cache_lookup_worker): Use bfd_error_handler 519 1.1 christos rather than bfd_perror. Print file name. Internationalise. 520 1.1 christos 521 1.1 christos 2005-10-26 Alan Modra <amodra (a] bigpond.net.au> 522 1.1 christos 523 1.1 christos * cache.c (bfd_open_file): Set bfd_error_system_call on failure 524 1.1 christos to open file. 525 1.1 christos (bfd_cache_lookup_worker): Remove check that file pos is in 526 1.1 christos unsigned long range. Print system error before aborting. 527 1.1 christos 528 1.1 christos 2005-10-25 Arnold Metselaar <arnold.metselaar (a] planet.nl> 529 1.1 christos 530 1.1 christos * Makefile.am: Add rules for coff-z80 and cpu-z80. 531 1.1 christos * Makefile.in: Regenerated. 532 1.1 christos * archures.c: Add bfd_arch_z80 and support for it. 533 1.1 christos * coffcode.h(coff_set_arch_mach_hook): Add case Z80MAGIC. 534 1.1 christos (coff_set_flags): Add case bfd_arch_z80. 535 1.1 christos * config.bfd: Add z80coff_vec. 536 1.1 christos * configure.in: Add z80coff_vec. 537 1.1 christos * reloc.c: Add BFD_RELOC_Z80_DISP8 538 1.1 christos * targets.c: Add z80coff_vec. 539 1.1 christos * coff-z80.c: New file 540 1.1 christos * cpu-z80.c: New file 541 1.1 christos * configure: Regenerated. 542 1.1 christos * libbfd.h: Regenerated. 543 1.1 christos * bfd-in2.h: Regenerated. 544 1.1 christos 545 1.1 christos 2005-10-26 Alan Modra <amodra (a] bigpond.net.au> 546 1.1 christos 547 1.1 christos PR ld/1540 548 1.1 christos * elf-bfd.h (elf_backend_copy_indirect_symbol): Replace pointer to 549 1.1 christos elf_backend_data with pointer to bfd_link_info. 550 1.1 christos (_bfd_elf_link_hash_copy_indirect): Likewise. 551 1.1 christos * elf.c (_bfd_elf_link_hash_copy_indirect): Likewise. Handle 552 1.1 christos direct and indirect symbols both having dynamic link info. 553 1.1 christos * elf32-arm.c (elf32_arm_copy_indirect_symbol): Likewise. 554 1.1 christos * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise. 555 1.1 christos * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise. 556 1.1 christos * elf32-m32r.c (m32r_elf_copy_indirect_symbol): Likewise. 557 1.1 christos * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Likewise. 558 1.1 christos * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise. 559 1.1 christos * elf32-sh.c (sh_elf_copy_indirect_symbol): Likewise. 560 1.1 christos * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. 561 1.1 christos * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise. 562 1.1 christos * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise. 563 1.1 christos * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise. 564 1.1 christos * elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise. 565 1.1 christos * elfxx-sparc.c (_bfd_sparc_elf_copy_indirect_symbol): Likewise. 566 1.1 christos * elflink.c: Adjust all calls to bed->elf_backend_copy_indirect_symbol. 567 1.1 christos * elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Update prototype. 568 1.1 christos * elfxx-sparc.h (_bfd_sparc_elf_copy_indirect_symbol): Likewise. 569 1.1 christos 570 1.1 christos 2005-10-25 Alan Modra <amodra (a] bigpond.net.au> 571 1.1 christos 572 1.1 christos * po/SRC-POTFILES.in: Regenerate. 573 1.1 christos * po/bfd.pot: Regenerate. 574 1.1 christos 575 1.1 christos 2005-10-24 Jie Zhang <jie.zhang (a] analog.com> 576 1.1 christos 577 1.1 christos * elf32-bfin.c (bfd_bfin_elf32_create_embedded_relocs): Fix signedness 578 1.1 christos warning. 579 1.1 christos 580 1.1 christos 2005-10-24 Bernd Schmidt <bernd.schmidt (a] analog.com> 581 1.1 christos 582 1.1 christos * elf32-bfin.c (bfin_howto_table): Set src_mask to 0 for all relocs. 583 1.1 christos (bfin_imm16_reloc): Always add in the addend. Don't fetch existing 584 1.1 christos contents from section. 585 1.1 christos (bfin_relocate_section): Rework so as to not call special_functions. 586 1.1 christos Handle the relocation stack here. Treat pcrel24 relocs specially. 587 1.1 christos 588 1.1 christos 2005-10-24 Alan Modra <amodra (a] bigpond.net.au> 589 1.1 christos 590 1.1 christos * elflink.c (elf_link_input_bfd): Don't use linker_mark and 591 1.1 christos SEC_EXCLUDE to test for sections dropped from output. Instead, 592 1.1 christos use bfd_section_removed_from_list on normal sections. Don't 593 1.1 christos attempt to handle symbols with unknown reserved section indices. 594 1.1 christos * linker.c (_bfd_generic_link_output_symbols): Don't use 595 1.1 christos linker_mark to test for symbols belonging to dropped sections. 596 1.1 christos Do allow absolute symbols. 597 1.1 christos 598 1.1 christos 2005-10-24 Alan Modra <amodra (a] bigpond.net.au> 599 1.1 christos 600 1.1 christos * elf32-i370.c (i370_elf_fake_sections): Don't set SHF_EXCLUDE on 601 1.1 christos group sections. 602 1.1 christos 603 1.1 christos 2005-10-24 Jan Beulich <jbeulich (a] novell.com> 604 1.1 christos 605 1.1 christos * cpu-ia64-opc.c (elf64_ia64_operands): Move memory operand out of 606 1.1 christos set of indirect operands. 607 1.1 christos 608 1.1 christos 2005-10-24 Alan Modra <amodra (a] bigpond.net.au> 609 1.1 christos 610 1.1 christos * elf32-ppc.c (ppc_elf_fake_sections): Don't set SHF_EXCLUDE on 611 1.1 christos group sections. 612 1.1 christos 613 1.1 christos 2005-10-23 H.J. Lu <hongjiu.lu (a] intel.com> 614 1.1 christos 615 1.1 christos * coff-rs6000.c (rs6000coff_vec): Initialize 616 1.1 christos _bfd_init_private_section_data with 617 1.1 christos _bfd_generic_init_private_section_data. 618 1.1 christos (pmac_xcoff_vec): Likewise. 619 1.1 christos * coff64-rs6000.c (rs6000coff64_vec): Likewise. 620 1.1 christos (aix5coff64_vec): Likewise. 621 1.1 christos 622 1.1 christos 2005-10-23 H.J. Lu <hongjiu.lu (a] intel.com> 623 1.1 christos 624 1.1 christos PR ld/1487 625 1.1 christos * elf-bfd.h (_bfd_generic_init_private_section_data): New. 626 1.1 christos (_bfd_elf_init_private_section_data): New. 627 1.1 christos 628 1.1 christos * elf.c (elf_fake_sections): Don't set SHF_GROUP for 629 1.1 christos relocatable link. 630 1.1 christos (bfd_elf_set_group_contents): Don't handle relocatable link 631 1.1 christos specially. 632 1.1 christos (assign_section_numbers): If it isn't called by assembler, 633 1.1 christos use the output section of elf_linked_to_section for 634 1.1 christos SHF_LINK_ORDER. 635 1.1 christos (_bfd_elf_init_private_section_data): New. 636 1.1 christos (_bfd_elf_copy_private_section_data): Call it. 637 1.1 christos 638 1.1 christos * libbfd-in.h (_bfd_generic_init_private_section_data): New. 639 1.1 christos 640 1.1 christos * libbfd.c (_bfd_generic_init_private_section_data): New. 641 1.1 christos 642 1.1 christos * targets.c (BFD_JUMP_TABLE_COPY): Add 643 1.1 christos _bfd_generic_init_private_section_data. 644 1.1 christos (bfd_init_private_section_data): Likewise. 645 1.1 christos 646 1.1 christos * bfd-in2.h: Regenerated. 647 1.1 christos * libbfd.h: Likewise. 648 1.1 christos 649 1.1 christos 2005-10-23 Alan Modra <amodra (a] bigpond.net.au> 650 1.1 christos 651 1.1 christos * elf64-ppc.c (dec_dynrel_count): Don't report errors for local 652 1.1 christos syms in gc'd sections. 653 1.1 christos (ppc64_elf_edit_opd): Don't adjust reloc counts when NO_OPD_RELOCS. 654 1.1 christos (elf_backend_action_discarded): Define. 655 1.1 christos (ppc64_elf_action_discarded): New function. 656 1.1 christos 657 1.1 christos 2005-10-19 Paul Brook <paul (a] codesourcery.com> 658 1.1 christos 659 1.1 christos * elf32-arm.c (find_arm_elf_section_entry): New function. 660 1.1 christos (get_arm_elf_section_data): Use it. 661 1.1 christos (unrecord_section_with_arm_elf_section_data): Use it. 662 1.1 christos 663 1.1 christos 2005-10-15 H.J. Lu <hongjiu.lu (a] intel.com> 664 1.1 christos 665 1.1 christos * coff-rs6000.c (rs6000coff_vec): Initialize 666 1.1 christos _bfd_match_sections_by_type with 667 1.1 christos _bfd_generic_match_sections_by_type. 668 1.1 christos (pmac_xcoff_vec): Likewise. 669 1.1 christos * coff64-rs6000.c (rs6000coff64_vec): Likewise. 670 1.1 christos (aix5coff64_vec): Likewise. 671 1.1 christos 672 1.1 christos 2005-10-15 H.J. Lu <hongjiu.lu (a] intel.com> 673 1.1 christos 674 1.1 christos PR ld/1467 675 1.1 christos * elf-bfd.h (_bfd_elf_match_sections_by_type): New. 676 1.1 christos (_bfd_generic_match_sections_by_type): New. Defined. 677 1.1 christos 678 1.1 christos * elf.c (_bfd_elf_match_sections_by_type): New. 679 1.1 christos 680 1.1 christos * libbfd-in.h (_bfd_generic_match_sections_by_type): New. 681 1.1 christos 682 1.1 christos * bfd-in2.h: Regenerated. 683 1.1 christos * libbfd.h: Likewise. 684 1.1 christos 685 1.1 christos * libbfd.c (_bfd_generic_match_sections_by_type): New. 686 1.1 christos 687 1.1 christos * targets.c (BFD_JUMP_TABLE_LINK): Initialize 688 1.1 christos _bfd_match_sections_by_type with 689 1.1 christos _bfd_generic_match_sections_by_type. 690 1.1 christos (bfd_target): Add _bfd_match_sections_by_type. 691 1.1 christos 692 1.1 christos 2005-10-08 Paul Brook <paul (a] codesourcery.com> 693 1.1 christos 694 1.1 christos * elf32-arm.c: Move #include "elf/arm.h" after libbfd.h. 695 1.1 christos (NUM_KNOWN_ATTRIBUTES): Define. 696 1.1 christos (aeabi_attribute, aeabi_attribute_list): Define. 697 1.1 christos (elf32_arm_obj_tdata): Add known_eabi_attributes and 698 1.1 christos other_eabi_attributes. 699 1.1 christos (uleb128_size, is_default_attr, eabi_attr_size, 700 1.1 christos elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute, 701 1.1 christos elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link, 702 1.1 christos elf32_arm_new_eabi_attr, attr_strdup, elf32_arm_add_eabi_attr_int, 703 1.1 christos elf32_arm_add_eabi_attr_compat, copy_eabi_attributes, 704 1.1 christos elf32_arm_merge_eabi_attributes): New functions. 705 1.1 christos (elf32_arm_copy_private_bfd_data): Copy EABI object attributes. 706 1.1 christos (elf32_arm_fake_sections): Handle .ARM.attributes. 707 1.1 christos (elf32_arm_parse_attributes): New function. 708 1.1 christos (elf32_arm_section_from_shdr): Use it. 709 1.1 christos (bfd_elf32_bfd_final_link): Define. 710 1.1 christos 711 1.1 christos 2005-10-06 Daniel Jacobowitz <dan (a] codesourcery.com> 712 1.1 christos 713 1.1 christos * elf32-arm.c (elf32_arm_check_relocs): Avoid aliasing warnings from 714 1.1 christos GCC. 715 1.1 christos (elf32_arm_size_dynamic_sections): Likewise. 716 1.1 christos * ecofflink.c (bfd_ecoff_debug_one_external): Likewise. 717 1.1 christos * elf32-hppa.c (elf32_hppa_check_relocs): Likewise. 718 1.1 christos * elf32-m32r.c (m32r_elf_check_relocs): Likewise. 719 1.1 christos * elf32-m68k.c (elf_m68k_check_relocs): Likewise. 720 1.1 christos * elf32-ppc.c (ppc_elf_check_relocs): Likewise. 721 1.1 christos * elf32-s390.c (elf_s390_check_relocs): Likewise. 722 1.1 christos (elf_s390_size_dynamic_sections): Likewise. 723 1.1 christos * elf32-sh.c (sh_elf_check_relocs): Likewise. 724 1.1 christos * elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count) 725 1.1 christos (ppc64_elf_size_dynamic_sections): Likewise. 726 1.1 christos * elf64-s390.c (elf_s390_check_relocs): Likewise. 727 1.1 christos (elf_s390_size_dynamic_sections): Likewise. 728 1.1 christos * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Likewise. 729 1.1 christos * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise. 730 1.1 christos (_bfd_sparc_elf_size_dynamic_sections): Likewise. 731 1.1 christos * ieee.c (ieee_slurp_section_data): Likewise. 732 1.1 christos * oasys.c (oasys_slurp_section_data): Likewise. 733 1.1 christos 734 1.1 christos 2005-10-04 Bob Wilson <bob.wilson (a] acm.org> 735 1.1 christos 736 1.1 christos * archive.c: Add missing SUBSECTION for documentation. 737 1.1 christos * bfd.c: Likewise. 738 1.1 christos * cache.c: Likewise. 739 1.1 christos * corefile.c: Likewise. 740 1.1 christos * format.c: Likewise. 741 1.1 christos * init.c: Likewise. 742 1.1 christos * libbfd.c: Likewise. 743 1.1 christos * opncls.c: Likewise. 744 1.1 christos * elf.c: Remove blank line after SECTION heading. 745 1.1 christos * reloc.c: Change "howto manager" SECTION to a SUBSECTION. 746 1.1 christos 747 1.1 christos 2005-10-04 Nick Clifton <nickc (a] redhat.com> 748 1.1 christos 749 1.1 christos * elf32-arm.c (get_arm_elf_section_data): Cache the last pointer 750 1.1 christos matched so that the typical case of scanning for the previous 751 1.1 christos section to last one can be handled quickly. 752 1.1 christos 753 1.1 christos 2005-10-03 David Heine <dlheine (a] tensilica.com> 754 1.1 christos 755 1.1 christos * elf32-xtensa.c (relocations_reach): Skip range check for 756 1.1 christos absolute literals. 757 1.1 christos 758 1.1 christos 2005-10-03 Alan Modra <amodra (a] bigpond.net.au> 759 1.1 christos 760 1.1 christos * elf.c (_bfd_elf_get_synthetic_symtab): Set BSF_GLOBAL on 761 1.1 christos synthetic syms. 762 1.1 christos 763 1.1 christos 2005-09-30 H.J. Lu <hongjiu.lu (a] intel.com> 764 1.1 christos 765 1.1 christos * Makefile.am: Run "make dep-am". 766 1.1 christos * Makefile.in: Regenerated. 767 1.1 christos * aclocal.m4: Likewise. 768 1.1 christos 769 1.1 christos 2005-09-30 Catherine Moore <clm (a] cm00re.com> 770 1.1 christos 771 1.1 christos * Makefile.am: Bfin support. 772 1.1 christos * Makefile.in: Regenerated. 773 1.1 christos * aclocal.m4: Regenerated. 774 1.1 christos * archures.c (bfd_mach_bfin): New. 775 1.1 christos (bfd_arch_bfin): New. 776 1.1 christos bfd-in.h (bfd_bfin_elf32_create_embedded_relocs): New. 777 1.1 christos * bfd-in2.h: Regenerated. 778 1.1 christos * config.bfd: Bfin support. 779 1.1 christos * configure: Regenerated. 780 1.1 christos * configure.in: Bfin support. 781 1.1 christos * libbfd.h: Regenerated. 782 1.1 christos * reloc.c: Add BFD relocations for Bfin. 783 1.1 christos * targets.c (bfd_elf32_bfin_vec): New. 784 1.1 christos * cpu-bfin.c: New file. 785 1.1 christos * elf32-bfin.c: New file. 786 1.1 christos 787 1.1 christos 2005-09-30 Alan Modra <amodra (a] bigpond.net.au> 788 1.1 christos 789 1.1 christos * elf64-ppc.c (ppc_type_of_stub): Check both func desc and func 790 1.1 christos entry sym before deciding no stub is needed. 791 1.1 christos (ppc64_elf_size_stubs): When calculating branch destination, 792 1.1 christos don't use func desc sym for old ABI objects unless func entry 793 1.1 christos is undefined. 794 1.1 christos 795 1.1 christos 2005-09-28 H.J. Lu <hongjiu.lu (a] intel.com> 796 1.1 christos 797 1.1 christos PR binutils/1321 798 1.1 christos * elf-bfd.h (_bfd_elf_setup_group_pointers): Renamed to ... 799 1.1 christos (_bfd_elf_setup_sections): This. 800 1.1 christos * elf.c: Likewise. 801 1.1 christos * elfcode.h (elf_object_p): Likewise. 802 1.1 christos 803 1.1 christos * elf.c (_bfd_elf_setup_sections): Process SHF_LINK_ORDER. 804 1.1 christos (_bfd_elf_copy_private_section_data): Likewise. 805 1.1 christos 806 1.1 christos 2005-09-28 H.J. Lu <hongjiu.lu (a] intel.com> 807 1.1 christos 808 1.1 christos * elflink.c (elf_fixup_link_order): Report locations for mixed 809 1.1 christos ordered and unordered input sections. 810 1.1 christos 811 1.1 christos 2005-09-22 James E. Wilson <wilson (a] specifix.com> 812 1.1 christos 813 1.1 christos * dwarf2.c (struct funcinfo): Delete nesting_level field. 814 1.1 christos (lookup_address_in_function_table): Delete code to set funcinfo 815 1.1 christos caller_func field. Delete local curr_func. 816 1.1 christos (scan_unit_for_symbols): New locals nested_funcs, nested_funcs_size. 817 1.1 christos Delete code setting funcinfo nesting_level field. Add code to set 818 1.1 christos funcinfo caller_func field. 819 1.1 christos 820 1.1 christos 2005-09-20 James E. Wilson <wilson (a] specifix.com> 821 1.1 christos 822 1.1 christos * dwarf2.c (find_abstract_instance_name): Don't early exit when name 823 1.1 christos set. For DW_AT_name case, only set name if not already set. Handle 824 1.1 christos DW_AT_MIPS_linkage_name. 825 1.1 christos 826 1.1 christos 2005-09-20 Alan Modra <amodra (a] bigpond.net.au> 827 1.1 christos 828 1.1 christos * elflink.c (_bfd_elf_merge_symbol): Simplify. 829 1.1 christos 830 1.1 christos 2005-09-19 Alan Modra <amodra (a] bigpond.net.au> 831 1.1 christos 832 1.1 christos * elf64-ppc.c (ppc_build_one_stub): Replace assertion that long 833 1.1 christos branch offset is in range with an error. Print full stub name on 834 1.1 christos errors. 835 1.1 christos (ppc_size_one_stub): Print full stub name on errors. 836 1.1 christos (group_sections): Warn if section size exceeds group size. 837 1.1 christos (ppc64_elf_size_stubs): Continue relaxing when stub types change. 838 1.1 christos 839 1.1 christos 2005-09-09 Kevin Buettner <kevinb (a] redhat.com> 840 1.1 christos 841 1.1 christos * elf32-am33lin.c (bfd.h, sysdep.h, elf-bfd.h, elf/mn10300.h): 842 1.1 christos Include. 843 1.1 christos (elf32_am33lin_grok_prstatus, elf32_am33lin_grok_psinfo): New 844 1.1 christos functions. 845 1.1 christos (elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define. 846 1.1 christos 847 1.1 christos 2005-09-09 Richard Earnshaw <richard.earnshaw (a] arm.com> 848 1.1 christos 849 1.1 christos * elf32-arm.c (elf32_arm_section_from_shdr): Accept SHT_ARM_PREEMPTMAP 850 1.1 christos and SHT_ARM_ATTRIBUTES. 851 1.1 christos 852 1.1 christos 2005-09-08 H.J. Lu <hongjiu.lu (a] intel.com> 853 1.1 christos 854 1.1 christos * elflink.c (elf_get_linked_section_vma): Fix a typo in comment. 855 1.1 christos * elfxx-ia64.c (elf_backend_link_order_error_handler): Likewise. 856 1.1 christos 857 1.1 christos 2005-09-08 H.J. Lu <hongjiu.lu (a] intel.com> 858 1.1 christos 859 1.1 christos PR ld/1263 860 1.1 christos * elflink.c (elf_link_add_object_symbols): Abort for 861 1.1 christos --just-symbols on DSO. 862 1.1 christos 863 1.1 christos 2005-09-08 Paul Brook <paul (a] codesourcery.com> 864 1.1 christos 865 1.1 christos * reloc.c: Rename BFD_RELOC_ARM_SMI to BFD_RELOC_ARM_SMC. 866 1.1 christos * bfd-in2.h: Regenerate. 867 1.1 christos * libbfd.h: Regenerate. 868 1.1 christos 869 1.1 christos 2005-09-06 H.J. Lu <hongjiu.lu (a] intel.com> 870 1.1 christos 871 1.1 christos PR ld/1301 872 1.1 christos * elflink.c (_bfd_elf_merge_symbol): Don't check undefined 873 1.1 christos symbol introduced by "ld -u" for TLS. 874 1.1 christos 875 1.1 christos 2005-09-02 Paul Brook <paul (a] codesourcery.com> 876 1.1 christos 877 1.1 christos * libbdf.h: Regenerate. 878 1.1 christos * bfd-in2.h: Regenerate. 879 1.1 christos * reloc.c: Add BFD_RELOC_ARM_T32_CP_OFF_IMM and 880 1.1 christos BFD_RELOC_ARM_T32_CP_OFF_IMM_S2. 881 1.1 christos 882 1.1 christos 2005-09-01 Dmitry Diky <diwil (a] spec.ru> 883 1.1 christos 884 1.1 christos * elf32-msp430.c (msp430_elf_relax_delete_bytes): Do not adjust 885 1.1 christos local symbols and move it to 886 1.1 christos (msp430_elf_relax_adjust_locals): New function - walk over the 887 1.1 christos sections in the bfd and adjust relocations as necessary. 888 1.1 christos 889 1.1 christos 2005-08-31 DJ Delorie <dj (a] redhat.com> 890 1.1 christos 891 1.1 christos * elf32-i386.c (elf_i386_check_relocs): Don't cast a unary & 892 1.1 christos address operator, as that breaks GCC's strict aliasing rules. 893 1.1 christos (elf_i386_size_dynamic_sections): Avoid the need for type 894 1.1 christos punning. 895 1.1 christos * elf64-x86-64.c (elf_x86_64_check_relocs): Don't cast a unary 896 1.1 christos & address operator, as that breaks GCC's strict aliasing 897 1.1 christos rules. 898 1.1 christos (elf_x86_64_size_dynamic_sections): Avoid the need for type 899 1.1 christos punning. 900 1.1 christos 901 1.1 christos 2005-08-30 Phil Edwards <phil (a] codesourcery.com> 902 1.1 christos 903 1.1 christos * config.bfd (i[3-7]86-*-vxworks): Match vxworks* instead. 904 1.1 christos 905 1.1 christos 2005-08-29 H.J. Lu <hongjiu.lu (a] intel.com> 906 1.1 christos 907 1.1 christos PR ld/1247 908 1.1 christos * elfxx-ia64.c (allocate_fptr): Check undefined symbol. 909 1.1 christos 910 1.1 christos 2005-08-29 Steven J. Hill <sjhill (a] realitydiluted.com> 911 1.1 christos 912 1.1 christos * elfxx-mips.c (_bfd_mips_elf_relocate_section): Initialise 913 1.1 christos 'value' to avoid compile time warning message. 914 1.1 christos 915 1.1 christos 2005-08-26 Christian Groessler <chris (a] groessler.org> 916 1.1 christos 917 1.1 christos * coff-z8k.c: (r_jr, r_disp7, r_callr): Fix src_mask and dst_mask 918 1.1 christos of HOWTO. 919 1.1 christos (coff_z8k_select_reloc): Remove. 920 1.1 christos (SELECT_RELOC): Remove. 921 1.1 christos (coff_z8k_reloc_type_lookup): New function. 922 1.1 christos (coff_bfd_reloc_type_lookup): Define. 923 1.1 christos * configure.in: Add cofflink.lo to z8kcoff_vec. 924 1.1 christos * configure: Regenerate. 925 1.1 christos * reloc.c: (bfd_reloc_code_type): Add z8k relocations. 926 1.1 christos (bfd_install_relocation): Don't clear reloc_entry->addend for 927 1.1 christos coff-z8k target. 928 1.1 christos * bfd-in2.h: Regenerate. 929 1.1 christos * libbfd.h: Regenerate. 930 1.1 christos 931 1.1 christos 2005-08-25 Kaz Kojima <kkojima (a] rr.iij4u.or.jp> 932 1.1 christos 933 1.1 christos * elf32-sh.c (sh_elf_get_flags_from_mach): Fix off-by-one error. 934 1.1 christos 935 1.1 christos 2005-08-24 H.J. Lu <hongjiu.lu (a] intel.com> 936 1.1 christos 937 1.1 christos PR ld/1208 938 1.1 christos * elf-hppa.h (elf_hppa_relocate_section): Print out the name 939 1.1 christos of unresolvable relocation. 940 1.1 christos * elf-m10300.c (mn10300_elf_relocate_section): Likewise. 941 1.1 christos * elf32-arm.c (elf32_arm_relocate_section): Likewise. 942 1.1 christos * elf32-i386.c (elf_i386_relocate_section): Likewise. 943 1.1 christos * elf32-m32r.c (m32r_elf_relocate_section): Likewise. 944 1.1 christos * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 945 1.1 christos * elf32-s390.c (elf_s390_relocate_section): Likewise. 946 1.1 christos * elf32-sh.c (sh_elf_relocate_section): Likewise. 947 1.1 christos * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise. 948 1.1 christos * elf64-s390.c (elf_s390_relocate_section): Likewise. 949 1.1 christos * elf64-sh64.c (sh_elf64_relocate_section): Likewise. 950 1.1 christos * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. 951 1.1 christos * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. 952 1.1 christos 953 1.1 christos 2005-08-18 Kaz Kojima <kkojima (a] rr.iij4u.or.jp> 954 1.1 christos 955 1.1 christos * config.bfd: Add bfd_elf32_shnbsd_vec and bfd_elf32_shlnbsd_vec 956 1.1 christos to targ_selvecs for sh5*-*-netbsd* and sh64*-*-netbsd*. 957 1.1 christos 958 1.1 christos 2005-08-18 Alan Modra <amodra (a] bigpond.net.au> 959 1.1 christos 960 1.1 christos * coff-a29k.c: Delete. 961 1.1 christos * cpu-a29k.c: Delete. 962 1.1 christos * Makefile.am: Remove mention of a29k files. 963 1.1 christos * aoutf1.h: Remove a29k support. 964 1.1 christos * aoutx.h: Likewise. 965 1.1 christos * archures.c: Likewise. 966 1.1 christos * coffcode.h: Likewise. 967 1.1 christos * config.bfd: Likewise. 968 1.1 christos * configure.in: Likewise. 969 1.1 christos * ieee.c: Likewise. 970 1.1 christos * mipsbsd.c: Likewise. 971 1.1 christos * pdp11.c: Likewise. 972 1.1 christos * sparclynx.c: Likewise. 973 1.1 christos * targets.c: Likewise. 974 1.1 christos * Makefile.in: Regenerate. 975 1.1 christos * configure: Regenerate. 976 1.1 christos * bfd-in2.h: Regenerate. 977 1.1 christos * po/SRC-POTFILES.in: Regenerate. 978 1.1 christos 979 1.1 christos 2005-08-18 Alan Modra <amodra (a] bigpond.net.au> 980 1.1 christos 981 1.1 christos * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Warn on 982 1.1 christos zero size dynamic variables. 983 1.1 christos * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise. 984 1.1 christos * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise. 985 1.1 christos * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise. 986 1.1 christos * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise. 987 1.1 christos * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise. 988 1.1 christos * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise. 989 1.1 christos * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise. 990 1.1 christos * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. 991 1.1 christos * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. 992 1.1 christos * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise. 993 1.1 christos * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise. 994 1.1 christos * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. 995 1.1 christos * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. 996 1.1 christos * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise. 997 1.1 christos * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise. 998 1.1 christos * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise. 999 1.1 christos 1000 1.1 christos 2005-08-17 H.J. Lu <hongjiu.lu (a] intel.com> 1001 1.1 christos 1002 1.1 christos PR binutils/1179 1003 1.1 christos * dwarf2.c (_bfd_dwarf2_find_nearest_line): Use section lma 1004 1.1 christos instead of vma. 1005 1.1 christos (_bfd_dwarf2_find_line): Likewise. 1006 1.1 christos 1007 1.1 christos 2005-08-17 Alan Modra <amodra (a] bigpond.net.au> 1008 1.1 christos 1009 1.1 christos * elf64-mmix.c (mmix_elf_add_symbol_hook): Mark reg section 1010 1.1 christos SEC_LINKER_CREATED. 1011 1.1 christos (mmix_elf_final_link): Check that section hasn't already been 1012 1.1 christos removed before removing. 1013 1.1 christos * mmo.c (mmo_scan): Mark reg contents section SEC_LINKER_CREATED. 1014 1.1 christos (mmo_canonicalize_symtab): Likewise for reg section. 1015 1.1 christos 1016 1.1 christos 2005-08-17 Alan Modra <amodra (a] bigpond.net.au> 1017 1.1 christos 1018 1.1 christos * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Move assert later. 1019 1.1 christos * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Cope with being called 1020 1.1 christos without any got section. 1021 1.1 christos 1022 1.1 christos 2005-08-17 Danny Smith <dannysmith (a] users.sourceforge.net> 1023 1.1 christos 1024 1.1 christos * cofflink.c (_bfd_coff_generic_relocate_section): Correct 1025 1.1 christos comment. 1026 1.1 christos 1027 1.1 christos 2005-08-17 Alan Modra <amodra (a] bigpond.net.au> 1028 1.1 christos 1029 1.1 christos * elflink.c (_bfd_elf_define_linkage_sym): Don't call 1030 1.1 christos bfd_elf_link_record_dynamic_symbol. Call elf_backend_hide_symbol. 1031 1.1 christos (_bfd_elf_link_renumber_dynsyms): Formatting. 1032 1.1 christos (struct elf_gc_sweep_symbol_info): New. 1033 1.1 christos (elf_gc_sweep_symbol): Rewrite. 1034 1.1 christos (elf_gc_sweep): Adjust params and elf_gc_sweep_symbol call. 1035 1.1 christos Call _bfd_elf_link_renumber_dynsyms. 1036 1.1 christos (bfd_elf_gc_sections): Adjust elf_gc_sweep call. 1037 1.1 christos 1038 1.1 christos 2005-08-16 Alan Modra <amodra (a] bigpond.net.au> 1039 1.1 christos 1040 1.1 christos * elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count 1041 1.1 christos when relocatable. 1042 1.1 christos 1043 1.1 christos 2005-08-15 Bob Wilson <bob.wilson (a] acm.org> 1044 1.1 christos 1045 1.1 christos * elf32-xtensa.c (ELF_MACHINE_CODE, ELF_MACHINE_ALT1): Swap values 1046 1.1 christos of EM_XTENSA and EM_XTENSA_OLD. 1047 1.1 christos 1048 1.1 christos 2005-08-16 Alan Modra <amodra (a] bigpond.net.au> 1049 1.1 christos 1050 1.1 christos * elf-bfd.h (_bfd_elf_define_linkage_sym): Declare. 1051 1.1 christos * elflink.c (_bfd_elf_define_linkage_sym): New function, extracted 1052 1.1 christos from.. 1053 1.1 christos (_bfd_elf_create_got_section): ..here. 1054 1.1 christos (_bfd_elf_link_create_dynamic_sections): Call it for _DYNAMIC. 1055 1.1 christos (_bfd_elf_create_dynamic_sections): ..and _PROCEDURE_LINKAGE_TABLE_. 1056 1.1 christos * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Use 1057 1.1 christos _bfd_elf_define_linkage_sym. 1058 1.1 christos * elf32-frv.c (_frv_create_got_section): Likewise. 1059 1.1 christos * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise. 1060 1.1 christos 1061 1.1 christos 2005-08-15 Paul Brook <paul (a] codesourcery.com> 1062 1.1 christos 1063 1.1 christos * elf32-arm.c (elf32_arm_howto_table_1): Make R_ARM_PLT32 the same as 1064 1.1 christos R_ARM_PC24. 1065 1.1 christos 1066 1.1 christos 2005-08-13 John David Anglin <dave.anglin (a] nrc-cnrc.gc.ca> 1067 1.1 christos 1068 1.1 christos PR ld/1135 1069 1.1 christos * elf64-hppa.c (elf64_hppa_special_sections): Add flag definitions for 1070 1.1 christos .plt, .dlt, .sdata, .sbss and .tbss. 1071 1.1 christos 1072 1.1 christos 2005-08-12 Dmitry Diky <diwil (a] spec.ru> 1073 1.1 christos 1074 1.1 christos * elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust relocations 1075 1.1 christos referenced by .section + DISPLACEMENT. 1076 1.1 christos 1077 1.1 christos 2005-08-10 James E. Wilson <wilson (a] specifix.com> 1078 1.1 christos 1079 1.1 christos * dwarf2.c (scan_unit_for_symbols, case DT_AT_location): Verify that 1080 1.1 christos DW_OP_addr is only opcode in location before using it. 1081 1.1 christos 1082 1.1 christos 2005-08-09 H.J. Lu <hongjiu.lu (a] intel.com> 1083 1.1 christos 1084 1.1 christos * elfxx-ia64.c (elfNN_ia64_final_link): Reset gp. 1085 1.1 christos 1086 1.1 christos 2005-08-09 Rodney Brown <rbrown (a] bravurasolutions.com.au> 1087 1.1 christos Nick Clifton <nickc (a] redhat.com> 1088 1.1 christos 1089 1.1 christos * aix5ppc-core.c (xcoff64_core_p): Constify return_value 1090 1.1 christos variable. Also, do not use core_hdr macro as it evaluates to a 1091 1.1 christos cast of an lvalue which is no longer supported by GCC 4.0. 1092 1.1 christos 1093 1.1 christos 2005-08-08 Eric Dnges <Eric.Doenges (a] betty-tv.com> 1094 1.1 christos 1095 1.1 christos * archures.c (bfd_mach_msp21): New MSP430 machine number. 1096 1.1 christos * bfd-in2.h: Regenerate. 1097 1.1 christos * cpu-msp430.c (arch_info_struct): Add support for msp430x21xx 1098 1.1 christos variants. 1099 1.1 christos 1100 1.1 christos 2005-08-07 Nick Clifton <nickc (a] redhat.com> 1101 1.1 christos Paul Brook <paul (a] codesourcery.com> 1102 1.1 christos 1103 1.1 christos PR 1147 1104 1.1 christos * elf32-arm.c (bfd_elf32_close_and_cleanup): Define. 1105 1.1 christos (elf32_arm_close_and_cleanup): New function - walk over the 1106 1.1 christos sections in the bfd that is being closed removing them from the 1107 1.1 christos list of recorded sections. 1108 1.1 christos (unrecord_section_via_map_over_sections): New helper function. 1109 1.1 christos (record_section_with_arm_elf_section_data): Call bfd_malloc 1110 1.1 christos instead of bfd_alloc. Remove unneeded abfd parameter. 1111 1.1 christos (elf32_arm_new_section_hook): Do not pass bfd to 1112 1.1 christos record_section_with_arm_elf_section_data. 1113 1.1 christos 1114 1.1 christos * elfxx-target.h (bfd_elfNN_close_and_cleanup): Only define if not 1115 1.1 christos already defined by the target. 1116 1.1 christos 1117 1.1 christos 2005-08-05 Fred Fish <fnf (a] specifix.com> 1118 1.1 christos 1119 1.1 christos * dwarf2.c (read_rangelist): Use addr_size instead of offset_size 1120 1.1 christos to determine how many bytes to read from each rangelist entry. 1121 1.1 christos 1122 1.1 christos 2005-08-05 H.J. Lu <hongjiu.lu (a] intel.com> 1123 1.1 christos 1124 1.1 christos * bfd.c (bfd_hide_symbol): New. 1125 1.1 christos * bfd-in2.h: Regenerated. 1126 1.1 christos 1127 1.1 christos 2005-08-04 H.J. Lu <hongjiu.lu (a] intel.com> 1128 1.1 christos 1129 1.1 christos * elf64-x86-64.c (elf64_x86_64_merge_symbol): When mixing a 1130 1.1 christos large common symbol and a normal common symbol, always turn 1131 1.1 christos the large common symbol into a normal one. 1132 1.1 christos 1133 1.1 christos 2005-08-04 Alan Modra <amodra (a] bigpond.net.au> 1134 1.1 christos 1135 1.1 christos * elf32-ppc.c (struct elf_linker_section): Replace sym_val field 1136 1.1 christos with sym. 1137 1.1 christos (ppc_elf_relocate_section): Adjust for above. 1138 1.1 christos (create_sdata_sym): New function. 1139 1.1 christos (ppc_elf_create_linker_section): Call it. 1140 1.1 christos (ppc_elf_check_relocs): Correct has_sda_refs and non_got_refs. 1141 1.1 christos Create sdata syms for all SDA relocs. 1142 1.1 christos (ppc_elf_adjust_dynamic_symbol): Don't special case _SDA_BASE_ 1143 1.1 christos and _SDA2_BASE_. 1144 1.1 christos (ppc_elf_set_sdata_syms): Delete. 1145 1.1 christos * elflink.c (bfd_elf_size_dynamic_sections): Don't create DT_INIT 1146 1.1 christos and DT_FINI tags unless associated section has input. 1147 1.1 christos (bfd_elf_set_symbol, _bfd_elf_provide_symbol): Delete. 1148 1.1 christos (_bfd_elf_provide_section_bound_symbols): Delete. 1149 1.1 christos * bfd-in.h (_bfd_elf_provide_symbol): Delete. 1150 1.1 christos (_bfd_elf_provide_section_bound_symbols): Delete. 1151 1.1 christos * bfd-in2.h: Regenerate. 1152 1.1 christos 1153 1.1 christos 2005-08-04 Alan Modra <amodra (a] bigpond.net.au> 1154 1.1 christos 1155 1.1 christos * elflink.c (fix_syms, _bfd_elf_fix_excluded_sec_syms): Move to.. 1156 1.1 christos * linker.c (fix_syms, _bfd_fix_excluded_sec_syms): ..here. 1157 1.1 christos * bfd-in.h (_bfd_fix_excluded_sec_syms): Rename. 1158 1.1 christos * bfd-in2.h: Regenerate. 1159 1.1 christos 1160 1.1 christos 2005-08-03 H.J. Lu <hongjiu.lu (a] intel.com> 1161 1.1 christos 1162 1.1 christos * elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got 1163 1.1 christos only if it isn't NULL. 1164 1.1 christos 1165 1.1 christos 2005-08-03 H.J. Lu <hongjiu.lu (a] intel.com> 1166 1.1 christos 1167 1.1 christos * elf32-i386.c (elf_howto_table): Undo the overflow change for 1168 1.1 christos R_386_PC16 made on 2005-07-18. 1169 1.1 christos 1170 1.1 christos * elf64-x86-64.c (x86_64_elf_howto_table): Undo the overflow 1171 1.1 christos change for R_X86_64_PC16 made on 2005-07-18. 1172 1.1 christos 1173 1.1 christos 2005-08-03 Alan Modra <amodra (a] bigpond.net.au> 1174 1.1 christos 1175 1.1 christos * elf32-ppc.c (struct ppc_elf_link_hash_table): Remove hgot. Use 1176 1.1 christos elf.hgot throughout file. 1177 1.1 christos 1178 1.1 christos 2005-08-03 Alan Modra <amodra (a] bigpond.net.au> 1179 1.1 christos 1180 1.1 christos * elf32-ppc.c (ppc_elf_size_dynamic_sections): Correct value of 1181 1.1 christos _GLOBAL_OFFSET_TABLE_ for > 32k GOT. 1182 1.1 christos 1183 1.1 christos 2005-08-02 Andreas Schwab <schwab (a] suse.de> 1184 1.1 christos 1185 1.1 christos * elfxx-ia64.c (struct elfNN_ia64_allocate_data): Add only_got. 1186 1.1 christos (elfNN_ia64_relax_section): Reallocate .rela.got when .got has 1187 1.1 christos changed. 1188 1.1 christos (allocate_dynrel_entries): Look only at GOT relocations when 1189 1.1 christos only_got is true. 1190 1.1 christos (elfNN_ia64_size_dynamic_sections): Set only_got to false before 1191 1.1 christos calling allocate_dynrel_entries. 1192 1.1 christos 1193 1.1 christos 2005-08-02 Nick Clifton <nickc (a] redhat.com> 1194 1.1 christos 1195 1.1 christos PR 1147 1196 1.1 christos * elf32-arm.c (struct _arm_elf_section_data): Turn into a typedef 1197 1.1 christos and make the mapcount field unsigned. 1198 1.1 christos (struct section_list): New: Used to keep track of which sections 1199 1.1 christos have an _arm_elf_section_data structure. 1200 1.1 christos (record_section_with_arm_elf_section_data): New function. 1201 1.1 christos (get_arm_elf_section_data): New function. 1202 1.1 christos (unrecord_section_with_arm_elf_section_data): New function. 1203 1.1 christos (elf32_arm_output_symbol_hook): Use get_arm_elf_section_data. 1204 1.1 christos (elf32_arm_new_section_hook): Call 1205 1.1 christos record_section_with_arm_elf_section_data. 1206 1.1 christos (elf32_arm_write_section): Use get_arm_elf_section_data and 1207 1.1 christos unrecord_section_with_arm_elf_section_data. 1208 1.1 christos 1209 1.1 christos 2005-08-01 Richard Sandiford <richard (a] codesourcery.com> 1210 1.1 christos 1211 1.1 christos * elfxx-mips.c (mips_mach_extends_p): Treat MIPS64 as an extension 1212 1.1 christos of MIPS32 and MIPS64r2 as an extension of MIPS32r2. 1213 1.1 christos 1214 1.1 christos 2005-07-30 David Daney <ddaney (a] avtrex.com> 1215 1.1 christos 1216 1.1 christos * elflink.c (elf_gc_sweep): Set dynsymcount to correct value. 1217 1.1 christos 1218 1.1 christos 2005-07-29 David Daney <ddaney (a] avtrex.com> 1219 1.1 christos 1220 1.1 christos * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Ignore _gp_disp 1221 1.1 christos if it is in the *ABS* section. 1222 1.1 christos 1223 1.1 christos 2005-07-29 Paul Brook <paul (a] codesourcery.com> 1224 1.1 christos 1225 1.1 christos * reloc.c: Add BFD_RELOC_ARM_T32_ADD_PC12. 1226 1.1 christos * bfd-in2.h: Regenerate. 1227 1.1 christos * libbfd.h: Regenerate. 1228 1.1 christos 1229 1.1 christos 2005-07-29 Paul Brook <paul (a] codesourcery.com> 1230 1.1 christos 1231 1.1 christos * reloc.c (BFD_RELOC_ARM_T32_IMM12): Add. 1232 1.1 christos * bfd-in2.h: Regeenrate. 1233 1.1 christos * libbfd.h: Regenerate. 1234 1.1 christos 1235 1.1 christos 2005-07-29 Pavel Kankovsky <peak (a] argo.troja.mff.cuni.cz> 1236 1.1 christos 1237 1.1 christos * peXXigen.c (pe_print_edata): Compute the size of the export 1238 1.1 christos table from the size field in the DataDictionary and not the size 1239 1.1 christos of the section. Some linkers embed the export table inside a 1240 1.1 christos larger section. 1241 1.1 christos 1242 1.1 christos 2005-07-29 Alan Modra <amodra (a] bigpond.net.au> 1243 1.1 christos 1244 1.1 christos * elf-bfd.h (struct elf_backend_data): Add action_discarded. 1245 1.1 christos (enum action_discarded): Move from.. 1246 1.1 christos * elflink.c (enum action_discarded): ..here. 1247 1.1 christos (_bfd_elf_default_action_discarded): Rename from elf_action_discarded. 1248 1.1 christos Remove target specific section checks. 1249 1.1 christos (elf_link_input_bfd): Adjust. 1250 1.1 christos * elfxx-target.h (elf_backend_action_discarded): Define. 1251 1.1 christos (elfNN_bed): Init new field. 1252 1.1 christos * bfd-in.h (_bfd_elf_default_action_discarded): Declare. 1253 1.1 christos * bfd-in2.h: Regenerate. 1254 1.1 christos * elf-hppa.h (elf_hppa_action_discarded): New function. 1255 1.1 christos * elf32-hppa.c (elf_backend_action_discarded): Define. 1256 1.1 christos * elf64-hppa.c (elf_backend_action_discarded): Define. 1257 1.1 christos * elf32-ppc.c (ppc_elf_action_discarded): New function. 1258 1.1 christos (elf_backend_action_discarded): Define. 1259 1.1 christos 1260 1.1 christos 2005-07-27 Alan Modra <amodra (a] bigpond.net.au> 1261 1.1 christos 1262 1.1 christos * elflink.c (fix_syms): Handle symbols defined in input sections. 1263 1.1 christos 1264 1.1 christos 2005-07-27 Jan Beulich <jbeulich (a] novell.com> 1265 1.1 christos 1266 1.1 christos * elf64-x86-64.c (R_X86_64_standard, R_X86_64_vt_offset): New. 1267 1.1 christos (elf64_x86_64_info_to_howto): Use them. 1268 1.1 christos 1269 1.1 christos 2005-07-27 Alan Modra <amodra (a] bigpond.net.au> 1270 1.1 christos 1271 1.1 christos * elflink.c (_bfd_elf_merge_symbol): Skip weak redefinition 1272 1.1 christos regardless of strength of previous definition. 1273 1.1 christos 1274 1.1 christos 2005-07-26 Alan Modra <amodra (a] bigpond.net.au> 1275 1.1 christos 1276 1.1 christos * elflink.c (elf_gc_mark_dynamic_ref_symbol): Handle -shared. 1277 1.1 christos (bfd_elf_gc_sections): Allow -gc-sections when -shared. 1278 1.1 christos * elf32-ppc.c (ppc_elf_gc_sweep_hook): Correct for -shared. 1279 1.1 christos 1280 1.1 christos 2005-07-26 Alan Modra <amodra (a] bigpond.net.au> 1281 1.1 christos 1282 1.1 christos * elflink.c (elf_gc_sweep): Move gcc_except_table code.. 1283 1.1 christos (bfd_elf_gc_sections): ..to here. 1284 1.1 christos 1285 1.1 christos 2005-07-25 DJ Delorie <dj (a] redhat.com> 1286 1.1 christos 1287 1.1 christos * reloc.c: Remove unused M32C relocs, add BFD_RELOC_M32C_HI8. 1288 1.1 christos * libbfd.h: Regenerate. 1289 1.1 christos * bfd-in2.h: Regenerate. 1290 1.1 christos 1291 1.1 christos * elf32-m32c.c (m32c_elf_howto_table): Add R_M32C_8, R_M32C_LO16, 1292 1.1 christos R_M32C_HI8, R_M32C_HI16. 1293 1.1 christos (m32c_reloc_map): Likewise. 1294 1.1 christos (m32c_elf_relocate_section): Add R_M32C_HI8 and R_M32C_HI16. 1295 1.1 christos 1296 1.1 christos 2005-07-25 Jan Hubicka <jh (a] suse.cz> 1297 1.1 christos H.J. Lu <hongjiu.lu (a] intel.com> 1298 1.1 christos 1299 1.1 christos * elf-bfd.h (_bfd_elf_large_com_section): New. 1300 1.1 christos * elf.c (_bfd_elf_large_com_section): New. Defined. 1301 1.1 christos 1302 1.1 christos * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): New. 1303 1.1 christos (elf64_x86_64_elf_section_from_bfd_section): New. 1304 1.1 christos (elf64_x86_64_symbol_processing): New. 1305 1.1 christos (elf64_x86_64_common_definition): New. 1306 1.1 christos (elf64_x86_64_common_section_index): New. 1307 1.1 christos (elf64_x86_64_common_section): New. 1308 1.1 christos (elf64_x86_64_merge_symbol): New. 1309 1.1 christos (elf64_x86_64_additional_program_headers): New. 1310 1.1 christos (elf64_x86_64_special_sections): New. 1311 1.1 christos (elf_backend_section_from_bfd_section): New. Defined. 1312 1.1 christos (elf_backend_add_symbol_hook): Likewise. 1313 1.1 christos (elf_backend_common_section_index): Likewise. 1314 1.1 christos (elf_backend_common_section): Likewise. 1315 1.1 christos (elf_backend_common_definition): Likewise. 1316 1.1 christos (elf_backend_merge_symbol): Likewise. 1317 1.1 christos (elf_backend_special_sections): Likewise. 1318 1.1 christos (elf_backend_additional_program_headers): Likewise. 1319 1.1 christos 1320 1.1 christos 2005-07-25 H.J. Lu <hongjiu.lu (a] intel.com> 1321 1.1 christos 1322 1.1 christos * elf-bfd.h (elf_backend_data): Add common_definition, 1323 1.1 christos common_section_index, common_section, and merge_symbol. 1324 1.1 christos (_bfd_elf_common_definition): New. 1325 1.1 christos (_bfd_elf_common_section_index): New. 1326 1.1 christos (_bfd_elf_common_section): New. 1327 1.1 christos 1328 1.1 christos * elf.c (elf_fake_sections): Don't clear sh_flags. 1329 1.1 christos 1330 1.1 christos * elflink.c (_bfd_elf_merge_symbol): Call backend merge_symbol 1331 1.1 christos if it is available. 1332 1.1 christos (is_global_data_symbol_definition): Call backend 1333 1.1 christos common_definition instead of checking SHN_COMMON. 1334 1.1 christos (elf_link_add_object_symbols): Likewise. 1335 1.1 christos (elf_link_output_extsym): Call backend common_section_index 1336 1.1 christos for common section index. 1337 1.1 christos (_bfd_elf_common_definition): New. 1338 1.1 christos (_bfd_elf_common_section_index): New. 1339 1.1 christos (_bfd_elf_common_section): New. 1340 1.1 christos 1341 1.1 christos * elfxx-target.h (elf_backend_common_definition): New. 1342 1.1 christos (elf_backend_common_section_index): New. 1343 1.1 christos (elf_backend_common_section): New. 1344 1.1 christos (elf_backend_merge_symbol): New. 1345 1.1 christos (elfNN_bed): Initialize common_definition, common_section_index, 1346 1.1 christos common_section, and merge_symbol. 1347 1.1 christos 1348 1.1 christos * section.c (BFD_FAKE_SECTION): New. 1349 1.1 christos (STD_SECTION): Use it. 1350 1.1 christos * bfd-in2.h: Regenerated. 1351 1.1 christos 1352 1.1 christos 2005-07-23 Olaf Hering <olh (a] suse.de> 1353 1.1 christos 1354 1.1 christos * elflink.c (elf_link_input_bfd): Add '\n' for linker einfo 1355 1.1 christos callback. 1356 1.1 christos 1357 1.1 christos 2005-07-21 Ralf Corsepius <ralf.corsepius (a] rtems.org> 1358 1.1 christos 1359 1.1 christos * config.bfd: Remove i[3-7]86-*-rtemself*. 1360 1.1 christos Remove sparc-*-rtemself*. 1361 1.1 christos 1362 1.1 christos 2005-07-22 Kazuhiro Inaoka <inaoka.kazuhiro (a] renesas.com> 1363 1.1 christos 1364 1.1 christos * elf32-m32r.c (m32r_elf_check_relocs): Fix pc count for 1365 1.1 christos R_M32R_REL32. 1366 1.1 christos 1367 1.1 christos 2005-07-21 Ben Elliston <bje (a] gnu.org> 1368 1.1 christos 1369 1.1 christos * Makefile.am (BFD32_BACKENDS): Remove cf-m68klynx.lo. 1370 1.1 christos (BFD32_BACKENDS): Likewise, remove m68klynx.lo. 1371 1.1 christos (BFD32_BACKENDS_CFILES): Remove cf-m68klynx.c, m68klynx.c. 1372 1.1 christos (cf-m68klynx.lo, m68klynx.lo): Remove targets. 1373 1.1 christos * Makefile.in: Regenerate. 1374 1.1 christos * cf-m68klynx.c: Remove. 1375 1.1 christos * m68klynx.c: Likewise. 1376 1.1 christos * configure.in (m68klynx_aout_vec): Remove vector. 1377 1.1 christos (m68klynx_coff_vec): Likewise. 1378 1.1 christos * configure: Regenerate. 1379 1.1 christos * targets.c (m68klynx_aout_vec): Remove extern. 1380 1.1 christos (m68klynx_coff_vec): Likewise. 1381 1.1 christos (_bfd_target_vector): Remove m68klynx_{aout,coff}_vec. 1382 1.1 christos * po/SRC-POTFILES.in: Remove cf-m68klynx.c, m68klynx.c. 1383 1.1 christos 1384 1.1 christos 2005-07-20 Kazuhiro Inaoka <inaoka.kazuhiro (a] renesas.com> 1385 1.1 christos 1386 1.1 christos * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_REL32. 1387 1.1 christos (m32r_reloc_map): Likewise. 1388 1.1 christos (m32r_elf_relocate_section): Likewise. 1389 1.1 christos (m32r_elf_gc_sweep_hook): Likewise. 1390 1.1 christos (m32r_elf_check_relocs): Likewise. 1391 1.1 christos 1392 1.1 christos 2005-07-18 Nick Clifton <nickc (a] redhat.com> 1393 1.1 christos 1394 1.1 christos * reloc.c: Add M32C and MS1 relocs. 1395 1.1 christos * bfd-in2.h: Regenerate. 1396 1.1 christos * libbfd.h: Regenerate. 1397 1.1 christos 1398 1.1 christos 2005-07-18 Nick Clifton <nickc (a] redhat.com> 1399 1.1 christos 1400 1.1 christos * config.bfd: Move m32c entry to correct location. 1401 1.1 christos * archures.c: Likewise. 1402 1.1 christos * configure.in: Likewise. 1403 1.1 christos * configure: Regenerate. 1404 1.1 christos * targets.c: Move ms1 vector to correct location. 1405 1.1 christos 1406 1.1 christos 2005-07-18 Jan Beulich <jbeulich (a] novell.com> 1407 1.1 christos 1408 1.1 christos * elf32-i386.c (elf_howto_table): Adjust overflow complaint handler 1409 1.1 christos for R_386_PC16. 1410 1.1 christos * elf64-x86-64.c (x86_64_elf_howto_table): Adjust overflow complaint 1411 1.1 christos handler for R_X86_64_PC16, R_X86_64_8, and R_X86_64_DTPOFF. 1412 1.1 christos 1413 1.1 christos 2005-07-16 Eric Botcazou <ebotcazou (a] libertysurf.fr> 1414 1.1 christos 1415 1.1 christos PR ld/1021 1416 1.1 christos PR ld/1031 1417 1.1 christos * elflink.c (elf_link_add_object_symbols): Also append the version 1418 1.1 christos name to non-hidden absolute symbols that are functions. 1419 1.1 christos 1420 1.1 christos 2005-07-16 Alan Modra <amodra (a] bigpond.net.au> 1421 1.1 christos 1422 1.1 christos * elf32-ppc.c (ppc_elf_set_sdata_syms): Return void. Remove hack 1423 1.1 christos for zero size sections. Don't set .sbss syms here. 1424 1.1 christos * elf32-ppc.h (ppc_elf_set_sdata_syms): Adjust prototype. 1425 1.1 christos 1426 1.1 christos 2005-07-16 Alan Modra <amodra (a] bigpond.net.au> 1427 1.1 christos 1428 1.1 christos * Makefile.am: Run "make dep-am". 1429 1.1 christos * Makefile.in: Regenerate. 1430 1.1 christos 1431 1.1 christos 2005-07-15 Bob Wilson <bob.wilson (a] acm.org> 1432 1.1 christos 1433 1.1 christos * elf32-xtensa.c (vsprint_msg): Add prototype. 1434 1.1 christos (build_encoding_error_message): Delete. Code moved into.... 1435 1.1 christos (elf_xtensa_do_reloc): ....here, and changed to give better 1436 1.1 christos error messages for out of range literals. 1437 1.1 christos 1438 1.1 christos 2005-07-15 Alan Modra <amodra (a] bigpond.net.au> 1439 1.1 christos 1440 1.1 christos * elflink.c (bfd_elf_record_link_assignment): Remove output_bfd param. 1441 1.1 christos (_bfd_elf_provide_symbol): Allow redefinition of weak syms and those 1442 1.1 christos defined in output sections. Call bfd_elf_record_link_assignment. 1443 1.1 christos * bfd-in.h (bfd_elf_record_link_assignment): Update prototype. 1444 1.1 christos * bfd-in2.h: Regenerate. 1445 1.1 christos 1446 1.1 christos 2005-07-14 Jim Blandy <jimb (a] redhat.com> 1447 1.1 christos 1448 1.1 christos Add support for m32c-*-elf (Renesas m32c and m16c). 1449 1.1 christos * Makefile.am (ALL_MACHINES): Add cpu-m32c.lo. 1450 1.1 christos (ALL_MACHINES_CFILES): Add cpu-m32c.c. 1451 1.1 christos (BFD32_BACKENDS): Add elf32-m32c.lo. 1452 1.1 christos (BFD32_BACKENDS_CFILES): Add elf32-m32c.c. 1453 1.1 christos (cpu-m32c.lo, elf32-m32c.lo): New rules, generated by 'make dep-am'. 1454 1.1 christos * Makefile.in: Regenerated. 1455 1.1 christos * archures.c (bfd_arch_m32c, bfd_mach_m16c, bfd_mach_m32c): New 1456 1.1 christos arch and mach codes. 1457 1.1 christos (bfd_m32c_arch): New arch info object. 1458 1.1 christos (bfd_archures_list): List bfd_m32c_arch. 1459 1.1 christos * bfd-in2.h: Regenerated. 1460 1.1 christos * config.bfd: Add case for the m32c. 1461 1.1 christos * configure.in: Add case for the m32c. 1462 1.1 christos * configure: Regenerated. 1463 1.1 christos * cpu-m32c.c, elf32-m32c.c: New files. 1464 1.1 christos * libbfd.h: Regenerated. 1465 1.1 christos * targets.c (bfd_elf32_m32c_vec): Declare. 1466 1.1 christos (_bfd_target_vector): List bfd_elf32_m32c_vec. 1467 1.1 christos 1468 1.1 christos 2005-07-14 Alan Modra <amodra (a] bigpond.net.au> 1469 1.1 christos 1470 1.1 christos * bfd-in.h (_bfd_elf_fix_excluded_sec_syms): Declare. 1471 1.1 christos (_bfd_elf_provide_section_bound_symbols): Remove param name. 1472 1.1 christos Formatting. 1473 1.1 christos * bfd-in2.h: Regenerate. 1474 1.1 christos * elflink.c (bfd_elf_gc_sections): Don't call generic function. 1475 1.1 christos (_bfd_elf_provide_symbol): Formatting. 1476 1.1 christos (_bfd_elf_provide_section_bound_symbols): Remove all hacks, just 1477 1.1 christos create section relative syms. 1478 1.1 christos (fix_syms, _bfd_elf_fix_excluded_sec_syms): New functions. 1479 1.1 christos * elf32-ppc.c (ppc_elf_set_sdata_syms): Use 1480 1.1 christos _bfd_elf_provide_section_bound_symbols. 1481 1.1 christos * reloc.c (bfd_mark_used_section): Delete. 1482 1.1 christos (bfd_generic_gc_sections): Don't call the above. 1483 1.1 christos 1484 1.1 christos 2005-07-14 Paul Woegerer <paul.woegerer (a] nsc.com> 1485 1.1 christos 1486 1.1 christos PR 1063 1487 1.1 christos * cache.c (bfd_last_cache): Initialise to NULL. 1488 1.1 christos 1489 1.1 christos 2005-07-14 Daniel Marques <marques (a] cs.cornell.edu> 1490 1.1 christos Nick Clifton <nickc (a] redhat.com> 1491 1.1 christos 1492 1.1 christos * coff-alpha.c (alpha_ecoff_bad_format_hook): Detect compressed 1493 1.1 christos Alpha binaries and issue a helpful error message. 1494 1.1 christos (alpha_ecoff_swap_reloc_out): Increase maximum allowed internal 1495 1.1 christos symbol index to 15 to allow for binaries produced by DEC 1496 1.1 christos compilers. 1497 1.1 christos 1498 1.1 christos 2005-07-13 Steve Ellcey <sje (a] cup.hp.com> 1499 1.1 christos 1500 1.1 christos * bfd.m4 (BFD_NEED_DECLARATION): Remove. 1501 1.1 christos 1502 1.1 christos 2005-07-12 Alan Modra <amodra (a] bigpond.net.au> 1503 1.1 christos 1504 1.1 christos * elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub 1505 1.1 christos when !can_plt_call. 1506 1.1 christos 1507 1.1 christos 2005-07-12 Alan Modra <amodra (a] bigpond.net.au> 1508 1.1 christos 1509 1.1 christos * elf32-xtensa.c (bfd_elf_xtensa_reloc): Warning fix. 1510 1.1 christos 1511 1.1 christos 2005-07-12 Alan Modra <amodra (a] bigpond.net.au> 1512 1.1 christos 1513 1.1 christos * elf32-ppc.c (ppc_elf_set_sdata_syms): Correct __sbss_start value. 1514 1.1 christos 1515 1.1 christos 2005-07-11 H.J. Lu <hongjiu.lu (a] intel.com> 1516 1.1 christos 1517 1.1 christos * elflink.c (_bfd_elf_symbol_refs_local_p): Revert the last 1518 1.1 christos change. 1519 1.1 christos 1520 1.1 christos 2005-07-08 Paul Koning <pkoning (a] equallogic.com> 1521 1.1 christos 1522 1.1 christos * dwarf2.c (read_address): Check sign_extend_vma to handle targets 1523 1.1 christos where addresses are sign extended. 1524 1.1 christos 1525 1.1 christos 2005-07-08 Ralf Corsepius <ralf.corsepius (a] rtems.org> 1526 1.1 christos 1527 1.1 christos * config.bfd: Mark i960-*-rtems*, or32-*-rtems* as obsolete. 1528 1.1 christos Mark a29k-*rtems*, hppa*-*-rtems*, *-go32-rtems*, 1529 1.1 christos i[3-7]86*-*-rtemscoff*, mips*el-*-rtems*, powerpcle-*-rtems*, 1530 1.1 christos sparc*-*-rtemsaout* as removed 1531 1.1 christos 1532 1.1 christos 2005-07-08 Alan Modra <amodra (a] bigpond.net.au> 1533 1.1 christos 1534 1.1 christos * elf-hppa.h (elf_hppa_final_link): Use gp val of zero when none 1535 1.1 christos of the usual sections are found. 1536 1.1 christos * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Tidy. 1537 1.1 christos Strip .dynbss if it is zero size. 1538 1.1 christos * elf32-arm.c (elf32_arm_size_dynamic_sections): Likewise. 1539 1.1 christos * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise. 1540 1.1 christos * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise. 1541 1.1 christos * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise, and 1542 1.1 christos .dynsbss. 1543 1.1 christos (i370_elf_finish_dynamic_sections): Don't attempt to write .got 1544 1.1 christos when it is zero size. 1545 1.1 christos * elf32-i386.c (elf_i386_size_dynamic_sections): Correct handling 1546 1.1 christos of .dynbss and zero size sections. 1547 1.1 christos * elf32-m32r.c (m32r_elf_size_dynamic_sections): Strip .dynbss if 1548 1.1 christos it is zero size. 1549 1.1 christos * elf32-m68k.c (elf_m68k_size_dynamic_sections): Tidy. Strip 1550 1.1 christos .dynbss if zero size. 1551 1.1 christos * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise, .dynsbss 1552 1.1 christos too. 1553 1.1 christos * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise. 1554 1.1 christos * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise. 1555 1.1 christos * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise. 1556 1.1 christos * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Tidy. Strip 1557 1.1 christos .plt.* and .got.plt.* if zero size. 1558 1.1 christos * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Tidy. Strip 1559 1.1 christos .got* and .dynbss if zero size. 1560 1.1 christos * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Tidy. Strip 1561 1.1 christos * elf64-ppc.c (create_linkage_sections): Create branch lookup table 1562 1.1 christos in .data.rel.ro.brlt or .rodata.brlt, and similarly for associated 1563 1.1 christos reloc section. 1564 1.1 christos (create_got_section): Always create new .got and .rela.got sections. 1565 1.1 christos (ppc64_elf_size_dynamic_sections): Tidy. Strip .dynbss if zero size. 1566 1.1 christos * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise. 1567 1.1 christos * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise. 1568 1.1 christos * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Handle 1569 1.1 christos dynamic bss sections correctly. 1570 1.1 christos * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Tidy. 1571 1.1 christos * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Tidy. Strip 1572 1.1 christos .dynbss if zero size. 1573 1.1 christos 1574 1.1 christos 2005-07-08 Ben Elliston <bje (a] au.ibm.com> 1575 1.1 christos 1576 1.1 christos * elf32-xtensa.c: Include <stdarg.h> unconditionally, not only 1577 1.1 christos when ANSI_PROTOTYPES is defined. Remove #ifdef logic. 1578 1.1 christos 1579 1.1 christos 2005-07-07 H.J. Lu <hongjiu.lu (a] intel.com> 1580 1.1 christos 1581 1.1 christos * elf-bfd.h (elf_backend_data): Add special_sections. 1582 1.1 christos 1583 1.1 christos * elf.c (_bfd_elf_get_sec_type_attr): Check special_sections 1584 1.1 christos first. 1585 1.1 christos 1586 1.1 christos * elf32-arm.c (elf_backend_get_sec_type_attr): Removed. 1587 1.1 christos (elf_backend_special_sections): New. Defined. 1588 1.1 christos * elf32-m32r.c: Likewise. 1589 1.1 christos * elf32-m68hc11.c: Likewise. 1590 1.1 christos * elf32-m68hc12.c: Likewise. 1591 1.1 christos * elf32-mcore.c: Likewise. 1592 1.1 christos * elf32-sh64.c: Likewise. 1593 1.1 christos * elf32-v850.c: Likewise. 1594 1.1 christos * elf32-xtensa.c: Likewise. 1595 1.1 christos * elf64-alpha.c: Likewise. 1596 1.1 christos * elf64-hppa.c: Likewise. 1597 1.1 christos * elf64-ppc.c: Likewise. 1598 1.1 christos * elf64-sh64.c: Likewise. 1599 1.1 christos * elfxx-ia64.c: Likewise. 1600 1.1 christos * elfxx-mips.c: Likewise. 1601 1.1 christos * elfxx-mips.h: Likewise. 1602 1.1 christos 1603 1.1 christos * elfxx-target.h (elf_backend_special_sections): New. 1604 1.1 christos (elfNN_bed): Initialize special_sections. 1605 1.1 christos 1606 1.1 christos 2005-07-07 Bob Wilson <bob.wilson (a] acm.org> 1607 1.1 christos 1608 1.1 christos * xtensa-modules.c: Update tables with Xtensa MMU features. 1609 1.1 christos 1610 1.1 christos 2005-07-07 Kaveh R. Ghazi <ghazi (a] caip.rutgers.edu> 1611 1.1 christos 1612 1.1 christos * elf32-xtensa.c (vsprint_msg): Add format attribute. Fix 1613 1.1 christos format bugs. 1614 1.1 christos * vms.h (_bfd_vms_debug): Add format attribute. 1615 1.1 christos (_bfd_vms_debug, _bfd_hexdump): Fix typos. 1616 1.1 christos 1617 1.1 christos 2005-07-07 H.J. Lu <hongjiu.lu (a] intel.com> 1618 1.1 christos 1619 1.1 christos PR 975 1620 1.1 christos * elflink.c (_bfd_elf_symbol_refs_local_p): Only undefined 1621 1.1 christos symbol with default visibility is local. 1622 1.1 christos 1623 1.1 christos 2005-07-07 Ben Elliston <bje (a] gnu.org> 1624 1.1 christos 1625 1.1 christos * config.bfd: Mark m68*-*-rtemscoff as obsolete. 1626 1.1 christos 1627 1.1 christos 2005-07-06 H.J. Lu <hongjiu.lu (a] intel.com> 1628 1.1 christos 1629 1.1 christos * dwarf2.c (varinfo): Add addr. 1630 1.1 christos (lookup_symbol_in_variable_table): Also check addr. 1631 1.1 christos (scan_unit_for_symbols): Set addr for variable. 1632 1.1 christos (comp_unit_find_line): Updated. 1633 1.1 christos 1634 1.1 christos 2005-07-06 Nick Clifton <nickc (a] redhat.com> 1635 1.1 christos 1636 1.1 christos * coff-alpha.c (alpha_adjust_reloc_in): Issue an informative error 1637 1.1 christos message if an unknown reloc is encountered. 1638 1.1 christos (alpha_relocate_section): Likewise. 1639 1.1 christos 1640 1.1 christos * ecoff.c (_bfd_ecoff_write_object_contents): Cope with a reloc 1641 1.1 christos with a missing howto field. 1642 1.1 christos 1643 1.1 christos 2005-07-06 Alan Modra <amodra (a] bigpond.net.au> 1644 1.1 christos 1645 1.1 christos * po/SRC-POTFILES.in: Add cpu-ms1.c, elf32-ms1.c, elf-vxworks.c, 1646 1.1 christos elfxx-sparc.c. 1647 1.1 christos 1648 1.1 christos 2005-07-05 Paul Brook <paul (a] codesourcery.com> 1649 1.1 christos 1650 1.1 christos * elf32-ppc.c (ppc_elf_vxworks_special_sections): Remove. 1651 1.1 christos (ppc_elf_vxworks_get_sec_type_attr): New function. 1652 1.1 christos (elf_backend_special_sections): Remove vxwords definition. 1653 1.1 christos (elf_backend_get_sec_type_attr): Define for vxworks. 1654 1.1 christos 1655 1.1 christos 2005-07-05 Nick Clifton <nickc (a] redhat.com> 1656 1.1 christos 1657 1.1 christos * elf64-ppc.c (ppc64_elf_info_to_howto): Fix typo. 1658 1.1 christos 1659 1.1 christos 2005-07-05 Paul Brook <paul (a] codesourcery.com> 1660 1.1 christos 1661 1.1 christos * config.bfd: Add separate case for ppc-vxworks. 1662 1.1 christos * configure: Regenerate. 1663 1.1 christos * configure.in: Include elf-vxworks.lo on ppc targets. 1664 1.1 christos * elf-vxworks.c (elf_vxworks_final_write_processing): Handle 1665 1.1 christos .rela.plt.unloaded. 1666 1.1 christos * elf32-ppc.c: Add VxWorks target vec. Include elf-vxworks.h. 1667 1.1 christos (PLT_ENTRY_SIZE, PLT_INITIAL_ENTRY_SIZE, PLT_SLOT_SIZE): Remove. 1668 1.1 christos (VXWORKS_PLT_ENTRY_SIZE, ppc_elf_vxworks_plt_entry, 1669 1.1 christos ppc_elf_vxworks_pic_plt_entry, VXWORKS_PLT_INITIAL_ENTRY_SIZE, 1670 1.1 christos ppc_elf_vxworks_plt0_entry, ppc_elf_vxworks_pic_plt0_entry, 1671 1.1 christos VXWORKS_PLT_NON_JMP_SLOT_RELOCS, VXWORKS_PLTRESOLVE_RELOCS, 1672 1.1 christos VXWORKS_PLTRESOLVE_RELOCS_SHLIB): New. 1673 1.1 christos (ppc_elf_link_hash_table): Add srelplt2, sgotplt, hgot, hplt, 1674 1.1 christos is_vxworks, plt_entry_size, plt_slot_size, plt_initial_entry_size. 1675 1.1 christos (ppc_elf_link_hash_table_create): Initialize hadtab plt fields. 1676 1.1 christos (ppc_elf_create_got): Create .got.plt for VxWorks. 1677 1.1 christos (ppc_elf_create_dynamic_sections): Create unloaded plt relocation 1678 1.1 christos section for VxWorks. 1679 1.1 christos (ppc_elf_select_plt_layout): Handle VxWorks plt format. 1680 1.1 christos (allocate_got): VxWorks does not need a got header. 1681 1.1 christos (allocate_dynrelocs): Handle VxWorks plt format. 1682 1.1 christos (ppc_elf_size_dynamic_sections): Save _G_O_T_ and _P_L_T_ symbols for 1683 1.1 christos VxWorks. Handle VxWorks plt/got. 1684 1.1 christos (ppc_elf_finish_dynamic_sections): Fill in VxWorks plt. 1685 1.1 christos (ppc_elf_vxworks_special_sections): New. 1686 1.1 christos (ppc_elf_vxworks_link_hash_table_create, 1687 1.1 christos ppc_elf_vxworks_add_symbol_hook, 1688 1.1 christos elf_i386_vxworks_link_output_symbol_hook, 1689 1.1 christos ppc_elf_vxworks_final_write_processing): New functions. 1690 1.1 christos * targets.c (bfd_elf32_powerpc_vxworks_vec): Declare. 1691 1.1 christos (_bfd_target_vector): Use it. 1692 1.1 christos 1693 1.1 christos 2005-07-05 Jakub Jelinek <jakub (a] redhat.com> 1694 1.1 christos 1695 1.1 christos * libbfd-in.h (struct artdata): Add extended_names_size field. 1696 1.1 christos * libbfd.h: Rebuilt. 1697 1.1 christos * coff-rs600.c (_bfd_xcoff_archive_p): Don't clear fields in freshly 1698 1.1 christos allocated object by bfd_zalloc. 1699 1.1 christos * coff64-rs6000.c (xcoff64_archive_p): Likewise. 1700 1.1 christos * ecoff.c (_bfd_ecoff_archive_p): Likewise. 1701 1.1 christos * archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p): Likewise. 1702 1.1 christos (get_extended_arelt_filename): Fail if index is bigger or equal to 1703 1.1 christos extended_names_size. 1704 1.1 christos (_bfd_generic_read_ar_hdr_mag): Don't set bfd_error_malformed_archive, 1705 1.1 christos get_extended_arelt_filename already did that. 1706 1.1 christos (_bfd_slurp_extended_name_table): Initialize extended_names_size field. 1707 1.1 christos Allocate one extra byte and clear it, in case extended names table 1708 1.1 christos is not terminated. 1709 1.1 christos 1710 1.1 christos * libbfd-in.h (bfd_malloc2, bfd_realloc2, bfd_zmalloc2, bfd_alloc2, 1711 1.1 christos bfd_zalloc2): New prototypes. 1712 1.1 christos * bfd-in.h (HALF_BFD_SIZE_TYPE): Define. 1713 1.1 christos * libbfd.c (bfd_malloc2, bfd_realloc2, bfd_zmalloc2): New functions. 1714 1.1 christos * opncls.c (bfd_alloc2, bfd_zalloc2): New functions. 1715 1.1 christos * elf.c (bfd_elf_get_elf_syms, setup_group, assign_section_numbers, 1716 1.1 christos elf_map_symbols, map_sections_to_segments, 1717 1.1 christos assign_file_positions_for_segments, copy_private_bfd_data, 1718 1.1 christos swap_out_syms, _bfd_elf_slurp_version_tables): Use bfd_*alloc2 1719 1.1 christos where appropriate. 1720 1.1 christos * bfd-in2.h: Rebuilt. 1721 1.1 christos * libbfd.h: Rebuilt. 1722 1.1 christos 1723 1.1 christos * elf.c (_bfd_elf_print_private_bfd_data): Don't crash on bogus 1724 1.1 christos verdef or verneed section. 1725 1.1 christos (_bfd_elf_slurp_version_tables): Handle corrupt verdef and/or 1726 1.1 christos verneed sections gracefully. 1727 1.1 christos * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto_ptr): Don't crash on 1728 1.1 christos bogus relocation values. 1729 1.1 christos * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise. 1730 1.1 christos * elf64-s390.c (elf_s390_info_to_howto): Likewise. 1731 1.1 christos * elf32-s390.c (elf_s390_info_to_howto): Likewise. 1732 1.1 christos * elf64-x86-64.c (elf64_x86_64_info_to_howto): Likewise. 1733 1.1 christos * elfxx-ia64.c (lookup_howto): Likewise. 1734 1.1 christos 1735 1.1 christos * elf.c (bfd_elf_get_str_section): Allocate an extra byte after 1736 1.1 christos the end of strtab and clear it. 1737 1.1 christos (elf_read): Remove. 1738 1.1 christos 1739 1.1 christos 2005-07-05 Nick Clifton <nickc (a] redhat.com> 1740 1.1 christos 1741 1.1 christos * po/vi.po: New Vietnamese translation. 1742 1.1 christos * configure.in (ALL_LINGUAS): Add vi. 1743 1.1 christos * configure: Regenerate. 1744 1.1 christos 1745 1.1 christos 2005-07-05 Peter S. Mazinger <ps.m (a] gmx.net> 1746 1.1 christos 1747 1.1 christos * elf32-arm.c (elf32_arm_size_dynamic_sections): Fix a typo and 1748 1.1 christos touchup logic like i386/ppc. 1749 1.1 christos 1750 1.1 christos 2005-07-05 Alan Modra <amodra (a] bigpond.net.au> 1751 1.1 christos 1752 1.1 christos * elf.c (special_sections): Move const qualifier. 1753 1.1 christos (special_sections_b..special_sections_t): Likewise. 1754 1.1 christos * elf32-arm.c (elf32_arm_symbian_get_sec_type_attr): Remove duplicate 1755 1.1 christos const. 1756 1.1 christos (elf32_arm_symbian_special_sections): Move const qualifier. 1757 1.1 christos * elf32-m32r.c: Similarly. 1758 1.1 christos * elf32-m68hc11.c: Similarly. 1759 1.1 christos * elf32-m68hc12.c: Similarly. 1760 1.1 christos * elf32-mcore.c: Similarly. 1761 1.1 christos * elf32-ppc.c: Similarly. 1762 1.1 christos * elf32-sh64.c: Similarly. 1763 1.1 christos * elf32-v850.c: Similarly. 1764 1.1 christos * elf32-xtensa.c: Similarly. 1765 1.1 christos * elf64-alpha.c: Similarly. 1766 1.1 christos * elf64-hppa.c: Similarly. 1767 1.1 christos * elf64-ppc.c: Similarly. 1768 1.1 christos * elf64-sh64.c: Similarly. 1769 1.1 christos * elfxx-ia64.c: Similarly. 1770 1.1 christos * elfxx-mips.c: Similarly. 1771 1.1 christos 1772 1.1 christos 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro (a] renesas.com> 1773 1.1 christos 1774 1.1 christos * elf32-m32r.c (m32r_elf_size_dynamic_sections): Use 1775 1.1 christos info->executable instead of !info->shared where appropriate. 1776 1.1 christos 1777 1.1 christos 2005-07-04 Alan Modra <amodra (a] bigpond.net.au> 1778 1.1 christos 1779 1.1 christos PR 1042 1780 1.1 christos * elf.c (assign_file_positions_for_segments): Remove excluded 1781 1.1 christos sections from the segment map. 1782 1.1 christos 1783 1.1 christos 2005-07-04 Alan Modra <amodra (a] bigpond.net.au> 1784 1.1 christos 1785 1.1 christos PR 1004 1786 1.1 christos * elf-bfd.h (struct elf_backend_data): Add get_sec_type_attr. Delete 1787 1.1 christos special_sections. 1788 1.1 christos (_bfd_elf_get_special_section): Declare. 1789 1.1 christos (bfd_elf_special_section): Update prototype. 1790 1.1 christos * elf.c (special_sections): Remove unused outer entries. 1791 1.1 christos (get_special_section): Delete. 1792 1.1 christos (_bfd_elf_get_special_section): New function. 1793 1.1 christos (_bfd_elf_get_sec_type_attr): Replace "name" arg with "sec". Update 1794 1.1 christos special_sections indexing. 1795 1.1 christos (_bfd_elf_new_section_hook): Call backend get_sec_type_attr. 1796 1.1 christos * elf32-arm.c (symbian_special_sections_d): Delete. 1797 1.1 christos (symbian_special_sections_g, symbian_special_sections_h): Delete. 1798 1.1 christos (symbian_special_sections_i, symbian_special_sections_f): Delete. 1799 1.1 christos (symbian_special_sections_p): Delete. 1800 1.1 christos (elf32_arm_symbian_special_sections): Merge above to here. 1801 1.1 christos (elf32_arm_symbian_get_sec_type_attr): New function. 1802 1.1 christos (elf_backend_special_sections): Don't define. 1803 1.1 christos (elf_backend_get_sec_type_attr): Define. 1804 1.1 christos * elf32-m32r.c: Similarly to elf32-arm.c. 1805 1.1 christos * elf32-m68hc11.c: Likewise. 1806 1.1 christos * elf32-m68hc12.c: Likewise. 1807 1.1 christos * elf32-mcore.c: Likewise. 1808 1.1 christos * elf32-sh64.c: Likewise. 1809 1.1 christos * elf32-v850.c: Likewise. 1810 1.1 christos * elf32-xtensa.c: Likewise. 1811 1.1 christos * elf64-alpha.c: Likewise. 1812 1.1 christos * elf64-hppa.c: Likewise. 1813 1.1 christos * elf64-ppc.c: Likewise. 1814 1.1 christos * elf64-sh64.c: Likewise. 1815 1.1 christos * elfxx-ia64.c: Likewise. 1816 1.1 christos * elfxx-mips.c: Likewise. 1817 1.1 christos * elf32-ppc.c: Likewise. 1818 1.1 christos (bfd_elf_special_section ppc_alt_plt): New. Use it if .plt loadable. 1819 1.1 christos * elfxx-mips.h (_bfd_mips_elf_get_sec_type_attr): Declare. 1820 1.1 christos (_bfd_mips_elf_special_sections, elf_backend_special_sections): Delete. 1821 1.1 christos (elf_backend_get_sec_type_attr): Define. 1822 1.1 christos * elfxx-target.h (elf_backend_get_sec_type_attr): Define. 1823 1.1 christos (elf_backend_special_sections): Don't define. 1824 1.1 christos (elfNN_bed): Update. 1825 1.1 christos 1826 1.1 christos 2005-07-01 Nick Clifton <nickc (a] redhat.com> 1827 1.1 christos 1828 1.1 christos * cpu-d10v.c: Update to ISO C90 style function declarations and 1829 1.1 christos fix formatting. 1830 1.1 christos * cpu-d30v.c: Likewsie. 1831 1.1 christos * cpu-i370.c: Likewsie. 1832 1.1 christos * cpu-xstormy16.c: Likewsie. 1833 1.1 christos * elf32-arc.c: Likewsie. 1834 1.1 christos * elf32-d10v.c: Likewsie. 1835 1.1 christos * elf32-d30v.c: Likewsie. 1836 1.1 christos * elf32-dlx.c: Likewsie. 1837 1.1 christos * elf32-i370.c: Likewsie. 1838 1.1 christos * elf32-i960.c: Likewsie. 1839 1.1 christos * elf32-ip2k.c: Likewsie. 1840 1.1 christos * elf32-m32r.c: Likewsie. 1841 1.1 christos * elf32-mcore.c: Likewsie. 1842 1.1 christos * elf32-openrisc.c: Likewsie. 1843 1.1 christos * elf32-or32.c: Likewsie. 1844 1.1 christos * elf32-pj.c: Likewsie. 1845 1.1 christos * elf32-v850.c: Likewsie. 1846 1.1 christos * elf32-xstormy16.c: Likewsie. 1847 1.1 christos 1848 1.1 christos 2005-07-01 Alan Modra <amodra (a] bigpond.net.au> 1849 1.1 christos 1850 1.1 christos * elf64-alpha.c (elf64_alpha_create_got_section): Always create 1851 1.1 christos a new .got section. 1852 1.1 christos (elf64_alpha_create_dynamic_sections): Always make new sections 1853 1.1 christos by using bfd_make_section_anyway_with_flags. Check that .got not 1854 1.1 christos already created. 1855 1.1 christos (elf64_alpha_check_relocs): Delete "got_created". Use tdata->gotobj 1856 1.1 christos instead. 1857 1.1 christos 1858 1.1 christos 2005-06-30 Alan Modra <amodra (a] bigpond.net.au> 1859 1.1 christos 1860 1.1 christos * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Ignore dynamic 1861 1.1 christos _SDA_BASE_ and _SDA2_BASE_ symbols. 1862 1.1 christos * elflink.c (_bfd_elf_provide_symbol): Correct comment. Define 1863 1.1 christos sym if not def_regular. 1864 1.1 christos (_bfd_elf_provide_section_bound_symbols): Similarly. 1865 1.1 christos 1866 1.1 christos 2005-06-30 Ben Elliston <bje (a] gnu.org> 1867 1.1 christos 1868 1.1 christos * config.bfd: Mark as obsolete: 1869 1.1 christos m68*-apollo-* 1870 1.1 christos m68*-apple-aux* 1871 1.1 christos m68*-bull-sysv* 1872 1.1 christos 1873 1.1 christos 2005-06-29 Alan Modra <amodra (a] bigpond.net.au> 1874 1.1 christos 1875 1.1 christos * elflink.c (_bfd_elf_gc_mark): Mark sections referenced by 1876 1.1 christos .eh_frame specially.. 1877 1.1 christos (bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame. 1878 1.1 christos Don't recheck sections we have already marked. 1879 1.1 christos (elf_gc_sweep): Keep non-code sections referenced from .eh_frame. 1880 1.1 christos * section.c (struct bfd_section): Add gc_mark_from_eh. 1881 1.1 christos (STD_SECTION): Adjust. 1882 1.1 christos * ecoff.c (bfd_debug_section): Adjust. 1883 1.1 christos * bfd-in2.h: Regenerate. 1884 1.1 christos 1885 1.1 christos 2005-06-29 Alan Modra <amodra (a] bigpond.net.au> 1886 1.1 christos 1887 1.1 christos * elflink.c (elf_gc_sweep): Do not refcount on sections that have 1888 1.1 christos not been processed by check_relocs. 1889 1.1 christos 1890 1.1 christos 2005-06-29 Paul Brook <paul (a] codesourcery.com> 1891 1.1 christos 1892 1.1 christos * bfd-in.h (_bfd_elf_provide_symbol): Update prototype. 1893 1.1 christos * bfd-in2.h: Regenerate. 1894 1.1 christos * elf32-ppc.c (ppc_elf_set_sdata_syms): Make sdata symbols section 1895 1.1 christos relative. 1896 1.1 christos * elflink.c (bfd_elf_set_symbol): Add section argument. 1897 1.1 christos (_bfd_elf_provide_symbol): Ditto. 1898 1.1 christos (_bfd_elf_provide_section_bound_symbols): Pass NULL section argument. 1899 1.1 christos 1900 1.1 christos 2005-06-27 Carlos O'Donell <carlos (a] systemhalted.org> 1901 1.1 christos 1902 1.1 christos * elf32-hppa.c (struct elf32_hppa_stub_hash_entry): 1903 1.1 christos Use bh_root, and hh. 1904 1.1 christos (struct elf32_hppa_link_hash_entry): Use eh, and hsh_cache. 1905 1.1 christos (struct elf32_hppa_dyn_reloc_entry): Use hdh_next. 1906 1.1 christos (struct elf32_hppa_link_hash_table): Use etab and bstab. 1907 1.1 christos (stub_hash_newfunc): Use hh. 1908 1.1 christos (hppa_link_hash_newfunc): Use hsh_cache. 1909 1.1 christos (elf32_hppa_link_hash_table_create): Use etab, and bstab. 1910 1.1 christos (elf32_hppa_link_hash_table_free): Use bstab. 1911 1.1 christos (hppa_stub_name): Use eh. 1912 1.1 christos (hppa_get_stub_entry): Use hh, hsh_entry, and hsh_cache. 1913 1.1 christos (hppa_add_stub): Use bstab. 1914 1.1 christos (hppa_type_of_stub): Use eh. 1915 1.1 christos (hppa_build_one_stub): Use hh and bh_root. 1916 1.1 christos (elf32_hppa_copy_indirect_symbol): Use hdh_next. 1917 1.1 christos (elf32_hppa_check_relocs): Use eh, etab, and hdh_next. 1918 1.1 christos (elf32_hppa_gc_sweep_hook): Use hdh_next. 1919 1.1 christos (elf32_hppa_adjust_dynamic_symbol): Use hdh_next, and etab. 1920 1.1 christos (allocate_plt_static): Use etab. 1921 1.1 christos (allocate_dynrelocs): Use etab, and hdh_next. 1922 1.1 christos (readonly_dynrelocs): Use hdh_next. 1923 1.1 christos (elf32_hppa_size_dynamic_sections): Use etab, and hdh_next. 1924 1.1 christos (get_local_syms): Use eh, bstab, and hh. 1925 1.1 christos (elf32_hppa_size_stubs): Use eh, bstab, and hh. 1926 1.1 christos (elf32_hppa_set_gp): Use etab. 1927 1.1 christos (elf32_hppa_build_stubs): Use bstab. 1928 1.1 christos (final_link_relocate): Use eh, bh_root. 1929 1.1 christos (elf32_hppa_relocate_section): Use elf, etab. 1930 1.1 christos (elf32_hppa_finish_dynamic_sections): Use etab. 1931 1.1 christos 1932 1.1 christos 2005-06-27 H.J. Lu <hongjiu.lu (a] intel.com> 1933 1.1 christos 1934 1.1 christos * elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): Remove 1935 1.1 christos the extra `;'. 1936 1.1 christos 1937 1.1 christos 2005-06-21 Carlos O'Donell <carlos (a] systemhalted.org> 1938 1.1 christos 1939 1.1 christos * elf32-hppa.c (hppa_elf_hash_entry): Define. 1940 1.1 christos (hppa_stub_hash_entry): Define. 1941 1.1 christos (stub_hash_newfunc): Rename variables. 1942 1.1 christos (hppa_link_hash_newfunc): Likewise. 1943 1.1 christos (elf32_hppa_link_hash_table_free): Likewise. 1944 1.1 christos (hppa_stub_name): Likewise. 1945 1.1 christos (hppa_get_stub_entry): Likewise. 1946 1.1 christos (hppa_add_stub): Likewise. 1947 1.1 christos (hppa_type_of_stub): Likewise. 1948 1.1 christos (hppa_build_one_stub): Likewise. 1949 1.1 christos (hppa_size_one_stub): Likewise. 1950 1.1 christos (elf32_hppa_create_dynamic_sections): Likewise. 1951 1.1 christos (elf32_hppa_copy_indirect_symbol): Likewise. 1952 1.1 christos (elf32_hppa_check_relocs): Likewise. 1953 1.1 christos (elf32_hppa_gc_mark_hook): Likewise. 1954 1.1 christos (elf32_hppa_gc_sweep_hook): Likewise. 1955 1.1 christos (elf32_hppa_grok_psinfo): Likewise. 1956 1.1 christos (elf32_hppa_hide_symbol): Likewise. 1957 1.1 christos (elf32_hppa_adjust_dynamic_symbol): Likewise. 1958 1.1 christos (allocate_dynrelocs): Likewise. 1959 1.1 christos (clobber_millicode_symbols): Likewise. 1960 1.1 christos (readonly_dynrelocs): Likewise. 1961 1.1 christos (elf32_hppa_size_dynamic_sections): Likewise. 1962 1.1 christos (get_local_syms): Likewise. 1963 1.1 christos (elf32_hppa_size_stubs): Likewise. 1964 1.1 christos (hppa_record_segment_addr): Likewise. 1965 1.1 christos (final_link_relocate): Likewise. 1966 1.1 christos (elf32_hppa_relocate_section): Likewise. 1967 1.1 christos (elf32_hppa_finish_dynamic_symbol): Likewise. 1968 1.1 christos 1969 1.1 christos 2005-06-20 H.J. Lu <hongjiu.lu (a] intel.com> 1970 1.1 christos 1971 1.1 christos PR 1025 1972 1.1 christos * elf-m10300.c (mn10300_elf_check_relocs): Handle indirect 1973 1.1 christos symbol. 1974 1.1 christos * elf32-arm.c (elf32_arm_check_relocs): Likewise. 1975 1.1 christos * elf32-avr.c (elf32_avr_check_relocs): Likewise. 1976 1.1 christos * elf32-cris.c (cris_elf_check_relocs): Likewise. 1977 1.1 christos * elf32-d10v.c (elf32_d10v_check_relocs): Likewise. 1978 1.1 christos * elf32-dlx.c (elf32_dlx_check_relocs): Likewise. 1979 1.1 christos * elf32-fr30.c (fr30_elf_check_relocs): Likewise. 1980 1.1 christos * elf32-frv.c (elf32_frv_check_relocs): Likewise. 1981 1.1 christos * elf32-i370.c (i370_elf_check_relocs): Likewise. 1982 1.1 christos * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise. 1983 1.1 christos * elf32-m32r.c (m32r_elf_check_relocs): Likewise. 1984 1.1 christos * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise. 1985 1.1 christos * elf32-m68k.c (elf_m68k_check_relocs): Likewise. 1986 1.1 christos * elf32-mcore.c (mcore_elf_check_relocs): Likewise. 1987 1.1 christos * elf32-ms1.c (ms1_elf_check_relocs): Likewise. 1988 1.1 christos * elf32-msp430.c (elf32_msp430_check_relocs): Likewise. 1989 1.1 christos * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise. 1990 1.1 christos * elf32-ppc.c (ppc_elf_check_relocs): Likewise. 1991 1.1 christos * elf32-s390.c (elf_s390_check_relocs): Likewise. 1992 1.1 christos * elf32-sh.c (sh_elf_check_relocs): Likewise. 1993 1.1 christos * elf32-v850.c (v850_elf_check_relocs): Likewise. 1994 1.1 christos * elf32-vax.c (elf_vax_check_relocs): Likewise. 1995 1.1 christos * elf64-mmix.c (mmix_elf_check_relocs): Likewise. 1996 1.1 christos * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. 1997 1.1 christos * elf64-s390.c (elf_s390_check_relocs): Likewise. 1998 1.1 christos * elf64-sh64.c (sh_elf64_check_relocs): Likewise. 1999 1.1 christos * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. 2000 1.1 christos * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise. 2001 1.1 christos 2002 1.1 christos 2005-06-20 H.J. Lu <hongjiu.lu (a] intel.com> 2003 1.1 christos 2004 1.1 christos PR 1022 2005 1.1 christos * elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect 2006 1.1 christos symbol. 2007 1.1 christos 2008 1.1 christos 2005-06-20 H.J. Lu <hongjiu.lu (a] intel.com> 2009 1.1 christos 2010 1.1 christos PR 1025 2011 1.1 christos * elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol. 2012 1.1 christos * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. 2013 1.1 christos 2014 1.1 christos 2005-06-18 H.J. Lu <hongjiu.lu (a] intel.com> 2015 1.1 christos 2016 1.1 christos * reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and 2017 1.1 christos BFD_RELOC_X86_64_GOTPC32. 2018 1.1 christos * bfd-in2.h: Regenerated. 2019 1.1 christos 2020 1.1 christos 2005-06-17 Jakub Jelinek <jakub (a] redhat.com> 2021 1.1 christos 2022 1.1 christos * elf.c (bfd_section_from_shdr): Kill bogus warning. 2023 1.1 christos 2024 1.1 christos * elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for 2025 1.1 christos symbol, relocation, group or versym sections. 2026 1.1 christos 2027 1.1 christos * coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs 2028 1.1 christos is NULL. 2029 1.1 christos * peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address 2030 1.1 christos doesn't point into the section. 2031 1.1 christos 2032 1.1 christos 2005-06-17 Jan Beulich <jbeulich (a] novell.com> 2033 1.1 christos 2034 1.1 christos * bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64 2035 1.1 christos and BFD_RELOC_X86_64_GOTPC32. 2036 1.1 christos * libbfd.h (bfd_reloc_code_real_names): Likewise. 2037 1.1 christos * elf64-x86-64.c (x86_64_elf_howto_table): Add entries for 2038 1.1 christos R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32. 2039 1.1 christos (x86_64_reloc_map): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64, 2040 1.1 christos and R_X86_64_GOTPC32. 2041 1.1 christos (elf64_x86_64_info_to_howto): Adjust bounding relocation type. 2042 1.1 christos (elf64_x86_64_check_relocs): Also handle R_X86_64_PC64, 2043 1.1 christos R_X86_64_GOTOFF64, and R_X86_64_GOTPC32. 2044 1.1 christos (elf64_x86_64_relocate_section): Likewise. 2045 1.1 christos (elf64_x86_64_gc_sweep_hook): Also handle R_X86_64_PC64. 2046 1.1 christos 2047 1.1 christos 2005-06-15 Mark Kettenis <kettenis (a] gnu.org> 2048 1.1 christos 2049 1.1 christos * archive.c: Include "libiberty.h". 2050 1.1 christos 2051 1.1 christos 2005-06-15 Nick Clifton <nickc (a] redhat.com> 2052 1.1 christos 2053 1.1 christos * elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries 2054 1.1 christos produced by the GreenHills toolchain can be assimilated. 2055 1.1 christos 2056 1.1 christos 2005-06-14 Steve Ellcey <sje (a] cup.hp.com> 2057 1.1 christos 2058 1.1 christos * som.c (som_find_inliner_info): New. 2059 1.1 christos 2060 1.1 christos 2005-06-14 H.J. Lu <hongjiu.lu (a] intel.com> 2061 1.1 christos 2062 1.1 christos * elflink.c (_bfd_elf_merge_symbol): Fix a typo in comment. 2063 1.1 christos 2064 1.1 christos 2005-06-14 Jakub Jelinek <jakub (a] redhat.com> 2065 1.1 christos 2066 1.1 christos * elf.c (bfd_section_from_shdr): Fail if name is NULL. 2067 1.1 christos Prevent endless recursion on broken objects. 2068 1.1 christos 2069 1.1 christos * archive.c (do_slurp_coff_armap): Check for overflows. 2070 1.1 christos 2071 1.1 christos 2005-06-10 Daniel Jacobowitz <dan (a] codesourcery.com> 2072 1.1 christos 2073 1.1 christos * elfcode.h (elf_write_relocs): Do nothing if there are no 2074 1.1 christos relocations. 2075 1.1 christos 2076 1.1 christos 2005-06-10 Alan Modra <amodra (a] bigpond.net.au> 2077 1.1 christos 2078 1.1 christos * dwarf2.c (decode_line_info): Revert last change. Instead set 2079 1.1 christos initial low_pc to -1 to avoid need to test whether loc_pc has 2080 1.1 christos been set. 2081 1.1 christos 2082 1.1 christos 2005-06-09 Christopher Faylor <cgf (a] timesys.com> 2083 1.1 christos 2084 1.1 christos * coffcode.h (sec_to_styp_flags): Set appropriate section flags when 2085 1.1 christos either SEC_ALLOC OR SEC_LOAD. 2086 1.1 christos 2087 1.1 christos 2005-06-09 Christopher Faylor <cgf (a] timesys.com> 2088 1.1 christos 2089 1.1 christos * coffcode.h (sec_to_styp_flags): Remove read/write flags from noload 2090 1.1 christos section header. Do not add STYP_NOLOAD since it does not appear to be 2091 1.1 christos a valid PE flag. 2092 1.1 christos 2093 1.1 christos 2005-06-09 H.J. Lu <hongjiu.lu (a] intel.com> 2094 1.1 christos 2095 1.1 christos PR 1000 2096 1.1 christos * dwarf2.c (lookup_address_in_line_info_table): Restore code 2097 1.1 christos handling NULL function info, removed with 2005-04-03 change. 2098 1.1 christos 2099 1.1 christos 2005-06-08 Mark Mitchell <mark (a] codesourcery.com> 2100 1.1 christos 2101 1.1 christos * opncls.c (bfd_fopen): Mark returned BFD as cacheable if FD == -1. 2102 1.1 christos 2103 1.1 christos 2005-06-09 Alan Modra <amodra (a] bigpond.net.au> 2104 1.1 christos 2105 1.1 christos * elflink.c (elf_mark_used_section): Delete. 2106 1.1 christos (bfd_elf_gc_sections): Call bfd_generic_gc_sections. 2107 1.1 christos * reloc.c (bfd_mark_used_section): New function. 2108 1.1 christos (bfd_generic_gc_sections): Call bfd_mark_used_section. 2109 1.1 christos 2110 1.1 christos 2005-06-08 Alan Modra <amodra (a] bigpond.net.au> 2111 1.1 christos 2112 1.1 christos * opncls.c (bfd_fopen): Don't set bfd_error unconditionally. 2113 1.1 christos (bfd_fdopenr): Same. 2114 1.1 christos 2115 1.1 christos 2005-06-07 Mark Mitchell <mark (a] codesourcery.com> 2116 1.1 christos 2117 1.1 christos * opncls.c (bfd_fdopenr): Add missing break statements. 2118 1.1 christos 2119 1.1 christos 2005-06-07 Mark Mitchell <mark (a] codesourcery.com> 2120 1.1 christos 2121 1.1 christos * opncls.c (bfd_fopen): New API. 2122 1.1 christos (bfd_openr): Use it. 2123 1.1 christos (bfd_fdopenr): Likewise. 2124 1.1 christos * bfd-in2.h: Regenerated. 2125 1.1 christos 2126 1.1 christos 2005-06-07 Aldy Hernandez <aldyh (a] redhat.com> 2127 1.1 christos Michael Snyder <msnyder (a] redhat.com> 2128 1.1 christos Stan Cox <scox (a] redhat.com> 2129 1.1 christos 2130 1.1 christos * Makefile.am (ALL_MACHINES): Add ms1 support. 2131 1.1 christos (ALL_MACHINES_CFILES): Same. 2132 1.1 christos (BFD32_BACKENDS): Same. 2133 1.1 christos (BFD32_BACKENDS_CFILES): Same. 2134 1.1 christos 2135 1.1 christos * Makefile.in: Regenerate. 2136 1.1 christos 2137 1.1 christos * archures.c (bfd_architecture): Add ms1 entries. 2138 1.1 christos Externalize bfd_ms1_arch. 2139 1.1 christos (bfd_archures_list): Add bfd_ms1_arch. 2140 1.1 christos 2141 1.1 christos * bfd-in2.h: Regenerate. 2142 1.1 christos 2143 1.1 christos * cpu-ms1.c: New file. 2144 1.1 christos 2145 1.1 christos * elf32-ms1.c: New file. 2146 1.1 christos 2147 1.1 christos * targets.c: Define extern of bfd_elf32_ms1_vec. 2148 1.1 christos Add bfd_elf32_ms1_vec to _bfd_target_vector. 2149 1.1 christos 2150 1.1 christos * configure.in: Add bfd_elf32_ms1_vec case. 2151 1.1 christos 2152 1.1 christos * configure: Regenerate. 2153 1.1 christos 2154 1.1 christos * config.bfd: Add ms1-*-elf to table. 2155 1.1 christos 2156 1.1 christos 2005-06-07 Zack Weinberg <zack (a] codesourcery.com> 2157 1.1 christos 2158 1.1 christos * coff-i386.c: Change md_apply_fix3 to md_apply_fix in comment. 2159 1.1 christos 2160 1.1 christos 2005-06-07 Alan Modra <amodra (a] bigpond.net.au> 2161 1.1 christos 2162 1.1 christos * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Init _bfd_find_line. 2163 1.1 christos * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise. 2164 1.1 christos 2165 1.1 christos 2005-06-06 H.J. Lu <hongjiu.lu (a] intel.com> 2166 1.1 christos 2167 1.1 christos PR 990 2168 1.1 christos * bfd.c (bfd_find_line): New. 2169 1.1 christos 2170 1.1 christos * dwarf2.c (comp_unit): Add variable_table. 2171 1.1 christos (funcinfo): Add file, line, and sec. 2172 1.1 christos (varinfo): New. 2173 1.1 christos (lookup_symbol_in_function_table): New. 2174 1.1 christos (lookup_symbol_in_variable_table): New. 2175 1.1 christos (scan_unit_for_functions): Renamed to ... 2176 1.1 christos (scan_unit_for_symbols): This. Handle DW_TAG_entry_point and 2177 1.1 christos DW_TAG_variable. 2178 1.1 christos (comp_unit_find_nearest_line): Updated. 2179 1.1 christos (comp_unit_find_line): New. 2180 1.1 christos (_bfd_dwarf2_find_line): New. 2181 1.1 christos 2182 1.1 christos * elf-bfd.h (_bfd_elf_find_line): New. 2183 1.1 christos (_bfd_generic_find_line): New. Defined. 2184 1.1 christos 2185 1.1 christos * elf.c (_bfd_elf_find_line): New. 2186 1.1 christos 2187 1.1 christos * libbfd-in.h (_bfd_dwarf2_find_line): New. 2188 1.1 christos (_bfd_generic_find_line): New. 2189 1.1 christos 2190 1.1 christos * bfd-in2.h: Regenerated. 2191 1.1 christos * libbfd.h: Likewise. 2192 1.1 christos 2193 1.1 christos * libbfd.c (_bfd_generic_find_line): New. 2194 1.1 christos 2195 1.1 christos * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize _bfd_find_line 2196 1.1 christos with _bfd_generic_find_line. 2197 1.1 christos (bfd_target): Add _bfd_find_line. 2198 1.1 christos 2199 1.1 christos 2005-06-06 H.J. Lu <hongjiu.lu (a] intel.com> 2200 1.1 christos 2201 1.1 christos * dwarf2.c (decode_line_info): Properly set low_pc. 2202 1.1 christos 2203 1.1 christos 2005-06-06 Alan Modra <amodra (a] bigpond.net.au> 2204 1.1 christos 2205 1.1 christos * elf64-pcc.c (ppc64_elf_gc_mark_hook): For the local sym in .opd 2206 1.1 christos case, include addend when indexing .opd section map. 2207 1.1 christos (ppc64_elf_edit_opd): Add no_opd_opt param. Do nothing besides 2208 1.1 christos clear opd_adjust array if no_opd_opt set. Tidy code. 2209 1.1 christos Ignore zero size .opd. Check bfd_alloc return value. 2210 1.1 christos (ppc_stub_name): Return immediately on bfd_malloc fail. 2211 1.1 christos * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype. 2212 1.1 christos 2213 1.1 christos 2005-06-04 H.J. Lu <hongjiu.lu (a] intel.com> 2214 1.1 christos 2215 1.1 christos * dwarf2.c (comp_unit): Fix a typo in comment. 2216 1.1 christos 2217 1.1 christos 2005-06-03 Jan-Benedict Glaw <jbglaw (a] lug-owl.de> 2218 1.1 christos 2219 1.1 christos * elf32-vax.c (rtype_to_howto): Remove PARAMS. 2220 1.1 christos (reloc_type_lookup): Dito. 2221 1.1 christos (elf_vax_discard_copies): Dito. 2222 1.1 christos (elf_vax_instantiate_got_entries): Dito. 2223 1.1 christos (elf_vax_link_hash_traverse): Dito. 2224 1.1 christos (elf_vax_link_hash_newfunc): Dito. 2225 1.1 christos (elf_vax_link_hash_table_create): Dito. 2226 1.1 christos (elf32_vax_set_private_flags): Dito. 2227 1.1 christos (elf32_vax_merge_private_bfd_data): Dito. 2228 1.1 christos (elf32_vax_print_private_bfd_data): Dito. 2229 1.1 christos (elf_vax_check_relocs): Dito. 2230 1.1 christos (elf_vax_gc_mark_hook): Dito. 2231 1.1 christos (elf_vax_gc_sweep_hook): Dito. 2232 1.1 christos (elf_vax_size_dynamic_sections): Dito. 2233 1.1 christos (elf_vax_discard_copies): Dito. 2234 1.1 christos (elf_vax_instantiate_got_entries): Dito. 2235 1.1 christos (elf_vax_relocate_section): Dito. 2236 1.1 christos (elf_vax_finish_dynamic_symbol): Dito. 2237 1.1 christos (elf_vax_finish_dynamic_sections): Dito. 2238 1.1 christos (elf_vax_hash_table): Break-up of line isn't needed. 2239 1.1 christos (elf_vax_check_relocs): Remove leading whitespace 2240 1.1 christos (elf_vax_relocate_section): Remove redundant whitespace 2241 1.1 christos (elf_vax_link_hash_newfunc): Don't cast NULL. 2242 1.1 christos (elf_vax_link_hash_table_create): Dito. 2243 1.1 christos * cpu-vax.c (bfd_vax_arch) Remove a trailing space. 2244 1.1 christos 2245 1.1 christos 2005-06-03 Alan Modra <amodra (a] bigpond.net.au> 2246 1.1 christos 2247 1.1 christos PR 568 2248 1.1 christos * configure.in: Bump version 2249 1.1 christos * configure: Regenerate. 2250 1.1 christos * elflink.c (elf_link_input_bfd): Use einfo linker callback to print 2251 1.1 christos discarded section sym refs and kill linker output. 2252 1.1 christos * simple.c (simple_dummy_einfo): New function. 2253 1.1 christos (bfd_simple_get_relocated_section_contents): Init callbacks.einfo. 2254 1.1 christos 2255 1.1 christos * elf32-i386.c (elf_i386_relocate_section): Handle zero symndx 2256 1.1 christos for all reloc types. 2257 1.1 christos 2258 1.1 christos 2005-06-02 Alan Modra <amodra (a] bigpond.net.au> 2259 1.1 christos 2260 1.1 christos * elf64-ppc.c (add_symbol_adjust): Set sym visibility to most 2261 1.1 christos restrictive of func code and func descr for undefined syms as well 2262 1.1 christos as defined. 2263 1.1 christos 2264 1.1 christos 2005-05-31 Jim Blandy <jimb (a] redhat.com> 2265 1.1 christos 2266 1.1 christos * Makefile.am: Regenerate dependencies with 'make dep-am'. 2267 1.1 christos * Makefile.in: Regenerate. 2268 1.1 christos 2269 1.1 christos 2005-05-31 Richard Henderson <rth (a] redhat.com> 2270 1.1 christos 2271 1.1 christos * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_JSRDIRECT): New. 2272 1.1 christos (ALPHA_ELF_LINK_HASH_TLS_IE): Renumber to 0x80. 2273 1.1 christos (ALPHA_ELF_LINK_HASH_LU_PLT): Rename from ALPHA_ELF_LINK_HASH_LU_FUNC. 2274 1.1 christos (elf64_alpha_want_plt): Update to match. 2275 1.1 christos (elf64_alpha_check_relocs): Collect JSRDIRECT in gotent_flags. 2276 1.1 christos (elf64_alpha_relax_with_lituse): Likewise. Handle JSRDIRECT. 2277 1.1 christos 2278 1.1 christos 2005-05-31 Zack Weinberg <zack (a] codesourcery.com> 2279 1.1 christos 2280 1.1 christos * elf32-arm.c (elf32_arm_reloc_type_lookup) 2281 1.1 christos (elf32_arm_nabi_grok_prstatus, elf32_arm_nabi_grok_psinfo): 2282 1.1 christos Use ISO C90 function declaration style. 2283 1.1 christos 2284 1.1 christos 2005-05-31 James E Wilson <wilson (a] specifixinc.com> 2285 1.1 christos 2286 1.1 christos * elfcode.h (NAME(bfd_elf,bfd_from_remote_memory)): Check for program 2287 1.1 christos header PF_R flag on PT_LOAD segments. 2288 1.1 christos 2289 1.1 christos 2005-05-30 Richard Henderson <rth (a] redhat.com> 2290 1.1 christos 2291 1.1 christos * elf64-alpha.c (elf64_alpha_relocate_section): Use dtp_base for 2292 1.1 christos the zero index relocs produced by elf64_alpha_relax_tls_get_addr. 2293 1.1 christos 2294 1.1 christos 2005-05-29 Richard Henderson <rth (a] redhat.com> 2295 1.1 christos 2296 1.1 christos * configure.in (--enable-secureplt): New. 2297 1.1 christos * elf64-alpha.c (INSN_LDA, INSN_LDAH, INSN_LDQ, INSN_BR): New. 2298 1.1 christos (INSN_SUBQ, INSN_S4SUBQ, INSN_JMP): New. 2299 1.1 christos (INSN_A, INSN_AB, INSN_ABC, INSN_ABO, INSN_AD): New. 2300 1.1 christos (elf64_alpha_use_secureplt): New. 2301 1.1 christos (OLD_PLT_HEADER_SIZE, OLD_PLT_ENTRY_SIZE): New. 2302 1.1 christos (NEW_PLT_HEADER_SIZE, NEW_PLT_ENTRY_SIZE): New. 2303 1.1 christos (PLT_HEADER_SIZE, PLT_ENTRY_SIZE): Conditionalize on secureplt. 2304 1.1 christos (ALPHA_ELF_LINK_HASH_PLT_LOC): Remove. 2305 1.1 christos (struct alpha_elf_link_hash_entry): Add plt_offset. 2306 1.1 christos (PLT_HEADER_WORD1, PLT_HEADER_WORD2, PLT_HEADER_WORD3): Remove. 2307 1.1 christos (PLT_HEADER_WORD4, PLT_ENTRY_WORD1, PLT_ENTRY_WORD2): Remove. 2308 1.1 christos (PLT_ENTRY_WORD3): Remove. 2309 1.1 christos (elf64_alpha_create_dynamic_sections): If secureplt, set SEC_READONLY 2310 1.1 christos on .plt and create .got.plt. 2311 1.1 christos (elf64_alpha_output_extsym): Remove .plt frobbing for symbol values. 2312 1.1 christos (get_got_entry): Initialize plt_offset. 2313 1.1 christos (elf64_alpha_want_plt): New. 2314 1.1 christos (elf64_alpha_check_relocs): Use it. 2315 1.1 christos (elf64_alpha_adjust_dynamic_symbol): Likewise. Don't allocate 2316 1.1 christos plt entries here. 2317 1.1 christos (elf64_alpha_calc_got_offsets_for_symbol): Don't report internal 2318 1.1 christos error as user error. 2319 1.1 christos (elf64_alpha_size_plt_section_1): Allocate one plt entry per 2320 1.1 christos got subsection. 2321 1.1 christos (elf64_alpha_size_plt_section): Size .got.plt section. 2322 1.1 christos (elf64_alpha_size_rela_got_1): Don't allocate relocations if 2323 1.1 christos plt entries used. 2324 1.1 christos (elf64_alpha_size_dynamic_sections): Call elf64_alpha_size_plt_section. 2325 1.1 christos Add PLTRO DYNAMIC entry. 2326 1.1 christos (elf64_alpha_finish_dynamic_symbol): Generate secureplt format. 2327 1.1 christos (elf64_alpha_finish_dynamic_sections): Likewise. 2328 1.1 christos 2329 1.1 christos 2005-05-28 David Daney <ddaney (a] avtrex.com> 2330 1.1 christos 2331 1.1 christos * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Move 2332 1.1 christos calculation of DT_RELSZ to occur after all dynamic relocations 2333 1.1 christos are created. 2334 1.1 christos 2335 1.1 christos 2005-05-28 Eli Zaretskii <eliz (a] gnu.org> 2336 1.1 christos 2337 1.1 christos * configure.in: Add snprintf and vsnprintf to AC_CHECK_DECLS. 2338 1.1 christos * config.in, configure: Regenerate. 2339 1.1 christos 2340 1.1 christos 2005-05-26 Mark Kettenis <kettenis (a] gnu.org> 2341 1.1 christos Maciej W. Rozycki <macro (a] linux-mips.org> 2342 1.1 christos 2343 1.1 christos * elfxx-mips.c (_bfd_mips_elf_section_processing): Warn and 2344 1.1 christos stop processing of options if one of invalid size is 2345 1.1 christos encountered. 2346 1.1 christos (_bfd_mips_elf_section_from_shdr): Likewise. 2347 1.1 christos (_bfd_mips_elf_fake_sections): Reset the type of empty special 2348 1.1 christos sections. 2349 1.1 christos 2350 1.1 christos 2005-05-26 Richard Henderson <rth (a] redhat.com> 2351 1.1 christos 2352 1.1 christos * elf64-alpha.c (struct alpha_elf_link_hash_entry): Remove 2353 1.1 christos plt_old_section, plt_old_value. 2354 1.1 christos (elf64_alpha_adjust_dynamic_symbol): Don't set it. 2355 1.1 christos (elf64_alpha_size_plt_section_1): Don't use it. 2356 1.1 christos 2357 1.1 christos 2005-05-26 Jakub Jelinek <jakub (a] redhat.com> 2358 1.1 christos 2359 1.1 christos * elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and 2360 1.1 christos first shdr has sh_size == 0. Fail if e_shnum is large to cause 2361 1.1 christos arithmetic overflow when allocating the i_shdr array. 2362 1.1 christos Sanity check sh_link and sh_info fields. Fix e_shstrndx sanity check. 2363 1.1 christos 2364 1.1 christos 2005-05-25 Richard Henderson <rth (a] redhat.com> 2365 1.1 christos 2366 1.1 christos * elf64-alpha.c: Update all function definitions to ISO C. Remove 2367 1.1 christos all function prototypes; rearrange functions into def-use order. 2368 1.1 christos 2369 1.1 christos 2005-05-25 Richard Henderson <rth (a] redhat.com> 2370 1.1 christos 2371 1.1 christos * elf64-alpha.c (elf64_alpha_merge_gots): Fix gotent iteration 2372 1.1 christos in the presence of deleting elements. 2373 1.1 christos (elf64_alpha_size_got_sections): Zero dead got section size. 2374 1.1 christos 2375 1.1 christos 2005-05-23 Fred Fish <fnf (a] specifixinc.com> 2376 1.1 christos 2377 1.1 christos * dwarf2.c (struct dwarf2_debug): Add inliner_chain member. 2378 1.1 christos (struct funcinfo): Add caller_func, caller_file, caller_line. 2379 1.1 christos tag, and nesting_level members. 2380 1.1 christos (lookup_address_in_function_table): Change first passed parameter 2381 1.1 christos from "struct funcinfo *" to "struct comp_unit *". 2382 1.1 christos (lookup_address_in_function_table): Dereference unit to find function 2383 1.1 christos table. 2384 1.1 christos (lookup_address_in_function_table): Traverse the function list to 2385 1.1 christos create a chain of inlined functions back to the first non inlined 2386 1.1 christos function. 2387 1.1 christos (scan_unit_for_functions): Remember tag and nesting level. Handle 2388 1.1 christos DW_AT_call_file and DW_AT_call_line. 2389 1.1 christos (comp_unit_find_nearest_line): Adjust lookup_address_in_function_table 2390 1.1 christos call to pass unit pointer instead of function table pointer. For 2391 1.1 christos inlined functions, save pointer to the inliner chain. 2392 1.1 christos (_bfd_dwarf2_find_nearest_line): Initialize inliner_chain to NULL. 2393 1.1 christos (_bfd_dwarf2_find_inliner_info): New function that returns information 2394 1.1 christos from the inliner chain after a call to bfd_find_nearest_line. 2395 1.1 christos 2396 1.1 christos * bfd.c (bfd_find_inliner_info): Define using BFD_SEND. 2397 1.1 christos * targets.c (BFD_JUMP_TABLE_SYMBOLS): Add entry for 2398 1.1 christos NAME##_find_inliner_info. 2399 1.1 christos (bfd_target): Add _bfd_find_inliner_info. 2400 1.1 christos * bfd-in2.h: Regenerate. 2401 1.1 christos 2402 1.1 christos * libbfd-in.h (_bfd_nosymbols_find_inliner_info): Define as 2403 1.1 christos macro that always returns bfd_false. 2404 1.1 christos (_bfd_dwarf2_find_inliner_info): Declare. 2405 1.1 christos * libbfd.h: Regenerate. 2406 1.1 christos 2407 1.1 christos * elf32-arm.c (elf32_arm_find_inliner_info): New function 2408 1.1 christos that calls _bfd_dwarf2_find_inliner_info. 2409 1.1 christos (bfd_elf32_find_inliner_info): Define to elf32_arm_find_inliner_info. 2410 1.1 christos 2411 1.1 christos * elfxx-mips.c (_bfd_mips_elf_find_inliner_info): New function 2412 1.1 christos that calls _bfd_dwarf2_find_inliner_info. 2413 1.1 christos * elfxx-mips.h (_bfd_mips_elf_find_inliner_info): Declare. 2414 1.1 christos * elfn32-mips.c (bfd_elf32_find_inliner_info): Define to 2415 1.1 christos _bfd_mips_elf_find_inliner_info. 2416 1.1 christos * elf64-mips.c (bfd_elf64_find_inliner_info): Ditto. 2417 1.1 christos * elf32-mips.c (bfd_elf32_find_inliner_info): Ditto. 2418 1.1 christos 2419 1.1 christos * elf.c (_bfd_elf_find_inliner_info): New function that calls 2420 1.1 christos _bfd_dwarf2_find_inliner_info. 2421 1.1 christos * elf-bfd.h (_bfd_elf_find_inliner_info): Declare. 2422 1.1 christos * elfxx-target.h (bfd_elfNN_find_inliner_info): Define to 2423 1.1 christos _bfd_elf_find_inliner_info. 2424 1.1 christos 2425 1.1 christos * coffgen.c (coff_find_inliner_info): New function that 2426 1.1 christos calls _bfd_dwarf2_find_inliner_info. 2427 1.1 christos * libcoff-in.h (coff_find_inliner_info): Declare. 2428 1.1 christos * libcoff.h: Regenerate. 2429 1.1 christos * coff-rs6000.c (rs6000coff_vec): Add coff_find_inliner_info. 2430 1.1 christos (pmac_xcoff_vec) Ditto. 2431 1.1 christos * coff64-rs6000.c (rs6000coff64_vec): Ditto. 2432 1.1 christos (aix5coff64_vec): Ditto. 2433 1.1 christos 2434 1.1 christos * aout-target.h (MY_find_inliner_info): Define as 2435 1.1 christos _bfd_nosymbols_find_inliner_info. 2436 1.1 christos * aout-tic30.c (MY_find_inliner_info): Ditto. 2437 1.1 christos * binary.c (binary_find_inliner_info): Ditto. 2438 1.1 christos * i386msdos.c (msdos_find_inliner_info): Ditto. 2439 1.1 christos * ihex.c (ihex_find_inliner_info): Ditto. 2440 1.1 christos * libaout.h (aout_32_find_inliner_info): Ditto. 2441 1.1 christos * libecoff.h (_bfd_ecoff_find_inliner_info): Ditto. 2442 1.1 christos * mach-o.c (bfd_mach_o_find_inliner_info): Ditto. 2443 1.1 christos * mmo.c (mmo_find_inliner_info): Ditto. 2444 1.1 christos * nlm-target.h (nlm_find_inliner_info): Ditto. 2445 1.1 christos * pef.c (bfd_pef_find_inliner_info): Ditto. 2446 1.1 christos * ppcboot.c (ppcboot_find_inliner_info): Ditto. 2447 1.1 christos * srec.c (srec_find_inliner_info): Ditto. 2448 1.1 christos * tekhex.c (tekhex_find_inliner_info): Ditto. 2449 1.1 christos * versados.c (versados_find_inliner_info): Ditto. 2450 1.1 christos * xsym.c (bfd_sym_find_inliner_info): Ditto. 2451 1.1 christos 2452 1.1 christos * ieee.c (ieee_find_inliner_info): New function that always 2453 1.1 christos returns FALSE. 2454 1.1 christos * oasys.c (oasys_find_inliner_info): Ditto. 2455 1.1 christos * vms.c (vms_find_inliner_info): Ditto. 2456 1.1 christos 2457 1.1 christos 2005-05-24 Alan Modra <amodra (a] bigpond.net.au> 2458 1.1 christos 2459 1.1 christos * elf32-ppc.c (ppc_elf_check_relocs): For old gcc -fPIC code 2460 1.1 christos force old plt layout. 2461 1.1 christos 2462 1.1 christos 2005-05-22 Richard Henderson <rth (a] redhat.com> 2463 1.1 christos 2464 1.1 christos * elf64-alpha.c (elf64_alpha_relax_section): Ignore non-allocated 2465 1.1 christos sections. 2466 1.1 christos (elf64_alpha_check_relocs): Likewise. 2467 1.1 christos (elf64_alpha_relocate_section): Don't emit dynamic relocations to 2468 1.1 christos non-allocated sections. 2469 1.1 christos 2470 1.1 christos 2005-05-22 Richard Henderson <rth (a] redhat.com> 2471 1.1 christos 2472 1.1 christos * elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr to 2473 1.1 christos undefweak to use zero register. Call elf64_alpha_relax_got_load 2474 1.1 christos if not all uses removed. 2475 1.1 christos (elf64_alpha_relax_got_load): Relax undefweak to lda zero. 2476 1.1 christos (elf64_alpha_relax_section): Handle undefweak symbols. 2477 1.1 christos (elf64_alpha_calc_dynrel_sizes): Don't add relocs for undefweak. 2478 1.1 christos (elf64_alpha_size_rela_got_1): Likewise. 2479 1.1 christos (elf64_alpha_relocate_section): Likewise. 2480 1.1 christos 2481 1.1 christos 2005-05-22 Richard Henderson <rth (a] redhat.com> 2482 1.1 christos 2483 1.1 christos * elf64-alpha.c (elf64_alpha_relax_section): Only operate 2484 1.1 christos on SEC_CODE sections. 2485 1.1 christos 2486 1.1 christos 2005-05-22 John David Anglin <dave.anglin (a] nrc-cnrc.gc.ca> 2487 1.1 christos 2488 1.1 christos * som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to 2489 1.1 christos unsigned int *. 2490 1.1 christos (som_write_space_strings): Change type of tmp_space and p to char *. 2491 1.1 christos (som_write_symbol_strings): Likewise. Also change type of comp to 2492 1.1 christos char *comp[4]. 2493 1.1 christos (som_begin_writing): Change type of strings_size to unsigned int. 2494 1.1 christos (som_finish_writing): Likewise. 2495 1.1 christos (som_slurp_reloc_table): Change type of external_relocs to unsigned 2496 1.1 christos char *. 2497 1.1 christos * som.h (struct som_section_data_struct): Change type of reloc_stream 2498 1.1 christos field to unsigned char *. 2499 1.1 christos 2500 1.1 christos 2005-05-20 Daniel Jacobowitz <dan (a] codesourcery.com> 2501 1.1 christos 2502 1.1 christos * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate 2503 1.1 christos copy relocations for VxWorks. 2504 1.1 christos 2505 1.1 christos 2005-05-20 Daniel Jacobowitz <dan (a] codesourcery.com> 2506 1.1 christos 2507 1.1 christos * elf32-ppc.c (struct ppc_elf_link_hash_entry): Add new field 2508 1.1 christos has_sda_refs. 2509 1.1 christos (ppc_elf_copy_indirect_symbol): Copy has_sda_refs. 2510 1.1 christos (ppc_elf_check_relocs): Set has_sda_refs. 2511 1.1 christos (ppc_elf_adjust_dynamic_symbol): Check has_sda_refs before eliminating 2512 1.1 christos copy relocations. Use has_sda_refs to place variables in .sbss. 2513 1.1 christos (ppc_elf_finish_dynamic_symbol): Use has_sda_refs to place variables in 2514 1.1 christos .sbss. 2515 1.1 christos 2516 1.1 christos 2005-05-20 Bob Wilson <bob.wilson (a] acm.org> 2517 1.1 christos 2518 1.1 christos * elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that 2519 1.1 christos xtensa_default_isa is initialized. 2520 1.1 christos 2521 1.1 christos 2005-05-20 Alan Modra <amodra (a] bigpond.net.au> 2522 1.1 christos 2523 1.1 christos * elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned 2524 1.1 christos for second and subsequent list entries. Only allocate multiple 2525 1.1 christos glink stubs when shared or pie. 2526 1.1 christos (ppc_elf_finish_dynamic_symbol): Break out early when only one 2527 1.1 christos glink stub is needed. 2528 1.1 christos 2529 1.1 christos 2005-05-19 Zack Weinberg <zack (a] codesourcery.com> 2530 1.1 christos 2531 1.1 christos * Makefile.am: Have 'all' depend on 'info'. 2532 1.1 christos * Makefile.in: Regenerate. 2533 1.1 christos 2534 1.1 christos 2005-05-19 Alan Modra <amodra (a] bigpond.net.au> 2535 1.1 christos 2536 1.1 christos * elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and 2537 1.1 christos init_offset. Add init_got_refcount, init_plt_refcount, 2538 1.1 christos init_got_offset and init_plt_offset. 2539 1.1 christos * elf.c (_bfd_elf_link_hash_newfunc): Adjust for above change. 2540 1.1 christos (_bfd_elf_link_hash_hide_symbol): Likewise. 2541 1.1 christos (_bfd_elf_link_hash_table_init): Likewise. 2542 1.1 christos * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise. 2543 1.1 christos * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise. 2544 1.1 christos * elflink.c (_bfd_elf_adjust_dynamic_symbol): Likewise. 2545 1.1 christos (bfd_elf_size_dynamic_sections): Likewise. 2546 1.1 christos * elf32-ppc.c (GLINK_PLTRESOLVE): Now 16 insns. 2547 1.1 christos (LWZU_0_X_12, LWZ_0_4_30, LWZ_0_X_12, LWZ_11_X_11, LWZ_11_X_30, 2548 1.1 christos LWZ_12_4_12, LWZ_12_8_30, LWZ_12_X_12, SUB_11_11_30): Delete. 2549 1.1 christos (ADDIS_12_12, BCL_20_31, LWZU_0_12, LWZ_0_12, LWZ_11_11, LWZ_11_30, 2550 1.1 christos LWZ_12_12, MFLR_0, MFLR_12, MTLR_0, SUB_11_11_12): Define. 2551 1.1 christos (struct plt_entry): New. 2552 1.1 christos (ppc_elf_link_hash_table_create): Set new init_plt fields. 2553 1.1 christos (ppc_elf_copy_indirect_symbol): Handle merge of plt plist. Don't 2554 1.1 christos use _bfd_elf_link_hash_copy_indirect. 2555 1.1 christos (update_plt_info, find_plt_ent): New functions. 2556 1.1 christos (ppc_elf_check_relocs): Handle R_PPC_PLTREL24 with non-zero addend 2557 1.1 christos and adjust for use of plt list rather than refcount. 2558 1.1 christos (ppc_elf_gc_sweep_hook): Likewise. 2559 1.1 christos (ppc_elf_tls_optimize): Likewise. 2560 1.1 christos (ppc_elf_adjust_dynamic_symbol): Likewise. 2561 1.1 christos (allocate_dynrelocs): Likewise. 2562 1.1 christos (ppc_elf_relax_section): Likewise. 2563 1.1 christos (ppc_elf_relocate_section): Likewise. Adjust R_PPC_PLTREL24 addends 2564 1.1 christos when performing a relocatable link. 2565 1.1 christos (ppc_elf_finish_dynamic_symbol): Likewise. Write .glink stubs here.. 2566 1.1 christos (ppc_elf_finish_dynamic_sections): ..rather than here. Use new 2567 1.1 christos pic resolver stub. 2568 1.1 christos 2569 1.1 christos 2005-05-19 Alan Modra <amodra (a] bigpond.net.au> 2570 1.1 christos 2571 1.1 christos * elf.c (assign_file_positions_for_segments): Use maximum of 2572 1.1 christos maxpagesize and section alignment when adjusting initial 2573 1.1 christos segment offset and section offsets. 2574 1.1 christos 2575 1.1 christos 2005-05-18 Zack Weinberg <zack (a] codesourcery.com> 2576 1.1 christos 2577 1.1 christos * elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks 2578 1.1 christos unconditional. 2579 1.1 christos 2580 1.1 christos 2005-05-18 H.J. Lu <hongjiu.lu (a] intel.com> 2581 1.1 christos 2582 1.1 christos * elf.c (group_signature): Undo the last change. Check if the 2583 1.1 christos symbol table section is correct. 2584 1.1 christos 2585 1.1 christos 2005-05-17 Zack Weinberg <zack (a] codesourcery.com> 2586 1.1 christos 2587 1.1 christos * elf32-arm.c: Wherever possible, use official reloc names 2588 1.1 christos from AAELF. 2589 1.1 christos (elf32_arm_howto_table, elf32_arm_tls_gd32_howto) 2590 1.1 christos (elf32_arm_tls_ldo32_howto, elf32_arm_tls_ldm32_howto) 2591 1.1 christos (elf32_arm_tls_le32_howto, elf32_arm_tls_ie32_howto) 2592 1.1 christos (elf32_arm_vtinherit_howto, elf32_arm_vtentry_howto) 2593 1.1 christos (elf32_arm_pc11_howto, elf32_arm_thm_pc9_howto, elf32_arm_got_prel) 2594 1.1 christos (elf32_arm_r_howto): Replace with elf32_arm_howto_table_1, 2595 1.1 christos elf32_arm_howto_table_2, and elf32_arm_howto_table_3. 2596 1.1 christos Add many new relocations from AAELF. 2597 1.1 christos (elf32_arm_howto_from_type): Update to match. 2598 1.1 christos (elf32_arm_reloc_map): Add entries for R_ARM_THM_JUMP24, 2599 1.1 christos R_ARM_THM_JUMP11, R_ARM_THM_JUMP19, R_ARM_THM_JUMP8, 2600 1.1 christos R_ARM_THM_JUMP6, R_ARM_GNU_VTINHERIT, and R_ARM_GNU_VTENTRY. 2601 1.1 christos (elf32_arm_reloc_type_lookup): Use elf32_arm_howto_from_type. 2602 1.1 christos (elf32_arm_final_link_relocate): Add support for 2603 1.1 christos R_ARM_THM_JUMP24, R_ARM_THM_JUMP19, R_ARM_THM_JUMP6. Remove 2604 1.1 christos case entries redundant with default. 2605 1.1 christos 2606 1.1 christos * reloc.c: Reorganize ARM relocations. Add Thumb 2607 1.1 christos assembler-internal relocations BFD_RELOC_ARM_T32_OFFSET_U8, 2608 1.1 christos BFD_RELOC_ARM_T32_OFFSET_IMM, BFD_RELOC_ARM_T32_IMMEDIATE. 2609 1.1 christos Add visible relocations BFD_RELOC_THUMB_PCREL_BRANCH7, 2610 1.1 christos BFD_RELOC_THUMB_BRANCH20, BFD_RELOC_THUMB_BRANCH25. 2611 1.1 christos Delete unused relocations BFD_RELOC_ARM_GOT12, BFD_RELOC_ARM_COPY. 2612 1.1 christos * bfd-in2.h, libbfd.h: Regenerate. 2613 1.1 christos 2614 1.1 christos 2005-05-17 Daniel Jacobowitz <dan (a] codesourcery.com> 2615 1.1 christos 2616 1.1 christos * elf.c (_bfd_elf_write_object_contents): Check for non-NULL 2617 1.1 christos elf_shstrtab. 2618 1.1 christos * format.c (bfd_check_format_matches): Set output_has_begun 2619 1.1 christos for both_direction. 2620 1.1 christos * section.c (bfd_set_section_contents): Use bfd_write_p. Remove 2621 1.1 christos special case for both_direction. 2622 1.1 christos 2623 1.1 christos 2005-05-17 Nick Clifton <nickc (a] redhat.com> 2624 1.1 christos 2625 1.1 christos * elf.c (group_signature): Check for a group section which is 2626 1.1 christos actually a (corrupt) symbol table section in disguise and prevent 2627 1.1 christos an infinite loop from occurring. 2628 1.1 christos 2629 1.1 christos 2005-05-17 H.J. Lu <hongjiu.lu (a] intel.com> 2630 1.1 christos 2631 1.1 christos * elfxx-ia64.c (elfNN_ia64_relax_brl): Undo the change made on 2632 1.1 christos 2005-02-16. 2633 1.1 christos 2634 1.1 christos 2005-05-17 H.J. Lu <hongjiu.lu (a] intel.com> 2635 1.1 christos 2636 1.1 christos * elfxx-ia64.c (elfNN_ia64_relax_br): Keep the original 2637 1.1 christos predicate on slot 0 only if slot 0 isn't br. 2638 1.1 christos 2639 1.1 christos 2005-05-17 H.J. Lu <hongjiu.lu (a] intel.com> 2640 1.1 christos 2641 1.1 christos PR 797 2642 1.1 christos * elf32-i386.c (elf_i386_size_dynamic_sections): Also remove 2643 1.1 christos empty sdynbss section. 2644 1.1 christos * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise. 2645 1.1 christos 2646 1.1 christos 2005-05-17 Tavis Ormandy <taviso (a] gentoo.org> 2647 1.1 christos 2648 1.1 christos * elf.c (bfd_section_from_shdr): Add sanity check when parsing 2649 1.1 christos dynamic sections. 2650 1.1 christos 2651 1.1 christos 2005-05-17 Alan Modra <amodra (a] bigpond.net.au> 2652 1.1 christos 2653 1.1 christos * elf32-ppc.c (LIS_11. LIS_12): Define. 2654 1.1 christos (LWZU_0_X_12, LWZ_0_X_12, LWZ_12_4_12, LWZ_12_X_12): Define. 2655 1.1 christos (ppc_elf_finish_dynamic_sections): Provide non-pic plt call stub 2656 1.1 christos for --data-plt when building non-pie executables. 2657 1.1 christos 2658 1.1 christos 2005-05-17 Nick Clifton <nickc (a] redhat.com> 2659 1.1 christos 2660 1.1 christos * elf32-arm.c (elf32_arm_final_link_relocate): Gracefully handle 2661 1.1 christos the situation where a symbols's section is not known but a section 2662 1.1 christos relative R_ARM_RELATIVE reloc has to be generated for the Symbian 2663 1.1 christos OS. 2664 1.1 christos 2665 1.1 christos * elf32-v850.c (v850_elf_relocate_section): Move code to test for 2666 1.1 christos the presence of a symbol table to just before the symbol table is 2667 1.1 christos actually used. 2668 1.1 christos 2669 1.1 christos 2005-05-16 H.J. Lu <hongjiu.lu (a] intel.com> 2670 1.1 christos 2671 1.1 christos PR 834 2672 1.1 christos * elfxx-ia64.c (elfNN_ia64_relax_br): New. 2673 1.1 christos (elfNN_ia64_relax_section): Use it. 2674 1.1 christos 2675 1.1 christos 2005-05-14 Mark Kettenis <kettenis (a] gnu.org> 2676 1.1 christos 2677 1.1 christos * elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead 2678 1.1 christos of basename. 2679 1.1 christos 2680 1.1 christos 2005-05-14 Alan Modra <amodra (a] bigpond.net.au> 2681 1.1 christos 2682 1.1 christos * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set DT_PPC_GOT, 2683 1.1 christos not DT_PPC_GLINK. 2684 1.1 christos (ppc_elf_finish_dynamic_sections): Likewise. 2685 1.1 christos 2686 1.1 christos 2005-05-13 Fred Fish <fnf (a] specifixinc.com> 2687 1.1 christos 2688 1.1 christos * libbfd-in.h: Fix a comment typo, 'neaderst' -> 'nearest' 2689 1.1 christos * libbfd.h: Rebuilt. 2690 1.1 christos 2691 1.1 christos 2005-05-13 Bob Wilson <bob.wilson (a] acm.org> 2692 1.1 christos 2693 1.1 christos * elf32-xtensa.c (xtensa_get_property_section_name): Add missing 2694 1.1 christos periods in linkonce_kind values. 2695 1.1 christos 2696 1.1 christos 2005-05-12 H.J. Lu <hongjiu.lu (a] intel.com> 2697 1.1 christos 2698 1.1 christos * elf32-i386.c (elf_i386_relocate_section): Allow R_386_GOTOFF 2699 1.1 christos against protected function when building executable. 2700 1.1 christos 2701 1.1 christos 2005-05-12 Alan Modra <amodra (a] bigpond.net.au> 2702 1.1 christos 2703 1.1 christos * elf32-ppc.c (LWZU_0_X_11): Delete. 2704 1.1 christos (B, LWZ_11_X_11, LWZ_11_X_30, MTCTR_11): Define. 2705 1.1 christos (ppc_elf_select_plt_layout): Set .got flags too. Formatting. 2706 1.1 christos (ppc_elf_size_dynamic_sections): Allocate space for .glink branch 2707 1.1 christos table. 2708 1.1 christos (ppc_elf_finish_dynamic_symbol): Point .plt entries into the branch 2709 1.1 christos table. 2710 1.1 christos (ppc_elf_finish_dynamic_sections): Adjust DT_PPC_GLINK value. 2711 1.1 christos Generate .glink branch table and updated stubs. 2712 1.1 christos 2713 1.1 christos 2005-05-11 Alan Modra <amodra (a] bigpond.net.au> 2714 1.1 christos 2715 1.1 christos * reloc.c (BFD_RELOC_HI16_PCREL): Define. 2716 1.1 christos (BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL): Define. 2717 1.1 christos * elf32-ppc.c (GLINK_PLTRESOLVE, GLINK_ENTRY_SIZE): Define. 2718 1.1 christos (CROR_151515, CROR_313131): Delete. 2719 1.1 christos (ADDIS_11_11, ADDI_11_11, SUB_11_11_30, ADD_0_11_11, ADD_11_0_11, 2720 1.1 christos LWZ_0_4_30, MTCTR_0, LWZ_12_8_30, BCTR, ADDIS_11_30, 2721 1.1 christos LWZU_0_X_11): Define. 2722 1.1 christos (ppc_elf_howto_raw): Add R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI 2723 1.1 christos and R_PPC_REL16_HA entries. 2724 1.1 christos (ppc_elf_reloc_type_lookup): Convert new bfd reloc types. 2725 1.1 christos (ppc_elf_addr16_ha_reloc): Also handle R_PPC_REL16_HA. 2726 1.1 christos (struct ppc_elf_link_hash_table): Add glink, glink_pltresolve, 2727 1.1 christos new_plt, and old_plt. 2728 1.1 christos (ppc_elf_create_dynamic_sections): Create .glink section. 2729 1.1 christos (ppc_elf_check_relocs): Set new_plt and old_plt. 2730 1.1 christos (ppc_elf_select_plt_layout): New function. 2731 1.1 christos (ppc_elf_tls_setup): Set plt output section elf type and flags. 2732 1.1 christos (allocate_got): Handle differences between old and new got layout. 2733 1.1 christos (allocate_dynrelocs): Likewise for plt. 2734 1.1 christos (ppc_elf_size_dynamic_sections): Likewise. Allocate memory for 2735 1.1 christos .glink. Don't allocate memory for old bss .plt. Emit DT_PPC_GLINK. 2736 1.1 christos (ppc_elf_relax_section): Rename ppc_info to htab. Handle .glink 2737 1.1 christos destination of R_PPC_PLTREL24 relocs. 2738 1.1 christos (ppc_elf_relocate_section): Handle new relocs and changed destination 2739 1.1 christos of R_PPC_PLTREL24. 2740 1.1 christos (ppc_elf_finish_dynamic_symbol): Init new style plt and handle 2741 1.1 christos differences in layout. 2742 1.1 christos (ppc_elf_finish_dynamic_sections): Set DT_PPC_GLINK value. Don't 2743 1.1 christos put a blrl in new got. Write glink contents. 2744 1.1 christos * elf32-ppc.h (ppc_elf_select_plt_layout): Declare. 2745 1.1 christos * libbfd.h: Regenerate. 2746 1.1 christos * bfd-in2.h: Regenerate. 2747 1.1 christos 2748 1.1 christos 2005-05-11 Andreas Schwab <schwab (a] suse.de> 2749 1.1 christos 2750 1.1 christos * elf32-i386.c (elf_i386_finish_dynamic_sections): Fix signedness 2751 1.1 christos warning. 2752 1.1 christos 2753 1.1 christos 2005-05-10 H.J. Lu <hongjiu.lu (a] intel.com> 2754 1.1 christos 2755 1.1 christos * elf.c (_bfd_elf_make_section_from_shdr): Only check debug 2756 1.1 christos section if SEC_ALLOC isn't set. 2757 1.1 christos 2758 1.1 christos 2005-05-09 Kelley Cook <kcook (a] gcc.gnu.org> 2759 1.1 christos 2760 1.1 christos * configure.in: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF. 2761 1.1 christos * acinclude.m4: Don't sinclude accross.m4. 2762 1.1 christos * config.in, configure, Makefile.in, doc/Makefile.in: Regenerate. 2763 1.1 christos 2764 1.1 christos 2005-05-09 Alan Modra <amodra (a] bigpond.net.au> 2765 1.1 christos 2766 1.1 christos * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_dotsym. 2767 1.1 christos (ppc64_elf_add_symbol_hook): Set has_dotsym. 2768 1.1 christos (ppc64_elf_check_directives): Only process syms when has_dotsym. 2769 1.1 christos (func_desc_adjust): Hide fake function descriptors when function 2770 1.1 christos code entry is defined. 2771 1.1 christos (adjust_opd_syms): Adjust for deleted_section becoming union field. 2772 1.1 christos 2773 1.1 christos 2005-05-09 Alan Modra <amodra (a] bigpond.net.au> 2774 1.1 christos 2775 1.1 christos * elfcode.h (elf_object_p): Add more sanity checks on elf header. 2776 1.1 christos 2777 1.1 christos 2005-05-08 Dave Korn <dave.korn (a] artimi.com> 2778 1.1 christos 2779 1.1 christos * coff-tic80.c: Undefine _CONST after system headers to prevent 2780 1.1 christos clash with tic80-specific definition in include/coff/tic80.h 2781 1.1 christos 2782 1.1 christos 2005-05-08 H.J. Lu <hongjiu.lu (a] intel.com> 2783 1.1 christos 2784 1.1 christos PR 939 2785 1.1 christos * elflink.c (elf_link_output_extsym): Use output_bfd if 2786 1.1 christos h->root.u.def.section is bfd_abs_section_ptr when reporting 2787 1.1 christos error. 2788 1.1 christos 2789 1.1 christos 2005-05-07 H.J. Lu <hongjiu.lu (a] intel.com> 2790 1.1 christos 2791 1.1 christos * elf-bfd.h (elf_backend_data): Update special_sections to 2792 1.1 christos array of pointer to bfd_elf_special_section. 2793 1.1 christos * elf.c (special_sections): Likewise. 2794 1.1 christos * elf32-arm.c (elf32_arm_symbian_special_sections): Likewise. 2795 1.1 christos * elf32-m32r.c (m32r_elf_special_sections): Likewise. 2796 1.1 christos * elf32-m68hc11.c (elf32_m68hc11_special_sections): Likewise. 2797 1.1 christos * elf32-m68hc12.c (elf32_m68hc12_special_sections): Likewise. 2798 1.1 christos * elf32-mcore.c (mcore_elf_special_sections): Likewise. 2799 1.1 christos * elf32-ppc.c (ppc_elf_special_sections): Likewise. 2800 1.1 christos * elf32-sh64.c (sh64_elf_special_sections): Likewise. 2801 1.1 christos * elf32-v850.c (v850_elf_special_sections): Likewise. 2802 1.1 christos * elf32-xtensa.c (elf_xtensa_special_sections): Likewise. 2803 1.1 christos * elf64-alpha.c (elf64_alpha_special_sections): Likewise. 2804 1.1 christos * elf64-hppa.c (elf64_hppa_special_sections): Likewise. 2805 1.1 christos * elf64-ppc.c (ppc64_elf_special_sections): Likewise. 2806 1.1 christos * elf64-sh64.c (sh64_elf64_special_sections): Likewise. 2807 1.1 christos * elfxx-ia64.c (elfNN_ia64_special_sections): Likewise. 2808 1.1 christos * elfxx-mips.c (_bfd_mips_elf_special_sections): Likewise. 2809 1.1 christos * elfxx-mips.h (_bfd_mips_elf_special_sections): Likewise. 2810 1.1 christos 2811 1.1 christos * elf.c (get_special_section): Updated. 2812 1.1 christos 2813 1.1 christos 2005-05-07 Alan Modra <amodra (a] bigpond.net.au> 2814 1.1 christos 2815 1.1 christos * elf-bfd.h (struct elf_backend_data): Remove got_symbol_offset. 2816 1.1 christos * elfxx-target.h (elf_backend_got_symbol_offset): Delete. 2817 1.1 christos * elflink.c (_bfd_elf_create_got_section): Use zero in place of 2818 1.1 christos got_symbol_offset. 2819 1.1 christos * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise. 2820 1.1 christos * elf32-frv.c (_frv_create_got_section): Likewise. 2821 1.1 christos * elf32-i370.c (i370_elf_finish_dynamic_sections): Delete ppc code. 2822 1.1 christos (elf_backend_got_symbol_offset): Don't define. 2823 1.1 christos * elf64-ppc.c (elf_backend_got_symbol_offset): Don't define. 2824 1.1 christos * elf32-ppc.c (struct ppc_elf_link_hash_table): Add got_header_size 2825 1.1 christos and got_gap. 2826 1.1 christos (ppc_elf_create_got): Tidy. 2827 1.1 christos (ppc_elf_create_dynamic_sections): Don't set SEC_IN_MEMORY for .plt. 2828 1.1 christos (ppc_elf_check_relocs): Reduce string comparisons by using elf.hgot. 2829 1.1 christos (ppc_elf_gc_sweep_hook): Likewise. 2830 1.1 christos (ppc_elf_relocate_section): Likewise. 2831 1.1 christos (ppc_elf_finish_dynamic_symbol): Likewise. 2832 1.1 christos (allocate_got): New function. 2833 1.1 christos (allocate_dynrelocs): Use allocate_got. 2834 1.1 christos (ppc_elf_size_dynamic_sections): Likewise. Delay tlsld_got allocation 2835 1.1 christos so that local got can refcount it. Set got_header_size. 2836 1.1 christos (ppc_elf_relocate_section): Use value of elf.hgot rather than hard- 2837 1.1 christos coded 4. 2838 1.1 christos (ppc_elf_finish_dynamic_sections): Likewise. 2839 1.1 christos (elf_backend_got_symbol_offset): Don't define. 2840 1.1 christos (elf_backend_got_header_size): Ditto. 2841 1.1 christos 2842 1.1 christos 2005-05-05 Steve Ellcey <sje (a] cup.hp.com> 2843 1.1 christos 2844 1.1 christos * configure.in (ACX_HEADER_STRING): New. 2845 1.1 christos * configure: Regenerate. 2846 1.1 christos * config.in: Regenerate. 2847 1.1 christos * sysdep.h (STRING_WITH_STRINGS): Use. 2848 1.1 christos 2849 1.1 christos 2005-05-05 H.J. Lu <hongjiu.lu (a] intel.com> 2850 1.1 christos 2851 1.1 christos * elf.c (_bfd_elf_close_and_cleanup): Only call 2852 1.1 christos _bfd_dwarf2_cleanup_debug_info on bfd_object. 2853 1.1 christos 2854 1.1 christos 2005-05-05 H.J. Lu <hongjiu.lu (a] intel.com> 2855 1.1 christos 2856 1.1 christos * elflink.c (_bfd_elf_provide_section_bound_symbols): Use 2857 1.1 christos "__bss_start" instead of "_edata" as fallback. 2858 1.1 christos 2859 1.1 christos 2005-05-05 H.J. Lu <hongjiu.lu (a] intel.com> 2860 1.1 christos 2861 1.1 christos * bfd-in2.h: Regenerated. 2862 1.1 christos 2863 1.1 christos 2005-05-05 Paul Brook <paul (a] codesourcery.com> 2864 1.1 christos 2865 1.1 christos * config.bfd: Use bfd_elf32_i386_vxworks_vec for i?86-*-vxworks. 2866 1.1 christos * configure.in: Add bfd_elf32_i386_vxworks_vec. i386 targets need 2867 1.1 christos elf-vxworks.lo. 2868 1.1 christos * configure: Regenerate. 2869 1.1 christos * Makefile.am (BFD32_BACKENDS): Add elf-vxworks.lo. 2870 1.1 christos (BFD32_BACKENDS_CFILES): Add elf-vxworks.c. 2871 1.1 christos (elf32-i386.lo): Depend on elf-vxworks.h. 2872 1.1 christos (elf-vxworks.lo): New rule. 2873 1.1 christos * Makefile.in: Regenerate. 2874 1.1 christos * elf-bfd.h (elf_backend_data): Update type of 2875 1.1 christos elf_backend_emit_relocs. 2876 1.1 christos (_bfd_elf_link_output_relocs): Update prototype. 2877 1.1 christos * elflink.c (_bfd_elf_link_output_relocs): Always use 2878 1.1 christos bed->elf_backend_emit_relocs when outputting relocations. 2879 1.1 christos * elfxx-target.h (elf_backend_emit_relocs): Default to 2880 1.1 christos _bfd_elf_link_output_relocs. 2881 1.1 christos * targets.c (bfd_elf32_i386_vxworks_vec): Declare. 2882 1.1 christos (_bfd_target_vector): Add bfd_elf32_i386_vxworks_vec. 2883 1.1 christos * elf32-i386.c: Add elf32-i386-vxworks target BFD. 2884 1.1 christos (elf_i386_plt0_entry): Remove padding. 2885 1.1 christos (elf_i386_pic_plt0_entry): Ditto. 2886 1.1 christos (PLTRESOLVE_RELOCS_SHLIB, PLTRESOLVE_RELOCS): Define. 2887 1.1 christos (PLT_NON_JUMP_SLOT_RELOCS): Define. 2888 1.1 christos (elf_i386_link_hash_table): Add srelplt2, hgot, hplt, is_vxworks and 2889 1.1 christos plt0_pad_byte fields. 2890 1.1 christos (elf_i386_link_hash_table_create): Zero them. 2891 1.1 christos (elf_i386_create_dynamic_sections): Create static relocation section. 2892 1.1 christos (allocate_dynrelocs): Allocate space for static PLT relocations. 2893 1.1 christos (elf_i386_size_dynamic_sections): Save shortcuts to PLT and GOT 2894 1.1 christos symbols. Give PLT symbols function type. Don't strip PLT sections 2895 1.1 christos if we have exported symbols from them. 2896 1.1 christos (elf_i386_finish_dynamic_symbol): Fill in VxWorks PLT static 2897 1.1 christos relocation section. Don't mark _GLOBAL_OFFSET_TABLE_ as absolute on 2898 1.1 christos VxWorks. 2899 1.1 christos (elf_i386_finish_dynamic_sections): Allow different pad bytes. 2900 1.1 christos Add relocation for GOT location. Fill in PLT static relocations. 2901 1.1 christos (elf_i386_vxworks_link_hash_table_create): New function. 2902 1.1 christos (elf_i386_vxworks_link_output_symbol_hook): New function. 2903 1.1 christos * elf-vxworks.h: New file. 2904 1.1 christos 2905 1.1 christos 2005-05-05 H.J. Lu <hongjiu.lu (a] intel.com> 2906 1.1 christos 2907 1.1 christos * section.c (bfd_make_section_anyway_with_flags): New. 2908 1.1 christos (bfd_make_section_anyway): Call bfd_make_section_anyway_with_flags, 2909 1.1 christos (bfd_make_section_with_flags): New. 2910 1.1 christos (bfd_make_section): Call bfd_make_section_with_flags. 2911 1.1 christos 2912 1.1 christos * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Call 2913 1.1 christos bfd_make_section_with_flags/bfd_make_section_anyway_with_flags 2914 1.1 christos instead of bfd_make_section/bfd_make_section and don't call 2915 1.1 christos bfd_set_section_flags. 2916 1.1 christos (mn10300_elf_check_relocs): Likewise. 2917 1.1 christos (_bfd_mn10300_elf_create_dynamic_sections): Likewise. 2918 1.1 christos * elf32-arm.c (create_got_section): Likewise. 2919 1.1 christos (bfd_elf32_arm_add_glue_sections_to_bfd): Likewise. 2920 1.1 christos (elf32_arm_check_relocs): Likewise. 2921 1.1 christos * elf32-cris.c (cris_elf_check_relocs): Likewise. 2922 1.1 christos * elf32-frv.c (elf32_frv_add_symbol_hook): Likewise. 2923 1.1 christos (_frv_create_got_section): Likewise. 2924 1.1 christos (elf32_frvfdpic_create_dynamic_sections): Likewise. 2925 1.1 christos * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise. 2926 1.1 christos (elf32_hppa_check_relocs): Likewise. 2927 1.1 christos * elf32-i370.c (i370_elf_create_dynamic_sections): Likewise. 2928 1.1 christos (i370_elf_check_relocs): Likewise. 2929 1.1 christos * elf32-i386.c (create_got_section): Likewise. 2930 1.1 christos (elf_i386_check_relocs): Likewise. 2931 1.1 christos * elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise. 2932 1.1 christos (create_got_section): Likewise. 2933 1.1 christos (m32r_elf_create_dynamic_sections): Likewise. 2934 1.1 christos (m32r_elf_check_relocs): Likewise. 2935 1.1 christos * elf32-m68k.c (elf_m68k_check_relocs): Likewise. 2936 1.1 christos * elf32-ppc.c (ppc_elf_create_got): Likewise. 2937 1.1 christos (ppc_elf_create_dynamic_sections): Likewise. 2938 1.1 christos (ppc_elf_add_symbol_hook): Likewise. 2939 1.1 christos (ppc_elf_check_relocs): Likewise. 2940 1.1 christos * elf32-s390.c (create_got_section): Likewise. 2941 1.1 christos (elf_s390_check_relocs): Likewise. 2942 1.1 christos * elf32-sh.c (create_got_section): Likewise. 2943 1.1 christos (sh_elf_create_dynamic_sections): Likewise. 2944 1.1 christos (sh_elf_check_relocs): Likewise. 2945 1.1 christos * elf32-vax.c (elf_vax_check_relocs): Likewise. 2946 1.1 christos * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise. 2947 1.1 christos * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise. 2948 1.1 christos (add_extra_plt_sections): Likewise. 2949 1.1 christos * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise. 2950 1.1 christos (elf64_alpha_create_got_section): Likewise. 2951 1.1 christos (elf64_alpha_create_dynamic_sections): Likewise. 2952 1.1 christos (elf64_alpha_check_relocs): Likewise. 2953 1.1 christos * elf64-hppa.c (get_reloc_section): Likewise. 2954 1.1 christos (get_opd): Likewise. 2955 1.1 christos (get_plt): Likewise. 2956 1.1 christos (get_dlt): Likewise. 2957 1.1 christos (get_stub): Likewise. 2958 1.1 christos (elf64_hppa_create_dynamic_sectionso): Likewise. 2959 1.1 christos * elf64-mmix.c (mmix_elf_check_common_relocs): Likewise. 2960 1.1 christos * elf64-ppc.c (create_linkage_sections): Likewise. 2961 1.1 christos (ppc64_elf_check_relocs): Likewise. 2962 1.1 christos * elf64-s390.c (create_got_section): Likewise. 2963 1.1 christos (elf_s390_check_relocs): Likewise. 2964 1.1 christos * elf64-sh64.c (sh_elf64_check_relocs): Likewise. 2965 1.1 christos (sh64_elf64_create_dynamic_sections): Likewise. 2966 1.1 christos * elf64-x86-64.c (create_got_section): Likewise. 2967 1.1 christos (elf64_x86_64_check_relocs): Likewise. 2968 1.1 christos * elflink.c (_bfd_elf_create_got_section): Likewise. 2969 1.1 christos (_bfd_elf_link_create_dynamic_sections): Likewise. 2970 1.1 christos (elf_link_add_object_symbols): Likewise. 2971 1.1 christos * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise. 2972 1.1 christos (elfNN_ia64_create_dynamic_sections): Likewise. 2973 1.1 christos (get_fptr): Likewise. 2974 1.1 christos (get_pltoff): Likewise. 2975 1.1 christos (get_reloc_section): Likewise. 2976 1.1 christos (elfNN_ia64_object_p): Likewise. 2977 1.1 christos * elfxx-mips.c (mips_elf_rel_dyn_section): Likewise. 2978 1.1 christos (mips_elf_create_compact_rel_section): Likewise. 2979 1.1 christos (mips_elf_create_got_section): Likewise. 2980 1.1 christos (_bfd_mips_elf_create_dynamic_sections): Likewise. 2981 1.1 christos * elfxx-sparc.c (create_got_section): Likewise. 2982 1.1 christos (_bfd_sparc_elf_check_relocs): Likewise. 2983 1.1 christos 2984 1.1 christos * elf.c (_bfd_elf_new_section_hook): Call _bfd_elf_get_sec_type_attr 2985 1.1 christos on linker created sections. 2986 1.1 christos 2987 1.1 christos 2005-05-05 H.J. Lu <hongjiu.lu (a] intel.com> 2988 1.1 christos 2989 1.1 christos PR 882 2990 1.1 christos * elflink.c (_bfd_elf_link_assign_sym_version): Allow version 2991 1.1 christos script on executable. 2992 1.1 christos 2993 1.1 christos 2005-05-05 John Levon <levon (a] movementarian.org> 2994 1.1 christos 2995 1.1 christos * dwarf2.c (read_abbrevs): If bfd_realloc fails, free currently 2996 1.1 christos allocated memory before returning. 2997 1.1 christos (decode_line_info): Likewise. 2998 1.1 christos (_bfd_dwarf2_cleanup_debug_info): New function: Frees memory 2999 1.1 christos allocated by functions in this file. 3000 1.1 christos * elf-bfd.h (_bfd_dwarf2_cleanup_debug_info): Prototype. 3001 1.1 christos * elf.c (_bfd_elf_close_and_cleanup): Call 3002 1.1 christos _bfd_dwarf2_cleanup_debug_info. 3003 1.1 christos 3004 1.1 christos 2005-05-05 Hans-Peter Nilsson <hp (a] axis.com> 3005 1.1 christos 3006 1.1 christos * Makefile.am (INCLUDES): Don't -D_GNU_SOURCE here. 3007 1.1 christos * configure.in: Call AC_GNU_SOURCE here, after AC_PROG_CC. 3008 1.1 christos * configure, config.in, Makefile.in: Regenerate. 3009 1.1 christos * sysdep.h (stpcpy): Revert last change. 3010 1.1 christos 3011 1.1 christos 2005-05-05 Hans-Peter Nilsson <hp (a] axis.com> 3012 1.1 christos 3013 1.1 christos * sysdep.h (stpcpy): Wrap declaration in parentheses. 3014 1.1 christos 3015 1.1 christos 2005-05-04 H.J. Lu <hongjiu.lu (a] intel.com> 3016 1.1 christos 3017 1.1 christos * elfxx-ia64.c (ARCH_SIZE): New. 3018 1.1 christos (LOG_SECTION_ALIGN): Likewise. 3019 1.1 christos (elfNN_ia64_create_dynamic_sections): Use LOG_SECTION_ALIGN to 3020 1.1 christos align relocation sections. 3021 1.1 christos (get_fptr): Likewise. 3022 1.1 christos (get_reloc_section): Likewise. 3023 1.1 christos (elfNN_ia64_tprel_base): Likewise. 3024 1.1 christos (elfNN_ia64_check_relocs): Support 32bit relocations. 3025 1.1 christos (allocate_global_fptr_got): Likewise. 3026 1.1 christos (allocate_dynrel_entries): Likewise. 3027 1.1 christos (set_got_entry): Likewise. 3028 1.1 christos (set_pltoff_entry): Likewise. 3029 1.1 christos (elfNN_ia64_relocate_section): Likewise. 3030 1.1 christos 3031 1.1 christos 2005-05-04 H.J. Lu <hongjiu.lu (a] intel.com> 3032 1.1 christos 3033 1.1 christos * configure.in: Add AC_CHECK_DECLS(stpcpy). 3034 1.1 christos * configure: Regenerate. 3035 1.1 christos * config.in: Likewise. 3036 1.1 christos 3037 1.1 christos * sysdep.h (stpcpy): New. 3038 1.1 christos 3039 1.1 christos 2005-05-04 Nick Clifton <nickc (a] redhat.com> 3040 1.1 christos 3041 1.1 christos * Update the address and phone number of the FSF organization in 3042 1.1 christos the GPL notices in the following files: 3043 1.1 christos aix386-core.c, aix5ppc-core.c, aout-adobe.c, aout-arm.c, 3044 1.1 christos aout-cris.c, aout-ns32k.c, aout-sparcle.c, aout-target.h, 3045 1.1 christos aout-tic30.c, aout0.c, aout32.c, aout64.c, aoutf1.h, aoutx.h, 3046 1.1 christos archive.c, archive64.c, archures.c, armnetbsd.c, bfd-in.h, 3047 1.1 christos bfd-in2.h, bfd.c, bfdio.c, bfdwin.c, binary.c, bout.c, cache.c, 3048 1.1 christos cf-i386lynx.c, cf-m68klynx.c, cf-sparclynx.c, cisco-core.c, 3049 1.1 christos coff-a29k.c, coff-alpha.c, coff-apollo.c, coff-arm.c, coff-aux.c, 3050 1.1 christos coff-go32.c, coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i860.c, 3051 1.1 christos coff-i960.c, coff-ia64.c, coff-m68k.c, coff-m88k.c, coff-maxq.c, 3052 1.1 christos coff-mcore.c, coff-mips.c, coff-or32.c, coff-pmac.c, coff-ppc.c, 3053 1.1 christos coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c, 3054 1.1 christos coff-svm68k.c, coff-tic30.c, coff-tic4x.c, coff-tic54x.c, 3055 1.1 christos coff-tic80.c, coff-u68k.c, coff-w65.c, coff-we32k.c, coff-z8k.c, 3056 1.1 christos coff64-rs6000.c, coffcode.h, coffgen.c, cofflink.c, coffswap.h, 3057 1.1 christos corefile.c, cpu-a29k.c, cpu-alpha.c, cpu-arc.c, cpu-arm.c, 3058 1.1 christos cpu-avr.c, cpu-cr16c.c, cpu-cris.c, cpu-crx.c, cpu-d10v.c, 3059 1.1 christos cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, cpu-h8300.c, 3060 1.1 christos cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, cpu-i860.c, 3061 1.1 christos cpu-i960.c, cpu-ia64-opc.c, cpu-ia64.c, cpu-ip2k.c, cpu-iq2000.c, 3062 1.1 christos cpu-m10200.c, cpu-m10300.c, cpu-m32r.c, cpu-m68hc11.c, 3063 1.1 christos cpu-m68hc12.c, cpu-m68k.c, cpu-m88k.c, cpu-maxq.c, cpu-mcore.c, 3064 1.1 christos cpu-mips.c, cpu-mmix.c, cpu-msp430.c, cpu-ns32k.c, cpu-openrisc.c, 3065 1.1 christos cpu-or32.c, cpu-pdp11.c, cpu-pj.c, cpu-powerpc.c, cpu-rs6000.c, 3066 1.1 christos cpu-s390.c, cpu-sh.c, cpu-sparc.c, cpu-tic30.c, cpu-tic4x.c, 3067 1.1 christos cpu-tic54x.c, cpu-tic80.c, cpu-v850.c, cpu-vax.c, cpu-w65.c, 3068 1.1 christos cpu-we32k.c, cpu-xstormy16.c, cpu-xtensa.c, cpu-z8k.c, demo64.c, 3069 1.1 christos dwarf1.c, dwarf2.c, ecoff.c, ecofflink.c, ecoffswap.h, 3070 1.1 christos efi-app-ia32.c, efi-app-ia64.c, elf-bfd.h, elf-eh-frame.c, 3071 1.1 christos elf-hppa.h, elf-m10200.c, elf-m10300.c, elf-strtab.c, elf.c, 3072 1.1 christos elf32-am33lin.c, elf32-arc.c, elf32-arm.c, elf32-avr.c, 3073 1.1 christos elf32-cr16c.c, elf32-cris.c, elf32-crx.c, elf32-d10v.c, 3074 1.1 christos elf32-d30v.c, elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-gen.c, 3075 1.1 christos elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, elf32-i370.c, 3076 1.1 christos elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c, 3077 1.1 christos elf32-iq2000.c, elf32-m32r.c, elf32-m68hc11.c, elf32-m68hc12.c, 3078 1.1 christos elf32-m68hc1x.c, elf32-m68hc1x.h, elf32-m68k.c, elf32-m88k.c, 3079 1.1 christos elf32-mcore.c, elf32-mips.c, elf32-msp430.c, elf32-openrisc.c, 3080 1.1 christos elf32-or32.c, elf32-pj.c, elf32-ppc.c, elf32-ppc.h, elf32-s390.c, 3081 1.1 christos elf32-sh-symbian.c, elf32-sh.c, elf32-sh64-com.c, elf32-sh64.c, 3082 1.1 christos elf32-sh64.h, elf32-sparc.c, elf32-v850.c, elf32-vax.c, 3083 1.1 christos elf32-xstormy16.c, elf32-xtensa.c, elf32.c, elf64-alpha.c, 3084 1.1 christos elf64-gen.c, elf64-hppa.c, elf64-hppa.h, elf64-mips.c, 3085 1.1 christos elf64-mmix.c, elf64-ppc.c, elf64-ppc.h, elf64-s390.c, 3086 1.1 christos elf64-sh64.c, elf64-sparc.c, elf64-x86-64.c, elf64.c, elfcode.h, 3087 1.1 christos elfcore.h, elflink.c, elfn32-mips.c, elfxx-ia64.c, elfxx-mips.c, 3088 1.1 christos elfxx-mips.h, elfxx-sparc.c, elfxx-sparc.h, elfxx-target.h, 3089 1.1 christos epoc-pe-arm.c, epoc-pei-arm.c, format.c, freebsd.h, gen-aout.c, 3090 1.1 christos genlink.h, hash.c, host-aout.c, hp300bsd.c, hp300hpux.c, 3091 1.1 christos hppabsd-core.c, hpux-core.c, i386aout.c, i386bsd.c, i386dynix.c, 3092 1.1 christos i386freebsd.c, i386linux.c, i386lynx.c, i386mach3.c, i386msdos.c, 3093 1.1 christos i386netbsd.c, i386os9k.c, ieee.c, ihex.c, init.c, irix-core.c, 3094 1.1 christos libaout.h, libbfd-in.h, libbfd.c, libbfd.h, libcoff-in.h, 3095 1.1 christos libcoff.h, libecoff.h, libhppa.h, libieee.h, libnlm.h, liboasys.h, 3096 1.1 christos libpei.h, libxcoff.h, linker.c, lynx-core.c, m68k4knetbsd.c, 3097 1.1 christos m68klinux.c, m68klynx.c, m68knetbsd.c, m88kmach3.c, m88kopenbsd.c, 3098 1.1 christos mach-o-target.c, mach-o.c, mach-o.h, merge.c, mipsbsd.c, mmo.c, 3099 1.1 christos netbsd-core.c, netbsd.h, newsos3.c, nlm-target.h, nlm.c, 3100 1.1 christos nlm32-alpha.c, nlm32-i386.c, nlm32-ppc.c, nlm32-sparc.c, nlm32.c, 3101 1.1 christos nlm64.c, nlmcode.h, nlmswap.h, ns32k.h, ns32knetbsd.c, oasys.c, 3102 1.1 christos opncls.c, osf-core.c, pc532-mach.c, pdp11.c, pe-arm.c, pe-i386.c, 3103 1.1 christos pe-mcore.c, pe-mips.c, pe-ppc.c, pe-sh.c, peXXigen.c, 3104 1.1 christos pef-traceback.h, pef.c, pef.h, pei-arm.c, pei-i386.c, pei-mcore.c, 3105 1.1 christos pei-mips.c, pei-ppc.c, pei-sh.c, peicode.h, ppcboot.c, 3106 1.1 christos ptrace-core.c, reloc.c, reloc16.c, riscix.c, rs6000-core.c, 3107 1.1 christos sco5-core.c, section.c, simple.c, som.c, som.h, sparclinux.c, 3108 1.1 christos sparclynx.c, sparcnetbsd.c, srec.c, stab-syms.c, stabs.c, sunos.c, 3109 1.1 christos syms.c, sysdep.h, targets.c, tekhex.c, ticoff.h, trad-core.c, 3110 1.1 christos vax1knetbsd.c, vaxbsd.c, vaxnetbsd.c, versados.c, vms-gsd.c, 3111 1.1 christos vms-hdr.c, vms-misc.c, vms-tir.c, vms.c, vms.h, xcoff-target.h, 3112 1.1 christos xcofflink.c, xsym.c, xsym.h, xtensa-isa.c, xtensa-modules.c, 3113 1.1 christos hosts/alphavms.h 3114 1.1 christos 3115 1.1 christos 2005-05-04 H.J. Lu <hongjiu.lu (a] intel.com> 3116 1.1 christos 3117 1.1 christos * bfd-in.h (_bfd_elf_provide_section_bound_symbols): New. 3118 1.1 christos * bfd-in2.h: Regenerated. 3119 1.1 christos 3120 1.1 christos * elflink.c (bfd_elf_set_symbol): New. 3121 1.1 christos (_bfd_elf_provide_symbol): Call it. 3122 1.1 christos (_bfd_elf_provide_section_bound_symbols): New. 3123 1.1 christos 3124 1.1 christos 2005-05-04 H.J. Lu <hongjiu.lu (a] intel.com> 3125 1.1 christos 3126 1.1 christos * elflink.c (_bfd_elf_merge_symbol): Only skip weak definitions 3127 1.1 christos at the end, if a strong definition has already been seen. 3128 1.1 christos 3129 1.1 christos 2005-05-04 Alan Modra <amodra (a] bigpond.net.au> 3130 1.1 christos 3131 1.1 christos * section.c (struct bfd_section): Replace link_order_head and 3132 1.1 christos link_order_tail with map_head and map_tail union. 3133 1.1 christos (STD_SECTION): Update. 3134 1.1 christos (_bfd_strip_section_from_output): Delete. 3135 1.1 christos * aoutx.h: Update throughout for above changes. 3136 1.1 christos * coff-ppc.c: Likewise. 3137 1.1 christos * cofflink.c: Likewise. 3138 1.1 christos * ecoff.c: Likewise. 3139 1.1 christos * elf-eh-frame.c: Likewise. 3140 1.1 christos * elf-m10300.c: Likewise. 3141 1.1 christos * elf.c: Likewise. 3142 1.1 christos * elf32-arm.c: Likewise. 3143 1.1 christos * elf32-cris.c: Likewise. 3144 1.1 christos * elf32-hppa.c: Likewise. 3145 1.1 christos * elf32-i386.c: Likewise. 3146 1.1 christos * elf32-m32r.c: Likewise. 3147 1.1 christos * elf32-m68hc1x.c: Likewise. 3148 1.1 christos * elf32-m68k.c: Likewise. 3149 1.1 christos * elf32-ppc.c: Likewise. 3150 1.1 christos * elf32-s390.c: Likewise. 3151 1.1 christos * elf32-sh.c: Likewise. 3152 1.1 christos * elf32-vax.c: Likewise. 3153 1.1 christos * elf32-xtensa.c: Likewise. 3154 1.1 christos * elf64-alpha.c: Likewise. 3155 1.1 christos * elf64-hppa.c: Likewise. 3156 1.1 christos * elf64-ppc.c: Likewise. 3157 1.1 christos * elf64-s390.c: Likewise. 3158 1.1 christos * elf64-sh64.c: Likewise. 3159 1.1 christos * elf64-x86-64.c: Likewise. 3160 1.1 christos * elflink.c: Likewise. 3161 1.1 christos * elfxx-ia64.c: Likewise. 3162 1.1 christos * elfxx-mips.c: Likewise. 3163 1.1 christos * elfxx-sparc.c: Likewise. 3164 1.1 christos * linker.c: Likewise. 3165 1.1 christos * merge.c: Likewise. 3166 1.1 christos * pdp11.c: Likewise. 3167 1.1 christos * xcofflink.c: Likewise. 3168 1.1 christos * elflink.c (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Split 3169 1.1 christos out from bfd_elf_size_dynamic_sections. 3170 1.1 christos * bfd-in.h (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Declare. 3171 1.1 christos * bfd-in2.h: Regenerate. 3172 1.1 christos 3173 1.1 christos 2005-05-04 Alan Modra <amodra (a] bigpond.net.au> 3174 1.1 christos 3175 1.1 christos * section.c (bfd_section_list_remove): Don't clear s->next. 3176 1.1 christos (bfd_section_list_append): Always init s->prev. 3177 1.1 christos (bfd_section_list_prepend): Define. 3178 1.1 christos (bfd_section_list_insert_after): Minor optimization. 3179 1.1 christos (bfd_section_removed_from_list): Rewrite. 3180 1.1 christos * elf.c (assign_section_numbers): Simplify list traversal now that 3181 1.1 christos bfd_section_list_remove doesn't destroy removed section next ptr. 3182 1.1 christos * sunos.c (sunos_add_dynamic_symbols): Likewise. 3183 1.1 christos * elfxx-ia64.c (elfNN_ia64_object_p): Use bfd_section_list_prepend. 3184 1.1 christos * xcofflink.c (_bfd_xcoff_bfd_final_link): Simplify list traversal. 3185 1.1 christos * bfd-in2.h: Regenerate. 3186 1.1 christos 3187 1.1 christos 2005-05-02 H.J. Lu <hongjiu.lu (a] intel.com> 3188 1.1 christos 3189 1.1 christos * bfd.c (bfd): Remove section_tail and add section_last. 3190 1.1 christos (bfd_preserve): Likewise. 3191 1.1 christos (bfd_preserve_save): Likewise. 3192 1.1 christos (bfd_preserve_restore): Likewise. 3193 1.1 christos * opncls.c (_bfd_new_bfd): Likewise. 3194 1.1 christos 3195 1.1 christos * coffcode.h (coff_compute_section_file_positions): Updated. 3196 1.1 christos (coff_compute_section_file_positions): Likewise. 3197 1.1 christos * elf.c (assign_section_numbers): Likewise. 3198 1.1 christos * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise. 3199 1.1 christos * elf64-mmix.c (mmix_elf_final_link): Likewise. 3200 1.1 christos * elfxx-ia64.c (elfNN_ia64_object_p): Likewise. 3201 1.1 christos * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise. 3202 1.1 christos * sunos.c (sunos_add_dynamic_symbols): Likewise. 3203 1.1 christos * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise. 3204 1.1 christos 3205 1.1 christos * ecoff.c (bfd_debug_section): Initialize prev. 3206 1.1 christos 3207 1.1 christos * section.c (bfd_section): Add prev. 3208 1.1 christos (bfd_section_list_remove): Updated. 3209 1.1 christos (bfd_section_list_append): New. 3210 1.1 christos (bfd_section_list_insert_after): New. 3211 1.1 christos (bfd_section_list_insert_before): New. 3212 1.1 christos (bfd_section_list_insert): Removed. 3213 1.1 christos (bfd_section_removed_from_list): Updated. 3214 1.1 christos (STD_SECTION): Initialize prev. 3215 1.1 christos (bfd_section_init): Updated. 3216 1.1 christos (bfd_section_list_clear): Updated. 3217 1.1 christos 3218 1.1 christos * bfd-in2.h: Regenerated. 3219 1.1 christos 3220 1.1 christos 2005-05-02 H.J. Lu <hongjiu.lu (a] intel.com> 3221 1.1 christos 3222 1.1 christos * elf.c (_bfd_elf_new_section_hook): Don't call 3223 1.1 christos _bfd_elf_get_sec_type_attr on sections from input files. 3224 1.1 christos 3225 1.1 christos 2005-05-02 H.J. Lu <hongjiu.lu (a] intel.com> 3226 1.1 christos 3227 1.1 christos * merge.c (sec_merge_init): Call bfd_hash_table_init_n with 3228 1.1 christos hash table size 16699 instead of bfd_hash_table_init. 3229 1.1 christos 3230 1.1 christos 2005-05-01 Paul Brook <paul (a] codesourcery.com> 3231 1.1 christos 3232 1.1 christos * elflink.c (_bfd_elf_merge_symbol): Skip weak definitions if a strong 3233 1.1 christos definition has already been seen. 3234 1.1 christos 3235 1.1 christos 2005-05-01 Paul Brook <paul (a] codesourcery.com> 3236 1.1 christos 3237 1.1 christos * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Treat 3238 1.1 christos R_ARM_PLT32 the same as R_ARM_PC24. 3239 1.1 christos (arm_add_to_rel): Ditto. 3240 1.1 christos 3241 1.1 christos 2005-04-29 Ralf Corsepius <ralf.corsepius (a] rtems.org> 3242 1.1 christos 3243 1.1 christos * config.bfd: Add h8300*-*-rtemscoff. 3244 1.1 christos Switch h8300*-*-rtems* to elf. 3245 1.1 christos 3246 1.1 christos 2005-04-29 Daniel Jacobowitz <dan (a] codesourcery.com> 3247 1.1 christos 3248 1.1 christos * aclocal.m4, Makefile.in: Regnerated. 3249 1.1 christos 3250 1.1 christos 2005-04-28 Paul Brook <paul (a] codesourcery.com> 3251 1.1 christos 3252 1.1 christos Merge changes only applied to Makefile.in. 3253 1.1 christos * Makefile.am (BFD32_BACKENDS): Add elfxx-sparc.lo 3254 1.1 christos (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c 3255 1.1 christos (elfxx-sparc.lo): New rule. 3256 1.1 christos (elf32-sparc.lo): Add elfxx-sparc.h dependency. 3257 1.1 christos (elf64-sparc.lo): Likewise. 3258 1.1 christos 3259 1.1 christos 2005-04-28 Julian Brown <julian (a] codesourcery.com> 3260 1.1 christos 3261 1.1 christos * elflink.c (_bfd_elf_provide_symbol): Provide symbol for weak 3262 1.1 christos import. 3263 1.1 christos 3264 1.1 christos 2005-04-27 H.J. Lu <hongjiu.lu (a] intel.com> 3265 1.1 christos 3266 1.1 christos * elf-bfd.h (bfd_elf_sym_name): Also take "asection *". 3267 1.1 christos 3268 1.1 christos * elf.c (bfd_elf_sym_name): Updated. 3269 1.1 christos (group_signature): Likewise. 3270 1.1 christos * elf32-ppc.c (ppc_elf_relocate_section): Likewise. 3271 1.1 christos * elf64-ppc.c (ppc64_elf_edit_opd): Likewise. 3272 1.1 christos (ppc64_elf_edit_toc): Likewise. 3273 1.1 christos (ppc64_elf_relocate_section): Likewise. 3274 1.1 christos * elfcode.h (elf_slurp_symbol_table): Likewise. 3275 1.1 christos * elflink.c (elf_link_input_bfd): Likewise. 3276 1.1 christos 3277 1.1 christos * elfxx-ia64.c (elfNN_ia64_relocate_section): Call 3278 1.1 christos bfd_elf_sym_name to get local symbol name when reporting errors. 3279 1.1 christos 3280 1.1 christos 2005-04-27 Nick Clifton <nickc (a] redhat.com> 3281 1.1 christos 3282 1.1 christos * elflink.c (elf_link_input_bfd): Handle the case where a badly 3283 1.1 christos formatted input file results in a reloc which has no associated 3284 1.1 christos global symbol. 3285 1.1 christos 3286 1.1 christos 2005-04-26 Jerome Guitton <guitton (a] gnat.com> 3287 1.1 christos 3288 1.1 christos * bfd.m4 (BFD_NEED_DECLARATION): Restore. 3289 1.1 christos 3290 1.1 christos 2005-04-25 David S. Miller <davem (a] davemloft.net> 3291 1.1 christos 3292 1.1 christos * elfxx-sparc.c (sparc_elf_append_rela_64): Add BFD64 protection. 3293 1.1 christos (sparc_elf_r_info_64, _bfd_sparc_elf_finish_dynamic_symbol, 3294 1.1 christos sparc64_finish_dyn, _bfd_sparc_elf_finish_dynamic_sections): 3295 1.1 christos Likewise. 3296 1.1 christos 3297 1.1 christos 2005-04-25 H.J. Lu <hongjiu.lu (a] intel.com> 3298 1.1 christos 3299 1.1 christos PR 858 3300 1.1 christos * elflink.c (elf_link_input_bfd): Make non-debugging reference 3301 1.1 christos to discarded section an error. 3302 1.1 christos 3303 1.1 christos 2005-04-21 Jerome Guitton <guitton (a] gnat.com> 3304 1.1 christos 3305 1.1 christos * configure.in: Replace BFD_NEED_DECLARATION checks by the 3306 1.1 christos corresponding AC_CHECK_DECLS. 3307 1.1 christos * sysdep.h: Replace NEED_DECLARATION_* checks by the corresponding 3308 1.1 christos HAVE_DECL_*. 3309 1.1 christos * bfd.m4 (BFD_NEED_DECLARATION): Remove, obsolete. 3310 1.1 christos * configure: Regenerate. 3311 1.1 christos * config.in: Ditto. 3312 1.1 christos 3313 1.1 christos 2005-04-21 Andreas Schwab <schwab (a] suse.de> 3314 1.1 christos 3315 1.1 christos * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove 3316 1.1 christos unsigned from type of dynamic_interpreter. 3317 1.1 christos * elfxx-sparc.c (_bfd_sparc_elf_link_hash_table_create): Remove 3318 1.1 christos casts again. 3319 1.1 christos 3320 1.1 christos * elf.c (assign_section_numbers): Fix comment. 3321 1.1 christos 3322 1.1 christos 2005-04-21 Jerome Guitton <guitton (a] gnat.com> 3323 1.1 christos 3324 1.1 christos * som.c (som_bfd_print_private_bfd_data): Add explicit cast to long 3325 1.1 christos for struct som_exec_auxhdr fields. 3326 1.1 christos 3327 1.1 christos 2005-04-21 Nick Clifton <nickc (a] redhat.com> 3328 1.1 christos 3329 1.1 christos * aout-adobe.c: Convert to ISO C and fix formatting. 3330 1.1 christos * aout-arm.c: Convert to ISO C and fix formatting. 3331 1.1 christos * aout-cris.c: Convert to ISO C and fix formatting. 3332 1.1 christos * aout-ns32k.c: Convert to ISO C and fix formatting. 3333 1.1 christos * aout-tic30.c: Convert to ISO C and fix formatting. 3334 1.1 christos * coffcode.h: Convert to ISO C and fix formatting. 3335 1.1 christos * coffswap.h: Convert to ISO C and fix formatting. 3336 1.1 christos * i386aout.c: Convert to ISO C and fix formatting. 3337 1.1 christos * libaout.h: Convert to ISO C and fix formatting. 3338 1.1 christos * libcoff-in.h: Convert to ISO C and fix formatting. 3339 1.1 christos * libcoff.h: Convert to ISO C and fix formatting. 3340 1.1 christos * libecoff.h: Convert to ISO C and fix formatting. 3341 1.1 christos * libnlm.h: Convert to ISO C and fix formatting. 3342 1.1 christos * libpei.h: Convert to ISO C and fix formatting. 3343 1.1 christos * libxcoff.h: Convert to ISO C and fix formatting. 3344 1.1 christos * nlm-target.h: Convert to ISO C and fix formatting. 3345 1.1 christos * nlm.c: Convert to ISO C and fix formatting. 3346 1.1 christos * nlm32-alpha.c: Convert to ISO C and fix formatting. 3347 1.1 christos * nlm32-i386.c: Convert to ISO C and fix formatting. 3348 1.1 christos * nlm32-ppc.c: Convert to ISO C and fix formatting. 3349 1.1 christos * nlm32-sparc.c: Convert to ISO C and fix formatting. 3350 1.1 christos * nlmcode.h: Convert to ISO C and fix formatting. 3351 1.1 christos * nlmswap.h: Convert to ISO C and fix formatting. 3352 1.1 christos * pe-mips.c: Convert to ISO C and fix formatting. 3353 1.1 christos * peXXigen.c: Convert to ISO C and fix formatting. 3354 1.1 christos * peicode.h: Convert to ISO C and fix formatting. 3355 1.1 christos * vms-gsd.c: Convert to ISO C and fix formatting. 3356 1.1 christos * vms-hdr.c: Convert to ISO C and fix formatting. 3357 1.1 christos * vms-misc.c: Convert to ISO C and fix formatting. 3358 1.1 christos * vms-tir.c: Convert to ISO C and fix formatting. 3359 1.1 christos * vms.c: Convert to ISO C and fix formatting. 3360 1.1 christos * vms.h: Convert to ISO C and fix formatting. 3361 1.1 christos 3362 1.1 christos * coffgen.c (coff_print_symbol): Restore correct formatting of 3363 1.1 christos output. 3364 1.1 christos 3365 1.1 christos 2005-04-20 David S. Miller <davem (a] davemloft.net> 3366 1.1 christos 3367 1.1 christos * elfxx-sparc.c (sparc_elf_r_symndx_64): Fix compiler warning. 3368 1.1 christos (_bfd_sparc_elf_link_hash_table_create): Likewise. 3369 1.1 christos (allocate_dynrelocs): Likewise. 3370 1.1 christos 3371 1.1 christos 2005-04-20 Jerome Guitton <guitton (a] gnat.com> 3372 1.1 christos 3373 1.1 christos * configure.in: Fix the check for basename declaration. Add check 3374 1.1 christos for declarations of ftello, ftello64, fseeko, fseeko64. 3375 1.1 christos * configure: Regenerate. 3376 1.1 christos * config.in: Ditto. 3377 1.1 christos * sysdep.h: If needed, declare ftello, ftello64, fseeko, fseeko64. 3378 1.1 christos 3379 1.1 christos 2005-04-19 David S. Miller <davem (a] davemloft.net> 3380 1.1 christos 3381 1.1 christos * elfxx-sparc.c: New file. 3382 1.1 christos * elfxx-sparc.h: New file. 3383 1.1 christos * Makefile.in (BFD32_BACKENDS): Add elfxx-sparc.lo 3384 1.1 christos (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c 3385 1.1 christos (elfxx-sparc.lo): New rule. 3386 1.1 christos (elf32-sparc.lo): Add elfxx-sparc.h dependency. 3387 1.1 christos (elf64-sparc.lo): Likewise. 3388 1.1 christos * configure.in (bfd_elf32_sparc_vec): Add elfxx-sparc.lo 3389 1.1 christos (bfd_elf64_sparc_vec): Likewise. 3390 1.1 christos * configure: Regenerate. 3391 1.1 christos * elf32-sparc.c: Remove common code now in elfxx-sparc.c 3392 1.1 christos * elf64-sparc.c: Likewise, also use elf64_sparc_*() naming 3393 1.1 christos which is more consistent with elf32-sparc.c 3394 1.1 christos 3395 1.1 christos 2005-04-19 Daniel Jacobowitz <dan (a] codesourcery.com> 3396 1.1 christos 3397 1.1 christos * elfxx-mips.c (struct mips_elf_link_hash_entry): Update comment. 3398 1.1 christos (mips_elf_create_local_got_entry): Check h->root.forced_local. 3399 1.1 christos 3400 1.1 christos 2005-04-19 Alan Modra <amodra (a] bigpond.net.au> 3401 1.1 christos 3402 1.1 christos * elf32-ppc.c (ppc_elf_check_relocs): Don't bother with 3403 1.1 christos dynamic relocs in non-SEC_ALLOC sections. 3404 1.1 christos (ppc_elf_gc_sweep_hook): Likewise. 3405 1.1 christos (ppc_elf_relax_section): Likewise. 3406 1.1 christos (ppc_elf_relocate_section): Likewise. 3407 1.1 christos 3408 1.1 christos 2005-04-18 Nick Clifton <nickc (a] redhat.com> 3409 1.1 christos 3410 1.1 christos * aix5ppc-core.c (xcoff64_core_p): Fix compile time warning 3411 1.1 christos assigning a value to return_value. 3412 1.1 christos 3413 1.1 christos 2005-04-17 H.J. Lu <hongjiu.lu (a] intel.com> 3414 1.1 christos 3415 1.1 christos PR 855 3416 1.1 christos * elf.c (_bfd_elf_copy_private_section_data): Don't copy linker 3417 1.1 christos created group data. 3418 1.1 christos 3419 1.1 christos 2005-04-17 H.J. Lu <hongjiu.lu (a] intel.com> 3420 1.1 christos 3421 1.1 christos PR 855 3422 1.1 christos * elf.c (setup_group): Properly handle zero group count. 3423 1.1 christos 3424 1.1 christos 2005-04-17 Mark Kettenis <kettenis (a] gnu.org> 3425 1.1 christos 3426 1.1 christos * som.c (hppa_som_reloc, som_mkobject, som_is_space) 3427 1.1 christos (som_is_subspace, compare_subspaces, som_compute_checksum) 3428 1.1 christos (som_build_and_write_symbol_table, som_slurp_symbol_table): New 3429 1.1 christos protoypes. 3430 1.1 christos (hppa_som_reloc, compare_syms, compare_subspaces) 3431 1.1 christos (som_print_symbol, som_get_section_contents) 3432 1.1 christos (som_set_section_contents): Remove space after 'void *'. 3433 1.1 christos (som_bfd_print_private_bfd_data): Use %lx to print longs. 3434 1.1 christos (som_bfd_merge_private_bfd_data) 3435 1.1 christos (som_bfd_copy_private_header_data, som_bfd_set_private_flags): New 3436 1.1 christos defines. 3437 1.1 christos 3438 1.1 christos 2005-04-15 Julian Brown <julian (a] codesourcery.com> 3439 1.1 christos 3440 1.1 christos * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype. 3441 1.1 christos * bfd-in2.h: Regenerate. 3442 1.1 christos * elf32-arm.c (elf32_arm_link_hash_table): New field, 'use_blx'. 3443 1.1 christos (elf32_arm_link_hash_table_create): Initialise fix_v4bx, use_blx. 3444 1.1 christos (bfd_elf32_arm_set_target_relocs): Handle use_blx. 3445 1.1 christos (elf32_arm_final_link_relocate): Use Thumb BLX for R_ARM_THM_PC22 3446 1.1 christos relocations if requested to. 3447 1.1 christos (allocate_dynrelocs): Don't count size of omitted Thumb stubs based on 3448 1.1 christos use_blx rather than symbian_p. 3449 1.1 christos (elf32_arm_finish_dynamic_symbol): Don't output Thumb PLT stubs if 3450 1.1 christos use_blx is in effect. 3451 1.1 christos (elf32_arm_symbian_link_hash_table_create): Enable use_blx by default 3452 1.1 christos for SymbianOS. 3453 1.1 christos 3454 1.1 christos 2005-04-15 Nick Clifton <nickc (a] redhat.com> 3455 1.1 christos 3456 1.1 christos * coffgen.c (coff_print_symbol): Use fprintf_vma to print vma 3457 1.1 christos values. 3458 1.1 christos 3459 1.1 christos 2005-04-15 Alan Modra <amodra (a] bigpond.net.au> 3460 1.1 christos 3461 1.1 christos PR ld/815 3462 1.1 christos * elflink.c (elf_smash_syms): Clear undef.next if it's not being 3463 1.1 christos used as a list pointer. 3464 1.1 christos 3465 1.1 christos 2005-04-14 Alan Modra <amodra (a] bigpond.net.au> 3466 1.1 christos 3467 1.1 christos * Makefile.am (NO_WERROR): Define. 3468 1.1 christos * warning.m4: New file 3469 1.1 christos * acinclude.m4: Include warning.m4. 3470 1.1 christos * configure.in: Invoke AM_BINUTILS_WARNINGS. 3471 1.1 christos * Makefile.in: Regenerate. 3472 1.1 christos * configure: Regenerate. 3473 1.1 christos 3474 1.1 christos 2005-04-14 Alan Modra <amodra (a] bigpond.net.au> 3475 1.1 christos 3476 1.1 christos * merge.c (sec_merge_emit): Tidy. Check for bfd_zmalloc errors. 3477 1.1 christos Write trailing padding. 3478 1.1 christos 3479 1.1 christos * merge.c (merge_strings): Round up section size for alignment. 3480 1.1 christos 3481 1.1 christos 2005-04-14 David S. Miller <davem (a] davemloft.net> 3482 1.1 christos 3483 1.1 christos Add TLS support for 64-bit Sparc ELF. 3484 1.1 christos * elf64-sparc.c (sparc64_elf_dyn_relocs, 3485 1.1 christos sparc64_elf_link_hash_entry, sparc64_elf_obj_tdata): New structs. 3486 1.1 christos (GOT_UNKNOWN, GOT_NORMAL, GOT_TLD_GD, GOT_TLD_IE, 3487 1.1 christos sparc64_elf_hash_entry, sparc64_elf_tdata, 3488 1.1 christos sparc64_elf_local_got_tls_type): New defines. 3489 1.1 christos (sparc64_elf_mkobject): New function. 3490 1.1 christos (sparc64_elf_link_hash_table): Add members for dynamic linker 3491 1.1 christos sections PLT, RELPLT, DYNBSS, and RELBSS. Add tls_ldm_got 3492 1.1 christos uion to track TLS GOT references. Add sym_sec to cache 3493 1.1 christos mappings from local sym to section. 3494 1.1 christos (link_hash_newfunc): New function. 3495 1.1 christos (sparc64_elf_bfd_link_hash_table_create): Rename to 3496 1.1 christos sparc64_elf_link_hash_table_create for consistency. 3497 1.1 christos Pass link_hash_newfunc to _bfd_elf_link_hash_table_init. 3498 1.1 christos (sparc64_elf_create_dynamic_sections): Initialize new section 3499 1.1 christos members of sparc64_elf_link_hash_table. Only init srelbss 3500 1.1 christos if not-shared. 3501 1.1 christos (sparc64_elf_copy_indirect_symbol, sparc64_elf_tls_transition): 3502 1.1 christos New functions. 3503 1.1 christos (SPARC_NOP): Define. 3504 1.1 christos (sparc64_elf_build_plt, sparc64_elf_plt_entry_offset, 3505 1.1 christos sparc64_elf_plt_ptr_offset): Delete. 3506 1.1 christos (sparc64_plt_entry_build): New function to build PLT entries 3507 1.1 christos gradually instread of all at once at the end of linking. 3508 1.1 christos (sparc64_elf_check_relocs): Delete dynobj, sgot, and srelgot 3509 1.1 christos local vars. Get them from sparc64_elf_hash_table instead. 3510 1.1 christos Check early on if r_symndx is in bounds. Handle TLS transitions. 3511 1.1 christos Account for TLS GOT references and DF_STATIC_TLS, as needed. 3512 1.1 christos For TLS relocs, record the tls_type in either 3513 1.1 christos sparc64_elf_local_got_tls_type or sparc64_elf_hash_entry as 3514 1.1 christos appropriate. For R_SPARC_TLS_{GD,LDM}_CALL, emit a reference 3515 1.1 christos to the __tls_get_addr symbol. For PLT relocs, track references 3516 1.1 christos via h->plt.refcount. When R_SPARC_{PC10,PC22,PC_HH22,PC_HM10, 3517 1.1 christos PC_LM22} and h not-NULL, set h->non_got_ref. For global data 3518 1.1 christos symbol references, count the number of relocations needed for 3519 1.1 christos that symbol. For default switch case, don't error, this lets 3520 1.1 christos the TLS relocs not explicitly handled by this function get 3521 1.1 christos accepted. 3522 1.1 christos (sparc64_elf_gc_mark_hook, sparc64_gc_sweep_hook): New functions. 3523 1.1 christos (sparc64_elf_adjust_dynamic_symbol): Remove dynobj local var, get 3524 1.1 christos it from sparc64_elf_hash_table. Store the real PLT offset 3525 1.1 christos in h->plt.offset, and build PLT entries one at a time. Also 3526 1.1 christos get .dynbss section pointer from htab. 3527 1.1 christos (allocate_dynrelocs, readonly_dynrelocs, 3528 1.1 christos sparc64_omit_section_dynsym): New functions. 3529 1.1 christos (sparc64_elf_omit_section_dynsym): Use these new functions as 3530 1.1 christos helpers. 3531 1.1 christos (dtpoff_base, tpoff): New functions. 3532 1.1 christos (sparc64_elf_relocate_section): Kill dynobj, sgot, and splt 3533 1.1 christos locals, get them from sparc64_elf_hash_table. Handle TLS 3534 1.1 christos relocations and refcounting in main relocation loop. 3535 1.1 christos (sparc64_elf_finish_dynamic_symbol): Use 3536 1.1 christos sparc64_elf_link_hash_table. Build PLT entries as we see 3537 1.1 christos them. Handle TLS GOT relocations. 3538 1.1 christos (sparc64_elf_finish_dynamic_sections): Get sgot and dynobj 3539 1.1 christos from sparc64_elf_hash_table. Initialize only PLT header 3540 1.1 christos not all entries since we not build PLT entries one by one. 3541 1.1 christos (elf_backend_copy_indirect_symbol, bfd_elf64_mkobject, 3542 1.1 christos elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook, 3543 1.1 christos elf_backend_can_gc_sections, elf_backend_can_refcount): Define. 3544 1.1 christos 3545 1.1 christos 2005-04-13 Daniel Jacobowitz <dan (a] codesourcery.com> 3546 1.1 christos 3547 1.1 christos * elflink.c (elf_link_input_bfd): Update check for removed 3548 1.1 christos sections. 3549 1.1 christos 3550 1.1 christos 2005-04-12 Alan Modra <amodra (a] bigpond.net.au> 3551 1.1 christos 3552 1.1 christos * Makefile.am: Run "make dep-am". 3553 1.1 christos * Makefile.in: Regenerate. 3554 1.1 christos * aclocal.m4: Regenerate. 3555 1.1 christos * libcoff.h: Regenerate. 3556 1.1 christos 3557 1.1 christos 2005-04-11 H.J. Lu <hongjiu.lu (a] intel.com> 3558 1.1 christos 3559 1.1 christos * linker.c (_bfd_generic_link_output_symbols): Also check if 3560 1.1 christos the output section of an input section has been removed from 3561 1.1 christos the output file. 3562 1.1 christos 3563 1.1 christos * section.c (bfd_section_list_remove): Clear the next field 3564 1.1 christos of the removed section. 3565 1.1 christos (bfd_section_removed_from_list): New. 3566 1.1 christos * bfd-in2.h: Regenerated. 3567 1.1 christos 3568 1.1 christos 2005-04-11 David S. Miller <davem (a] davemloft.net> 3569 1.1 christos 3570 1.1 christos * elf32-sparc.c (elf32_sparc_relocate_section, 3571 1.1 christos R_SPARC_TLS_LDO_{HIX22,LOX10}): When not shared, transition to 3572 1.1 christos R_SPARC_TLS_LE_{HIX22,LOX10}. 3573 1.1 christos (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_HIX22): Only 3574 1.1 christos xor relocation with 0xffffffff if R_SPARC_TLS_LE_HIX22. 3575 1.1 christos (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_LOX10): Only 3576 1.1 christos or 0x1c00 into relocation if R_SPARC_TLS_LE_HIX22. 3577 1.1 christos 3578 1.1 christos 2005-04-11 H.J. Lu <hongjiu.lu (a] intel.com> 3579 1.1 christos 3580 1.1 christos * coffcode.h (STRING_SIZE_SIZE): Updated to match libcoff-in.h. 3581 1.1 christos 3582 1.1 christos 2005-04-11 Nick Clifton <nickc (a] redhat.com> 3583 1.1 christos 3584 1.1 christos * aout-target.h: Convert to ISO C. 3585 1.1 christos * aoutf1.h: Convert to ISO C. 3586 1.1 christos * aoutx.h: Convert to ISO C. 3587 1.1 christos * bout.c: Convert to ISO C. 3588 1.1 christos * dwarf1.c: Convert to ISO C. 3589 1.1 christos * ecoffswap.h: Convert to ISO C. 3590 1.1 christos * freebsd.h: Convert to ISO C. 3591 1.1 christos * genlink.h: Convert to ISO C. 3592 1.1 christos * ieee.c: Convert to ISO C. 3593 1.1 christos * ihex.c: Convert to ISO C. 3594 1.1 christos * libcoff-in.h: Convert to ISO C. 3595 1.1 christos * mach-o.c: Convert to ISO C. 3596 1.1 christos * mach-o.h: Convert to ISO C. 3597 1.1 christos * netbsd.h: Convert to ISO C. 3598 1.1 christos * ns32k.h: Convert to ISO C. 3599 1.1 christos * ns32knetbsd.c: Convert to ISO C. 3600 1.1 christos * oasys.c: Convert to ISO C. 3601 1.1 christos * pdp11.c: Convert to ISO C. 3602 1.1 christos * pef-traceback.h: Convert to ISO C. 3603 1.1 christos * pef.c: Convert to ISO C. 3604 1.1 christos * pef.h: Convert to ISO C. 3605 1.1 christos * riscix.c: Convert to ISO C. 3606 1.1 christos * som.c: Convert to ISO C. 3607 1.1 christos * som.h: Convert to ISO C. 3608 1.1 christos * srec.c: Convert to ISO C. 3609 1.1 christos * stabs.c: Convert to ISO C. 3610 1.1 christos * sunos.c: Convert to ISO C. 3611 1.1 christos * tekhex.c: Convert to ISO C. 3612 1.1 christos * versados.c: Convert to ISO C. 3613 1.1 christos * version.h: Convert to ISO C. 3614 1.1 christos * xcoff-target.h: Convert to ISO C. 3615 1.1 christos * xcofflink.c: Convert to ISO C. 3616 1.1 christos * xsym.c: Convert to ISO C. 3617 1.1 christos * xsym.h: Convert to ISO C. 3618 1.1 christos 3619 1.1 christos 2005-04-08 Paul Brook <paul (a] codesourcery.com> 3620 1.1 christos 3621 1.1 christos * elf32-arm.c (ARM2THUMB_GLUE_SIZE): Rename... 3622 1.1 christos (ARM2THUMB_STATIC_GLUE_SIZE): ... to this. 3623 1.1 christos (ARM2THUMB_PIC_GLUE_SIZE): Define. 3624 1.1 christos (a2t1p_ldr_insn, a2t2p_add_pc_insn, a2t3p_bx_r12_insn): Add. 3625 1.1 christos (elf32_arm_to_thumb_stub): Create PIC stubs. 3626 1.1 christos (record_arm_to_thumb_glue): Use different stub size for relocatable 3627 1.1 christos images. 3628 1.1 christos 3629 1.1 christos 2005-04-05 Alan Modra <amodra (a] bigpond.net.au> 3630 1.1 christos 3631 1.1 christos * elf64-ppc.c (dec_dynrel_count): New function split out from 3632 1.1 christos ppc64_elf_edit_toc, with additional code from ppc64_elf_edit_opd. 3633 1.1 christos (ppc64_elf_edit_toc, ppc64_elf_edit_opd): Use it. 3634 1.1 christos (ppc64_elf_tls_optimize): Likewise. 3635 1.1 christos 3636 1.1 christos 2005-04-05 Mark Kettenis <kettenis (a] gnu.org> 3637 1.1 christos 3638 1.1 christos * netbsd-core.c (SPARC_WCOOKIE_OFFSET): Renamed from 3639 1.1 christos CORE_WCOOKIE_OFFSET. 3640 1.1 christos (SPARC64_WCOOKIE_OFFSET): New. 3641 1.1 christos (netbsd_core_file_p): Provide .wcookie section for OpenBSD/sparc64. 3642 1.1 christos 3643 1.1 christos 2005-04-05 Nick Clifton <nickc (a] redhat.com> 3644 1.1 christos 3645 1.1 christos * po/rw.po: New translation: Kinyarwanda 3646 1.1 christos * configure.in (ALL_LINGUAS): Add rw 3647 1.1 christos * configure: Regenerate. 3648 1.1 christos 3649 1.1 christos 2005-04-05 Richard Sandiford <rsandifo (a] redhat.com> 3650 1.1 christos 3651 1.1 christos * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME_P): New macro. 3652 1.1 christos (_bfd_mips_elf_section_from_shdr): Use it to check for recognized 3653 1.1 christos SHT_MIPS_OPTIONS names. Allow all sections with unrecognised 3654 1.1 christos section flags. 3655 1.1 christos (_bfd_mips_elf_fake_sections): Use MIPS_ELF_OPTIONS_SECTION_NAME_P 3656 1.1 christos to check for SHT_MIPS_OPTIONS sections. 3657 1.1 christos (_bfd_mips_elf_set_section_contents): Likewise. 3658 1.1 christos 3659 1.1 christos 2005-04-04 Eric Christopher <echristo (a] redhat.com> 3660 1.1 christos 3661 1.1 christos * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): 3662 1.1 christos Clean up gp handling code. 3663 1.1 christos 3664 1.1 christos 2005-04-04 H.J. Lu <hongjiu.lu (a] intel.com> 3665 1.1 christos 3666 1.1 christos * elf.c (bfd_elf_set_group_contents): Ignore linker created 3667 1.1 christos group section. 3668 1.1 christos (assign_section_numbers): Accept link_info. Check SHT_GROUP 3669 1.1 christos sections for relocatable files only. Remove the linker created 3670 1.1 christos group sections. 3671 1.1 christos (_bfd_elf_compute_section_file_positions): Pass link_info to 3672 1.1 christos assign_section_numbers. 3673 1.1 christos 3674 1.1 christos * elfxx-ia64.c (elfNN_ia64_object_p): New. 3675 1.1 christos (elf_backend_object_p): Defined. 3676 1.1 christos 3677 1.1 christos 2005-04-04 H.J. Lu <hongjiu.lu (a] intel.com> 3678 1.1 christos 3679 1.1 christos * elf-bfd.h (elf_section_data): Use (sec) instead of sec. 3680 1.1 christos 3681 1.1 christos 2005-04-03 Fred Fish <fnf (a] specifixinc.com> 3682 1.1 christos 3683 1.1 christos * dwarf2.c (struct dwarf2_debug): Add dwarf_ranges_buffer and 3684 1.1 christos dwarf_ranges_size members. 3685 1.1 christos (struct comp_unit): Add base_address member. 3686 1.1 christos (struct funcinfo): Replace low/high members with an arange. 3687 1.1 christos (arange_add): Replace incoming "unit" parameter with "abfd" and 3688 1.1 christos "first_arange" pointers. Reorganize/rewrite function body. 3689 1.1 christos (decode_line_info): Change arange_add call to pass bfd and arange 3690 1.1 christos pointers. 3691 1.1 christos (lookup_address_in_line_info_table): Use arange list instead of 3692 1.1 christos individual low/high members. Walk function's arange list to find 3693 1.1 christos lowest PC in list, to test for overlapping functions. 3694 1.1 christos (read_debug_ranges): New function, reads the debug_ranges section. 3695 1.1 christos (lookup_address_in_function_table): Use arange list instead of 3696 1.1 christos individual low/high members. Rewrite to find smallest range that 3697 1.1 christos matches. 3698 1.1 christos (read_rangelist): Read a given rangelist from debug_ranges. 3699 1.1 christos (scan_unit_for_functions): Use arange list instead of individual 3700 1.1 christos low/high members. Handle a DW_AT_ranges attribute. 3701 1.1 christos (parse_comp_unit): Use arange list instead of individual low/high 3702 1.1 christos members. Save comp unit base address. Handle a DW_AT_ranges 3703 1.1 christos attribute. 3704 1.1 christos 3705 1.1 christos 2005-04-01 H.J. Lu <hongjiu.lu (a] intel.com> 3706 1.1 christos 3707 1.1 christos * elf.c (assign_section_numbers): Really use the kept section. 3708 1.1 christos 3709 1.1 christos 2005-03-31 H.J. Lu <hongjiu.lu (a] intel.com> 3710 1.1 christos 3711 1.1 christos * elf-bfd.h (_bfd_elf_check_kept_section): New. 3712 1.1 christos 3713 1.1 christos * elf.c (assign_section_numbers): When sh_link points to a 3714 1.1 christos discarded section, call _bfd_elf_check_kept_section to see if 3715 1.1 christos the kept section can be used. Otherwise reject sh_link 3716 1.1 christos pointing to discarded section. 3717 1.1 christos 3718 1.1 christos * elflink.c (_bfd_elf_check_kept_section): New. 3719 1.1 christos (elf_link_input_bfd): Use it. 3720 1.1 christos 3721 1.1 christos 2005-04-01 Alan Modra <amodra (a] bigpond.net.au> 3722 1.1 christos 3723 1.1 christos * elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocs 3724 1.1 christos that we no longer need. 3725 1.1 christos 3726 1.1 christos 2005-04-01 Alan Modra <amodra (a] bigpond.net.au> 3727 1.1 christos 3728 1.1 christos * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors 3729 1.1 christos rather than 0. 3730 1.1 christos (ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check. 3731 1.1 christos 3732 1.1 christos 2005-03-31 H.J. Lu <hongjiu.lu (a] intel.com> 3733 1.1 christos 3734 1.1 christos * elf.c (assign_section_numbers): Fix a typo. 3735 1.1 christos 3736 1.1 christos 2005-03-31 H.J. Lu <hongjiu.lu (a] intel.com> 3737 1.1 christos 3738 1.1 christos * elflink.c (elf_link_input_bfd): Remove the extra `\n' in 3739 1.1 christos error message. 3740 1.1 christos (_bfd_elf_section_already_linked): Likewise. 3741 1.1 christos 3742 1.1 christos 2005-03-31 Jerome Guitton <guitton (a] gnat.com> 3743 1.1 christos 3744 1.1 christos * config.in: Regenerate. 3745 1.1 christos 3746 1.1 christos 2005-03-31 Jerome Guitton <guitton (a] gnat.com> 3747 1.1 christos 3748 1.1 christos * config.in (HAVE_DECL_BASENAME): New configure macro. 3749 1.1 christos * configure.in: Check for basename. 3750 1.1 christos * configure: Regenerate. 3751 1.1 christos 3752 1.1 christos 2005-03-30 Julian Brown <julian (a] codesourcery.com> 3753 1.1 christos 3754 1.1 christos * bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename from 3755 1.1 christos bfd_elf32_is_arm_mapping_symbol_name. 3756 1.1 christos * bfd-in2.h: Regenerate. 3757 1.1 christos * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from 3758 1.1 christos bfd_elf32_is_arm_mapping_symbol_name. 3759 1.1 christos * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename 3760 1.1 christos bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name. 3761 1.1 christos (arm_elf_find_function): Likewise. 3762 1.1 christos (elf32_arm_output_symbol_hook): Likewise. 3763 1.1 christos 3764 1.1 christos 2005-03-30 Julian Brown <julian (a] codesourcery.com> 3765 1.1 christos 3766 1.1 christos * bfd-in.h (bfd_elf32_is_arm_mapping_symbol_name): Add prototype. 3767 1.1 christos * bfd-in2.h: Regenerate. 3768 1.1 christos * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename call to 3769 1.1 christos bfd_elf32_is_arm_mapping_symbol_name. 3770 1.1 christos (elf32_arm_output_symbol_hook): Likewise. 3771 1.1 christos (arm_elf_find_function): Likewise, and include STT_NOTYPE in test for 3772 1.1 christos mapping symbols. 3773 1.1 christos (is_arm_mapping_symbol_name): Function moved from here... 3774 1.1 christos * cpu-arm.c (bfd_elf32_is_arm_mapping_symbol_name): ...to here, renamed 3775 1.1 christos and made global. 3776 1.1 christos 3777 1.1 christos 2005-03-29 Aaron W. LaFramboise <aaron98wiridge9 (a] aaronwl.com> 3778 1.1 christos 3779 1.1 christos * configure.in: Check for ffs decl and alphabetize. 3780 1.1 christos * config.in: Regenerate. 3781 1.1 christos * configure: Regenerate. 3782 1.1 christos * sysdep.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize. 3783 1.1 christos 3784 1.1 christos 2005-03-29 Fred Fish <fnf (a] specifixinc.com> 3785 1.1 christos 3786 1.1 christos * dwarf2.c (struct comp_unit): Fix typo. 3787 1.1 christos (scan_unit_for_functions): Remove unused local variable "name" 3788 1.1 christos and dead code that set it. 3789 1.1 christos 3790 1.1 christos 2005-03-29 Daniel Jacobowitz <dan (a] codesourcery.com> 3791 1.1 christos Phil Blundell <philb (a] gnu.org> 3792 1.1 christos 3793 1.1 christos * bfd-in2.h, libbfd.h: Regenerated. 3794 1.1 christos * reloc.c: Add ARM TLS relocations. 3795 1.1 christos * elf32-arm.c (elf32_arm_howto_table): Add dynamic TLS 3796 1.1 christos relocations. 3797 1.1 christos (elf32_arm_tls_gd32_howto, elf32_arm_tls_ldo32_howto) 3798 1.1 christos (elf32_arm_tls_ldm32_howto, elf32_arm_tls_le32_howto) 3799 1.1 christos (elf32_arm_tls_ie32_howto): New. 3800 1.1 christos (elf32_arm_howto_from_type): Support TLS relocations. 3801 1.1 christos (elf32_arm_reloc_map): Likewise. 3802 1.1 christos (elf32_arm_reloc_type_lookup): Likewise. 3803 1.1 christos (TCB_SIZE): Define. 3804 1.1 christos (struct elf32_arm_obj_tdata): New. 3805 1.1 christos (elf32_arm_tdata, elf32_arm_local_got_tls_type): Define. 3806 1.1 christos (elf32_arm_mkobject): New function. 3807 1.1 christos (struct elf32_arm_relocs_copied): Add pc_count. 3808 1.1 christos (elf32_arm_hash_entry, GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD) 3809 1.1 christos (GOT_TLS_IE): Define. 3810 1.1 christos (struct elf32_arm_link_hash_table): Add tls_ldm_got. 3811 1.1 christos (elf32_arm_link_hash_newfunc): Initialize tls_type. 3812 1.1 christos (elf32_arm_copy_indirect_symbol): Copy pc_count and tls_type. 3813 1.1 christos (elf32_arm_link_hash_table_create): Initialize tls_ldm_got. 3814 1.1 christos (dtpoff_base, tpoff): New functions. 3815 1.1 christos (elf32_arm_final_link_relocate): Handle TLS relocations. 3816 1.1 christos (IS_ARM_TLS_RELOC): Define. 3817 1.1 christos (elf32_arm_relocate_section): Warn about TLS mismatches. 3818 1.1 christos (elf32_arm_gc_sweep_hook): Handle TLS relocations and pc_count. 3819 1.1 christos (elf32_arm_check_relocs): Detect invalid symbol indexes. Handle 3820 1.1 christos TLS relocations and pc_count. 3821 1.1 christos (elf32_arm_adjust_dynamic_symbol): Check non_got_ref. 3822 1.1 christos (allocate_dynrelocs): Handle TLS. Bind REL32 relocs to local 3823 1.1 christos calls. 3824 1.1 christos (elf32_arm_size_dynamic_sections): Handle TLS. 3825 1.1 christos (elf32_arm_finish_dynamic_symbol): Likewise. 3826 1.1 christos (bfd_elf32_mkobject): Define. 3827 1.1 christos 3828 1.1 christos 2005-03-29 Daniel Jacobowitz <dan (a] codesourcery.com> 3829 1.1 christos 3830 1.1 christos * elf32-arm.c (elf32_arm_check_relocs): Increment count for all 3831 1.1 christos relocation types. Don't count relocations which will use a PLT. 3832 1.1 christos 3833 1.1 christos 2005-03-29 Joel Brobecker <brobecker (a] gnat.com> 3834 1.1 christos 3835 1.1 christos * elf.c (elfcore_grok_nto_status): Print tid as long. 3836 1.1 christos (elfcore_grok_nto_regs): Likewise. 3837 1.1 christos 3838 1.1 christos 2005-03-29 Joel Brobecker <brobecker (a] gnat.com> 3839 1.1 christos 3840 1.1 christos * irix-core.c: Remove some unnecessary prototypes. 3841 1.1 christos 3842 1.1 christos 2005-03-28 Joel Brobecker <brobecker (a] adacore.com> 3843 1.1 christos 3844 1.1 christos * irix-core.c: Convert to ISO C. 3845 1.1 christos 3846 1.1 christos 2005-03-28 Joel Brobecker <brobecker (a] adacore.com> 3847 1.1 christos 3848 1.1 christos * irix-core.c (do_sections): Replace + by | in expression. 3849 1.1 christos (irix_core_core_file_matches_executable_p): Add ATTRIBUTE_UNUSED 3850 1.1 christos to unused parameters to avoid a compiler warning. 3851 1.1 christos 3852 1.1 christos 2005-03-28 Mark Kettenis <kettenis (a] gnu.org> 3853 1.1 christos 3854 1.1 christos * netbsd-core.c: Convert to ISO C. Fix formatting. 3855 1.1 christos 3856 1.1 christos 2005-03-24 Eric Christopher <echristo (a] redhat.com> 3857 1.1 christos 3858 1.1 christos * elfxx-mips.c: Revert previous patch. 3859 1.1 christos 3860 1.1 christos 2005-03-24 Nick Clifton <nickc (a] redhat.com> 3861 1.1 christos 3862 1.1 christos * targets.c (_bfd_target_vector): Only include the 3863 1.1 christos bfd_elf32_ia64_hpux_big_vec vector when building a 64-bit BFD with 3864 1.1 christos all targets enabled. 3865 1.1 christos 3866 1.1 christos 2005-03-24 James E Wilson <wilson (a] specifixinc.com> 3867 1.1 christos 3868 1.1 christos * Makefile.am (BFD32_BACKENDS): Delete elf32-ia64.lo. 3869 1.1 christos (BFD64_BACKENDS): Add elf32-ia64.lo. 3870 1.1 christos * Makefile.in: Regenerate. 3871 1.1 christos 3872 1.1 christos 2005-03-23 Eric Christopher <echristo (a] redhat.com> 3873 1.1 christos 3874 1.1 christos * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): New. 3875 1.1 christos (mips_elf_calculate_relocation): Use. Define DF_TEXTREL 3876 1.1 christos after emitting relocation. 3877 1.1 christos (_bfd_mips_elf_adjust_dynamic_symbol): Ditto. 3878 1.1 christos (_bfd_mips_elf_check_relocs): Remove code to set DF_TEXTREL 3879 1.1 christos and readonly_reloc. 3880 1.1 christos 3881 1.1 christos 2005-03-23 Mike Frysinger <vapier (a] gentoo.org> 3882 1.1 christos Nick Clifton <nickc (a] redhat.com> 3883 1.1 christos 3884 1.1 christos * config.bfd: Accept any C library to accompany a GNU Linux 3885 1.1 christos implementation, not just the GNU C library. 3886 1.1 christos * configure.in: Likewise. 3887 1.1 christos * configure: Regenerate. 3888 1.1 christos 3889 1.1 christos 2005-03-22 H.J. Lu <hongjiu.lu (a] intel.com> 3890 1.1 christos 3891 1.1 christos * bfd-in.h (_bfd_elf_provide_symbol): New. 3892 1.1 christos * bfd-in2.h: Regenerated. 3893 1.1 christos 3894 1.1 christos * elf32-ppc.c (set_linker_sym): Moved to elflink.c. 3895 1.1 christos (ppc_elf_set_sdata_syms): Call _bfd_elf_provide_symbol instead 3896 1.1 christos of set_linker_sym. 3897 1.1 christos 3898 1.1 christos * elflink.c (_bfd_elf_provide_symbol): New. Moved and renamed 3899 1.1 christos from elf32-ppc.c. 3900 1.1 christos 3901 1.1 christos 2005-03-22 Hans-Peter Nilsson <hp (a] axis.com> 3902 1.1 christos 3903 1.1 christos * hash.c (strtab_hash_newfunc): Fix typo in allocated size. 3904 1.1 christos 3905 1.1 christos 2005-03-22 Bob Wilson <bob.wilson (a] acm.org> 3906 1.1 christos 3907 1.1 christos * xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup, 3908 1.1 christos xtensa_sysreg_lookup_name, xtensa_interface_lookup, 3909 1.1 christos xtensa_funcUnit_lookup): Skip bsearch call if count is zero. 3910 1.1 christos (xtensa_opcode_decode): Rearrange code. 3911 1.1 christos 3912 1.1 christos 2005-03-22 Nick Clifton <nickc (a] redhat.com> 3913 1.1 christos 3914 1.1 christos * binary.c: Convert to ISO C90 formatting. 3915 1.1 christos * coff-arm.c: Convert to ISO C90 formatting. 3916 1.1 christos * coffgen.c: Convert to ISO C90 formatting. 3917 1.1 christos * elf32-gen.c: Convert to ISO C90 formatting. 3918 1.1 christos * elf64-gen.c: Convert to ISO C90 formatting. 3919 1.1 christos * hash.c: Convert to ISO C90 formatting. 3920 1.1 christos * ieee.c: Convert to ISO C90 formatting. 3921 1.1 christos 3922 1.1 christos 2005-03-22 Daniel Jacobowitz <dan (a] codesourcery.com> 3923 1.1 christos 3924 1.1 christos * elf32-arm.c (elf32_arm_final_link_relocate): Don't fail for 3925 1.1 christos unresolved symbols in R_ARM_NONE relocations. 3926 1.1 christos 3927 1.1 christos 2005-03-22 Daniel Jacobowitz <dan (a] codesourcery.com> 3928 1.1 christos 3929 1.1 christos * elf32-arm.c (elf32_arm_final_link_relocate): Add 3930 1.1 christos UNRESOLVED_RELOC_P argument. Set it appropriately. 3931 1.1 christos (elf32_arm_relocate_section): Update call to 3932 1.1 christos elf32_arm_final_link_relocate. Don't clobber RELOCATION; use 3933 1.1 christos unresolved_reloc instead. 3934 1.1 christos 3935 1.1 christos 2005-03-23 Alan Modra <amodra (a] bigpond.net.au> 3936 1.1 christos 3937 1.1 christos * elflink.c (elf_link_add_object_symbols): Set SEC_EXCLUDE on 3938 1.1 christos .gnu.warning.* sections. 3939 1.1 christos 3940 1.1 christos 2005-03-22 Alan Modra <amodra (a] bigpond.net.au> 3941 1.1 christos 3942 1.1 christos * elf32-ppc.c (elf_linker_section_pointers_t): Remove 3943 1.1 christos written_address_p. 3944 1.1 christos (ppc_elf_create_linker_section): Don't try to reuse existing section. 3945 1.1 christos (elf_create_pointer_linker_section): Delete info parm. Don't make 3946 1.1 christos h dynamic. Don't set written_address_p. 3947 1.1 christos (ppc_elf_check_relocs): Adjust ppc_elf_create_linker_section calls. 3948 1.1 christos (bfd_put_ptr): Delete. 3949 1.1 christos (elf_finish_pointer_linker_section): Remove output_bfd and info parms. 3950 1.1 christos Always write section contents. Assert global sym is def_regular. 3951 1.1 christos Use offset bottom bit as a written flag. 3952 1.1 christos (ppc_elf_relocate_section): Adjust elf_finish_pointer_linker_section 3953 1.1 christos calls. 3954 1.1 christos 3955 1.1 christos 2005-03-22 Alan Modra <amodra (a] bigpond.net.au> 3956 1.1 christos 3957 1.1 christos * elf32-ppc.c (ppc_elf_set_sdata_syms): New function, extracted from.. 3958 1.1 christos (ppc_elf_set_sdata_syms): ..here. Expand comment. Set .sbss start 3959 1.1 christos and end syms. 3960 1.1 christos 3961 1.1 christos 2005-03-21 Nick Clifton <nickc (a] redhat.com> 3962 1.1 christos 3963 1.1 christos * coff-arm.c (coff_link_hash_entry): Only define for non WINCE 3964 1.1 christos targets. 3965 1.1 christos (t2a1_bx_pc_insn): Likewise. 3966 1.1 christos (t2a2_noop_insn): Likewise. 3967 1.1 christos (t2a3_b_insn): Likewise. 3968 1.1 christos (t2a1_push_insn): Likewise. 3969 1.1 christos (t2a2_ldr_insn): Likewise. 3970 1.1 christos (t2a3_mov_insn): Likewise. 3971 1.1 christos (t2a4_bx_insn): Likewise. 3972 1.1 christos (t2a5_pop_insn): Likewise. 3973 1.1 christos (t2a6_bx_insn): Likewise. 3974 1.1 christos (coff_arm_relocate_section): Only declare the high_address 3975 1.1 christos variable for non WINCE targets. 3976 1.1 christos 3977 1.1 christos 2005-03-22 Alan Modra <amodra (a] bigpond.net.au> 3978 1.1 christos 3979 1.1 christos * elf32-ppc.c (ppc_elf_add_symbol_hook): Make htab->sbss 3980 1.1 christos SEC_LINKER_CREATED. Attach to dynobj. 3981 1.1 christos (ppc_elf_size_dynamic_sections): Strip htab->sbss if zero size. 3982 1.1 christos 3983 1.1 christos 2005-03-21 Alan Modra <amodra (a] bigpond.net.au> 3984 1.1 christos 3985 1.1 christos * elf32-ppc.c (struct elf_linker_section): Remove sym_hash and 3986 1.1 christos sym_offset. Add name, bss_name, sym_name, sym_val. 3987 1.1 christos (struct ppc_elf_link_hash_table): Remove sdata and sdata2 pointers. 3988 1.1 christos Add sdata array of elf_linker_section_t. 3989 1.1 christos (ppc_elf_link_hash_table_create): Set name, sym_name, and bss_name. 3990 1.1 christos (enum elf_linker_section_enum): Delete. 3991 1.1 christos (ppc_elf_create_linker_section): Rewrite. Don't create syms here. 3992 1.1 christos (ppc_elf_check_relocs): Delay ppc_elf_create_linker_section until 3993 1.1 christos the special sections are needed. Adjust htab->sdata refs. 3994 1.1 christos Ensure dynobj is set in sreloc code. 3995 1.1 christos (ppc_elf_size_dynamic_sections): Strip sdata sections. 3996 1.1 christos (ppc_elf_set_sdata_syms): New function. 3997 1.1 christos (elf_finish_pointer_linker_section): Use 0x8000 for sym_offset. 3998 1.1 christos (ppc_elf_relocate_section): Adjust references to htab->sdata. Use 3999 1.1 christos sym_val instead of sym_hash. 4000 1.1 christos * elf32-ppc.h (ppc_elf_set_sdata_syms): Declare. 4001 1.1 christos 4002 1.1 christos 2005-03-21 Alan Modra <amodra (a] bigpond.net.au> 4003 1.1 christos 4004 1.1 christos * elf32-ppc.c (is_ppc_elf_target): Move to linker part of file. 4005 1.1 christos (ppc_elf_merge_private_bfd_data): Likewise. 4006 1.1 christos 4007 1.1 christos 2005-03-21 Alan Modra <amodra (a] bigpond.net.au> 4008 1.1 christos 4009 1.1 christos * elf32-ppc.c (struct elf_linker_section): Remove rel_section. 4010 1.1 christos (ppc_elf_create_linker_section): Don't create rel_section. 4011 1.1 christos (elf_create_pointer_linker_section): Don't size relocs. 4012 1.1 christos (elf_finish_pointer_linker_section): Remove relative_reloc parm. 4013 1.1 christos Don't generate relocs. 4014 1.1 christos (ppc_elf_relocate_section): Adjust calls to 4015 1.1 christos elf_finish_pointer_linker_section. 4016 1.1 christos 4017 1.1 christos 2005-03-21 Alan Modra <amodra (a] bigpond.net.au> 4018 1.1 christos 4019 1.1 christos * elf32-ppc.c (is_ppc_elf_target): New function. 4020 1.1 christos (ppc_elf_merge_private_bfd_data): Use it rather than just testing 4021 1.1 christos for bfd_target_elf_flavour. Do this test before endian check. 4022 1.1 christos (ppc_elf_add_symbol_hook): Use is_pcc_elf_target. 4023 1.1 christos (ppc_elf_size_dynamic_sections): Likewise. 4024 1.1 christos 4025 1.1 christos 2005-03-20 H.J. Lu <hongjiu.lu (a] intel.com> 4026 1.1 christos 4027 1.1 christos * elf-bfd.h (elf_backend_data): Add int to 4028 1.1 christos elf_backend_section_from_shdr. 4029 1.1 christos (bfd_elf_section_data): Update comment for this_idx. 4030 1.1 christos (_bfd_elf_make_section_from_shdr): Add int. 4031 1.1 christos * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise. 4032 1.1 christos 4033 1.1 christos * elf.c (_bfd_elf_make_section_from_shdr): Take section index 4034 1.1 christos and use it to set this_idx in bfd_elf_section_data. 4035 1.1 christos (bfd_section_from_shdr): Pass shindex to 4036 1.1 christos _bfd_elf_make_section_from_shdr. 4037 1.1 christos (_bfd_elf_section_from_bfd_section): Use this_idx in 4038 1.1 christos bfd_elf_section_data to find section index. 4039 1.1 christos 4040 1.1 christos * elf32-arm.c (elf32_arm_section_from_shdr): Take section 4041 1.1 christos index and pass it to _bfd_elf_make_section_from_shdr. 4042 1.1 christos * elf32-i370.c(i370_elf_section_from_shdr): Likewise. 4043 1.1 christos * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise. 4044 1.1 christos * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise. 4045 1.1 christos * elf32-v850.c (v850_elf_section_from_shdr): Likewise. 4046 1.1 christos * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise. 4047 1.1 christos * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise. 4048 1.1 christos * elf64-x86-64.c (elf64_x86_64_section_from_shdr): Likewise. 4049 1.1 christos * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise. 4050 1.1 christos * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise. 4051 1.1 christos 4052 1.1 christos 2005-03-19 Danny Smith <dannysmith (a] users.sourceforge.net> 4053 1.1 christos Ross Ridge <rridge (a] csclub.uwaterloo.ca> 4054 1.1 christos 4055 1.1 christos * peicode.h (pe_ILF_build_a_bfd): Strip only one prefix 4056 1.1 christos character in IMPORT_NAME_UNDECORATE and IMPORT_NAME_NOPREFIX 4057 1.1 christos cases. Add comment. 4058 1.1 christos 4059 1.1 christos 2005-03-18 H.J. Lu <hongjiu.lu (a] intel.com> 4060 1.1 christos 4061 1.1 christos * elflink.c (elf_mark_used_section): Remove check for special 4062 1.1 christos sections. 4063 1.1 christos 4064 1.1 christos 2005-03-18 Andreas Schwab <schwab (a] suse.de> 4065 1.1 christos 4066 1.1 christos * elfxx-ia64.c (elfNN_ia64_install_value): Change type of insn 4067 1.1 christos from bfd_vma to ia64_insn, remove broken cast. 4068 1.1 christos 4069 1.1 christos 2005-03-18 C Jaiprakash <cjaiprakash (a] noida.hcltech.com> 4070 1.1 christos 4071 1.1 christos * elf32-m68k.c (elf_cfv4e_plt0_entry): plt entry for coldfire v4e. 4072 1.1 christos (elf_m68k_adjust_dynamic_symbol,elf_m68k_finish_dynamic_symbol, 4073 1.1 christos elf_m68k_finish_dynamic_sections): Use it. 4074 1.1 christos 4075 1.1 christos 2005-03-17 Paul Brook <paul (a] codesourcery.com> 4076 1.1 christos Dan Jacobowitz <dan (a] codesourcery.com> 4077 1.1 christos Mark Mitchell <mark (a] codesourcery.com> 4078 1.1 christos 4079 1.1 christos * elf32-arm.c (elf32_arm_modify_segment_map): New function. 4080 1.1 christos (elf32_arm_additional_program_headers): Likewise. 4081 1.1 christos (elf_backend_modify_segment_map): Define. 4082 1.1 christos (elf_backend_additional_program_headers): Likewise. 4083 1.1 christos (elf32_arm_symbian_modify_segment_map): Use 4084 1.1 christos elf32_arm_modify_segment_map. 4085 1.1 christos 4086 1.1 christos 2005-03-18 H.J. Lu <hongjiu.lu (a] intel.com> 4087 1.1 christos 4088 1.1 christos * elflink.c (elf_mark_used_section): Check bfd_is_const_section 4089 1.1 christos for special sections. 4090 1.1 christos 4091 1.1 christos 2005-03-18 Alan Modra <amodra (a] bigpond.net.au> 4092 1.1 christos 4093 1.1 christos * elf-bfd.h (_bfd_elf_link_renumber_dynsyms): Delete. 4094 1.1 christos * elflink.c (_bfd_elf_link_renumber_dynsyms): Make static, add 4095 1.1 christos section_sym_count param, and return number of section symbols. 4096 1.1 christos (bfd_elf_size_dynamic_sections): Clear section symbol area of 4097 1.1 christos .dynsym contents. Don't bother calling swap_symbol_out on the 4098 1.1 christos first all-zero dynsym. 4099 1.1 christos (elf_mark_used_section): Formatting. Avoid twiddling flags in 4100 1.1 christos special sections like bfd_abs_section. 4101 1.1 christos (bfd_elf_gc_sections): Spelling fix. 4102 1.1 christos 4103 1.1 christos 2005-03-16 Fred Fish <fnf (a] specifixinc.com> 4104 1.1 christos 4105 1.1 christos PR binutils/790 4106 1.1 christos * dwarf2.c (read_indirect_string): Fix apparent typo, check 4107 1.1 christos dwarf_str_buffer allocation, not dwarf_abbrev_buffer. 4108 1.1 christos 4109 1.1 christos 2005-03-16 H.J. Lu <hongjiu.lu (a] intel.com> 4110 1.1 christos 4111 1.1 christos * elflink.c (elf_mark_used_section): New. 4112 1.1 christos (bfd_elf_gc_sections): Call elf_gc_mark_section for 4113 1.1 christos non-relocatable link if we don't do GC. 4114 1.1 christos 4115 1.1 christos 2005-03-16 Nick Clifton <nickc (a] redhat.com> 4116 1.1 christos Ben Elliston <bje (a] au.ibm.com> 4117 1.1 christos 4118 1.1 christos * configure.in (werror): New switch: Add -Werror to the 4119 1.1 christos compiler command line. Enabled by default. Disable via 4120 1.1 christos --disable-werror. 4121 1.1 christos * configure: Regenerate. 4122 1.1 christos 4123 1.1 christos 2005-03-16 Nick Clifton <nickc (a] redhat.com> 4124 1.1 christos 4125 1.1 christos * ecoff.c: Convert to ISO C90 formatting. 4126 1.1 christos 4127 1.1 christos 2005-03-16 Alan Modra <amodra (a] bigpond.net.au> 4128 1.1 christos 4129 1.1 christos * elf32-ppc.c: Divide file into general and linker specific 4130 1.1 christos functions. Sort linker functions into roughly the order in which 4131 1.1 christos they are called by the ELF linker code. 4132 1.1 christos 4133 1.1 christos 2005-03-16 Alan Modra <amodra (a] bigpond.net.au> 4134 1.1 christos 4135 1.1 christos * elf32-ppc.c (ppc_elf_create_linker_section): Set SEC_LINKER_CREATED 4136 1.1 christos on section. Correct comment, and add FIXME. 4137 1.1 christos (ppc_elf_additional_program_headers): Don't bump header count for 4138 1.1 christos interp. Test SEC_ALLOC, not SEC_LOAD, and don't test size. 4139 1.1 christos (ppc_elf_size_dynamic_sections): Don't strip sdata and sdata2, but 4140 1.1 christos do allocate memory if they need it. 4141 1.1 christos 4142 1.1 christos 2005-03-15 Mikkel Krautz <krautz (a] gmail.com> 4143 1.1 christos 4144 1.1 christos * config.bfd (x86_64-elf): Add target. 4145 1.1 christos 4146 1.1 christos 2005-03-15 Alan Modra <amodra (a] bigpond.net.au> 4147 1.1 christos 4148 1.1 christos * po/es.po: Commit new Spanish translation. 4149 1.1 christos 4150 1.1 christos 2005-03-14 H.J. Lu <hongjiu.lu (a] intel.com> 4151 1.1 christos 4152 1.1 christos * elfxx-ia64.c (elfNN_ia64_relocate_section): Set symbo name 4153 1.1 christos for global symbol when reporting overflow. 4154 1.1 christos 4155 1.1 christos 2005-03-11 Jakub Jelinek <jakub (a] redhat.com> 4156 1.1 christos 4157 1.1 christos * libbfd-in.h (_bfd_ar_spacepad): New prototype. 4158 1.1 christos * libbfd.h: Rebuilt. 4159 1.1 christos * archive.c (_bfd_ar_spacepad): New function. 4160 1.1 christos (_bfd_construct_extended_name_table, _bfd_write_archive_contents, 4161 1.1 christos bsd_write_armap, _bfd_archive_bsd_update_armap_timestamp, 4162 1.1 christos coff_write_armap): Use it. 4163 1.1 christos (bfd_ar_hdr_from_filesystem): Likewise. Fix HP-UX large 4164 1.1 christos uid/gid support. 4165 1.1 christos * archive64.c (bfd_elf64_archive_write_armap): Use _bfd_ar_spacepad. 4166 1.1 christos 4167 1.1 christos 2005-03-10 Mark Kettenis <kettenis (a] gnu.org> 4168 1.1 christos 4169 1.1 christos * archive.c (_bfd_look_for_bfd_in_cache): Move declaration of 4170 1.1 christos has_table to the start of the function. 4171 1.1 christos 4172 1.1 christos 2005-03-10 Ben Elliston <bje (a] au.ibm.com> 4173 1.1 christos 4174 1.1 christos * archive.c: Include hashtab.h. 4175 1.1 christos (struct ar_cache): Rename `arelt' to `arbfd' and remove `next'. 4176 1.1 christos (_bfd_look_for_bfd_in_cache): Reimplement using htab_find. 4177 1.1 christos (hash_file_ptr): New function. 4178 1.1 christos (eq_file_ptr): Likewise. 4179 1.1 christos (_bfd_add_bfd_to_archive_cache): Reimplement using a hash table. 4180 1.1 christos * libbfd-in.h: Include hashtab.h. 4181 1.1 christos (struct artdata): Change `cache' member type to htab_t. 4182 1.1 christos * libbfd.h: Rebuild. 4183 1.1 christos 4184 1.1 christos 2005-03-08 Daniel Jacobowitz <dan (a] codesourcery.com> 4185 1.1 christos 4186 1.1 christos * configure.in: Bump version to 2.16.90. 4187 1.1 christos * configure: Regenerated. 4188 1.1 christos 4189 1.1 christos 2005-03-07 Jakub Jelinek <jakub (a] redhat.com> 4190 1.1 christos 4191 1.1 christos * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp. 4192 1.1 christos close is a function like macro in system headers. 4193 1.1 christos 4194 1.1 christos 2005-03-07 Alan Modra <amodra (a] bigpond.net.au> 4195 1.1 christos 4196 1.1 christos PR ld/778 4197 1.1 christos * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Reinstate 4198 1.1 christos _GLOBAL_OFFSET_TABLE_ as a normal dynamic symbol. 4199 1.1 christos 4200 1.1 christos 2005-03-06 Alan Modra <amodra (a] bigpond.net.au> 4201 1.1 christos 4202 1.1 christos * elf.c (elfcore_grok_win32pstatus): Warning fixes. 4203 1.1 christos 4204 1.1 christos 2005-03-05 Alan Modra <amodra (a] bigpond.net.au> 4205 1.1 christos 4206 1.1 christos * po/bfd.pot: Regenerate. 4207 1.1 christos 4208 1.1 christos 2005-03-05 Alan Modra <amodra (a] bigpond.net.au> 4209 1.1 christos 4210 1.1 christos * elf64-ppc.c (update_plt_info): Don't mark new ABI call syms 4211 1.1 christos with is_func. 4212 1.1 christos (func_desc_adjust): Force dot-syms local in executables as well 4213 1.1 christos as shared libs. 4214 1.1 christos 4215 1.1 christos 2005-03-04 David Daney <ddaney (a] avtrex.com> 4216 1.1 christos 4217 1.1 christos * elfxx-mips.c (mips_elf_calculate_relocation): Handle special 4218 1.1 christos '__gnu_local_gp' symbol used by gas -mno-shared. 4219 1.1 christos 4220 1.1 christos 2005-03-03 H.J. Lu <hongjiu.lu (a] intel.com> 4221 1.1 christos 4222 1.1 christos * elf-bfd.h (elf_backend_data): Add "const char *" to 4223 1.1 christos elf_backend_section_from_phdr. 4224 1.1 christos 4225 1.1 christos * elf.c (bfd_section_from_phdr): Pass "proc" to the 4226 1.1 christos elf_backend_section_from_phdr hook. 4227 1.1 christos 4228 1.1 christos 2005-03-02 Daniel Jacobowitz <dan (a] codesourcery.com> 4229 1.1 christos Joseph Myers <joseph (a] codesourcery.com> 4230 1.1 christos 4231 1.1 christos * elfxx-mips.c (struct mips_got_entry): Add tls_type. 4232 1.1 christos (struct mips_got_info): Add tls_gotno, tls_assigned_gotno, 4233 1.1 christos and tls_ldm_offset. 4234 1.1 christos (struct mips_elf_got_per_bfd_arg): Add global_count. 4235 1.1 christos (struct mips_elf_count_tls_arg): New. 4236 1.1 christos (struct mips_elf_hash_sort_data): Update comment for min_got_dynindx. 4237 1.1 christos (struct mips_elf_link_hash_entry): Add tls_type and tls_got_offset. 4238 1.1 christos (GOT_NORMAL, GOT_TLS_GD, GOT_TLS_LDM, GOT_TLS_IE) 4239 1.1 christos (GOT_TLS_OFFSET_DONE, GOT_TLS_DONE): Define. 4240 1.1 christos (TLS_RELOC_P): Define. 4241 1.1 christos (TP_OFFSET, DTP_OFFSET): Define. 4242 1.1 christos (dtprel_base, tprel_base): New functions. 4243 1.1 christos (mips_elf_link_hash_newfunc): Initialize tls_type. 4244 1.1 christos (mips_elf_got_entry_hash, mips_elf_got_entry_eq) 4245 1.1 christos (mips_elf_multi_got_entry_hash, mips_elf_multi_got_entry_eq): Handle 4246 1.1 christos TLS entries. 4247 1.1 christos (mips_tls_got_relocs, mips_elf_count_local_tls_relocs) 4248 1.1 christos (mips_elf_count_global_tls_entries, mips_elf_count_global_tls_relocs) 4249 1.1 christos (mips_elf_output_dynamic_relocation, mips_elf_initialize_tls_slots) 4250 1.1 christos (mips_tls_got_index): New functions. 4251 1.1 christos (mips_elf_local_got_index): Add new R_SYMNDX, H, and R_TYPE 4252 1.1 christos arguments. Pass them to mips_elf_create_local_got_entry. Use 4253 1.1 christos mips_tls_got_index. 4254 1.1 christos (mips_elf_global_got_index): Add new R_TYPE and INFO arguments. 4255 1.1 christos Handle TLS entries. 4256 1.1 christos (mips_elf_got_page, mips_elf_got16_entry): Update calls to 4257 1.1 christos mips_elf_create_local_got_entry. 4258 1.1 christos (mips_elf_create_local_got_entry): Add new R_SYMNDX, H, and R_TYPE 4259 1.1 christos arguments. Handle TLS entries. 4260 1.1 christos (mips_elf_sort_hash_table_f): Add non-TLS assertions. 4261 1.1 christos (mips_elf_record_local_got_symbol): Add new TLS_FLAG argument. Handle 4262 1.1 christos TLS entries. 4263 1.1 christos (mips_elf_record_global_got_symbol): Likewise. 4264 1.1 christos (mips_elf_make_got_per_bfd): Initialize new mips_got_info members. 4265 1.1 christos Count TLS entries. 4266 1.1 christos (mips_elf_merge_gots): Handle TLS entries when merging. 4267 1.1 christos (mips_elf_initialize_tls_index): New function. 4268 1.1 christos (mips_elf_set_global_got_offset): Handle TLS entries. 4269 1.1 christos (mips_elf_adjust_gp): Handle TLS. 4270 1.1 christos (mips_elf_multi_got): Remove redundant call to 4271 1.1 christos mips_elf_resolve_final_got_entries. Initialize global_count. 4272 1.1 christos Correct a comment. Initialize new TLS members of mips_got_info. 4273 1.1 christos Assign TLS GOT indexes for new GOTs. 4274 1.1 christos (mips_elf_create_got_section): Initialize new TLS members of 4275 1.1 christos mips_got_info. 4276 1.1 christos (mips_elf_calculate_relocation): Handle TLS relocs. 4277 1.1 christos (_bfd_mips_elf_check_relocs): Likewise. Update calls to changed 4278 1.1 christos functions. 4279 1.1 christos (_bfd_mips_elf_always_size_sections): Handle TLS. 4280 1.1 christos (_bfd_mips_elf_size_dynamic_sections): Likewise. 4281 1.1 christos (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Update calls to 4282 1.1 christos changed functions. 4283 1.1 christos (_bfd_mips_elf_copy_indirect_symbol): Copy tls_type. 4284 1.1 christos (_bfd_mips_elf_hide_symbol): Handle TLS. 4285 1.1 christos * elfn32-mips.c (elf_mips_howto_table_rel, elf_mips_howto_table_rela) 4286 1.1 christos (mips_reloc_map): Add TLS relocs. 4287 1.1 christos * elf32-mips.c (elf_mips_howto_table_rel, mips_reloc_map): Likewise. 4288 1.1 christos * elf64-mips.c (mips_elf64_howto_table_rel) 4289 1.1 christos (mips_elf64_howto_table_rela, mips_reloc_map): Likewise. 4290 1.1 christos * reloc.c: Define new MIPS TLS relocations. 4291 1.1 christos * libbfd.h, bfd-in2.h: Regenerated. 4292 1.1 christos 4293 1.1 christos 2005-03-02 Jan Beulich <jbeulich (a] novell.com> 4294 1.1 christos 4295 1.1 christos * Makefile.am: Add dependency of cache.o on libiberty.h. 4296 1.1 christos * cache.c: Include libiberty.h. 4297 1.1 christos (bfd_open_file): Use unlink_if_ordinary instead of unlink. 4298 1.1 christos 4299 1.1 christos 2005-03-01 Zack Weinberg <zack (a] codesourcery.com> 4300 1.1 christos 4301 1.1 christos * elf.c (bfd_section_from_shdr <default case>): Call 4302 1.1 christos elf_backend_section_from_shdr hook unconditionally, and return 4303 1.1 christos what it returns. 4304 1.1 christos (bfd_section_from_phdr): Similarly, for elf_backend_section_from_phdr. 4305 1.1 christos * elfxx-target.h (elf_backend_section_from_shdr) 4306 1.1 christos (elf_backend_section_from_phdr): Default to 4307 1.1 christos _bfd_elf_make_section_from_shdr and _bfd_elf_make_section_from_phdr 4308 1.1 christos respectively. 4309 1.1 christos 4310 1.1 christos 2005-03-01 Alan Modra <amodra (a] bigpond.net.au> 4311 1.1 christos 4312 1.1 christos * targets.h: Typo fix. 4313 1.1 christos * bfd-in2.h: Regenerate. 4314 1.1 christos 4315 1.1 christos * bout.c (b_out_write_object_contents): Don't use sizeof on host 4316 1.1 christos structs to size on-disk structures. 4317 1.1 christos (b_out_set_section_contents): Size the external struct, not the 4318 1.1 christos internal one for on-disk size. 4319 1.1 christos (b_out_sizeof_headers): Likewise. 4320 1.1 christos 4321 1.1 christos 2005-03-01 Alan Modra <amodra (a] bigpond.net.au> 4322 1.1 christos 4323 1.1 christos * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym 4324 1.1 christos entry points with the func descriptor as well as undefweak. 4325 1.1 christos 4326 1.1 christos 2005-02-28 Ross Ridge <rridge (a] csclub.uwaterloo.ca> 4327 1.1 christos 4328 1.1 christos * peicode.h (pe_ILF_build_a_bfd): Do not assume that an @ will be 4329 1.1 christos present when IMPORT_NAME_UNDOECRATE is used. 4330 1.1 christos 4331 1.1 christos 2005-02-28 H.J. Lu <hongjiu.lu (a] intel.com> 4332 1.1 christos 4333 1.1 christos PR 757 4334 1.1 christos * elf-bfd.h (_bfd_elf_merge_symbol): Add a pointer to unsigned 4335 1.1 christos int. 4336 1.1 christos 4337 1.1 christos * elf32-sh-symbian.c (sh_symbian_relocate_section): Pass NULL 4338 1.1 christos to _bfd_elf_merge_symbol. 4339 1.1 christos 4340 1.1 christos * elflink.c (_bfd_elf_merge_symbol): Use the pointer to 4341 1.1 christos unsigned int to return the alignment of the old common symbol 4342 1.1 christos in the dynamic object. 4343 1.1 christos (_bfd_elf_add_default_symbol): Pass NULL to 4344 1.1 christos _bfd_elf_merge_symbol. 4345 1.1 christos (elf_link_add_object_symbols): Pass &old_alignment to 4346 1.1 christos _bfd_elf_merge_symbol. Get the alignment of the new common 4347 1.1 christos symbol in the dynamic object. 4348 1.1 christos 4349 1.1 christos 2005-02-24 Ben Elliston <bje (a] au.ibm.com> 4350 1.1 christos 4351 1.1 christos * coffcode.h (coff_sym_filepos): Remove GNU960 conditional code. 4352 1.1 christos * format.c (bfd_check_format_matches): Likewise. 4353 1.1 christos * archive.c (BFD_GNU960_ARMAG): Likewise. 4354 1.1 christos (bfd_generic_archive_p): Likewise. 4355 1.1 christos (_bfd_write_archive_contents): Likewise. 4356 1.1 christos 4357 1.1 christos 2005-02-24 H.J. Lu <hongjiu.lu (a] intel.com> 4358 1.1 christos 4359 1.1 christos * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.95. 4360 1.1 christos * configure: Regenerate. 4361 1.1 christos 4362 1.1 christos 2005-02-24 Julian Brown <julian (a] sirius.codesourcery.com> 4363 1.1 christos 4364 1.1 christos * elflink.c (elf_link_add_object_symbols): Force symbols in discarded 4365 1.1 christos COMDAT group sections to have default visibility. 4366 1.1 christos 4367 1.1 christos 2005-02-24 Alan Modra <amodra (a] bigpond.net.au> 4368 1.1 christos 4369 1.1 christos * coffcode.h (coff_print_aux): Warning fix. 4370 1.1 christos * elf-m10300.c (mn10300_elf_relax_section): Use section->id 4371 1.1 christos instead of section pointer to identify. 4372 1.1 christos * coff-h8300.c (h8300_reloc16_extra_cases): Likewise. Allocate 4373 1.1 christos the correct size buffer for local sym mangling too. 4374 1.1 christos (h8300_bfd_link_add_symbols): Likewise. 4375 1.1 christos * elf32-sh-symbian.c (sh_symbian_process_embedded_commands): Fix 4376 1.1 christos warning. 4377 1.1 christos * elf32-sh64.c (shmedia_prepare_reloc): Use %B and %p in error message 4378 1.1 christos * elf32-xtensa.c (literal_value_hash): Warning fix. 4379 1.1 christos * versados.c (process_otr): Warning fix. 4380 1.1 christos (versados_canonicalize_reloc): Likewise. 4381 1.1 christos * vms-gsd.c (_bfd_vms_slurp_gsd): Warning fix. 4382 1.1 christos * vms.c (fill_section_ptr): Warning fix. 4383 1.1 christos 4384 1.1 christos 2005-02-23 H.J. Lu <hongjiu.lu (a] intel.com> 4385 1.1 christos 4386 1.1 christos * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Defined. 4387 1.1 christos * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Likewise. 4388 1.1 christos 4389 1.1 christos 2005-02-23 Nick Clifton <nickc (a] redhat.com> 4390 1.1 christos 4391 1.1 christos * elfxx-mips.c (mips_elf_create_dynamic_relocation): Initialise 4392 1.1 christos the relvaddr field of the Elf32_crinfo structure. 4393 1.1 christos 4394 1.1 christos * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Initialise 4395 1.1 christos variables that are passed by reference to 4396 1.1 christos m68hc11_get_relocation_value in case that function does not 4397 1.1 christos initialise them. 4398 1.1 christos 4399 1.1 christos * elf32-cr16c.c (cr16c_elf_final_link_relocate): Remove duplicated 4400 1.1 christos return statements and replace with a single return at the end of 4401 1.1 christos the function. This helps pacify the flow analysis code in gcc 4.0. 4402 1.1 christos 4403 1.1 christos * elf.c (_bfd_elf_compute_section_file_positions): Initialise 4404 1.1 christos strtab to avoid compile time warning. 4405 1.1 christos 4406 1.1 christos 2005-02-23 Ben Elliston <bje (a] au.ibm.com> 4407 1.1 christos 4408 1.1 christos * opncls.c (bfd_zalloc): Document this function. 4409 1.1 christos 4410 1.1 christos 2005-02-21 H.J. Lu <hongjiu.lu (a] intel.com> 4411 1.1 christos 4412 1.1 christos * coffcode.h (sec_to_styp_flags): Replaced SEC_CLINK with 4413 1.1 christos SEC_TIC54X_CLINK. Replace SEC_BLOCK with SEC_TIC54X_BLOCK. 4414 1.1 christos Replace SEC_SHARED with SEC_COFF_SHARED. 4415 1.1 christos (styp_to_sec_flags): Likewise. 4416 1.1 christos 4417 1.1 christos * elfxx-target.h (TARGET_BIG_SYM): Remove SEC_ARCH_BIT_0. 4418 1.1 christos (TARGET_LITTLE_SYM): Likewise. 4419 1.1 christos 4420 1.1 christos * section.c (SEC_ARCH_BIT_0): Removed. 4421 1.1 christos (SEC_LINK_DUPLICATES_SAME_CONTENTS): Defined with 4422 1.1 christos SEC_LINK_DUPLICATES_ONE_ONLY and SEC_LINK_DUPLICATES_SAME_SIZE. 4423 1.1 christos (SEC_SHARED): Renamed to ... 4424 1.1 christos (SEC_COFF_SHARED): This. 4425 1.1 christos (SEC_BLOCK): Renamed to ... 4426 1.1 christos (SEC_TIC54X_BLOCK): This. 4427 1.1 christos (SEC_CLINK): Renamed to ... 4428 1.1 christos (SEC_TIC54X_CLINK): This. 4429 1.1 christos (SEC_XXX): Rearranged. Move SEC_COFF_SHARED_LIBRARY, 4430 1.1 christos SEC_COFF_SHARED, SEC_TIC54X_BLOCK and SEC_TIC54X_CLINK to the 4431 1.1 christos end. 4432 1.1 christos * bfd-in2.h: Regenerated. 4433 1.1 christos 4434 1.1 christos 2005-02-21 Fred Fish <fnf (a] specifixinc.com> 4435 1.1 christos 4436 1.1 christos * dwarf2.c (find_abstract_instance_name): Call recursively 4437 1.1 christos to handle a DW_AT_specification. 4438 1.1 christos 4439 1.1 christos 2005-02-21 Thiemo Seufer <seufer (a] csv.ica.uni-stuttgart.de> 4440 1.1 christos 4441 1.1 christos * elfxx-mips.c (ecoff_swap_rpdr_out, mips_elf_output_extsym, 4442 1.1 christos mips_elf_create_dynamic_relocation, 4443 1.1 christos _bfd_mips_elf_size_dynamic_sections, _bfd_mips_elf_final_link): 4444 1.1 christos Remove #if 0'd code. 4445 1.1 christos 4446 1.1 christos 2005-02-21 Alan Modra <amodra (a] bigpond.net.au> 4447 1.1 christos 4448 1.1 christos * Makefile.am: Run "make dep-am" 4449 1.1 christos * Makefile.in: Regenerate. 4450 1.1 christos 4451 1.1 christos 2005-02-21 Alan Modra <amodra (a] bigpond.net.au> 4452 1.1 christos 4453 1.1 christos * coffgen.c (bfd_coff_get_comdat_section): Check that 4454 1.1 christos coff_section_data isn't NULL. 4455 1.1 christos 4456 1.1 christos 2005-02-21 Alan Modra <amodra (a] bigpond.net.au> 4457 1.1 christos 4458 1.1 christos * bfd-in.h (bfd_elf_bfd_from_remote_memory): Warning fix. 4459 1.1 christos * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Likewise. 4460 1.1 christos * coff-rs6000.c (xcoff_write_armap_big): Warning fixes. Remove 4461 1.1 christos useless assignments. 4462 1.1 christos (xcoff_write_archive_contents_big): Likewise. 4463 1.1 christos (_bfd_xcoff_put_ldsymbol_name): Likewise. 4464 1.1 christos * coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise. 4465 1.1 christos * coffgen.c (coff_write_symbols): Make "written" a bfd_vma. 4466 1.1 christos * cofflink.c (process_embedded_commands): Warning fixes. 4467 1.1 christos * cpu-arm.c: Delete unnecessary prototypes. Convert to C90. 4468 1.1 christos Warning fixes. 4469 1.1 christos * dwarf2.c: Warning fixes. 4470 1.1 christos * elf-bfd.h: Likewise. 4471 1.1 christos * elf-eh-frame.c: Likewise. 4472 1.1 christos * elf-strtab.c: Likewise. 4473 1.1 christos * elf.c: Likewise. 4474 1.1 christos * elf32-m68k.c: Likewise. 4475 1.1 christos * elf32-ppc.c: Likewise. 4476 1.1 christos * elf32-sh-symbian.c: Likewise. 4477 1.1 christos * elf32-sh.c: Delete unnecessary prototypes. Warning fixes. 4478 1.1 christos * elf64-sh64.c: Likewise. 4479 1.1 christos * peicode.h: Likewise. 4480 1.1 christos * elf64-mmix.c: Warning fixes. 4481 1.1 christos * elfcode.h: Likewise. 4482 1.1 christos * elfxx-mips.c: Likewise. 4483 1.1 christos * libbfd-in.h: Likewise. 4484 1.1 christos * libbfd.c: Likewise. 4485 1.1 christos * mach-o.c: Likewise. 4486 1.1 christos * merge.c: Likewise. 4487 1.1 christos * mmo.c: Likewise. 4488 1.1 christos * opncls.c: Likewise. 4489 1.1 christos * pef.c: Likewise. 4490 1.1 christos * srec.c: Likewise. 4491 1.1 christos * vms-hdr.c: Likewise. 4492 1.1 christos * vms-tir.c: Likewise. 4493 1.1 christos * xtensa-isa.c: Likewise. 4494 1.1 christos * xtensa-modules.c: Likewise. 4495 1.1 christos * xsym.c: Likewise. 4496 1.1 christos (pstrcmp): Use correct choice of string lengths. Fix return value. 4497 1.1 christos (bfd_sym_module_name): Correct string length. 4498 1.1 christos * bfd-in2.h: Regenerate. 4499 1.1 christos * libbfd.h: Regenerate. 4500 1.1 christos 4501 1.1 christos 2005-02-17 Alexandre Oliva <aoliva (a] redhat.com> 4502 1.1 christos 4503 1.1 christos * elf32-frv.c (elf32_frv_relocate_section): Remove warning from 4504 1.1 christos uninitialized check_segment[1] in TLSMOFF case. 4505 1.1 christos Reported by Alan Modra. 4506 1.1 christos (elf32_frv_relocate_section): Improve errors and warnings. 4507 1.1 christos 4508 1.1 christos 2005-02-17 Alan Modra <amodra (a] bigpond.net.au> 4509 1.1 christos 4510 1.1 christos * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning. 4511 1.1 christos 4512 1.1 christos 2005-02-16 Alan Modra <amodra (a] bigpond.net.au> 4513 1.1 christos 4514 1.1 christos * coff-arm.c (coff_arm_is_local_label_name): Warning fix. 4515 1.1 christos * elf32-frv.c (frvfdpic_relocs_info_hash): Likewise. 4516 1.1 christos * pef.c (bfd_pef_scan): Don't ignore return value of 4517 1.1 christos bfd_pef_scan_start_address. 4518 1.1 christos * mach-o.c (bfd_mach_o_scan): Don't ignore return value of 4519 1.1 christos bfd_mach_o_scan_start_address. 4520 1.1 christos * elfxx-ia64.c (elfNN_ia64_relax_brl): Rewrite for 32-bit bfd_vma. 4521 1.1 christos * elfxx-mips.c: Remove unnecessary prototypes. 4522 1.1 christos (sort_dynamic_relocs_64): Abort if not BFD64. 4523 1.1 christos 4524 1.1 christos 2005-02-16 Alan Modra <amodra (a] bigpond.net.au> 4525 1.1 christos 4526 1.1 christos * elf64-ppc.c (ppc64_elf_edit_toc): Skip toc if size is zero. 4527 1.1 christos Skip toc reloc adjust if reloc_count is zero. 4528 1.1 christos 4529 1.1 christos 2005-02-15 Nigel Stephens <nigel (a] mips.com> 4530 1.1 christos Maciej W. Rozycki <macro (a] mips.com> 4531 1.1 christos 4532 1.1 christos * elf32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16 4533 1.1 christos reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and 4534 1.1 christos R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders. 4535 1.1 christos (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel. 4536 1.1 christos (elf_mips16_gprel_howto): Likewise. Redefine src_mask and 4537 1.1 christos dst_mask. 4538 1.1 christos (mips16_gprel_reloc): Remove bit shuffling; call 4539 1.1 christos _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp() 4540 1.1 christos and _bfd_mips16_elf_reloc_shuffle() instead. 4541 1.1 christos (mips16_reloc_map): New reloc map for MIPS16 relocs. 4542 1.1 christos (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16 4543 1.1 christos relocs. 4544 1.1 christos (mips_elf32_rtype_to_howto): Fetch MIPS16 howtos from 4545 1.1 christos elf_mips16_howto_table_rel. 4546 1.1 christos * elf64-mips.c (mips16_elf64_howto_table_rel): New array for 4547 1.1 christos MIPS16 REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 4548 1.1 christos relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders. 4549 1.1 christos (elf_mips16_jump_howto): Move into mips16_elf64_howto_table_rel. 4550 1.1 christos (elf_mips16_gprel_howto): Likewise. Redefine src_mask and 4551 1.1 christos dst_mask. 4552 1.1 christos (mips16_elf64_howto_table_rela): New array for MIPS16 RELA 4553 1.1 christos reloc howtos. Add R_MIPS16_26, R_MIPS16_GPREL, R_MIPS16_HI16 and 4554 1.1 christos R_MIPS16_LO16 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16 4555 1.1 christos placeholders. 4556 1.1 christos (mips16_gprel_reloc): Remove bit shuffling; call 4557 1.1 christos _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp() 4558 1.1 christos and _bfd_mips16_elf_reloc_shuffle() instead. 4559 1.1 christos (mips16_reloc_map): New reloc map for MIPS16 relocs. 4560 1.1 christos (bfd_elf64_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16 4561 1.1 christos relocs. 4562 1.1 christos (mips_elf64_rtype_to_howto): Fetch MIPS16 howtos from 4563 1.1 christos mips16_elf64_howto_table_rela or mips16_elf64_howto_table_rel. 4564 1.1 christos * elfn32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16 4565 1.1 christos REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and 4566 1.1 christos R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders. 4567 1.1 christos (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel. 4568 1.1 christos (elf_mips16_gprel_howto): Likewise. Redefine src_mask and 4569 1.1 christos dst_mask. 4570 1.1 christos (mips16_gprel_reloc): Remove bit shuffling; call 4571 1.1 christos _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp() 4572 1.1 christos and _bfd_mips16_elf_reloc_shuffle() instead. 4573 1.1 christos (mips16_reloc_map): New reloc map for MIPS16 relocs. 4574 1.1 christos (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16 4575 1.1 christos relocs. 4576 1.1 christos (mips_elf_n32_rtype_to_howto): Fetch MIPS16 howtos from 4577 1.1 christos elf_mips16_howto_table_rela or elf_mips16_howto_table_rel. 4578 1.1 christos * elfxx-mips.c (_bfd_mips16_elf_reloc_unshuffle): New function to 4579 1.1 christos handle bit shuffling for MIPS16 relocs. 4580 1.1 christos (_bfd_mips16_elf_reloc_shuffle): Likewise. 4581 1.1 christos (_bfd_mips_elf_lo16_reloc): Use _bfd_mips16_elf_reloc_unshuffle() 4582 1.1 christos and _bfd_mips16_elf_reloc_shuffle(). 4583 1.1 christos (_bfd_mips_elf_generic_reloc): Likewise. 4584 1.1 christos (mips_elf_calculate_relocation): Likewise. Handle R_MIPS16_HI16 4585 1.1 christos and R_MIPS16_LO16. 4586 1.1 christos (mips_elf_obtain_contents): Remove bit shuffling. 4587 1.1 christos (mips_elf_perform_relocation): Likewise; call 4588 1.1 christos _bfd_mips16_elf_reloc_unshuffle() and _bfd_mips16_elf_reloc_shuffle() 4589 1.1 christos instead. 4590 1.1 christos (_bfd_mips_elf_relocate_section): Likewise. Handle R_MIPS16_HI16 4591 1.1 christos and R_MIPS16_LO16. 4592 1.1 christos * elfxx-mips.h (_bfd_mips16_elf_reloc_unshuffle): Declare. 4593 1.1 christos (_bfd_mips16_elf_reloc_shuffle): Likewise. 4594 1.1 christos * reloc.c (BFD_RELOC_MIPS16_HI16): New reloc. 4595 1.1 christos (BFD_RELOC_MIPS16_HI16_S): Likewise. 4596 1.1 christos (BFD_RELOC_MIPS16_LO16): Likewise. 4597 1.1 christos * bfd-in2.h: Regenerate. 4598 1.1 christos * libbfd.h: Regenerate. 4599 1.1 christos 4600 1.1 christos 2005-02-15 Jan Beulich <jbeulich (a] novell.com> 4601 1.1 christos 4602 1.1 christos * elfxx-ia64.c (ia64_howto_table): Correct strings for 4603 1.1 christos R_IA64_DTPMOD64[LM]SB. 4604 1.1 christos 4605 1.1 christos 2005-02-14 H.J. Lu <hongjiu.lu (a] intel.com> 4606 1.1 christos 4607 1.1 christos * elfxx-ia64.c (elfNN_ia64_relax_section): Allow relax 4608 1.1 christos backward branch in the same section. 4609 1.1 christos (elfNN_ia64_relocate_section): Inform users that the input 4610 1.1 christos section is too big to relax br instruction when overflow 4611 1.1 christos happens to R_IA64_PCREL21B, R_IA64_PCREL21BI, R_IA64_PCREL21M 4612 1.1 christos and R_IA64_PCREL21F. 4613 1.1 christos 4614 1.1 christos 2005-02-14 Orjan Friberg <orjanf (a] axis.com> 4615 1.1 christos 4616 1.1 christos * elfcore.h (elf_core_file_p): Move the call to 4617 1.1 christos elf_backend_object_p to allow the correct machine to be set before 4618 1.1 christos processing the program headers. 4619 1.1 christos 4620 1.1 christos 2005-02-14 Nick Clifton <nickc (a] redhat.com> 4621 1.1 christos 4622 1.1 christos PR binutils/716 4623 1.1 christos * peicode.h (pe_bfd_copy_private_bfd_data): Copy the large address 4624 1.1 christos aware flag from the input bfd to the output bfd. 4625 1.1 christos 4626 1.1 christos 2005-02-11 Maciej W. Rozycki <macro (a] mips.com> 4627 1.1 christos 4628 1.1 christos * elf32-mips.c (_bfd_mips_elf32_gprel16_reloc): Reject 4629 1.1 christos R_MIPS_LITERAL relocations for external symbols. 4630 1.1 christos * elf64-mips.c (mips_elf64_literal_reloc): Likewise. 4631 1.1 christos * elfn32-mips.c (mips_elf_literal_reloc): Likewise. 4632 1.1 christos 4633 1.1 christos 2005-02-11 H.J. Lu <hongjiu.lu (a] intel.com> 4634 1.1 christos 4635 1.1 christos * bfd-in2.h: Rebuilt. 4636 1.1 christos 4637 1.1 christos 2005-02-11 Paul Brook <paul (a] codesourcery.com> 4638 1.1 christos 4639 1.1 christos * elf-bfd.h (struct elf_link_hash_table): Add 4640 1.1 christos is_relocatable_executable. 4641 1.1 christos * elf.c (_bfd_elf_link_hash_table_init): Initialize it. 4642 1.1 christos * elflink.c (bfd_elf_link_record_dynamic_symbol): Create local dynamic 4643 1.1 christos symbols in relocatable executables. 4644 1.1 christos (bfd_elf_record_link_assignment): Create dynamic section symbols in 4645 1.1 christos relocatable executables. 4646 1.1 christos (_bfd_elf_link_renumber_dynsyms): Ditto. 4647 1.1 christos (bfd_elf_final_link): Ditto. 4648 1.1 christos * elf32-arm.c (elf32_arm_final_link_relocate): Copy absolute 4649 1.1 christos relocations into relocatable executables. 4650 1.1 christos (elf32_arm_check_relocs): Crate dynamic sections for relocatable 4651 1.1 christos executables. Also copy absolute relocations. 4652 1.1 christos (elf32_arm_adjust_dynamic_symbol): Don't create copy relocations 4653 1.1 christos in relocatable executables. 4654 1.1 christos (allocate_dynrelocs): Copy relocations for relocatable executables. 4655 1.1 christos Output dynamic symbols for symbols defined in linker scripts. 4656 1.1 christos 4657 1.1 christos 2005-02-11 Nick Clifton <nickc (a] redhat.com> 4658 1.1 christos 4659 1.1 christos * libbfd.c (read_signed_leb128): Use an unsigned type for 'shift' 4660 1.1 christos to avoid a compile time warning. 4661 1.1 christos 4662 1.1 christos * coff-alpha.c (alpha_adjust_reloc_in): Remove redundant test from 4663 1.1 christos BFD_ASSERT. 4664 1.1 christos 4665 1.1 christos * coff-tic4x.c (coff_rtype_to_howto): Move definition before 4666 1.1 christos inclusion of coffcode.h so that it is actually picked up. 4667 1.1 christos 4668 1.1 christos * coffcode.h (coff_std_swap_table): Add an unused attribute in 4669 1.1 christos case it is not used. 4670 1.1 christos 4671 1.1 christos * elf32-ip2k.c (ip2k_call_opcode, IS_CALL_OPCODE): Remove unused 4672 1.1 christos structure and macro. 4673 1.1 christos 4674 1.1 christos * elf32-iq2000.c (iq2000_reloc_map): Remove unused structure and 4675 1.1 christos array. 4676 1.1 christos 4677 1.1 christos * elf32-m32r.c (m32r_reloc_map_old): Use #ifdef USE_M32R_OLD_RELOC 4678 1.1 christos to protect the declaration of this array. 4679 1.1 christos 4680 1.1 christos * xsym.c (bfd_sym_parse_contained_variables_table_entry_v32): 4681 1.1 christos Avoid call to memcpy with a size of 0. 4682 1.1 christos 4683 1.1 christos 2005-02-12 Alan Modra <amodra (a] bigpond.net.au> 4684 1.1 christos 4685 1.1 christos * elf64-ppc.c (toc_adjusting_stub_needed): Return true for 4686 1.1 christos old-style branches to undefined dot-symbols which will be 4687 1.1 christos satisfied by a plt call. 4688 1.1 christos 4689 1.1 christos 2005-02-11 Alan Modra <amodra (a] bigpond.net.au> 4690 1.1 christos 4691 1.1 christos * elf64-ppc.c (move_plt_plist): New function, extracted from.. 4692 1.1 christos (ppc64_elf_copy_indirect_symbol): ..here. 4693 1.1 christos (func_desc_adjust): Use move_plt_plist. 4694 1.1 christos 4695 1.1 christos 2005-02-10 Paul Brook <paul (a] codesourcery.com> 4696 1.1 christos 4697 1.1 christos * elf32-arm.c (elf32_arm_final_link_relocate): Handle R_ARM_THM_PC9. 4698 1.1 christos 4699 1.1 christos 2005-02-10 Paul Brook <paul (a] codesourcery.com> 4700 1.1 christos 4701 1.1 christos * elflink.c (bfd_elf_record_link_assignment): Make hidden and internal 4702 1.1 christos symbols local. 4703 1.1 christos (elf_link_renumber_hash_table_dynsyms): Ignore local symbols. 4704 1.1 christos (elf_link_renumber_local_hash_table_dynsyms): New function. 4705 1.1 christos (_bfd_elf_link_renumber_dynsyms): Number local dynamic symbols. 4706 1.1 christos 4707 1.1 christos 2005-02-10 Jakub Jelinek <jakub (a] redhat.com> 4708 1.1 christos 4709 1.1 christos * bfd-in.h (BFD_LINKER_CREATED): Define. 4710 1.1 christos * bfd-in2.h: Rebuilt. 4711 1.1 christos * elflink.c (bfd_elf_size_dynamic_sections): Disregard 4712 1.1 christos BFD_LINKER_CREATED bfds when determining input bfds without 4713 1.1 christos .note.GNU-stack section. 4714 1.1 christos 4715 1.1 christos 2005-02-10 Maciej W. Rozycki <macro (a] mips.com> 4716 1.1 christos 4717 1.1 christos * elf64-mips.c (mips16_gprel_reloc): Update a comment. 4718 1.1 christos * elfn32-mips.c (mips16_gprel_reloc): Keep R_MIPS16_GPREL 4719 1.1 christos relocations against external symbols unchanged. 4720 1.1 christos 4721 1.1 christos 2005-02-08 Paul Brook <paul (a] codesourcery.com> 4722 1.1 christos 4723 1.1 christos * elflink.c (elf_link_input_bfd): Ignore symbols from null input 4724 1.1 christos sections. 4725 1.1 christos 4726 1.1 christos 2005-02-08 Hans-Peter Nilsson <hp (a] axis.com> 4727 1.1 christos 4728 1.1 christos * elflink.c (elf_link_add_object_symbols): Don't add "warning: " 4729 1.1 christos prefix here. 4730 1.1 christos 4731 1.1 christos 2005-02-07 Maciej W. Rozycki <macro (a] mips.com> 4732 1.1 christos 4733 1.1 christos * elf64-mips.c: Fix formatting throughout. 4734 1.1 christos 4735 1.1 christos 2005-02-07 Maciej W. Rozycki <macro (a] mips.com> 4736 1.1 christos 4737 1.1 christos * elfn32-mips.c (elf_mips_howto_table_rela): Fix a comment typo. 4738 1.1 christos 4739 1.1 christos 2005-02-07 Alexandre Oliva <aoliva (a] redhat.com> 4740 1.1 christos 4741 1.1 christos * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove special handling for 4742 1.1 christos *ABS*/*UND* sections. 4743 1.1 christos (elf32_frv_relocate_section): Move zero-addend-required error... 4744 1.1 christos (_frv_emit_got_relocs_plt_entries): ... here. Report error for 4745 1.1 christos missing needed TLS section. 4746 1.1 christos 4747 1.1 christos 2005-02-07 Hans-Peter Nilsson <hp (a] axis.com> 4748 1.1 christos 4749 1.1 christos * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO 4750 1.1 christos being the last symbol. 4751 1.1 christos (aout_link_add_symbols): Just return TRUE if a warning 4752 1.1 christos symbol was last. 4753 1.1 christos 4754 1.1 christos 2005-02-07 Maciej W. Rozycki <macro (a] mips.com> 4755 1.1 christos 4756 1.1 christos * elf32-mips.c (mips_elf_gprel32_reloc): Reject 4757 1.1 christos R_MIPS_GPREL32 relocations against external symbols. 4758 1.1 christos * elf64-mips.c (mips_elf64_gprel32_reloc): Replace an incorrect 4759 1.1 christos comment. 4760 1.1 christos 4761 1.1 christos 2005-02-07 Alan Modra <amodra (a] bigpond.net.au> 4762 1.1 christos 4763 1.1 christos * elf-bfd.h (elf_string_from_elf_strtab): Delete macro. 4764 1.1 christos * elf.c (bfd_elf_string_from_elf_section): Expand occurrence of 4765 1.1 christos elf_string_from_elf_strtab. 4766 1.1 christos (_bfd_elf_setup_group_pointers, bfd_section_from_shdr): Likewise. 4767 1.1 christos (bfd_section_from_shdr): For SHT_SYMTAB, load SHT_SYMTAB_SHNDX too 4768 1.1 christos if it exists. Don't do the reverse for SHT_SYMTAB_SHNDX. For 4769 1.1 christos SHT_STRTAB, check whether the strtab is for symtab or dynsymtab by 4770 1.1 christos looking at cached symtab info first, before iterating over headers. 4771 1.1 christos For SHT_REL and SHT_RELA, load dynsymtab if needed. 4772 1.1 christos * elfcode.h (elf_object_p): Don't load section header stringtab 4773 1.1 christos specially. 4774 1.1 christos 4775 1.1 christos 2005-02-06 H.J. Lu <hongjiu.lu (a] intel.com> 4776 1.1 christos 4777 1.1 christos * elf32-i386.c (elf_i386_relocate_section): Disallow R_386_GOTOFF 4778 1.1 christos against protected function when building shared library. 4779 1.1 christos 4780 1.1 christos PR 584 4781 1.1 christos * elf64-x86-64.c (is_32bit_relative_branch): New. 4782 1.1 christos (elf64_x86_64_relocate_section): Alllow R_X86_64_PC32 on a 4783 1.1 christos protected function symbol when building shared library for 4784 1.1 christos 32bit relative branch instruction. 4785 1.1 christos 4786 1.1 christos 2005-02-06 Alan Modra <amodra (a] bigpond.net.au> 4787 1.1 christos 4788 1.1 christos * elf64-ppc.c (add_symbol_adjust): Don't create fake descriptor 4789 1.1 christos syms when doing a relocatable link. 4790 1.1 christos (ppc64_elf_gc_mark_hook): Check that syms are defined before looking 4791 1.1 christos at u.def.section. 4792 1.1 christos (ppc64_elf_tls_setup): Likewise. 4793 1.1 christos (ppc64_elf_edit_opd): Don't use an undefined func desc sym. 4794 1.1 christos 4795 1.1 christos 2005-02-04 Alan Modra <amodra (a] bigpond.net.au> 4796 1.1 christos 4797 1.1 christos * elf64-ppc.c (struct ppc_link_hash_entry): Add "fake". 4798 1.1 christos (link_hash_newfunc): Clear all locals using memset. 4799 1.1 christos (make_fdh): Remove flags param. Always create fake func desc 4800 1.1 christos weak. Link the descriptor with the code entry sym. 4801 1.1 christos (ppc64_elf_archive_symbol_lookup): Don't return fake syms. 4802 1.1 christos (add_symbol_adjust): Adjust make_fdh call. 4803 1.1 christos (func_desc_adjust): Likewise. Twiddle any pre-existing fake 4804 1.1 christos descriptor to strong undefined if code entry is strong. 4805 1.1 christos 4806 1.1 christos 2005-02-04 Alan Modra <amodra (a] bigpond.net.au> 4807 1.1 christos 4808 1.1 christos * elflink.c (bfd_elf_record_link_assignment): Do "provide" symbol 4809 1.1 christos lookup here. Set to new before calling bfd_link_repair_undef_list. 4810 1.1 christos (elf_smash_syms): Check that u.undef.weak isn't the not_needed bfd. 4811 1.1 christos 4812 1.1 christos 2005-02-03 Alan Modra <amodra (a] bigpond.net.au> 4813 1.1 christos 4814 1.1 christos * linker.c (_bfd_link_hash_newfunc): Set all local fields. 4815 1.1 christos 4816 1.1 christos 2005-02-03 Alan Modra <amodra (a] bigpond.net.au> 4817 1.1 christos 4818 1.1 christos * linker.c (_bfd_generic_link_add_one_symbol): Set u.undef.weak. 4819 1.1 christos * elflink.c (elf_smash_syms): Restore symbols that were undefweak 4820 1.1 christos before the as-needed lib was loaded. Abort on unexpected refs. 4821 1.1 christos 4822 1.1 christos 2005-02-02 Alan Modra <amodra (a] bigpond.net.au> 4823 1.1 christos 4824 1.1 christos * elflink.c (elf_smash_syms): Expand comments. 4825 1.1 christos (elf_link_add_object_symbols): Only call elf_smash_syms for 4826 1.1 christos as-needed dynamic objects. 4827 1.1 christos 4828 1.1 christos * elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear 4829 1.1 christos everything, just the field specific to ia64. 4830 1.1 christos * elf64-hppa.c (elf64_hppa_new_dyn_hash_entry): Likewise. 4831 1.1 christos 4832 1.1 christos 2005-02-01 Alan Modra <amodra (a] bigpond.net.au> 4833 1.1 christos 4834 1.1 christos * elf64-ppc.c (func_desc_adjust): Move code creating func desc sym to.. 4835 1.1 christos (make_fdh): ..here. New function. Don't set BSF_OBJECT for 4836 1.1 christos undefined syms. 4837 1.1 christos (struct add_symbol_adjust_data): New. 4838 1.1 christos (add_symbol_adjust): Make an undefweak func desc for old ABI 4839 1.1 christos objects to link with --as-needed shared libs. Return fail status. 4840 1.1 christos Don't adjust old ABI func entry sym to weak if func desc syms 4841 1.1 christos isn't defined. 4842 1.1 christos (ppc64_elf_check_directives): Adjust call to add_symbol_adjust, 4843 1.1 christos and return status. 4844 1.1 christos 4845 1.1 christos 2005-02-01 Hans-Peter Nilsson <hp (a] axis.com> 4846 1.1 christos 4847 1.1 christos * cpu-cris.c (get_compatible): Rearrange disabled code and comment 4848 1.1 christos for clarity. 4849 1.1 christos 4850 1.1 christos 2005-02-01 Alan Modra <amodra (a] bigpond.net.au> 4851 1.1 christos 4852 1.1 christos * elf64-ppc.c (ppc64_elf_check_directives): Move undefs list fixup.. 4853 1.1 christos * linker.c (bfd_link_repair_undef_list): ..to new function, but don't 4854 1.1 christos remove anything but new and undefweak. 4855 1.1 christos * elflink.c (_bfd_elf_link_create_dynamic_sections): Override any 4856 1.1 christos existing _DYNAMIC. 4857 1.1 christos (_bfd_elf_create_dynamic_sections): Formatting. 4858 1.1 christos (bfd_elf_record_link_assignment): Call bfd_link_repair_undef_list. 4859 1.1 christos (_bfd_elf_merge_symbol): Don't handle as-needed syms here. 4860 1.1 christos (struct elf_smash_data): New. 4861 1.1 christos (elf_smash_syms): New function. 4862 1.1 christos (elf_link_add_object_symbols): Call elf_smash_syms. Don't add 4863 1.1 christos unneeded dynamic objects to loaded list. 4864 1.1 christos (elf_link_output_extsym): Don't handle as-needed here. Strip 4865 1.1 christos bfd_link_hash_new symbols. 4866 1.1 christos * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't 4867 1.1 christos delref when dynindx is already -1. 4868 1.1 christos * elf64-alpha.c (elf64_alpha_output_extsym): Strip bfd_link_hash_new 4869 1.1 christos symbols. 4870 1.1 christos * elfxx-mips.c (mips_elf_output_extsym): Likewise. 4871 1.1 christos 4872 1.1 christos 2005-02-01 Ben Elliston <bje (a] au.ibm.com> 4873 1.1 christos 4874 1.1 christos * elfxx-target.h (bfd_elfNN_bfd_discard_group): Redefine. 4875 1.1 christos 4876 1.1 christos 2005-02-01 Ben Elliston <bje (a] au.ibm.com> 4877 1.1 christos 4878 1.1 christos * aout-arm.c, aout-target.h, aoutx.h, archive.c, armnetbsd.c, 4879 1.1 christos bfd-in.h, bfdio.c, coff-alpha.c, coff-arm.c, coff-h8300.c, 4880 1.1 christos coff-i860.c, coff-mcore.c, coff-or32.c, coff-ppc.c, coff-sh.c, 4881 1.1 christos coff-sparc.c, coffcode.h, coffgen.c, cofflink.c, cpu-cris.c, 4882 1.1 christos cpu-h8500.c, cpu-ns32k.c, ecoff.c, ecofflink.c, elf.c, 4883 1.1 christos elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-hppa.c, 4884 1.1 christos elf32-i860.c, elf32-ip2k.c, elf32-m32r.c, elf32-sh.c, 4885 1.1 christos elf32-v850.c, elf64-mips.c, elf64-sparc.c, elflink.c, 4886 1.1 christos i386aout.c, i386msdos.c, i386os9k.c, ieee.c, mach-o.c, 4887 1.1 christos nlm32-sparc.c, oasys.c, opncls.c, pdp11.c, pe-mips.c, peXXigen.c, 4888 1.1 christos pef.c, peicode.h, reloc.c, riscix.c, section.c, simple.c, som.c, 4889 1.1 christos sparclynx.c, targets.c, vms-misc.c, vms-tir.c, xsym.c, 4890 1.1 christos hosts/delta68.h, hosts/vaxbsd.h: Remove #if 0'd code 4891 1.1 christos throughout. Similarly, collapse #if 1'd code. 4892 1.1 christos 4893 1.1 christos 2005-02-01 Ben Elliston <bje (a] au.ibm.com> 4894 1.1 christos 4895 1.1 christos * elf-bfd.h (bfd_elf_discard_group): Remove. 4896 1.1 christos * elf.c (bfd_elf_discard_group): Likewise. 4897 1.1 christos * elfxx-target.h (bfd_elfNN_bfd_discard_group): Remove macro. 4898 1.1 christos 4899 1.1 christos 2005-01-31 Richard Sandiford <rsandifo (a] redhat.com> 4900 1.1 christos 4901 1.1 christos * elf-bfd.h (elf_backend_data): Add elf_backend_eh_frame_address_size. 4902 1.1 christos (_bfd_elf_eh_frame_address_size): Declare. 4903 1.1 christos * elfxx-target.h (elf_backend_eh_frame_address_size): Define a default. 4904 1.1 christos (elfNN_bed): Initialize elf_backend_eh_frame_address_size. 4905 1.1 christos * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Declare. 4906 1.1 christos (elf_backend_eh_frame_address_size): Define. 4907 1.1 christos * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): New function. 4908 1.1 christos * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Get the address 4909 1.1 christos size from the new backend hook. 4910 1.1 christos (_bfd_elf_write_section_eh_frame): Likewise. 4911 1.1 christos (_bfd_elf_eh_frame_address_size): New function. 4912 1.1 christos 4913 1.1 christos 2005-01-31 Andrew Cagney <cagney (a] gnu.org> 4914 1.1 christos 4915 1.1 christos * configure: Regenerate to track ../gettext.m4. 4916 1.1 christos 4917 1.1 christos 2005-01-31 Mark Mitchell <mark (a] codesourcery.com> 4918 1.1 christos 4919 1.1 christos * elf32-arm.c (elf32_arm_symbian_special_sections): Do not set 4920 1.1 christos SHF_WRITE for .init_array, .fini_array, and .preinit_array. 4921 1.1 christos 4922 1.1 christos 2005-01-31 Nick Clifton <nickc (a] redhat.com> 4923 1.1 christos 4924 1.1 christos * confg.bfd: Make targets scheduled for obsoletion (m68k-lynxos, 4925 1.1 christos sparc-lynxos, vax-vms) be obsolete. 4926 1.1 christos 4927 1.1 christos 2005-01-28 Daniel Jacobowitz <dan (a] codesourcery.com> 4928 1.1 christos 4929 1.1 christos * elf-bfd.h (struct elf_backend_data): Add minpagesize. 4930 1.1 christos * elf32-arm.c (ELF_MINPAGESIZE): Define. 4931 1.1 christos * elf32-ppc.c (ELF_MINPAGESIZE): Define. 4932 1.1 christos * elfcode.h (elf_object_p): Use minpagesize instead of 4933 1.1 christos maxpagesize. 4934 1.1 christos * elfxx-target.h (ELF_MINPAGESIZE): Default to ELF_MAXPAGESIZE. 4935 1.1 christos (elfNN_bed): Include ELF_MINPAGESIZE. 4936 1.1 christos 4937 1.1 christos 2005-01-28 Julian Brown <julian (a] codesourcery.com> 4938 1.1 christos 4939 1.1 christos * bin-in.h (bfd_elf32_arm_set_target_relocs): Update prototype. 4940 1.1 christos * bin-in2.h (bfd_elf32_arm_set_target_relocs): Update prototype. 4941 1.1 christos * elf32-arm.c (elf32_arm_link_hash_table): Add fix_v4bx flag. 4942 1.1 christos (bfd_elf32_arm_set_target_relocs): Add formal parameter fix_v4bx for 4943 1.1 christos passing flag value from ld. Set flag value in global hash table entry. 4944 1.1 christos (elf32_arm_final_link_relocate): Add code to implement R_ARM_V4BX 4945 1.1 christos relocation. 4946 1.1 christos 4947 1.1 christos 2005-01-27 Andrew Cagney <cagney (a] gnu.org> 4948 1.1 christos 4949 1.1 christos * configure: Regenerate to track ../gettext.m4 change. 4950 1.1 christos 4951 1.1 christos 2005-01-25 Mark Mitchell <mark (a] codesourcery.com> 4952 1.1 christos 4953 1.1 christos * elf32-arm.c (elf_backend_default_use_rela_p): Define to zero for 4954 1.1 christos SymbianOS. 4955 1.1 christos 4956 1.1 christos 2005-01-25 Alexandre Oliva <aoliva (a] redhat.com> 4957 1.1 christos 4958 1.1 christos 2004-12-10 Alexandre Oliva <aoliva (a] redhat.com> 4959 1.1 christos * elf32-frv.c (elf32_frv_relocate_section): Force local binding 4960 1.1 christos for TLSMOFF. 4961 1.1 christos * reloc.c: Add R_FRV_TLSMOFF. 4962 1.1 christos * elf32-frv.c (elf32_frv_howto_table): Likewise. 4963 1.1 christos (frv_reloc_map, frv_reloc_type_lookup): Map it. 4964 1.1 christos (elf32_frv_relocate_section): Handle it. 4965 1.1 christos (elf32_frv_check_relocs): Likewise. 4966 1.1 christos * libbfd.h, bfd-in2.h: Rebuilt. 4967 1.1 christos 2004-11-26 Alexandre Oliva <aoliva (a] redhat.com> 4968 1.1 christos * elf32-frv.c (_frvfdpic_emit_got_relocs_plt_entries): Don't crash 4969 1.1 christos when given an undefweak TLS symbol. Fix constant TLS PLT entries 4970 1.1 christos such that they return the constant in gr9. 4971 1.1 christos (_frvfdpic_relax_tls_entries): Don't crash for undefweak TLS 4972 1.1 christos symbols. 4973 1.1 christos (_frvfdpic_size_got_plt): Set _cooked_size of dynamic sections. 4974 1.1 christos too, such that they shrink on relaxation. 4975 1.1 christos (elf32_frvfdpic_finish_dynamic_sections): Check __ROFIXUP_END__ as 4976 1.1 christos marking the position right past the _GLOBAL_OFFSET_TABLE_ value. 4977 1.1 christos (_frvfdpic_assign_plt_entries): Shrink constant TLS PLT entries 4978 1.1 christos if we can guarantee the use of 16-bit constants. 4979 1.1 christos 2004-11-10 Alexandre Oliva <aoliva (a] redhat.com> 4980 1.1 christos Introduce TLS support for FR-V FDPIC. 4981 1.1 christos * reloc.c: Add TLS relocations. 4982 1.1 christos * elf32-frv.c (elf32_frv_howto_table): Add TLS relocations. 4983 1.1 christos (elf32_frv_rel_tlsdesc_value_howto): New. 4984 1.1 christos (elf32_frv_rel_tlsoff_howto): New. 4985 1.1 christos (frv_reloc_map): Add new mappings. 4986 1.1 christos (struct frvfdpic_elf_link_hash_table): Add pointer to summary 4987 1.1 christos reloc information. 4988 1.1 christos (frvfdpic_dynamic_got_plt_info): New. 4989 1.1 christos (frvfdpic_plt_tls_ret_offset): New. 4990 1.1 christos (ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE): Move earlier. 4991 1.1 christos (struct _frvfdpic_dynamic_got_info): Likewise. Add TLS members. 4992 1.1 christos (struct _frvfdpic_dynamic_got_plt_info): Likewise. 4993 1.1 christos (FRVFDPIC_SYM_LOCAL): Regard symbols defined in the absolute 4994 1.1 christos section as local. 4995 1.1 christos (struct frvfdpic_relocs_info): Add TLS fields. 4996 1.1 christos (frvfdpic_relocs_info_hash): Warning clean up. 4997 1.1 christos (frvfdpic_relocs_info_find): Initialize tlsplt_entry. 4998 1.1 christos (frvfdpic_pic_merge_early_relocs_info): Merge TLS fields. 4999 1.1 christos (FRVFDPIC_TLS_BIAS): Define. 5000 1.1 christos (tls_biased_base): New. 5001 1.1 christos (_frvfdpic_emit_got_relocs_plt_entries): Deal with TLS 5002 1.1 christos relocations. 5003 1.1 christos (frv_reloc_type_lookup): Likewise. 5004 1.1 christos (frvfdpic_info_to_howto_rel): Likewise. 5005 1.1 christos (elf32_frv_relocate_section): Likewise. 5006 1.1 christos (_frv_create_got_section): Create the PLT section here. 5007 1.1 christos (elf32_frvfdpic_create_dynamic_sections): Not here. 5008 1.1 christos (_frvfdpic_count_nontls_entries): Move out of... 5009 1.1 christos (_frvfdpic_count_got_plt_entries): ... here. 5010 1.1 christos (_frvfdpic_count_tls_entries): Likewise. Add TLS support. 5011 1.1 christos (_frvfdpic_count_relocs_fixups): Likewise. Add relaxation 5012 1.1 christos support. 5013 1.1 christos (_frvfdpic_relax_tls_entries): New. 5014 1.1 christos (_frvfdpic_compute_got_alloc_data): Add TLS support. 5015 1.1 christos (_frvfdpic_get_tlsdesc_entry): New. 5016 1.1 christos (_frvfdpic_assign_got_entries): Add TLS support. 5017 1.1 christos (_frvfdpic_assign_plt_entries): Likewise. 5018 1.1 christos (_frvfdpic_reset_got_plt_entries): New. 5019 1.1 christos (_frvfdpic_size_got_plt): Move out of... 5020 1.1 christos (elf32_frvfdpic_size_dynamic_sections): ... here. 5021 1.1 christos (_frvfdpic_relax_got_plt_entries): New. 5022 1.1 christos (elf32_frvfdpic_relax_section): New. 5023 1.1 christos (elf32_frvfdpic_finish_dynamic_sections): Add TLS sanity check. 5024 1.1 christos (elf32_frv_check_relocs): Add TLS support. 5025 1.1 christos (bfd_elf32_bfd_relax_section): Define for FDPIC. 5026 1.1 christos * libbfd.h, bfd-in2.h: Rebuilt. 5027 1.1 christos 5028 1.1 christos 2005-01-25 Alan Modra <amodra (a] bigpond.net.au> 5029 1.1 christos 5030 1.1 christos * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound): Only include 5031 1.1 christos loadable reloc sections. 5032 1.1 christos (_bfd_elf_canonicalize_dynamic_reloc): Likewise. 5033 1.1 christos (_bfd_elf_get_synthetic_symtab): Return 0 if no dynamic syms. 5034 1.1 christos 5035 1.1 christos 2005-01-25 Alan Modra <amodra (a] bigpond.net.au> 5036 1.1 christos 5037 1.1 christos * elflink.c (elf_link_add_object_symbols): Don't create link dynamic 5038 1.1 christos sections immediately when linking shared libs. Instead, wait until 5039 1.1 christos we know a lib is needed. 5040 1.1 christos (_bfd_elf_link_create_dynstrtab): Extract from.. 5041 1.1 christos (_bfd_elf_link_create_dynamic_sections_): ..here. 5042 1.1 christos (elf_add_dt_needed_tag): Call _bfd_elf_link_create_dynstrtab and 5043 1.1 christos _bfd_elf_link_create_dynamic_sections. Add abfd param. Allow 5044 1.1 christos for non-existent .dynamic. 5045 1.1 christos (elf_link_output_extsym): Don't complain about undefined symbols 5046 1.1 christos in as-needed dynamic libs that aren't actually linked. 5047 1.1 christos 5048 1.1 christos 2005-01-24 Andrew Cagney <cagney (a] gnu.org> 5049 1.1 christos 5050 1.1 christos * configure: Regenerate, ../gettext.m4 was updated. 5051 1.1 christos 5052 1.1 christos 2005-01-21 Ben Elliston <bje (a] au.ibm.com> 5053 1.1 christos 5054 1.1 christos * aout-encap.c: Remove unused file. 5055 1.1 christos 5056 1.1 christos 2005-01-19 H.J. Lu <hongjiu.lu (a] intel.com> 5057 1.1 christos 5058 1.1 christos PR 679 5059 1.1 christos * elflink.c (_bfd_elf_dynamic_symbol_p): Only protected 5060 1.1 christos non-function symbols are local. 5061 1.1 christos (_bfd_elf_symbol_refs_local_p): Likewise. 5062 1.1 christos 5063 1.1 christos 2005-01-18 Alan Modra <amodra (a] bigpond.net.au> 5064 1.1 christos 5065 1.1 christos * bfd.c (bfd_link_just_syms): Add abfd param. 5066 1.1 christos * bfd-in2.h: Regenerate. 5067 1.1 christos 5068 1.1 christos 2005-01-17 Richard Sandiford <rsandifo (a] redhat.com> 5069 1.1 christos 5070 1.1 christos * elf-eh-frame.c (skip_cfa_op, skip_non_nops): New functions. 5071 1.1 christos (_bfd_elf_discard_section_eh_frame): Use them to interpret the CFA 5072 1.1 christos instructions. If the amount of padding is known, reduce the size 5073 1.1 christos of the CIE or FDE by that amount. 5074 1.1 christos 5075 1.1 christos 2005-01-17 Richard Sandiford <rsandifo (a] redhat.com> 5076 1.1 christos 5077 1.1 christos * elf-bfd.h (struct cie): Use bfd_vmas for code_align, ra_column and 5078 1.1 christos augmentation_size. Use bfd_signed_vmas for data_align. 5079 1.1 christos * elf-eh-frame.c (read_uleb128, read_sleb128): Delete in favor of... 5080 1.1 christos (read_byte, skip_leb128, read_uleb128, read_sleb128): ...these new 5081 1.1 christos functions. Don't read past the end of the enclosing CIE or FDE. 5082 1.1 christos (skip_bytes): New utility function. 5083 1.1 christos (_bfd_elf_discard_section_eh_frame): Use new functions, adding more 5084 1.1 christos sanity checking. 5085 1.1 christos (_bfd_elf_write_section_eh_frame): Use new functions. 5086 1.1 christos 5087 1.1 christos 2005-01-17 Richard Sandiford <rsandifo (a] redhat.com> 5088 1.1 christos 5089 1.1 christos * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use an 5090 1.1 christos assert-style REQUIRE() macro to handle sanity checks. 5091 1.1 christos 5092 1.1 christos 2005-01-17 H.J. Lu <hongjiu.lu (a] intel.com> 5093 1.1 christos 5094 1.1 christos * dwarf2.c (dwarf2_debug): Move info_ptr_unit to ... 5095 1.1 christos (comp_unit): Here. 5096 1.1 christos (read_unsigned_leb128): Removed. 5097 1.1 christos (read_signed_leb128): Removed. 5098 1.1 christos (find_abstract_instance_name): Updated. 5099 1.1 christos (parse_comp_unit): Accept info_ptr_unit. 5100 1.1 christos (_bfd_dwarf2_find_nearest_line): Set info_ptr_unit for each 5101 1.1 christos comp unit and pass it to parse_comp_unit. 5102 1.1 christos 5103 1.1 christos * elf-eh-frame.c (read_unsigned_leb128): Moved to ... 5104 1.1 christos (read_signed_leb128): Moved to ... 5105 1.1 christos * libbfd.c: Here. 5106 1.1 christos 5107 1.1 christos * libbfd-in.h (read_unsigned_leb128): New prototype. 5108 1.1 christos (read_signed_leb128): Likewise. 5109 1.1 christos * libbfd.h: Regenerated. 5110 1.1 christos 5111 1.1 christos 2005-01-17 Andrew Stubbs <andrew.stubbs (a] st.com> 5112 1.1 christos Nick Clifton <nickc (a] redhat.com> 5113 1.1 christos 5114 1.1 christos * cpu-sh.c (bfd_to_arch_table): Change arch_sh1_up to arch_sh_up, 5115 1.1 christos arch__sh4_nofp_up to arch_sh4_nofpu_up and arch_sh4a_nofp_up to 5116 1.1 christos arch_sh4a_nofpu_up in order to match the external names and make the 5117 1.1 christos testsuite's job easier. 5118 1.1 christos * archuires.c: Rename bfd_mach_sh2a_fake? to more meaningful 5119 1.1 christos names. 5120 1.1 christos * bfd-in2.h: Regenerate. 5121 1.1 christos 5122 1.1 christos 2005-01-15 Andrew Cagney <cagney (a] gnu.org> 5123 1.1 christos 5124 1.1 christos * bfd.m4: New file. 5125 1.1 christos * acinclude.m4: Move BFD_NEED_DECLARATION, 5126 1.1 christos BFD_HAVE_SYS_PROCFS_TYPE and BFD_HAVE_SYS_PROCFS_TYPE_MEMBER to 5127 1.1 christos the new file bfd.m4. Include ../bfd/bfd.m4. 5128 1.1 christos * configure: Re-generate. 5129 1.1 christos 5130 1.1 christos 2005-01-12 Alan Modra <amodra (a] bigpond.net.au> 5131 1.1 christos 5132 1.1 christos * elf32-ppc.c (ppc_elf_howto_raw): Delete RELAX32* entries. 5133 1.1 christos (ppc_elf_relax_section): Use PLT variants of RELAX32 relocs for 5134 1.1 christos reaching PLT. 5135 1.1 christos (ppc_elf_relocate_section): Handle R_PPC_RELAX32_PLT and 5136 1.1 christos R_PPC_RELAX32PC_PLT. 5137 1.1 christos 5138 1.1 christos 2005-01-11 Alan Modra <amodra (a] bigpond.net.au> 5139 1.1 christos 5140 1.1 christos * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Follow indirect and warning 5141 1.1 christos symbols. 5142 1.1 christos * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise. 5143 1.1 christos * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise. 5144 1.1 christos * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise. 5145 1.1 christos * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise. 5146 1.1 christos * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise. 5147 1.1 christos * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise. 5148 1.1 christos * elf32-ppc.c (ppc_elf_gc_sweep_hook): Likewise. 5149 1.1 christos * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise. 5150 1.1 christos * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise. 5151 1.1 christos * elf32-sparc.c (elf32_sparc_gc_sweep_hook): Likewise. 5152 1.1 christos * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise. 5153 1.1 christos * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise. 5154 1.1 christos * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise. 5155 1.1 christos * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise. 5156 1.1 christos 5157 1.1 christos 2005-01-11 Alan Modra <amodra (a] bigpond.net.au> 5158 1.1 christos 5159 1.1 christos * elf32-ppc.c (ppc_elf_create_dynamic_sections): Correct 5160 1.1 christos .dynsbss flags. 5161 1.1 christos 5162 1.1 christos 2005-01-10 Inderpreet Singh <inderpreetb (a] noida.hcltech.com> 5163 1.1 christos 5164 1.1 christos * archures.c: Define bfd_mach_maxq10 and bfd_mach_maxq20. 5165 1.1 christos * bfd-in2.h: Regenerate. 5166 1.1 christos * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Add code 5167 1.1 christos to support these new machine values. 5168 1.1 christos * cpu-maxq.c (bfd_maxq10_arch): New architecture definition for 5169 1.1 christos the maxq10. 5170 1.1 christos (bfd_maxq_arch): Update values for the maxq20. 5171 1.1 christos 5172 1.1 christos 2005-01-10 Eric Botcazou <ebotcazou (a] libertysurf.fr> 5173 1.1 christos 5174 1.1 christos * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): When linking a 5175 1.1 christos non-shared object, do not reserve space in .plt and .rela.plt for 5176 1.1 christos regular symbols neither defined nor referenced in shared objects. 5177 1.1 christos 5178 1.1 christos 2005-01-09 Eric Botcazou <ebotcazou (a] libertysurf.fr> 5179 1.1 christos 5180 1.1 christos * elf32-sparc.c (elf32_sparc_link_hash_table_create): Use bfd_zmalloc 5181 1.1 christos to zero the structure. 5182 1.1 christos (create_got_section): Use BFD_ASSERT instead of abort. 5183 1.1 christos * elf64-sparc.c (struct sparc64_elf_link_hash_table): New 'sgot' and 5184 1.1 christos 'srelgot' fields. 5185 1.1 christos (create_got_section): New function. 5186 1.1 christos (sparc64_elf_create_dynamic_sections): Likewise. 5187 1.1 christos (sparc64_elf_check_relocs): Invoke create_got_section instead of 5188 1.1 christos _bfd_elf_create_got_section. Use the sgot and srelgot shortcuts. 5189 1.1 christos (sparc64_elf_size_dynamic_sections): Use the srelgot shortcut. 5190 1.1 christos (sparc64_elf_relocate_section): Use the sgot and srelgot shortcuts. 5191 1.1 christos (sparc64_elf_finish_dynamic_symbol): Likewise. 5192 1.1 christos (sparc64_elf_finish_dynamic_sections): Use the sgot shortcut. 5193 1.1 christos (elf_backend_create_dynamic_sections): Define to 5194 1.1 christos sparc64_elf_create_dynamic_sections. 5195 1.1 christos 5196 1.1 christos 2005-01-09 Eric Botcazou <ebotcazou (a] libertysurf.fr> 5197 1.1 christos 5198 1.1 christos * elf32-sparc.c (elf32_sparc_omit_section_dynsym): New function. 5199 1.1 christos (elf_backend_omit_section_dynsym): Define to it. 5200 1.1 christos * elf64-sparc.c (sparc64_elf_omit_section_dynsym): New function. 5201 1.1 christos (elf_backend_omit_section_dynsym): Define to it. 5202 1.1 christos 5203 1.1 christos 2005-01-07 Jakub Jelinek <jakub (a] redhat.com> 5204 1.1 christos 5205 1.1 christos * elf.c (INCLUDE_SECTION_IN_SEGMENT): Don't put empty sections into 5206 1.1 christos PT_DYNAMIC segment, unless .dynamic. 5207 1.1 christos 5208 1.1 christos 2005-01-06 Paul Brook <paul (a] codesourcery.com> 5209 1.1 christos 5210 1.1 christos * config.bfd: Add entry for arm-*-vxworks and arm-*-windiss. 5211 1.1 christos * configure.in: Add bfd_elf32_{big,little}arm_vxworks_vec. 5212 1.1 christos * configure: Regenerate. 5213 1.1 christos * elf32-arm.c: Add VxWorks target bfd. 5214 1.1 christos (USE_REL): Remove. 5215 1.1 christos (elf32_arm_link_hash_table): Add use_rel. 5216 1.1 christos (elf32_arm_link_hash_table_create, elf32_arm_final_link_relocate, 5217 1.1 christos elf32_arm_relocate_section): Replace USE_REL with runtime check. 5218 1.1 christos Correct offset calculation for RELA case. 5219 1.1 christos (elf_backend_may_use_rel_p, elf_backend_may_use_rela_p, 5220 1.1 christos elf_backend_default_use_rela_p, elf_backend_rela_normal): Define. 5221 1.1 christos (elf32_arm_vxworks_link_hash_table_create): New function. 5222 1.1 christos * targets.c (bfd_elf32_bigarm_vxworks_vec): Add declaration. 5223 1.1 christos (bfd_elf32_littlearm_vxworks_vec): Ditto. 5224 1.1 christos (_bfd_target_vector): Add bfd_elf32_{big,little}arm_vxworks_vec. 5225 1.1 christos 5226 1.1 christos 2005-01-06 Alan Modra <amodra (a] bigpond.net.au> 5227 1.1 christos 5228 1.1 christos * elf64-ppc.c (struct ppc_link_hash_table): Add no_multi_toc and 5229 1.1 christos multi_toc_needed. 5230 1.1 christos (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Define. 5231 1.1 christos (ppc64_elf_check_relocs): Update references to has_gp_reloc. 5232 1.1 christos (ppc64_elf_setup_section_lists): Add no_multi_toc parm, set htab bit. 5233 1.1 christos (ppc64_elf_next_toc_section): Heed no_multi_toc. 5234 1.1 christos (ppc64_elf_reinit_toc): Set multi_toc_needed. 5235 1.1 christos (toc_adjusting_stub_needed): Rewrite. 5236 1.1 christos (ppc64_elf_next_input_section): Use multi_toc_needed to shortcut 5237 1.1 christos toc tests. Adjust for toc_adjusting_stub_needed changes. 5238 1.1 christos (ppc64_elf_size_stubs): Update references to has_gp_reloc. 5239 1.1 christos * elf64-ppc.h (ppc64_elf_setup_section_lists): Update prototype. 5240 1.1 christos * section.c: Expand comment on backend bits. 5241 1.1 christos * bfd-in2.h: Regenerate. 5242 1.1 christos * libbfd.h: Regenerate. 5243 1.1 christos 5244 1.1 christos 2005-01-06 Alan Modra <amodra (a] bigpond.net.au> 5245 1.1 christos 5246 1.1 christos * elf64-ppc.c (ppc64_elf_size_stubs): When determining need for 5247 1.1 christos toc adjusting stub, do not test source section flags. 5248 1.1 christos 5249 1.1 christos 2005-01-05 Eric Botcazou <ebotcazou (a] libertysurf.fr> 5250 1.1 christos 5251 1.1 christos * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows 5252 1.1 christos from STABS debugging sections again. 5253 1.1 christos 5254 1.1 christos 2005-01-05 Fred Fish <fnf (a] specifixinc.com> 5255 1.1 christos 5256 1.1 christos * dwarf2.c (struct dwarf2_debug): Add info_ptr_unit member. 5257 1.1 christos (find_abstract_instance_name): New function. 5258 1.1 christos (scan_unit_for_functions): Handle DW_TAG_inlined_subroutine. 5259 1.1 christos (scan_unit_for_functions): Handle DW_AT_abstract_origin. 5260 1.1 christos (_bfd_dwarf2_find_nearest_line): Initialize info_ptr_unit. 5261 1.1 christos 5262 1.1 christos For older changes see ChangeLog-2004 5263 1.1 christos 5265 1.1 christos Copyright (C) 2005 Free Software Foundation, Inc. 5266 1.1 christos 5267 1.1 christos Copying and distribution of this file, with or without modification, 5268 1.1 christos are permitted in any medium without royalty provided the copyright 5269 1.1 christos notice and this notice are preserved. 5270 1.1 christos 5271 1.1 christos Local Variables: 5272 1.1 christos mode: change-log 5273 1.1 christos left-margin: 8 5274 1.1 christos fill-column: 74 5275 1.1 christos version-control: never 5276 End: 5277