ChangeLog revision 99461
12002-05-14 Daniel Jacobowitz <drow@mvista.com> 2 3 * configure.in: Set is_release=y for 2.12.1 release. 4 * configure: Likewise. 5 62002-05-13 David Edelsohn <edelsohn@gnu.org> 7 8 * configure.in: Auto-configure HAVE_ST_C_IMPL. 9 * configure: Regenerate. 10 * config.in: Regenerate. 11 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL 12 or AIX_5_CORE. 13 142002-05-11 Daniel Jacobowitz <drow@mvista.com> 15 16 Merge from mainline (to elf32-mips.c): 17 2002-05-03 H.J. Lu (hjl@gnu.org) 18 19 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local. 20 (mips_elf_link_hash_newfunc): Initialize forced_local to false. 21 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol 22 to hide a global symbol. 23 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set 24 forced_local to true. 25 262002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 27 Daniel Jacobowitz <drow@mvista.com> 28 29 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't 30 map BFD_RELOC_RVA. 31 322002-05-09 Alan Modra <amodra@bigpond.net.au> 33 34 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete. 35 36 Merge from mainline 37 2002-05-08 Alan Modra <amodra@bigpond.net.au> 38 * elf32-ppc.c (ppc_elf_create_got): New function. 39 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before 40 _bfd_elf_create_dynamic_sections. Correct .plt flags. 41 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of 42 _bfd_elf_create_got_section. 43 44 2002-05-07 Alan Modra <amodra@bigpond.net.au> 45 * elf-bfd.h (struct elf_backend_data): Add rela_normal. 46 * elfxx-target.h (elf_backend_rela_normal): Define. 47 (elfNN_bed): Init rela_normal. 48 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment 49 for section symbols here if rela_normal. Simplify abs section test. 50 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable, 51 return immediately. Remove code handling relocatable linking. 52 * elf-m10300.c (mn10300_elf_relocate_section): Likewise. 53 * elf32-fr30.c (fr30_elf_relocate_section): Likewise. 54 * elf32-i370.c (i370_elf_relocate_section): Likewise. 55 * elf32-i860.c (elf32_i860_relocate_section): Likewise. 56 * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 57 * elf32-mcore.c (mcore_elf_relocate_section): Likewise. 58 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise. 59 * elf32-ppc.c (ppc_elf_relocate_section): Likewise. 60 * elf32-s390.c (elf_s390_relocate_section): Likewise. 61 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise. 62 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. 63 * elf64-s390.c (elf_s390_relocate_section): Likewise. 64 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. 65 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise. 66 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL. 67 * elf32-m32r.c (m32r_elf_relocate_section): Likewise. 68 * elf-m10200.c (elf_backend_rela_normal): Define. 69 * elf-m10300.c (elf_backend_rela_normal): Define. 70 * elf32-fr30.c (elf_backend_rela_normal): Define. 71 * elf32-i370.c (elf_backend_rela_normal): Define. 72 * elf32-i860.c (elf_backend_rela_normal): Define. 73 * elf32-m68k.c (elf_backend_rela_normal): Define. 74 * elf32-mcore.c (elf_backend_rela_normal): Define. 75 * elf32-openrisc.c (elf_backend_rela_normal): Define. 76 * elf32-ppc.c (elf_backend_rela_normal): Define. 77 * elf32-s390.c (elf_backend_rela_normal): Define. 78 * elf32-xstormy16.c (elf_backend_rela_normal): Define. 79 * elf64-ppc.c (elf_backend_rela_normal): Define. 80 * elf64-s390.c (elf_backend_rela_normal): Define. 81 * elf64-x86-64.c (elf_backend_rela_normal): Define. 82 * elfxx-ia64.c (elf_backend_rela_normal): Define. 83 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL. 84 * elf32-m32r.c (elf_backend_rela_normal): Likewise. 85 86 2002-05-06 Alan Modra <amodra@bigpond.net.au> 87 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset 88 when not relocatable. Fix reloc_emitter call for K&R. 89 90 2002-05-04 Alan Modra <amodra@bigpond.net.au> 91 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma. 92 (read_abbrevs): Change "offset" param to bfd_vma. 93 (parse_comp_unit): Change "version" and addr_size to unsigned ints. 94 Change "abbrev_offset" to bfd_vma. 95 (read_indirect_string): Use correct conversion chars in error 96 message format string, cast bfd_vma's to unsigned long. 97 (read_abbrevs): Likewise. 98 (read_attribute_value): Likewise. 99 (decode_line_info): Likewise. 100 (scan_unit_for_functions): Likewise. 101 (parse_comp_unit): Likewise. 102 103 2002-05-04 Bob Byrnes <byrnes@curl.com> 104 * opncls.c (_bfd_new_bfd_contained_in): Check return value of 105 _bfd_new_bfd. 106 107 2002-05-02 Alan Modra <amodra@bigpond.net.au> 108 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a 109 16 bit reloc. 110 <R_PPC64_SECTOFF_DS>: Likewise. 111 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to 112 SECTOFF reloc. 113 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct. 114 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to 115 SECTOFF reloc. 116 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete. 117 (ppc64_elf_ha_reloc): New function. 118 (ppc64_elf_brtaken_reloc): New function. 119 (ppc64_elf_sectoff_reloc): New function. 120 (ppc64_elf_sectoff_ha_reloc): New function. 121 (ppc64_elf_toc_reloc): New function. 122 (ppc64_elf_toc_ha_reloc): New function. 123 (ppc64_elf_toc64_reloc): New function. 124 (ppc64_elf_unhandled_reloc): New function. 125 (ppc64_elf_howto_raw): Use the above. 126 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset. 127 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask. 128 <R_PPC64_SECTOFF_DS>: Likewise. 129 (IS_ABSOLUTE_RELOC): Update. 130 (struct ppc_link_hash_table): Add have_undefweak. 131 (ppc64_elf_link_hash_table_create): Init. 132 (func_desc_adjust): Set have_undefweak. 133 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only 134 add the .sfpr blr when have_undefweak. 135 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param 136 and relocatable test. Return TOCstart and don't set elf_gp. 137 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch 138 offset calculation. Add assert on weak sym branch tweaks. 139 * elf64-ppc.h (ppc64_elf_set_toc): Delete. 140 (ppc64_elf_toc): Declare. 141 142 2002-05-01 Alan Modra <amodra@bigpond.net.au> 143 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL 144 file_name. 145 146 2002-05-01 Alan Modra <amodra@bigpond.net.au> 147 * elf64-ppc.c (CROR_151515, CROR_313131): Define. 148 (ppc64_elf_relocate_section): Use them. Don't look for plt calls 149 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt 150 call branches. Correct undefined weak destination. 151 (ppc64_elf_func_desc_adjust): Always create at least one blr in 152 .sfpr, and correct case where either only savef* or restf* is 153 needed. 154 155 2002-04-09 DJ Delorie <dj@redhat.com> 156 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks. 157 1582002-05-06 Nick Clifton <nickc@cambridge.redhat.com> 159 160 * elf32-arm.h (elf32_arm_final_link_relocate): Convert 161 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets. 162 1632002-05-02 Richard Henderson <rth@redhat.com> 164 165 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs 166 vs SHN_UNDEF to zero. 167 1682002-04-27 Alan Modra <amodra@bigpond.net.au> 169 170 Merge from mainline 171 2002-04-12 Alan Modra <amodra@bigpond.net.au> 172 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or 173 header pad. 174 175 2002-02-21 Andreas Jaeger <aj@suse.de> 176 * elf64-x86-64.c: Major rework that introduces all recent changes 177 to the x86-64 backend. Get a closer match to elf32-i386. 178 (struct elf64_x86_64_dyn_relocs): Rename from 179 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change 180 all users. 181 (struct elf64_x86_64_link_hash_table): Add short cuts to some 182 sections. 183 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc, 184 remove casts, initialize new hash members. 185 (create_got_section): New. 186 (elf64_x86_64_create_dynamic_sections): New. 187 (elf64_x86_64_copy_indirect_symbol): New. 188 (elf64_x86_64_check_relocs): Don't allocate space for dynamic 189 relocs, .got or .relgot here but do it in allocate_dynrelocs. 190 Reference count possible .plt and .got entries. Don't test input 191 section SEC_READONLY here to try to avoid copy relocs, and keep 192 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set 193 DF_TEXTREL here. Delay setting of variables until needed. Cache 194 pointer to "sreloc" section in elf_section_data. Tweak condition 195 under which .got created. Report files with bad relocation 196 section names. 197 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. 198 Reference count possible .plt entries. Don't deallocate .got and 199 .relgot space here. 200 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't 201 do copy reloc processing for weakdefs. Remove redundant casts and 202 aborts. Delay setting of vars until needed. Move creation of 203 dynamic symbols and allocation of .plt and .rela.plt to 204 allocate_dynrelocs. Replace BFD_ASSERT with abort. 205 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New. 206 (allocate_dynrelocs): New. 207 (readonly_dynrelocs): New. 208 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs. 209 Allocate space for dyn relocs. Replace BFD_ASSERT with abort. 210 Zero out the dynamic allocated content space. 211 (elf64_x86_64_discard_copies): Removed. 212 (elf64_x86_64_relocate_section): Make use of dynamic section 213 short-cuts. Localise vars, and delay setting. Better error 214 reporting, replace BFD_ASSERT with abort. Check 215 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the 216 regular object file and tread the weak definition as the normal 217 one. Don't discard relocs for undefweak or undefined symbols and 218 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy 219 relocs. 220 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for 221 symbols that have been forced local. Use same test to decide if 222 we can use a relative reloc for got as relocate_section. Expand 223 SHN_UNDEF comment. Move expressions out of function calls. 224 Replace BFD_ASSERT with abort. 225 (bfd_elf64_bfd_final_link): Removed. 226 (elf_backend_copy_indirect_symbol): Define. 227 228 * reloc.c: Move sh relocs to where they belong. 229 * libbfd.h, bfd-in2.h: Regenerate. 230 231 Merge from mainline 232 2002-04-26 Alan Modra <amodra@bigpond.net.au> 233 * opncls.c (bfd_make_readable): Call bfd_section_list_clear. 234 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise. 235 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the 236 same as the output before calling elf_link_input_bfd. 237 * coffcode.h (coff_compute_section_file_positions): Set 238 section_tail after shuffling section list. 239 240 2002-04-23 Alan Modra <amodra@bigpond.net.au> 241 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition 242 under which a plt call stub is used. 243 (final_link_relocate): Similarly. 244 (allocate_plt_static): Clear h-plabel except when plt entry is 245 exclusively used for a plabel. 246 (allocate_dynrelocs): Use the above to simplify plt sizing. 247 (struct elf32_hppa_link_hash_table): Add has_22bit_branch. 248 (elf32_hppa_link_hash_table_create): Init. 249 (BL22_RP): Define. 250 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch. 251 (elf32_hppa_check_relocs): Set has_22bit_branch. 252 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message. 253 (final_link_relocate): Likewise. 254 255 2002-04-20 Alan Modra <amodra@bigpond.net.au> 256 * archures.c (bfd_arch_info): Add comment on list order. 257 (bfd_default_set_arch_mach): Use bfd_lookup_arch. 258 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default 259 is always at head of list. 260 * bfd-in2.h: Regenerate. 261 262 2002-04-16 Alan Modra <amodra@bigpond.net.au> 263 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table 264 type rather than just assuming entries are ELF. 265 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise. 266 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise. 267 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise. 268 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry 269 rather than elf_link_hash_entry. 270 271 2002-04-15 Alan Modra <amodra@bigpond.net.au> 272 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type. 273 274 2002-04-08 Randolph Chung <tausq@debian.org> 275 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h. 276 (elf32_hppa_final_link): Split out sorting logic to.. 277 * elf-hppa.h (elf_hppa_sort_unwind): ..here. 278 (elf_hppa_final_link): Call elf_hppa_sort_unwind. 279 2802002-04-26 Richard Smith <richard@ex-parrot.com> 281 Jakub Jelinek <jakub@redhat.com> 282 283 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative. 284 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel 285 encoded personality. 286 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality 287 for CIE/FDE removal. 288 2892002-04-26 Jakub Jelinek <jakub@redhat.com> 290 291 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build 292 search table if some FDE is DW_EH_PE_aligned encoded either. 293 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially. 294 2952002-04-18 Nick Clifton <nickc@cambridge.redhat.com> 296 297 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9, 298 insert_thumb_branch, record_thumb_to_arm_glue): Suppress 299 definition of these functions for ARM_WINCE builds as they are 300 not used. 301 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define 302 for ARM_WINCE builds. 303 3042002-04-16 Nick Clifton <nickc@cambridge.redhat.com> 305 306 * ihex.c (ihex_write_object_contents): Fix check for records 307 crossing 64K boundaries. 308 3092002-04-06 Hans-Peter Nilsson <hp@axis.com> 310 311 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL, 312 R_CRIS_32_PCREL>: Fix typo in name. 313 (cris_elf_check_relocs): Always create .rela.got here when 314 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen. 315 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here; 316 assume it's created. 317 3182002-04-04 Alan Modra <amodra@bigpond.net.au> 319 320 * configure.in: Bump version to 2.12.1 and comment out is_release. 321 * configure: Regenerate. 322 * dep-in.sed: Cope with absolute paths. 323 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR. 324 Run "make dep-am". 325 * Makefile.in: Regenerate. 326 327 Merge from mainline 328 2002-04-04 Alan Modra <amodra@bigpond.net.au> 329 * srec.c (MAXCHUNK, Chunk): Revise comments. 330 (srec_write_record): Correct buffer size. 331 (srec_write_header): Do without intermediate buffer. 332 (srec_write_section): Validate Chunk. 333 (srec_write_terminator): Pass NULL instead of dummy buffer. 334 (srec_write_symbols): Pass file and symbol names directly to 335 bfd_bwrite so sprintf won't overflow buffer. 336 337 2002-04-03 Jakub Jelinek <jakub@redhat.com> 338 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic 339 PC relative relocs against hidden symbols. 340 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. 341 342 2002-04-03 Alan Modra <amodra@bigpond.net.au> 343 * elf.c (_bfd_elf_make_section_from_shdr): When setting section 344 LMAs, loop over segments until p_vaddr and p_memsz specify an 345 extent enclosing the section. 346 347 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com> 348 * ihex.c (ihex_write_object_contents): Do not allow records to 349 cross a 64K boundary - wrap if necessary. 350 351 2002-03-28 Alan Modra <amodra@bigpond.net.au> 352 * linker.c (link_action): Ignore duplicate warning syms. 353 (_bfd_generic_link_write_global_symbol): Follow warning symbol link. 354 * elflink.h (elf_adjust_dynstr_offsets): Likewise. 355 (elf_adjust_dynamic_symbol): Likewise. 356 (elf_export_symbol): Likewise. 357 (elf_link_find_version_dependencies): Likewise. 358 (elf_link_assign_sym_version): Likewise. 359 (elf_link_sec_merge_syms): Likewise. 360 (elf_link_output_extsym): Likewise. 361 (elf_gc_sweep_symbol): Likewise. 362 (elf_gc_propagate_vtable_entries_used): Likewise. 363 (elf_gc_smash_unused_vtentry_relocs): Likewise. 364 (elf_gc_allocate_got_offsets): Likewise. 365 (elf_collect_hash_codes): Likewise. 366 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise. 367 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise. 368 (elf_hppa_remark_useless_dynamic_symbols): Likewise. 369 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise. 370 * elf32-arm.h (elf32_arm_discard_copies): Likewise. 371 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise. 372 (elf_cris_discard_excess_dso_dynamics): Likewise. 373 * elf32-hppa.c (clobber_millicode_symbols): Likewise. 374 (mark_PIC_calls): Likewise. 375 (allocate_plt_static): Likewise. 376 (allocate_dynrelocs): Likewise. 377 (readonly_dynrelocs): Likewise. 378 * elf32-i386.c (allocate_dynrelocs): Likewise. 379 (readonly_dynrelocs): Likewise. 380 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise. 381 * elf32-m68k.c (elf_m68k_discard_copies): Likewise. 382 * elf32-mips.c (mips_elf_output_extsym): Likewise. 383 (mips_elf_sort_hash_table_f): Likewise. 384 (mips_elf_check_mips16_stubs): Likewise. 385 * elf32-s390.c (allocate_dynrelocs): Likewise. 386 (readonly_dynrelocs): Likewise. 387 * elf32-sh.c (sh_elf_discard_copies): Likewise. 388 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise. 389 (xstormy16_relax_plt_realloc): Likewise. 390 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise. 391 (elf64_alpha_output_extsym): Likewise. 392 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise. 393 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise. 394 (mips_elf64_check_mips16_stubs): Likewise. 395 (mips_elf64_output_extsym): Likewise. 396 * elf64-ppc.c (func_desc_adjust): Likewise. 397 (allocate_dynrelocs): Likewise. 398 (readonly_dynrelocs): Likewise. 399 * elf64-s390.c (allocate_dynrelocs): Likewise. 400 (readonly_dynrelocs): Likewise. 401 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise. 402 * elf64-x86-64.c (elf64_x86_64_discard_copies): Likewise. 403 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise. 404 * aoutx.h (aout_link_write_other_symbol): Likewise. 405 * cofflink.c (_bfd_coff_write_task_globals): Likewise. 406 (_bfd_coff_write_global_sym): Likewise. 407 * i386linux.c (linux_tally_symbols): Likewise. 408 * m68klinux.c (linux_tally_symbols): Likewise. 409 * sparclinux.c (linux_tally_symbols): Likewise. 410 * pdp11.c (aout_link_write_other_symbol): Likewise. 411 * sunos.c (sunos_scan_dynamic_symbol): Likewise. 412 * xcofflink.c (xcoff_build_ldsyms): Likewise. 413 (xcoff_write_global_symbol): Likewise. 414 * cofflink.c (_bfd_coff_final_link): Formatting. 415 * elf32-i386.c (elf_i386_check_relocs): Formatting. 416 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise. 417 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise. 418 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise. 419 (mips_elf64_final_link): Likewise. 420 * elflink.h (elf_link_find_version_dependencies): Remove duplicate 421 prototype. 422 423 2002-03-21 Richard Earnshaw <rearnsha@arm.com> 424 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>, 425 <case R_ARM_GOT>): Handle relocations to Thumb functions. 426 427 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com> 428 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set 429 STT_NOTYPE symbols to STT_OBJECT. 430 431 2002-03-13 Alan Modra <amodra@bigpond.net.au> 432 * archures.c (bfd_default_compatible): Test bits_per_word. 433 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with 434 bfd_default_compatible. 435 * cpu-i370.c (i370_compatible): Likewise. 436 * cpu-sparc.c (sparc_compatible): Likewise. 437 * cpu-h8300.c (compatible): Test in->arch == out->arch. 438 439 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com> 440 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31. 441 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64. 442 * bfd-in2.h: Regenerate. 443 * cpu-s390.c (arch_info_struct): Use renamed architecture defines. 444 Replace architecture name "s390" with "s390:31-bit" and "s390:esame" 445 with "s390:64-bit". 446 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations. 447 (elf_s390_reloc_type_lookup): Likewise. 448 (elf_s390_check_relocs): Likewise. 449 (elf_s390_gc_sweep_hook): Likewise. 450 (elf_s390_relocate_section): Likewise. 451 (elf_s390_object_p): Use renamed architecture define. 452 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define. 453 4542002-04-03 Alan Modra <amodra@bigpond.net.au> 455 456 Merge from mainline. 457 2002-03-28 Alan Modra <amodra@bigpond.net.au> 458 * cpu-mips.c (mips_compatible): Make static, prototype. 459 460 2002-03-14 Alan Modra <amodra@bigpond.net.au> 461 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word. 462 (N): Use the above. 463 4642002-04-01 Nathan Williams <nathanw@wasabisystems.com> 465 466 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error 467 which caused the returned LWP ID to always be 0. 468 4692002-04-01 Richard Henderson <rth@redhat.com> 470 471 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New. 472 (elf32_sparc_relocate_section): Use it to figure out when to 473 initialize .got entries. 474 * elf64-sparc.c: Similarly. 475 4762002-03-28 Alan Modra <amodra@bigpond.net.au> 477 478 * aclocal.m4: Regenerate. 479 * config.in: Regenerate. 480 * Makefile.am: Run "make dep-am". 481 * Makefile.in: Regenerate. 482 483 Merge from mainline 484 2002-03-27 Gregory Steuck <greg@nest.cx> 485 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for 486 terminating NULL if empty symbol table. 487 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise. 488 489 2002-03-26 Alan Modra <amodra@bigpond.net.au> 490 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections. 491 492 2002-03-23 Alan Modra <amodra@bigpond.net.au> 493 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on 494 section file offset for !SEC_LOAD sections. 495 496 2002-03-20 Daniel Jacobowitz <drow@mvista.com> 497 * dwarf2.c (struct funcinfo): Move up. 498 (lookup_address_in_function_table): New argument function_ptr. 499 Set it. 500 (lookup_address_in_line_table): New argument function. If function 501 is non-NULL, use it to handle ``addr'' before the first line note of 502 the function. 503 (comp_unit_find_nearest_line): Update and swap calls to 504 lookup_address_in_function_table and lookup_address_in_line_table. 505 * syms.c (_bfd_stab_section_find_nearest_line): Use the first 506 N_SLINE encountered if we see an N_FUN before any N_SLINE. 507 508 2002-03-18 Alan Modra <amodra@bigpond.net.au> 509 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success. 510 * libbfd.h: Regenerate. 511 * archive.c (coff_write_armap): Pass on failures from 512 bfd_write_bigendian_4byte_int. 513 514 2002-03-14 H.J. Lu <hjl@gnu.org> 515 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD 516 error to bfd_error_nonrepresentable_section for reinit_array 517 section in DSO. 518 519 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com> 520 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag, 521 OR it in rather than replacing previously selected flags. 522 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15. 523 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15. 524 525 2002-03-14 Alan Modra <amodra@bigpond.net.au> 526 * elflink.h (elf_bfd_final_link): Revert last change. Instead, 527 ensure reloc size matches before calling elf_link_input_bfd. 528 Add an assert to check reloc size when counting output relocs. 529 530 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com> 531 * mmo.c (mmo_get_loc): Return NULL rather than false. 532 533 2002-03-13 Alan Modra <amodra@bigpond.net.au> 534 * elflink.h: Formatting fixes. 535 (elf_link_output_extsym): Merge undefined and undef weak cases. 536 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd 537 when word size of input matches output word size. 538 539 2002-03-07 H.J. Lu (hjl@gnu.org) 540 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type 541 as the type for bfd_reloc_val. 542 543 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca> 544 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function. 545 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols. 546 (elf_hppa_final_link_relocate): Correct relocations for indirect 547 references to local data through the DLT. Fix .opd creation for 548 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64 549 relocations. Use e_lsel selector for R_PARISC_DLTIND21L, 550 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per 551 "Processor-Specific ELF for PA_RISC, Version 1.43" document. 552 Similarly, use e_rsel for DLT and LTOFF 'R' relocations. 553 * elf32-hppa.c (final_link_relocate): Revise relocation selectors 554 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document. 555 556 2002-03-05 Jakub Jelinek <jakub@redhat.com> 557 * merge.c (_bfd_merge_sections): Don't segfault if there 558 is nothing to merge due to GC. 559 560 2002-03-05 Alan Modra <amodra@bigpond.net.au> 561 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep 562 symbols that have been forced local. 563 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym 564 to output forced local syms for non-shared link. 565 (elf_link_output_extsym): Tweak condition for calling backend 566 adjust_dynamic_symbol so that previous behaviour is kept. 567 Whitespace changes throughout file. 568 569 2002-03-04 H.J. Lu <hjl@gnu.org> 570 * elf.c (bfd_section_from_shdr): Handle special sections, 571 .init_array, .fini_array and .preinit_array. 572 (elf_fake_sections): Likewise. 573 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the 574 DT entry only if the section is in output for .init_array, 575 .fini_array and .preinit_array. Complain about .preinit_array 576 section in DSO. 577 (elf_bfd_final_link): Warn zero size for .init_array, 578 .fini_array and .preinit_array sections. 579 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove 580 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY. 581 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and 582 .preinit_array. 583 584 2002-03-01 David Mosberger <davidm@hpl.hp.com> 585 * elflink.h (size_dynamic_sections): If section named 586 ".preinit_array" exists, create DT_PREINIT_ARRAY and 587 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for 588 ".init_array" and ".fini_array". 589 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ, 590 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and 591 DT_FINI_ARRAY. 592 593 2002-02-19 Frank Ch. Eigler <fche@redhat.com> 594 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping. 595 596 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com> 597 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on 598 non-zero physical addresses when adjusting the LMAs of new 599 sections. 600 601 2002-02-11 Michael Snyder <msnyder@redhat.com> 602 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype. 603 * elf.c (elfcore_grok_pstatus): Add prototype. 604 (elfcore_grok_lwpstatus): Add prototype. 605 (elfcore_write_lwpstatus): New function. 606 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy. 607 6082002-03-20 Tom Rix <trix@redhat.com> 609 610 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from 611 _bfd_xcoff_generic_stat_arch_elt. Fix format check. 612 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt. 613 614Mon Mar 18 18:06:54 CET 2002 Jan Hubicka <jh@suse.cz> 615 616 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64" 617 6182002-03-07 Daniel Jacobowitz <drow@mvista.com> 619 620 * configure.in: Set is_release=y for 2.12 release. 621 * configure: Likewise. 622 6232002-03-07 Daniel Jacobowitz <drow@mvista.com> 624 625 * configure.in: Bump version to 2.12. 626 * configure: Likewise. 627 6282002-03-05 Alan Modra <amodra@bigpond.net.au> 629 630 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment. 631 * configure: Regenerate. 632 6332002-02-26 Andrew Macleod <amacleod@cygnus.com> 634 635 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local 636 dynsyms. 637 6382002-02-25 Alan Modra <amodra@bigpond.net.au> 639 640 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix. 641 (ppc64_elf_relocate_section): Don't generate power4 style branch 642 hints for *_BRTAKEN and *_BRNTAKEN relocs. 643 644 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define. 645 (struct ppc_link_hash_table): Add sfpr. 646 (ppc64_elf_link_hash_table_create): Init it. 647 (ppc64_elf_create_dynamic_sections): Split creation of .stub and 648 .glink out to.. 649 (create_linkage_sections): ..here. Make .sfpr too. 650 (ppc64_elf_check_relocs): Call create_linkage_sections, and set 651 dynobj early. 652 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define. 653 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and 654 ._restf* functions, and create as needed. 655 (func_desc_adjust): Only force_local for shared libs. 656 6572002-02-22 Jakub Jelinek <jakub@redhat.com> 658 659 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my 660 last patch. 661 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. 662 6632002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 664 665 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are 666 little endian. 667 6682002-02-19 Jakub Jelinek <jakub@redhat.com> 669 670 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable 671 absptr -> pcrel optimization for shared libs. 672 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared 673 library cannot be converted to pcrel. 674 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr 675 relative. 676 * elf32-i386.c (elf_i386_relocate_section): If 677 _bfd_elf_section_offset returned -2, skip, but make sure the 678 relocation is installed. 679 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise. 680 * elf32-cris.c (cris_elf_relocate_section): Likewise. 681 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. 682 * elf32-i370.c (i370_elf_relocate_section): Likewise. 683 * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 684 * elf32-ppc.c (ppc_elf_relocate_section): Likewise. 685 * elf32-s390.c (elf_s390_relocate_section): Likewise. 686 * elf32-sh.c (sh_elf_relocate_section): Likewise. 687 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 688 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. 689 * elf64-s390.c (elf_s390_relocate_section): Likewise. 690 * elf64-sh64.c (sh_elf64_relocate_section): Likewise. 691 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. 692 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. 693 * elf64-alpha.c (elf64_alpha_relocate_section): Handle 694 _bfd_elf_section_offset returning -2 the same way as -1. 695 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise. 696 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME 697 and BFD_ASSERT. 698 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise. 699 7002002-02-18 John David Anglin <dave@hiauly1.hia.nrc.ca> 701 702 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped 703 from _bfd_elf_hppa_gen_reloc_type. 704 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype. 705 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype. 706 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h. 707 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype. 708 7092002-02-17 Hans-Peter Nilsson <hp@bitrange.com> 710 711 * mmo.c: Correct and improve comments. 712 (mmo_write_chunk): Store trailing byte in bfd buffer; don't 713 zero-pad. Use input to fill up non-empty bfd buffer. 714 (mmo_flush_chunk): New function. 715 (mmo_write_loc_chunk): Add parameter last_vmap, all callers 716 changed. Don't emit location specifier if VMA is same as 717 *LAST_VMAP after omitting leading zero contents. Call 718 mmo_flush_chunk before emitting location specifier. 719 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished 720 with mmo_write_loc_chunk calls. 721 (mmo_internal_write_section): Call mmo_flush_chunk after 722 mmo_write_chunk. 723 (mmo_write_symbols_and_terminator): Move :Main to first position 724 in symbol array. Add faked one if it does not exist if there are 725 other symbols. Don't add it if there are no symbols at all. Move 726 out test for value of :Main from symbol loop. Rename table 727 fakemain to maintable and variable mainsym to fakemain. 728 7292002-02-15 Richard Henderson <rth@redhat.com> 730 731 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target 732 section with no got matches any got. Simplify error generaion. 733 7342002-02-14 Alan Modra <amodra@bigpond.net.au> 735 736 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD. 737 7382002-02-13 Hans-Peter Nilsson <hp@bitrange.com> 739 740 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64 741 vectors. 742 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64 743 vectors. 744 7452002-02-13 Matt Fredette <fredette@netbsd.org> 746 747 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize 748 EF_M68000. 749 7502002-02-12 Alexandre Oliva <aoliva@redhat.com> 751 752 * elf-m10300.c (mn10300_elf_relax_section): Skip section before 753 loading its contents if there's nothing to do in it. 754 7552002-02-12 Alan Modra <amodra@bigpond.net.au> 756 757 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing 758 64k boundary. 759 760 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic 761 DT_PPC64_OPD and DT_PPC64_OPDSZ tags. 762 (ppc64_elf_finish_dynamic_sections): Set values for them. 763 7642002-02-11 Alexandre Oliva <aoliva@redhat.com> 765 766 * elf32-sh.c: Added missing prototypes. 767 * elf32-sh64.c: Likewise. 768 (sh_elf_align_loads): Mark unused args as such. 769 * elf64-sh64.c: Added missing prototypes. 770 (struct elf_sh64_link_hash_entry): Fix typo. 771 (sh_elf64_relocate_section): Fix info argument passed to 772 _bfd_elf_section_offset. 773 7742002-02-10 Daniel Jacobowitz <drow@mvista.com> 775 776 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized 777 variable warnings. 778 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned 779 comparison warning. 780 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer 781 cast warnings for the common case. 782 7832002-02-09 Richard Henderson <rth@redhat.com> 784 785 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP. 786 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise. 787 (elf64_alpha_relocate_section): Likewise. 788 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New. 789 * bfd-in2.h, libbfd.h: Rebuild. 790 7912002-02-09 Hans-Peter Nilsson <hp@bitrange.com> 792 793 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check 794 that base-plus-offset reloc accounting is consistent. 795 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting 796 up to date for undefined symbols. 797 7982002-02-08 Eric Christopher <echristo@redhat.com> 799 800 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 801 802 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela 803 sections for the O32 ABI. 804 8052002-02-08 Chris Demetriou <cgd@broadcom.com> 806 807 * elf32-arm.h: Fix formatting of _("..."). 808 * elf32-d10v.c: Likewise. 809 * elf32-m68k.c: Likewise. 810 * elf32-mips.c: Likewise. 811 8122002-02-08 Ivan Guzvinec <ivang@opencores.org> 813 814 * coff-or32.c: Fix compile time warning messages. 815 8162002-02-08 Alexandre Oliva <aoliva@redhat.com> 817 818 Contribute sh64-elf. 819 2002-01-23 Alexandre Oliva <aoliva@redhat.com> 820 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16, 821 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16, 822 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16, 823 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16, 824 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16, 825 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16, 826 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16, 827 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8, 828 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64): 829 New relocs. 830 * libbfd.h, bfd-in2.h: Rebuilt. 831 * elf32-sh.c (sh_elf_howto_table): Define new relocs. 832 (sh_reloc_map): Map them. 833 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le, 834 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be, 835 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry, 836 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset, 837 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset, 838 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset, 839 movi_shori_putval) [INCLUDE_SHMEDIA]: New. 840 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add 841 datalabel_got_offset. 842 (sh_elf_link_hash_newfunc): Initialize it. 843 (sh_elf_relocate_section): Augment the scope of 844 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT, 845 GOT and GOTOFF handling to new SHmedia relocation types. Support 846 GOT_BIAS. 847 (sh_elf_check_relocs): Likewise. 848 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in 849 PLT entries using movi_shori_putval. Support GOT_BIAS. 850 (sh_elf_finish_dynamic_sections): Likewise. 851 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to 852 relocation, it's now done by the caller. 853 (GOT_BIAS): New. 854 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt, 855 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset, 856 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset, 857 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER, 858 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry, 859 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse, 860 sh64_elf64_hash_table): New. 861 (sh_elf64_howto_table): Introduce new relocs. 862 (sh_elf64_info_to_howto): Accept new PIC relocs. 863 (sh_elf64_relocate_section): Augment the scope of 864 seen_stt_datalabel. Support new PIC relocs. 865 (sh_elf64_check_relocs): Support new PIC relocs. 866 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le, 867 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le, 868 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le, 869 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry, 870 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create, 871 movi_shori_putval, movi_3shori_putval, 872 sh64_elf64_create_dynamic_sections, 873 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies, 874 sh64_elf64_size_dynamic_sections, 875 sh64_elf64_finish_dynamic_symbol, 876 sh64_elf64_finish_dynamic_sections): New. 877 (elf_backend_create_dynamic-sections, 878 bfd_elf64_bfd_link_hash_table_create, 879 elf_backend_adjust_dynamic_symbol, 880 elf_backend_size_dynamic_sections, 881 elf_backend_finish_dynamic_symbol, 882 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt, 883 elf_backend_plt_readonly, elf_backend_want_plt_sym, 884 elf_backend_got_header_size, elf_backend_plt_header_size): 885 Define. 886 2001-05-16 Alexandre Oliva <aoliva@redhat.com> 887 * elf32-sh.c: Renumbered and renamed some SH5 relocations to 888 match official numbers and names; moved unmaching ones to the 889 range 0xf2-0xff. 890 * elf32-sh64.c, elf64-sh64.c: Likewise. 891 2001-03-12 DJ Delorie <dj@redhat.com> 892 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia 893 sections. 894 2001-03-12 DJ Delorie <dj@redhat.com> 895 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must 896 be aligned. 897 * elf64-sh64.c (sh_elf64_relocate_section): Ditto. 898 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com> 899 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define. 900 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a 901 .cranges section with SEC_SORT_ENTRIES set. 902 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an 903 incoming sorted .cranges section. 904 (sh64_bfd_elf_copy_private_section_data): New. 905 (sh64_elf_final_write_processing): Only sort .cranges and modify 906 start address if called by linker. 907 2001-01-08 Ben Elliston <bje@redhat.com> 908 * elf32-sh64.c (sh64_elf_final_write_processing): Activate 909 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06. 910 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto. 911 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com> 912 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of 913 line. Add comments before all entries. 914 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing 915 comment. 916 (sh_elf64_reloc): Correct head comment. 917 (sh_elf64_relocate_section): Correct spacing. 918 <relocating for a local symbol>: Do not honour STO_SH5_ISA32; 919 instead call reloc_dangerous callback. 920 <case R_SH_SHMEDIA_CODE>: New case. 921 (sh_elf64_gc_mark_hook): Correct spacing. 922 (sh_elf64_check_relocs): Ditto. 923 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>: 924 New case. 925 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped 926 functions. 927 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct, 928 clarify describing comment. Add comments before all entries. 929 (sh_elf_relocate_section) <relocating for a local symbol>: Do not 930 honour STO_SH5_ISA32; instead call reloc_dangerous callback. 931 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com> 932 Sort .cranges section in final link. Prepare to set bit 0 on 933 entry address. 934 * elf32-sh64.c (struct sh64_find_section_vma_data): New. 935 (sh64_elf_link_output_symbol_hook): Fix typo in prototype. 936 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming 937 .cranges section. 938 (sh64_backend_section_from_shdr): New, to recognize 939 SHT_SH5_CR_SORTED on incoming .cranges section. 940 (elf_backend_section_from_shdr): Define. 941 (sh64_elf_final_write_processing): Sort outgoing .cranges 942 section. (New, temporarily disabled:) Set bit 0 on entry address 943 according to ISA type. 944 (sh64_find_section_for_address): New. 945 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb, 946 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c. 947 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use 948 bfd_malloc, not xmalloc. 949 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make 950 global. 951 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but 952 temporarily disabled) setting bit 0 on entry address. 953 (elf_backend_final_write_processing): Define. 954 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com> 955 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to 956 be a proper relocation for PTA and PTB rather than a marker. 957 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2, 958 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16, 959 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16, 960 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL, 961 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>: 962 Zero src_mask. 963 * elf64-sh64.c: Ditto. 964 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case. 965 * elf32-sh64.c: Include opcodes/sh64-opc.h 966 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first 967 argument. Drop const qualifiers from "bfd *" and "bfd_byte *" 968 parameters. No unused parameters. Caller changed. 969 <case R_SH_PT_16>: New case. 970 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h. 971 * Makefile.in: Regenerate. 972 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com> 973 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for 974 all code sections. 975 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5. 976 (sh64_elf_merge_private_data): Ditto. 977 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data 978 to access stored section flags. 979 (sh64_elf_final_write_processing): Return immediately unless 980 called by linker. Use sh64_elf_section_data (cranges) to get size 981 of linker-generated cranges entries. 982 (sh64_elf_copy_private_data): Add missing "return true". 983 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5. 984 (sh_elf64_merge_private_data): Ditto. 985 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com> 986 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of 987 elf64-sh64.c:sh64_elf_fake_sections. 988 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections. 989 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com> 990 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete. 991 (sh64_elf_final_write_processing): New. 992 (elf_backend_final_write_processing): Define. 993 (sh64_elf_fake_sections): Get header flags from tdata field. 994 (sh64_elf_copy_private_data): Do not call 995 sh64_elf_copy_private_data_internal, just copy e_flags field. 996 (sh64_elf_merge_private_data): Do not call 997 sh64_elf_copy_private_data_internal. 998 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com> 999 Remove EF_SH64_ABI64, let ELF size make difference. 1000 Remove SH64-specific BFD section flag. 1001 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as 1002 containing SHmedia through elf_section_data (asect)->tdata 1003 non-zero, not using a BFD section flag. 1004 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64. 1005 (sh64_elf_merge_private_data): Similar. 1006 (elf_backend_section_flags): Don't define. 1007 (sh64_elf_backend_section_flags): Delete. 1008 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64, 1009 not EF_SH64_ABI64. 1010 (sh_elf64_merge_private_data): Similar. 1011 * section.c (Section flags definitions): Don't define 1012 SEC_SH_ISA_SHMEDIA. 1013 (bfd-in2.h): Regenerate. 1014 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com> 1015 Make DataLabel references work with partial linking. 1016 * elf32-sh64.c: Fix formatting. 1017 (sh64_elf_link_output_symbol_hook): New. 1018 (elf_backend_link_output_symbol_hook): Define to 1019 sh64_elf_link_output_symbol_hook. 1020 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global 1021 undefined if partial linking. Adjust sanity check. 1022 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New. 1023 (elf_backend_link_output_symbol_hook): Define to 1024 sh64_elf64_link_output_symbol_hook. 1025 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global 1026 undefined if partial linking. Adjust sanity check. 1027 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com> 1028 Implement semantics for inter-file DataLabel references. 1029 * elf64-sh64.c (DATALABEL_SUFFIX): Define. 1030 (sh64_elf64_add_symbol_hook): New. 1031 (sh_elf64_relocate_section): If passing an indirect symbol with 1032 st_type STT_DATALABEL on the way to a symbol with st_other 1033 STO_SH5_ISA32, do not bitor 1 to the relocation. 1034 (elf_backend_add_symbol_hook): Define to 1035 sh64_elf64_add_symbol_hook. 1036 * elf64-sh32.c: Tweak comments. 1037 (DATALABEL_SUFFIX): Define. 1038 (sh64_elf_add_symbol_hook): New. 1039 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook. 1040 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect 1041 symbol with st_type STT_DATALABEL on the way to a symbol with 1042 st_other STO_SH5_ISA32, do not bitor 1 to the relocation. 1043 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com> 1044 Pass through STT_DATALABEL. 1045 * elf32-sh64.c (sh64_elf_get_symbol_type): New. 1046 (elf_backend_get_symbol_type): Define. 1047 * elf64-sh64.c (sh64_elf64_get_symbol_type): New. 1048 (elf_backend_get_symbol_type): Define. 1049 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com> 1050 * elf32-sh64.c: Tweak comments. 1051 (sh64_elf_copy_private_data_internal): Add prototype. 1052 (bfd_elf32_bfd_set_private_flags): Define. 1053 (sh64_elf_copy_private_data_internal): Compare machine name, not 1054 textual BFD target name, to check whether to copy section flag 1055 SHF_SH5_ISA32. 1056 (sh64_elf_merge_private_data): Validize bfd_get_arch_size. 1057 Tweak section-contents-type-mismatch message. 1058 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers. 1059 Validize reloc-types. 1060 * elf64-sh64.c: New file. 1061 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare. 1062 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo. 1063 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c. 1064 Regenerate dependencies. 1065 * Makefile.in: Regenerate. 1066 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and 1067 bfd_elf64_sh64l_vec. 1068 * configure.in: Handle bfd_elf64_sh64_vec and 1069 bfd_elf64_sh64l_vec. 1070 * configure: Regenerate. 1071 * po/POTFILES.in: Regenerate. 1072 * po/bfd.pot: Regenerate. 1073 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com> 1074 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize 1075 anything else but EF_SH64 and EF_SH64_ABI64. 1076 (sh64_elf_merge_private_data): Emit error for anything else but 1077 EF_SH64 and EF_SH64_ABI64. 1078 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec 1079 from targ_selvecs. 1080 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and 1081 bfd_elf32_sh64l_vec as a temporary measure. 1082 * configure: Regenerate. 1083 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com> 1084 * cpu-sh.c (arch_info_struct): Include sh5 item 1085 unconditionalized. 1086 * config.bfd (sh64-*-elf*): Do not set targ_cflags. 1087 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec, 1088 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec. 1089 * elf32-sh64.c: Tweak comments. 1090 (sh64_elf_set_mach_from_flags): Recognize all machine flags that 1091 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64. 1092 (sh64_elf_copy_private_data_internal): Wrap long line. 1093 (sh64_elf_merge_private_data): Rewrite to allow objects from 1094 SH64 subsets to be linked together. 1095 (INCLUDE_SHMEDIA): Define. 1096 * elf32-sh.c (sh_elf_relocate_section) <local symbol>: 1097 Parenthesize plus-expression inside or-expression. 1098 <global symbol>: Ditto. 1099 (sh_elf_set_mach_from_flags): Remove code refusing 1100 deleted EF_SH64_32BIT_ABI flag. 1101 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com> 1102 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL, 1103 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL, 1104 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true. 1105 (sh_elf_relocate_section) <local symbol>: Or 1 in 1106 calculation of relocation if sym->st_other & STO_SH5_ISA32. 1107 <global symbol>: Ditto if h->other & STO_SH5_ISA32. 1108 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to 1109 relocation. 1110 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com> 1111 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo. 1112 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c. 1113 Regenerate dependencies. 1114 * Makefile.in: Regenerate. 1115 * archures.c: Add bfd_mach_sh5. 1116 * config.bfd: Map targ_cpu sh* to bfd_sh_arch. 1117 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA. 1118 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec. 1119 * configure: Regenerate. 1120 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5, 1121 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6, 1122 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2, 1123 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8, 1124 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16, 1125 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16, 1126 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16, 1127 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16, 1128 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations. 1129 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link 1130 in item for SH5. 1131 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items 1132 for SHmedia relocs. 1133 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs. 1134 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call 1135 shmedia_prepare_reloc, goto final_link_relocate if it returns 1136 non-zero, else fail as before. 1137 (sh_elf_set_mach_from_flags): Provide function only if not defined 1138 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set. 1139 (sh_elf_set_private_flags): Provide function only if not defined 1140 as a macro. 1141 (sh_elf_copy_private_data): Similar. 1142 (sh_elf_merge_private_data): Similar. 1143 * section.c (SEC_SH_ISA_SHMEDIA): New. 1144 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare. 1145 * elf32-sh64.c: New file. 1146 * libbfd.h: Regenerate. 1147 * bfd-in2.h: Regenerate. 1148 * po/POTFILES.in: Regenerate. 1149 * po/bfd.pot: Regenerate. 1150 * bfd-in2.h: Regenerate. 1151 * libbfd.h: Regenerate. 1152 11532002-02-07 Daniel Jacobowitz <drow@mvista.com> 1154 1155 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has 1156 been included, not drag it in. 1157 * bfd-in2.h: Regenerate. 1158 11592002-02-06 H.J. Lu (hjl@gnu.org) 1160 1161 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update 1162 the mach and ISA fields if necessary. 1163 11642002-02-06 Nick Clifton <nickc@cambridge.redhat.com> 1165 1166 * coffcode.h (coff_set_arch_mach_hook): Select the highest known 1167 ARM architecture when an F_ARM_5 flag is detected, since we cannot 1168 be sure exactly which architecture this represents. 1169 11702002-02-05 Nick Clifton <nickc@redhat.com> 1171 1172 * po/tr.po: Updated translation. 1173 11742002-02-05 Alan Modra <amodra@bigpond.net.au> 1175 1176 From Jimi X <jimix@watson.ibm.com> 1177 * archures (bfd_mach_ppc64): Define. 1178 (bfd_powerpc_arch): Rename to bfd_powerpc_archs. 1179 (bfd_powerpc_arch): Define. 1180 * bfd-in2.h: Regenerate. 1181 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs. 1182 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs. 1183 (bfd_powerpc_archs): Add default powerpc64 arch. 1184 11852002-02-05 Alan Modra <amodra@bigpond.net.au> 1186 1187 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs 1188 against section syms in readonly sections. Don't do the global 1189 sym check if we find one. 1190 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise. 1191 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise. 1192 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise. 1193 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise. 1194 (elf_s390_grok_prstatus): Add missing prototype. 1195 11962002-02-04 Hans-Peter Nilsson <hp@bitrange.com> 1197 1198 * elf64-mmix.c (mmix_dump_bpo_gregs): New function. 1199 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>: 1200 Call bfd_get_section_by_name only once. Initialize 1201 bpodata->n_bpo_relocs_this_section. 1202 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment 1203 referring to DSOs. 1204 (bpo_reloc_request_sort_fn): Don't use difference of values as 1205 return-value. 1206 12072002-02-02 David O'Brien <obrien@FreeBSD> 1208 1209 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat 1210 version 4.5 and later the same as 5-CURRENT. 1211 * configure: Re-generate. 1212 12132002-02-02 Jason Thorpe <thorpej@wasabisystems.com> 1214 1215 * config.bfd (hppa*-*-netbsd*): New target. 1216 12172002-01-31 Philipp Thomas <pthomas@suse.de> 1218 1219 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR 1220 to front of message. Unify messages with elf32-arm.h. Use 1221 commas where neccessary. 1222 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase 1223 ERROR in messages. Unify messages with coff-arm.c. Correct 1224 VFP/FPA error message. 1225 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and 1226 APCS-32 for translation. 1227 12282002-02-01 Hans-Peter Nilsson <hp@bitrange.com> 1229 1230 Perform on-demand global register allocation from 1231 R_MMIX_BASE_PLUS_OFFSET relocs. 1232 * elf64-mmix.c (struct bpo_reloc_section_info, struct 1233 bpo_reloc_request, struct bpo_greg_section_info): New. 1234 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook, 1235 bpo_reloc_request_sort_fn, mmix_elf_relax_section, 1236 _bfd_mmix_check_all_relocs, 1237 _bfd_mmix_prepare_linker_allocated_gregs, 1238 _bfd_mmix_finalize_linker_allocated_gregs): New functions. 1239 (elf_mmix_howto_table): Correct src_mask for most relocs. 1240 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New 1241 case. 1242 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New 1243 case. Fix typo in comment. New label do_mmix_reloc. 1244 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to 1245 store first object file with a base-plus-offset reloc. Call 1246 mmix_elf_check_common_relocs for the part common with mmo. 1247 (mmix_elf_final_link): Write out linker-allocated register 1248 contents section. 1249 (elf_backend_gc_sweep_hook): Define. 1250 (bfd_elf64_bfd_relax_section): Define. 1251 1252 * mmo.c: Don't include <ctype.h> 1253 (mmo_init): Correct init-once logic. 1254 12552002-02-01 Tom Rix <trix@redhat.com> 1256 1257 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3. 1258 12592002-02-01 Alan Modra <amodra@bigpond.net.au> 1260 1261 * Makefile.am: Run "make dep-am" 1262 * Makefile.in: Regenerate. 1263 12642002-01-31 David O'Brien <obrien@FreeBSD> 1265 1266 * configure.in: Recognize the differences in core files from FreeBSD 1267 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as 1268 5-CURRENT. 1269 * configure: Regenerate. 1270 12712002-01-31 Ivan Guzvinec <ivang@opencores.org> 1272 1273 * coff-or32.c: New file. 1274 * cpu-or32.c: New file. 1275 * elf32-or32.c: New file. 1276 * archures.c: Add support for or32. 1277 * targets.c: Add support for or32. 1278 * bfd-in2.h: Regenerate. 1279 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags, 1280 coff_write_object_contents): Add support for or32. 1281 * config.bfd: Add target. 1282 * configure.in: Add support for or32. 1283 * configure: Regenerate. 1284 * Makefile.am: Add support for or32. 1285 * Makefile.in: Regenerate. 1286 * po/SRC-POTFILES.in: Add or32 files. 1287 * po/bfd.pot: Regenerate. 1288 12892002-01-31 Nick Clifton <nickc@cambridge.redhat.com> 1290 Don Lindsay <lindsayd@cisco.com> 1291 1292 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return 1293 false' with a return of a bfd_reloc_ error code. 1294 12952002-01-31 Hans-Peter Nilsson <hp@axis.com> 1296 1297 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't 1298 unexport unreferenced symbols when --export-dynamic. Call 1299 _bfd_elf_strtab_delref when unexporting. 1300 13012002-01-30 Daniel Jacobowitz <drow@mvista.com> 1302 1303 * bfd-in.h: Include <stdbool.h> if it is available. 1304 * bfd-in2.h: Regenerated. 1305 13062002-01-31 Alan Modra <amodra@bigpond.net.au> 1307 1308 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should 1309 not go via the plt. 1310 13112002-01-30 Nick Clifton <nickc@cambridge.redhat.com> 1312 1313 * archures.c: Tidy up formatting of embedded comments. 1314 * bfd.c: Tidy up formatting of embedded comments. 1315 * bfd-in.h: Fix formatting of comments. 1316 * reloc.c: Tidy up formatting of ordinary & embedded comments. 1317 * section.c: Tidy up formatting of embedded comments. 1318 * syms.c: Tidy up formatting of embedded comments. 1319 * targets.c: Tidy up formatting of embedded comments. 1320 1321 * bfd-in2.h: Regenerate. 1322 13232002-01-30 Nick Clifton <nickc@cambridge.redhat.com> 1324 1325 * vms-tir.c (cmd_name): New function. 1326 (tir_cmd_name): New function. 1327 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name(). 1328 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name(). 1329 Fix formatting. 1330 1331 * peXXigen.c (pe_print_idata): Rearrange message to aid in 1332 translation. 1333 (pe_print_pdata): Rearrange message to aid in translation. 1334 1335 * libbfd.c (warn_deprecated): Rearrange error message to aid in 1336 translation. 1337 1338 * ihex.c (ihex_write_object_contents): Fix spelling typo. 1339 1340 * ieee.c (ieee_slurp_external_symbols): Remove spurious space. 1341 1342 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error 1343 message to aid in translation. 1344 1345 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message 1346 to aid in translation. 1347 1348 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo. 1349 13502002-01-30 Philipp Thomas <pthomas@suse.de> 1351 1352 * coff-arm.c, elf32-elf.h: Unify messages. 1353 13542002-01-30 Nick Clifton <nickc@redhat.com> 1355 1356 * po/sv.po: Updated translation. 1357 13582002-01-30 Philipp Thomas <pthomas@suse.de> 1359 1360 * dwarf2.c (read_abbrev): Use full section name in error message. 1361 (decode_line_info): Likewise. 1362 1363 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging 1364 message. 1365 13662002-01-30 Alan Modra <amodra@bigpond.net.au> 1367 1368 * elf64-ppc.c (func_desc_adjust): Only provide missing function 1369 descriptor symbols for undefined function code syms. Clear 1370 ELF_LINK_NON_ELF so that they can stay weak. 1371 13722002-01-29 Chris Demetriou <cgd@broadcom.com> 1373 Mitch Lichtenberg <mpl@broadcom.com> 1374 1375 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype. 1376 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function 1377 to handle 32-bit ELF embedded reloc (ld --embedded-relocs) 1378 generation. 1379 * bfd-in2.h: Regenerate. 1380 13812002-01-29 Chris Demetriou <cgd@broadcom.com> 1382 1383 * elf32-mips.c: Add additional comments about HI16 relocation 1384 processing. 1385 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for 1386 pc-relative relocations. (Reverts change made on 2001-10-31.) 1387 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here 1388 for pc-relative relocations. 1389 (mips_elf_calculate_relocation): Add a comment about a kludge 1390 in the R_MIPS_GNU_REL_HI16 handling. 1391 (_bfd_mips_elf_relocate_section): Implement that kludge; 1392 adjust pc-relative HI16 relocation for difference in HI16 and 1393 LO16 addresses, since it can't easily be done in 1394 mips_elf_calculate_relocation. 1395 13962002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com> 1397 1398 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32 1399 relocations with PC32 relocations for undefined or weak symbols. 1400 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise. 1401 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise. 1402 14032002-01-28 Jason Thorpe <thorpej@wasabisystems.com> 1404 1405 * elfcore.h (elf_core_file_p): Improve comment for last change. 1406 14072002-01-27 Daniel Jacobowitz <drow@mvista.com> 1408 1409 * configure: Regenerated. 1410 14112002-01-27 Jason Thorpe <thorpej@wasabisystems.com> 1412 1413 * elfcore.h (elf_core_file_p): Set the machine architecture 1414 before processing the program headers. 1415 14162002-01-26 Hans-Peter Nilsson <hp@bitrange.com> 1417 1418 * configure.in <64-bit configuration>: If using gcc, check and 1419 emit error for egcs-1.1.2. 1420 * configure: Regenerate. 1421 14222002-01-26 Egor Duda <deo@logos-m.ru> 1423 1424 * elf.c (elfcore_grok_win32pstatus): Copy only as much information 1425 as possible to avoid stack corruption. 1426 14272002-01-26 Richard Henderson <rth@redhat.com> 1428 1429 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext 1430 for non-allocated sections. 1431 14322002-01-25 Mark Kettenis <kettenis@gnu.org> 1433 1434 * elf.c (elfcore_write_prstatus): Make sure we pass the address of 1435 prstat.pr_reg even if it is a struct. 1436 14372002-01-25 Steve Ellcey <sje@cup.hp.com> 1438 1439 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX. 1440 14412002-01-25 Philipp Thomas <pthomas@suse.de> 1442 1443 * coffgen.c (coff_print_symbol): Don't mark info message 1444 for translation. 1445 14462002-01-25 Nick Clifton <nickc@redhat.com> 1447 1448 * po/fr.po: Updated translation. 1449 * po/es.po: Updated translation. 1450 14512002-01-25 Philipp Thomas <pthomas@suse.de> 1452 1453 * coff-alpha.c (alpha_relocate_section): Unify warning message 1454 for GP relative relocations without GP defined. 1455 * coff-mips.c (mips_relocate_section): Likewise. 1456 14572002-01-25 Alan Modra <amodra@bigpond.net.au> 1458 1459 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid 1460 unsigned overflow when new_offset < old_offset. 1461 14622002-01-24 Philipp Thomas <pthomas@suse.de> 1463 1464 * bfd.c (_bfd_abort): Fix typo. 1465 14662002-01-23 Richard Henderson <rth@redhat.com> 1467 1468 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress 1469 plt entries for undefweak symbols. 1470 14712002-01-23 Steve Ellcey <sje@cup.hp.com> 1472 1473 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to 1474 DEFAULT_VECTOR. 1475 (bfd_elf64_ia64_hpux_big_vec): Ditto. 1476 (bfd_elf32_h8300_vec): Ditto. 1477 14782002-01-23 Alan Modra <amodra@bigpond.net.au> 1479 1480 * elf64-ppc.c: Remove stale part of ABI comment. 1481 (NO_OPD_RELOCS): Define. 1482 (ppc64_elf_check_relocs): Use it. 1483 (ppc64_elf_relocate_section): Here too. 1484 (build_one_stub): Don't point function syms at the stub. Instead, 1485 hijack plt.offset. 1486 (ppc64_elf_relocate_section): Check whether REL24 relocs should 1487 really go to the stub. Make all dynamic relocs in opd against 1488 locals. 1489 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of 1490 plt.offset. 1491 14922002-01-22 Richard Henderson <rth@redhat.com> 1493 1494 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp. 1495 14962002-01-22 Alan Modra <amodra@bigpond.net.au> 1497 1498 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of 1499 TOC_BASE_OFF adjustment. 1500 1501 * Makefile.am: Run "make dep-am". 1502 * Makefile.in: Regenerate. 1503 * po/SRC-POTFILES.in: Regenerate. 1504 15052002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca> 1506 1507 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new 1508 host defines. 1509 15102002-01-21 Hans-Peter Nilsson <hp@axis.com> 1511 1512 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>: 1513 Check for and emit error if sgot is NULL at this point. 1514 15152002-01-21 Jason Thorpe <thorpej@wasabisystems.com> 1516 1517 * config.bfd (ia64*-*-netbsd*): New target. 1518 15192002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at> 1520 1521 * som.c (som_write_space_strings): Comment typo fix. 1522 15232002-01-21 Alan Modra <amodra@bigpond.net.au> 1524 1525 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and 1526 is_func_descriptor fields. 1527 (link_hash_newfunc): Init them. 1528 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a 1529 dot are candidates for plt entries. When processing .opd relocs, 1530 set function descriptor strings to point inside function code 1531 string, and set new ppc_link_hash_entry fields. 1532 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs. 1533 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with 1534 function descriptors. It's now done in.. 1535 (func_desc_adjust): New. 1536 (ppc64_elf_func_desc_adjust): New. 1537 (define elf_backend_always_size_sections): Define. 1538 (ppc64_elf_hide_symbol): New. 1539 (define elf_backend_hide_symbol): Define. 1540 (allocate_dynrelocs): Remove code looking up function descriptors 1541 as that has been done earlier. 1542 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash 1543 table. 1544 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking 1545 up function descriptor. 1546 (build_one_stub): Look up the function code sym. Check for 1547 invalid plt offsets. 1548 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms. 1549 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs. 1550 1551 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add 1552 boolean param. 1553 (_bfd_elf_link_hash_hide_symbol): Likewise. 1554 * elflink.h (elf_link_add_object_symbols): Adjust call to 1555 elf_backend_hide_symbol. 1556 (elf_fix_symbol_flags): Likewise. 1557 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather 1558 than bfd_alloc. 1559 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param. 1560 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref. 1561 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise. 1562 (clobber_millicode_symbols): Adjust to suit new hide_symbol. 1563 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param 1564 and adjust to suit. 1565 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call 1566 _bfd_elf_link_hash_hide_symbol rather than duplicating code. 1567 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise. 1568 15692002-01-18 Alan Modra <amodra@bigpond.net.au> 1570 1571 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a 1572 dynamic function descriptor symbol, not the associated function 1573 symbol. 1574 15752002-01-17 Eric Christopher <echristo@redhat.com> 1576 1577 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo. 1578 15792002-01-17 Nick Clifton <nickc@cambridge.redhat.com> 1580 1581 * po/bfd.pot: Regenerate. 1582 * po/fr.po: Regenerate. 1583 15842002-01-17 Alan Modra <amodra@bigpond.net.au> 1585 1586 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>): 1587 Remove "Elf_Internal_Shdr *" param. 1588 (_bfd_mips_elf_section_from_bfd_section): Ditto. 1589 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto. 1590 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto. 1591 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto. 1592 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto. 1593 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto. 1594 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend 1595 function to override special sections. Remove hdr arg from 1596 backend call, and don't loop. 1597 15982002-01-16 Eric Christopher <echristo@redhat.com> 1599 1600 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp 1601 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of 1602 relocations requiring gp0 and gp. 1603 16042002-01-16 Richard Earnshaw <rearnsha@arm.com> 1605 1606 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle 1607 EF_ARM_VFP_FLOAT. 1608 (elf32_arm_print_private_bfd_data): Likewise. 1609 16102002-01-16 Nick Clifton <nickc@cambridge.redhat.com> 1611 1612 * po/tr.po: Import new version. 1613 16142002-01-16 Alan Modra <amodra@bigpond.net.au> 1615 1616 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs. 1617 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc. 1618 (ORI_R0_R0_0): Correct. 1619 16202002-01-16 Alan Modra <amodra@bigpond.net.au> 1621 1622 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE 1623 when plt_not_loaded. 1624 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to 1625 clear .plt SEC_CODE here. Create .stub and correct .glink flags. 1626 (PLT_INITIAL_ENTRY_SIZE): Set to 24. 1627 (ppc64_elf_glink_code): Delete. 1628 (PPC64_ELF_GLINK_SIZE): Delete. 1629 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11, 1630 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0, 1631 ORI_R0_R0_0): Define. 1632 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define. 1633 (struct ppc_link_hash_table): Add sstub and plt_overflow. 1634 (ppc64_elf_link_hash_table_create): Init them. 1635 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry. 1636 Don't copy to shared lib. 1637 (ppc64_elf_check_relocs): Call bfd_set_error on errors. 1638 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount. 1639 (allocate_dynrelocs <plt>): Don't change function sym here. Make 1640 room for .stub and .glink code. 1641 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for 1642 DT_PPC64_GLINK. 1643 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call 1644 bfd_elf64_bfd_final_link. 1645 (bfd_elf64_bfd_final_link): Don't define. 1646 (ppc64_elf_size_stubs): New. 1647 (build_plt_stub): New. 1648 (build_one_stub): New. 1649 (ppc64_elf_build_stubs): New. 1650 (ppc64_elf_relocate_section <toc relocs>): Remove assert. 1651 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs. 1652 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set 1653 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in 1654 case output sections not separate. Adjust DT_RELASZ to not 1655 include plt relocs. Set reserved got entry. Set got and plt 1656 entry size. 1657 (elf_backend_got_header_size): Set to 8. 1658 * elf64-ppc.h: New file. 1659 16602002-01-16 Alan Modra <amodra@bigpond.net.au> 1661 1662 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing 1663 sections, use bfd_section_list_remove. 1664 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise. 1665 * elflink.h (elf_link_add_object_symbols): When removing all 1666 sections, use bfd_section_list_clear. 1667 16682002-01-15 Nick Clifton <nickc@cambridge.redhat.com> 1669 1670 * po/sv.po: New file: Swedish translation. 1671 * configure.in (ALL_LINGUAS): Add sv. 1672 * configure: Regenerate. 1673 16742002-01-15 Jakub Jelinek <jakub@redhat.com> 1675 1676 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change. 1677 * elf.c (merge_sections_remove_hook): New function. 1678 (_bfd_elf_merge_sections): Pass it as 3rd argument to 1679 _bfd_merge_sections. 1680 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument. 1681 * libbfd.h: Rebuilt. 1682 * merge.c (_bfd_merge_sections): Add remove_hook argument. 1683 Call remove_hook if a SEC_EXCLUDE section is encountered. 1684 16852002-01-15 Nick Clifton <nickc@cambridge.redhat.com> 1686 1687 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'. 1688 (xstormy16_reloc_map): Initialise new field with correct howto 1689 table. 1690 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct 1691 howto entry. 1692 16932002-01-10 Michael Snyder <msnyder@redhat.com> 1694 1695 * elf.c (elfcore_write_prstatus): Use long instead of pid_t; 1696 (elfcore_write_pstatus): Use long instead of pid_t; 1697 * elf-bfd.h: Change prototypes to use long instead of pid_t; 1698 16992002-01-09 Jason Thorpe <thorpej@wasabisystems.com> 1700 1701 * elf.c: Update copyright years. 1702 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO 1703 and NT_NETBSDCORE_FIRSTMACH. Improve a comment. 1704 17052002-01-08 Michael Snyder <msnyder@redhat.com> 1706 1707 Add capability to write corefile note sections, for gdb. 1708 * elf.c (elfcore_write_note): New function. 1709 (elfcore_write_prpsinfo): New function. 1710 (elfcore_write_prstatus): New function. 1711 (elfcore_write_pstatus): New function. 1712 (elfcore_write_prfpreg): New function. 1713 (elfcore_write_prxfpreg): New function. 1714 * elf-bfd.h: Add prototypes for above functions. 1715 17162002-01-08 Alexandre Oliva <aoliva@redhat.com> 1717 1718 * elf.c (elf_fake_sections): Propagate errors from 1719 elf_backend_fake_section. 1720 17212002-01-07 Jason Thorpe <thorpej@wasabisystems.com> 1722 1723 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo. 1724 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c. 1725 (elf32-sh-nbsd.lo): New rule. 1726 * Makefile.in: Regenerate. 1727 * config.bfd (sh*le-*-netbsdelf*): New target. 1728 (sh*-*-netbsdelf*): New target. 1729 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*. 1730 (bfd_elf32_shnbsd_vec): New vector. 1731 (bfd_elf32_shlnbsd_vec): New vector. 1732 * configure: Regenerate. 1733 * elf32-sh-nbsd.c: New file. 1734 * targets.c: Update copyright years. 1735 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and 1736 bfd_elf32_shnbsd_vec. 1737 17382002-01-07 Aldy Hernandez <aldyh@redhat.com> 1739 1740 * coff-rs6000.c (READ20): Use bfd_scan_vma. 1741 17422002-01-07 Geoffrey Keating <geoffk@redhat.com> 1743 1744 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset 1745 of a symbol in a section that will be deleted. 1746 17472002-01-07 Nick Clifton <nickc@cambridge.redhat.com> 1748 1749 * po/es.po: New file: Spanish translation. 1750 * configure.in (ALL_LINGUAS): Add es. 1751 * configure: Regenerate. 1752 17532002-01-06 Steve Ellcey <sje@cup.hp.com> 1754 1755 * elfxx-ia64.c (is_unwind_section_name): Add target vector as 1756 argument so we can handle HP-UX specially. 1757 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name. 1758 (elfNN_hpux_backend_section_from_bfd_section): New for support 1759 of SHN_IA_64_ANSI_COMMON. 1760 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON. 1761 (is_unwind_section_name): Add special HP-UX support. 1762 (elfNN_ia64_section_from_shdr): Add support for more sections. 1763 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and 1764 add support for more sections. 1765 (elfNN_ia64_additional_program_headers): Modify 1766 is_unwind_section_name call. 1767 (elfNN_ia64_modify_segment_map): Remove assumption that there is 1768 only one unwind section in segment. 1769 17702002-01-06 Alan Modra <amodra@bigpond.net.au> 1771 1772 * syms.c (_bfd_generic_make_empty_symbol): New function. 1773 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as 1774 _bfd_generic_make_empty_symbol. 1775 * libbfd.h: Regenerate. 1776 * bfd-in2.h: Regenerate. 1777 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function. 1778 (hppabsd_core_get_symtab_upper_bound): Don't define. 1779 (hppabsd_core_get_symtab): Likewise. 1780 (hppabsd_core_print_symbol): Likewise. 1781 (hppabsd_core_get_symbol_info): Likewise. 1782 (hppabsd_core_bfd_is_local_label_name): Likewise. 1783 (hppabsd_core_get_lineno): Likewise. 1784 (hppabsd_core_find_nearest_line): Likewise. 1785 (hppabsd_core_bfd_make_debug_symbol): Likewise. 1786 (hppabsd_core_read_minisymbols): Likewise. 1787 (hppabsd_core_minisymbol_to_symbol): Likewise. 1788 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols). 1789 Formatting fixes. 1790 * hpux-core.c: Similarly. 1791 * irix-core.c: Similarly. 1792 * osf-core.c: Similarly. 1793 * sco5-core.c: Similarly. 1794 * binary.c (binary_make_empty_symbol): Remove function, define as 1795 _bfd_generic_make_empty_symbol. 1796 * ihex.c (ihex_make_empty_symbol): Likewise. 1797 * mmo.c (mmo_make_empty_symbol): Likewise. 1798 * ppcboot.c (ppcboot_make_empty_symbol): Likewise. 1799 * srec.c (srec_make_empty_symbol): Likewise. 1800 * versados.c (versados_make_empty_symbol): Likewise. 1801 * vms.c (_bfd_vms_make_empty_symbol): Remove. 1802 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol. 1803 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol 1804 rather than _bfd_vms_make_empty_symbol. 1805 * vms-misc.c (new_symbol): Likewise. 1806 18072002-01-05 Alan Modra <amodra@bigpond.net.au> 1808 1809 * section.c (bfd_section_init): Remove unnecessary initialisations. 1810 (bfd_section_list_clear): New function. 1811 (bfd_section_list_remove, bfd_section_list_insert): New macros. 1812 (_bfd_strip_section_from_output): Use them. 1813 * coffcode.h (coff_set_alignment_hook): Likewise. 1814 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise. 1815 * elf64-mips.c (mips_elf64_final_link): Likewise. 1816 * elf64-mmix.c (mmix_elf_final_link): Likewise. 1817 * sunos.c (sunos_add_dynamic_symbols): Likewise. 1818 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise. 1819 * bfd-in2.h: Regenerate. 1820 1821 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway 1822 rather than doing our own section handling. Clean up after errors 1823 with bfd_release and bfd_section_list_clear. Handle unexpected 1824 flags. 1825 * aoutf1.h (sunos4_core_file_p): Likewise. 1826 * aix386-core.c (aix386_core_file_p): Likewise. 1827 * cisco-core.c (cisco_core_file_validate): Likewise. 1828 * ptrace-core.c (ptrace_unix_core_file_p): Likewise. 1829 * trad-core.c (trad_unix_core_file_p): Likewise. 1830 1831 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors 1832 with bfd_release and bfd_section_list_clear. 1833 * hpux-core.c (hpux_core_core_file_p): Likewise. 1834 * irix-core.c (irix_core_core_file_p): Likewise. 1835 * lynx-core.c (lynx_core_file_p): Likewise. 1836 * osf-core.c (osf_core_core_file_p): Likewise. 1837 * rs6000-core.c (rs6000coff_core_p): Likewise. 1838 * sco5-core.c (sco5_core_file_p): Likewise. 1839 1840 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform 1841 sign extension adjustments without conditionals. 1842 18432002-01-04 Jakub Jelinek <jakub@redhat.com> 1844 1845 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if 1846 CIE at .eh_frame start is removed due to no FDEs referencing it. 1847 18482002-01-04 Jason Thorpe <thorpej@wasabisystems.com> 1849 1850 * config.bfd (x86_64-*-netbsd*): New target. 1851 * configure.in (x86_64-*-netbsd*): Set COREFILE 1852 to netbsd-core.lo. 1853 * configure: Regenerated. 1854 18552002-01-03 Tom Rix <trix@redhat.com> 1856 1857 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering 1858 for recent bfd_make_section_anyway change. 1859 18602002-01-03 Nick Clifton <nickc@cambridge.redhat.com> 1861 1862 * elf32-arm.h (elf32_arm_final_link_relocate): Handle 1863 R_ARM_THM_PC11 reloc. 1864 18652002-01-02 Nick Clifton <nickc@cambridge.redhat.com> 1866 1867 * configure.in (LINGUAS): Add ja. 1868 * configure: Regenerate. 1869 * po/ja.po: Import from translation project's web site. 1870 18712002-01-02 Nick Clifton <nickc@cambridge.redhat.com> 1872 1873 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error 1874 messages to ease translation into other languages. 1875 1876For older changes see ChangeLog-0001 1877 1878Local Variables: 1879mode: change-log 1880left-margin: 8 1881fill-column: 74 1882version-control: never 1883End: 1884