ChangeLog revision 60484
12000-05-09 Alan Modra <alan@linuxcare.com.au> 2 3 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela 4 section is empty. 5 (copy_private_bfd_data): Allow for space possibly taken up by elf 6 headers when calculating segment physical address from lma. 7 82000-05-08 Alan Modra <alan@linuxcare.com.au> 9 10 * versados.c (versados_scan): Init stringlen and pass_2_done. 11 12 * trad-core.c (trad_unix_core_file_p): Return 13 bfd_error_wrong_format rather than bfd_error_file_truncated. 14 15 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to 16 add_data_entry. DataDirectory virtual address is relative. 17 (pe_print_idata): Account for relative DataDirectory virtual 18 addresses. Don't trash datasize inside POWERPC_LE_PE code. 19 (pe_print_edata): Similarly. 20 21 From Szabolcs Szakacsits <szaka@F-Secure.com> 22 * peigen.c (dir_names): Add Delay Import Directory. 23 (pe_print_idata): Always search for bfd section containing 24 idata address rather than looking up section name. Print this 25 section name rather than .idata. 26 (pe_print_edata): Similarly. Also print some fields as %08lx. 27 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as 28 Win32Version. 29 302000-05-03 Mark Elbrecht <snowball3@bigfoot.com> 31 32 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for 33 the .bss section. 34 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. 35 362000-04-29 Andreas Jaeger <aj@suse.de> 37 38 * libbfd-in.h: Correctly check GCC version. 39 * bfd-in.h: Likewise. 40 * libhppa.h: Likewise. 41 * libbfd.h: Regenerate. 42 * bfd-in2.h: Regenerate. 43 442000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG> 45 46 K&R compiler fixes. 47 * dwarf2.c (concat_filename): Avoid string literal concatenation. 48 * ieee.c (ieee_get_symtab): Don't initialise union in struct. 49 502000-04-12 Alan Modra <alan@linuxcare.com.au> 51 52 * dep-in.sed: Match space before file name, not after. 53 * Makefile.am: Regenerate dependencies. 54 * Makefile.in: Regenerate. 55 56 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield 57 case, allow address wrap-around stupidly removed 2000-03-17. Sign 58 extend without an if statement. 59 602000-04-04 Alan Modra <alan@linuxcare.com.au> 61 62 * po/bfd.pot: Regenerate. 63 64 * Makefile.am: Remove extraneous mkdep comment. 65 (MKDEP): Use gcc -MM rather than mkdep. 66 (DEP): Quote when passing vars to sub-make. Add warning 67 message to end. 68 (DEP1): Rewrite for "gcc -MM". 69 (CLEANFILES): Add DEP2. 70 Update dependencies. 71 * Makefile.in: Regenerate. 72 732000-04-03 H.J. Lu <hjl@gnu.org> 74 75 * cache.c (bfd_open_file): Unlink the output file only if 76 it has non-zero size. 77 782000-04-01 Ken Block USG <block@zk3.dec.com> 79 80 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit 81 relative relocations for non-loaded sections in shared objects. 82 (elf64_alpha_check_relocs): Similarly. 83 842000-03-31 Thomas de Lellis <tdel@wrs.com> 85 86 * srec.c : Set CHUNK size to 16 bytes to prevent download failures 87 on some targets. 88 * ihex.c : Ditto. 89 90Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com> 91 92 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All 93 HOWTO references to bfd_elf_generic_reloc, that have 94 partial_inplace == true, now use the new function. The function 95 is based on the recent rewrite of m32r_elf_lo16_reloc(), and 96 extends its fixes to the R_M32R_{16,24,32} relocs. 97 The new logic in m32r_elf_lo16_reloc() has been removed, and 98 it instead calls the new routine to obtain that functionality. 99 1002000-03-27 Alan Modra <alan@linuxcare.com.au> 101 102 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook, 103 elf32_avr_check_relocs, avr_final_link_relocate, 104 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing, 105 elf32_avr_object_p): Add prototypes. 106 (elf32_avr_gc_mark_hook): Add default for h->root.type. 107 (bfd_elf_avr_final_write_processing): Make static. 108 1092000-03-27 Denis Chertykov <denisc@overta.ru> 110 111 * cpu-avr.c: New file. BFD support routines for AVR architecture. 112 * archures.c (bfd_architecture): Add AVR architecture. 113 (bfd_archures_list): Add reference to AVR architecture info. 114 * elf.c (prep_headers): Handle bfd_arch_avr. 115 * reloc.c: Add various AVR relocation enums. 116 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector 117 list. 118 * Makefile.am: Add support for AVR elf. 119 * configure.in: Likewise. 120 * config.bfd: Likewise. 121 * Makefile.in: Regenerate. 122 * configure: This too. 123 * bfd-in2.h: And this. 124 * libbfd.h: And this. 125 1262000-03-24 H.J. Lu <hjl@gnu.org> 127 128 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype. 129 (elf64_alpha_find_reloc_at_ofs): Likewise. 130 1312000-03-17 Alan Modra <alan@linuxcare.com.au> 132 133 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield, 134 flag an overflow if the bitfield is outside -2**n to 2**n-1. The 135 allowable range used to be -2**(n-1) to 2**n-1. 136 * reloc.c (_bfd_relocate_contents): Same here. Also replace 137 "boolean overflow" with "bfd_reloc_status_type flag". 138 1392000-03-14 Doug Evans <dje@casey.transmeta.com> 140 141 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite. 142 1432000-03-14 Kazu Hirata <kazu@hxi.com> 144 145 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number 146 of shrinks properly, including the last reloc. 147 1482000-03-13 Kazu Hirata <kazu@hxi.com> 149 150 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity 151 check for R_MOVL2. 152 1532000-03-11 Alan Modra <alan@linuxcare.com.au> 154 155 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on 156 a format mismatch rather than an "error" from bfd_read such as 157 bfd_error_file_truncated. 158 1592000-03-10 Geoff Keating <geoffk@cygnus.com> 160 161 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper 162 sign-extension and big-endian compensation for 163 R_MIPS_64 even in ld -r. 164 1652000-03-10 Geoffrey Keating <geoffk@cygnus.com> 166 167 * elf32-mips.c (mips_elf_next_relocation): Rename from 168 mips_elf_next_lo16_relocation, and generalize to look 169 for any relocation type. 170 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset. 171 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16. 172 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16. 173 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2. 174 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64. 175 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32. 176 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs. 177 (mips_rtype_to_howto): Likewise. 178 (mips_elf_calculate_relocation): Handle new relocs. 179 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs 180 are paired. The addend for R_MIPS_GNU_REL16_S2 181 is shifted right two bits. 182 1832000-03-10 Alan Modra <alan@linuxcare.com.au> 184 185 * reloc.c (bfd_perform_relocation): Undo emacs formatting of 186 comment, and ensure it doesn't happen again. 187 (bfd_install_relocation): Same here. 188 (_bfd_relocate_contents): Don't bother assigning unused signmask 189 shift result. Fix typos in comments. 190 Remove trailing whitespace throughout file. 191 1922000-03-07 Doug Evans <dje@casey.transmeta.com> 193 194 * reloc.c (reloc_howto_struct): Fix partial_inplace comment. 195 * bfd-in2.h: Rebuild. 196 1972000-03-06 Nick Clifton <nickc@cygnus.com> 198 199 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and 200 sym_ptr_ptr fields. 201 (SIZEOF_ILF_SYM_PTR_TABLE): Define. 202 (SIZEOF_ILF_STRINGS): Redefine. 203 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol 204 relative reloc, as opposed to a section relative reloc. 205 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT 206 not C_LABEL. 207 Add length of symbol's prefix to string pointer. 208 Store a pointer to the symbol in the symbol pointer table. 209 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7. 210 Initialise the symbol pointer table. 211 Store the hint in the Hint/Name table. 212 Make the jump reloc be symbol realtive, not section relative. 213 Create an import symbol for imported code. 214 2152000-03-06 Catherine Moore <clm@cygnus.com> 216 217 * elf.c (swap_out_syms): Check for null type_ptr. 218 2192000-03-01 Hans-Peter Nilsson <hp@axis.com> 220 221 * aout-target.h (MY(write_object_contents)): Remove unused 222 and unusable "#if CHOOSE_RELOC_SIZE". 223 * pc532-mach.c (MY(write_object_contents)): Ditto. 224 * netbsd.h (MY(write_object_contents)): Ditto. 225 * hp300hpux.c (MY(write_object_contents)): Ditto. 226 * freebsd.h (MY(write_object_contents)): Ditto. 227 * aout-tic30.c (tic30_aout_write_object_contents): Ditto. 228 2292000-02-29 H.J. Lu <hjl@gnu.org> 230 231 * peicode.h (jtab): Make it static. 232 233 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is 234 defined and COFF_IMAGE_WITH_PE is not defined. 235 (_bfd_sh_align_load_span): Defined as sh_align_load_span if 236 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined. 237 2382000-03-01 Nick Clifton <nickc@cygnus.com> 239 240 * coff-arm.c (bfd_arm_process_before_allocation): Make 241 'symndx' signed to prevent compile time warning. 242 243 * coff-mcore.c: Remove unused prototype for pe_object_p. 244 245 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static 246 functions that are not used when COFF_IMAGE_WITH_PE is 247 defined. 248 (struct sh_opcode): Change type of 'flags' field to unsigned 249 long so that it can hold the USESAS flag. 250 251 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'. 252 253 * elf-m10300.c (mn10300_elf_relax_section): Initialise 254 'sym_sec'. 255 256 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function 257 parameters. 258 Remove unusued variables and code. 259 (elf_backend_add_symbol_hook): Fix prototype. 260 261 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and 262 'srelgot'. 263 264 * elf32-mcore.c (mcore_elf_relocate_section): Initialise 265 'oldinst'. 266 267 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function 268 parameters. 269 Remove unusued variables and code. 270 (elf_backend_add_symbol_hook): Fix prototype. 271 272 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'. 273 274 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED 275 to unused function parameter. 276 277 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function 278 parameters. 279 Use EMPTY_HOWTO to initialise empty howto slots. 280 Remove unused variables. 281 282 * peicode.h (pe_ILF_build_a_bfd): Initialise id6. 283 2842000-03-01 H.J. Lu <hjl@gnu.org> 285 286 * aoutx.h (aout_link_input_section_std): Pass "true" to 287 the undefined_symbol callback. 288 (aout_link_input_section_ext): Likewise. 289 * bout.c (get_value): Likewise. 290 * coff-a29k.c (coff_a29k_relocate_section): Likewise. 291 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten): 292 Likewise. 293 (alpha_relocate_section): Likewise. 294 * coff-arm.c (coff_arm_relocate_section): Likewise. 295 * coff-i960.c (coff_i960_relocate_section): Likewise. 296 * coff-mcore.c (coff_mcore_relocate_section): Likewise. 297 * coff-mips.c (mips_relocate_section): Likewise. 298 * coff-ppc.c (coff_ppc_relocate_section): Likewise. 299 * coff-sh.c (sh_relocate_section): Likewise. 300 * coff-tic80.c (coff_tic80_relocate_section): Likewise. 301 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise. 302 * elf-m10200.c (mn10200_elf_relocate_section): Likewise. 303 * elf-m10300.c (mn10300_elf_relocate_section): Likewise. 304 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. 305 * elf32-fr30.c (fr30_elf_relocate_section): Likewise. 306 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. 307 * elf32-i370.c (i370_elf_relocate_section): Likewise. 308 * elf32-m32r.c (m32r_elf_relocate_section): Likewise. 309 * elf32-mcore.c (mcore_elf_relocate_section): Likewise. 310 * elf32-sh.c (sh_elf_relocate_section): Likewise. 311 * elf32-v850.c (v850_elf_relocate_section): Likewise. 312 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise. 313 * elflink.h (elf_link_output_extsym): Likewise. 314 * pe-mips.c (coff_pe_mips_relocate_section): Likewise. 315 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise. 316 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise. 317 318 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the 319 undefined_symbol callback when building shared library with 320 -Bsymbolic and undefined symbols are allowed. Otherwise, pass 321 "true". 322 * elf32-arm.h (elf32_arm_relocate_section): Likewise. 323 * elf32-i386.c (elf_i386_relocate_section): Likewise. 324 * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 325 * elf32-mips.c (mips_elf_calculate_relocation): Likewise. 326 (elf32_mips_get_relocated_section_content): Likewise. 327 * elf32-ppc.c (ppc_elf_relocate_section): Likewise. 328 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 329 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. 330 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. 331 3322000-02-28 Nick Clifton <nickc@cygnus.com> 333 334 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects. 335 * Makefile.in: Regenerate. 336 337 * configure.in: Add support for mips and sh pe vectors. 338 * configure: regenerate. 339 340 * config.bfd: Add support for arm-wince, mips-pe and sh-pe 341 targets. 342 343 * targets.c: Add mips and sh pe vectors. 344 345 * libpei.h (coff_final_link_postscript): Only define if not 346 already defined. 347 348 * coffcode.h: Add support for WinCE magic numbers. 349 350 * peigen.c (pe_print_reloc): Update comment and rearrange 351 appending of newline character. 352 353 * peicode.h: Add support for Image Library Format. 354 (pe_ILF_vars): Structure containing data used by ILF code. 355 (pe_ILF_make_a_section): New function. Create a section based 356 on ILF data. 357 (pe_ILF_make_a_reloc): New function. Create a reloc based on 358 ILF data. 359 (pe_ILF_make_a_symbol): New function. Create a symbol based 360 on ILF data. 361 (pe_ILF_save_relocs): New function. Store the relocs created 362 by pe_ILF_make_a_reloc in a section. 363 (pe_ILF_build_a_bfd): New function. Create a BFD describing 364 an ILF object. 365 (pe_ILF_object_p): New function. Return a bfd_target pointer 366 for an ILF object. 367 (pe_bfd_object_p): If an ILF object is detected call 368 pe_ILF_object_p on it. 369 370 * coff-arm.c: Add support for WinCE relocs which are different 371 from normal ARM COFF relocs. 372 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target. 373 374 * coff-sh.c: Add support for sh-pe target. 375 * pe-sh.c: New file. Support code for sh-pe target. 376 * pei-sh.c: New file. Support code for sh-pe target. 377 378 * pe-mips.c: New file. Support code for mips-pe target. 379 * pei-mips.c: New file. Support code for mips-pe target. 380 3812000-02-27 Jakub Jelinek <jakub@redhat.com> 382 383 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump 384 architecture if the object causing the bump is dynamic. 385 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise, 386 and also don't it for memory ordering. 387 (sparc64_elf_write_relocs): Take src_rela out of the loop. 388 3892000-02-27 Ian Lance Taylor <ian@zembu.com> 390 391 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than 392 calling bfd_get_section_size_before_reloc. 393 (decode_line_info): Likewise. 394 (_bfd_dwarf2_find_nearest_line): Likewise. 395 3962000-02-27 Eli Zaretskii <eliz@is.elta.co.il> 397 398 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the 399 name of the libtool directory. 400 * Makefile.in: Rebuild. 401 402Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com) 403 404 * som.c (SOM_HOWTO): Define. 405 (som_hppa_howto_table): Use it. 406 4072000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br> 408 409 * config.bfd: Enable 64 bit support for GNU/Linux/sparc. 410 411 * config.bfd: Enable 64 bit support for Solaris7+/sparc. 412 4132000-02-24 Catherine Moore <clm@cygnus.com> 414 415 * som.c (som_misc_symbol_info): Add field 416 secondary_def. 417 (som_bfd_derive_misc_symbol_info): Initialize 418 secondary_def. 419 (som_build_and_write_symbol_table): Keep track 420 of secondary_def field. 421 (som_slurp_symbol_table): Set BSF_WEAK symbol flag 422 if secondary_def field is set. 423 (som_bfd_ar_write_symbol_stuff): Initialize 424 secondary_def. 425 4262000-02-23 Stephane Carrez <stcarrez@worldnet.fr> 427 428 * dwarf2.c (read_address): Read 16-bits addresses. 429 (parse_comp_unit): Accept addr_size == 2. 430 4312000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au> 432 433 * bfd-in.h: Update copyright date. 434 4352000-02-23 Linas Vepstas <linas@linas.org> 436 437 * cpu-i370.c: New file. 438 * elf32-i370.c: New file. 439 * archures.c (enum bfd_architecture): Add bfd_arch_i370. 440 (bfd_i370_arch): New. 441 (bfd_archures_list): Add bfd_i370_arch. 442 * elf.c (prep_headers): Add bfd_arch_i370. 443 * Makefile.am: Add support for IBM 370 elf. 444 * config.bfd: Likewise. 445 * configure.in: Likewise. 446 * libbfd.h (bfd_reloc_code_real_names): Likewise. 447 * reloc.c (bfd_reloc_code_type): Likewise. 448 * targets.c: Likewise. 449 450 * Makefile.in: Regenerate. 451 * configure: Regenerate. 452 * bfd-in2.h: Regenerate. 453 4542000-02-22 Ian Lance Taylor <ian@zembu.com> 455 456 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for 457 invalid relocation types, and change them to R_386_NONE. 458 4592000-02-22 H.J. Lu <hjl@gnu.org> 460 461 * elflink.h (elf_link_add_object_symbols): If a version symbol is 462 not defined, don't add a second ELF_VER_CHR. 463 464 * elflink.h (elf_bfd_final_link): Call output_extsym for global 465 symbols converted to local symbols even when stripping all 466 symbols. 467 (elf_link_output_extsym): Process global symbols converted to 468 local symbols even if they are being stripped. 469 4702000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au> 471 472 * archures.c (bfd_octets_per_byte): Return unsigned int. 473 (bfd_arch_mach_octets_per_byte): Ditto. 474 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned 475 comparison warning. 476 * section.c (bfd_get_section_size_before_reloc): Quell signed 477 vs. unsigned comparison warning. 478 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too. 479 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27 480 change. What was I thinking? 481 * bfd-in2.h: Regenerate. 482 483 * elflink.h (elf_gc_sweep): Skip non-elf input bfds. 484 (elf_gc_sections): Same here. 485 (elf_gc_common_finalize_got_offsets): And here. 486 4872000-02-21 Ian Lance Taylor <ian@zembu.com> 488 489 ELF HPPA doesn't work at present; remove it until it does. 490 * config.bfd: Comment out setting targ_defvec to 491 bfd_elf32_hppa_vec. 492 * Makefile.am: Rebuild dependencies. 493 (BFD32_BACKENDS): Remove elf32-hppa.lo. 494 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c. 495 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h. 496 * Makefile.in: Rebuild. 497 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec. 498 4992000-02-18 Geoff Keating <geoffk@cygnus.com> 500 501 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there 502 is no bfd_free(). Revert bfd_free part of previous change. 503 5042000-02-18 Geoff Keating <geoffk@cygnus.com> 505 506 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size 507 arrays. 508 (coff_compute_section_file_positions): Use bfd_free to pair 509 bfd_malloc. 510 (coff_write_object_contents): Likewise. 511 512 * coff-rs6000.c (xcoff_howto_table_16): New variable. 513 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs. 514 5152000-02-18 Ulrich Drepper <drepper@cygnus.com> 516 517 * coff-rs6000.c (XCOFFARMAGBIG): New macro. 518 (xcoff_ar_file_hdr_big): New structure. 519 (SIZEOF_AR_FILE_HDR_BIG): New macro. 520 (xcoff_ar_hdr_big): New structure. 521 (SIZEOF_AR_HDR_BIG): New macro. 522 (xcoff_big_format_p): New macro. 523 (xcoff_ardata_big): New macro. 524 (arch_xhdr_big): New macro. 525 (xcoff_slurp_armap): Handle large archives. 526 (xcoff_archive_p): Detect large archives. 527 (xcoff_read_ar_hdr): Handle large archives. 528 (xcoff_openr_next_archived_file): Handle large archives. 529 (xcoff_generic_stat_arch_elt): Handle large archives. 530 (xcoff_write_armap_old): Rename from xcoff_write_armap. 531 (xcoff_write_armap_big): New function. 532 (xcoff_write_armap): New function, dispatch to _old or _big. 533 (xcoff_write_archive_contents_old): Rename from 534 xcoff_write_archive_contents. 535 (xcoff_write_archive_contents_big): New function. 536 (xcoff_write_archive_contents): New function, dispatch to _old or 537 _big. 538 5392000-02-18 Richard Henderson <rth@cygnus.com> 540 541 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect 542 and hide_symbol members. 543 (elf_link_hash_copy_indirect): Remove. 544 (elf_link_hash_hide_symbol): Remove. 545 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol 546 and elf_backend_hide_symbol. 547 (_bfd_elf_link_hash_copy_indirect): Declare. 548 (_bfd_elf_link_hash_hide_symbol): Declare. 549 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument. 550 (_bfd_elf_link_hash_hide_symbol): Likewise. 551 (_bfd_elf_link_hash_table_init): Don't init killed members. 552 * elflink.h (elf_link_add_object_symbols): Use the bed function 553 pointers not elf_link_hash_{copy_indirect,hide_symbol}. 554 (elf_link_assign_sym_version): Likewise. 555 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default. 556 (elf_backend_hide_symbol): Likewise. 557 (elfNN_bed): Update for new members. 558 5592000-02-17 Kevin Buettner <kevinb@redhat.com> 560 561 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD, 562 STACK_END_ADDR): Define for new core file format. 563 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines 564 for handling the vagaries of the various core file structures used 565 by AIX over the years. 566 (rs6000coff_core_p, rs6000coff_core_file_matches_executable, 567 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's 568 core_dumpx structure. 569 570Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk> 571 572 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros. 573 (bfd_mach_sh3_dsp): Likewise. 574 (bfd_mach_sh4): Reinstate. 575 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750. 576 * bfd-in2.h: Regenerate. 577 * coff-sh.c (struct sh_opcode): flags is no longer short. 578 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros. 579 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41. 580 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes. 581 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise. 582 (sh_opcodes): No longer const. 583 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays. 584 (sh_insn_uses_reg): Check for USESAS and USESR8. 585 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS. 586 (_bfd_sh_align_load_span): Return early for SH4. 587 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp. 588 Take into account that field b of a parallel processing insn 589 could be mistaken for a separate insn. 590 * cpu-sh.c (arch_info_struct): New array elements for 591 sh2, sh-dsp and sh3-dsp. 592 Reinstate element for sh4. 593 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros. 594 (SH4_NEXT): Reinstate. 595 (SH3_NEXT, SH3E_NEXT): Adjust. 596 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare. 597 * elf32-sh.c (sh_elf_set_private_flags): New function. 598 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise. 599 (sh_elf_merge_private_data): New function. 600 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define. 601 (bfd_elf32_bfd_copy_private_bfd_data): Define. 602 (bfd_elf32_bfd_merge_private_bfd_data): Change to 603 sh_elf_merge_private_data. 604 6052000-02-13 Richard Henderson <rth@cygnus.com> 606 607 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and 608 hide_symbol members. 609 (elf_link_hash_copy_indirect): New. 610 (elf_link_hash_hide_symbol): New. 611 * elflink.h (elf_link_add_object_symbols): Break out copy from 612 indirect new new symbol to elf.c. 613 (elf_link_assign_sym_version): Break out privatization of 614 non-exported symbol to elf.c. 615 * elf.c (_bfd_elf_link_hash_copy_indirect): New. 616 (_bfd_elf_link_hash_hide_symbol): New. 617 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol. 618 6192000-02-13 Ian Lance Taylor <ian@zembu.com> 620 621 * section.c (_bfd_strip_section_from_output): Add info parameter. 622 If it passed as non-NULL, use it to check whether any input BFD 623 has an input section which uses this output section. Change all 624 callers. 625 * bfd-in2.h: Rebuild. 626 627 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and 628 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of 629 1999-11-29. 630 * bfd-in2.h: Rebuild. 631 6322000-02-10 Timothy Wall <twall@cygnus.com> 633 634 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to 635 allow final modifications of swapped-in symbol. 636 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST. 637 * coffcode.h (coff_write_relocs): Use macro 638 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether 639 symbol index should be set to -1. 640 641Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com) 642 643 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG, 644 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros. 645 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes. 646 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg, 647 sh_insns_uses_or_sets_freg): New functions. 648 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros. 649 * (sh_insns_conflict): Use new functions and new macros to 650 detect conflicts when two instructions both set same integer registers, 651 both set same fp register, and both set special register. 652 6532000-02-09 Timothy Wall <twall@cygnus.com> 654 655 * coffgen.c (coff_real_object_p): Set arch/mach info prior to 656 swapping in sections, so that the swapping routines have access to 657 the arch/mach info. 658 6592000-02-08 Mark Elbrecht <snowball3@bigfoot.com> 660 661 * coff-go32.c: Update comment. Update copyright. 662 6632000-01-27 Thomas de Lellis <tdel@windriver.com> 664 665 * syms.c (bfd_decode_symclass) 666 Two new class characters were added - 'V' and 'v'. The 667 meaning of 'W' is now restricted to just weak non-object 668 symbols. This allows differentiation between, for example, 669 weak functions vs weak objects. nm for example now dumps: 670 'W' = weak global 671 'w' = weak unresolved 672 'V' = weak global object 673 'v' = weak unresolved object 674 675 (bfd_is_undefined_symclass): New function. Return true if the 676 given symbol class represents and undefined/unresolved symbol. 677 678 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for 679 unresolved symbols. 680 681 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol(). 682 683 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the 684 STT_ARM_16BIT flag set, but it is not attached to a data object 685 return STT_ARM_16BIT so that it will be treated as code by the 686 disassembler. 687 6882000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au> 689 690 * coff-i386.c (i3coff_object_p): Remove prototype. 691 Update copyright. 692 693 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const 694 to name. Update copyright. 695 696 * trad-core.c (trad_unix_core_file_p): Cast core_regsec 697 assignment to avoid warning. Update copyright. 698 6992000-01-24 Robert Lipe (robertl@sco.com) 700 701 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc 702 instead of using GNU C extension. 703 7042000-01-21 Nick Clifton <nickc@cygnus.com> 705 706 * libbfd.c (bfd_read): Do not attempt to get a negativly sized 707 amount from a bfd_in_memory structure. 708 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory 709 structure. 710 7112000-01-14 Nick Clifton <nickc@cygnus.com> 712 713 * linker.c (default_indirect_link_order): oops - fix incorrectly 714 applied patch from Tim Wall. 715 7162000-01-13 Timothy Wall (twall@tiac.net> 717 718 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx 719 = scnhsz, filhsz, relsz, aoutsz, etc) 720 721 * coffswap.h: Ditto. 722 7232000-01-13 Nick Clifton <nickc@cygnus.com> 724 725 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to 726 interwork thumb to arm stub. 727 7282000-01-13 Timothy Wall (twall@tiac.net> 729 730 * archures.c (bfd_octets_per_byte): New function: Return 731 target byte size. 732 (bfd_arch_mach_octets_per_byte): New function: Return target 733 byte size. 734 735 * section.c: Distinguish between octets and bytes for usage of 736 _cooked_size, _raw_size, and output_offset. Clarify 737 description of bfd_set_section_contents. 738 739 * bfd-in2.h: Regenerate. 740 741 * coffgen.c: Indicate that the offset parameter is in bytes, not 742 octets. 743 744 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte 745 where appropriate to get the octet offset when calling 746 bfd_set_section_contents. 747 (bfd_coff_reloc_link_order): Ditto. 748 749 * linker.c (bfd_generic_reloc_link_order): Ditto. 750 (_bfd_default_link_order): Ditto. 751 752 * reloc.c (bfd_perform_relocation): Distinguish between octets 753 and bytes. Use octets when indexing into octet data; use bytes 754 when calculating target addresses. 755 (bfd_install_relocation): Ditto. 756 757 * srec.c (srec_write_section): Ditto. 758 7592000-01-13 Nick Clifton <nickc@cygnus.com> 760 761 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from 762 3 to 2. This allows 4 byte sized sections, which is necessary for 763 dlltool to build funcitoning DLLs. 764 7652000-01-10 Philip Blundell <pb@futuretv.com> 766 767 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu. 768 (arm*-*-conix*): New target. 769 7702000-01-10 Egor Duda <deo@logos-m.ru> 771 772 * config.bfd: Include elf32_i386 vector to target list for cygwin 773 and mingw. 774 775 * config.in: Undefine HAVE_WIN32_PSTATUS_T. 776 * configure.in: Test for structure win32_pstatus_t in 777 <sys/procfs.h> 778 * configure: Regenerate. 779 780 * elf.c (elfcore_grok_win32pstatus): New function: process 781 win32_pstatus_t notes in elf core file. 782 (elfcore_grok_note): Detect win32_pstatus notes. 783 7842000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de> 785 786 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol 787 visibility. 788 * elflink.h (elf_link_add_object_symbols): Combine visibilities. 789 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility. 790 7911999-12-29 Richard Henderson <rth@cygnus.com> 792 793 * elflink.h (bfd_elf,size_dynamic_sections): Don't export all 794 if no dynamic sections created. 795 7961999-12-27 Nick Clifton <nickc@cygnus.com> 797 798 * peicode.h (pe_bfd_object_p): Only define for PE format 799 targets. 800 8011999-12-17 Nick Clifton <nickc@cygnus.com> 802 803 * coff-i386.c (i3coff_object_p): Delete. 804 (i386coff_vec): Replace reference to i3coff_object_p with a 805 reference to coff_object_p. 806 807 * coff-mcore.c (pe_object_p): Delete. 808 809 * peicode.h (pe_bfd_object_p): New function: Detect the 810 presence of a PE format COFF object file. Also detect and 811 warn about the presence of LINK6 format Image Library Format 812 object files. 813 8141999-12-16 Nick Clifton <nickc@cygnus.com> 815 816 * coff-arm.c (NUM_ELEM): New macro. 817 (NUM_RELOCS): New macro: The number of known ARM relocs. 818 (RTYPE2HOWTO): Return NULL if the reloc type is out of range. 819 (coff_arm_rtype_to_howto): Return NULL if the reloc type is out 820 of range. 821 (bfd_arm_process_before_allocation): Produce a warning message if 822 an out of range symbol index is encountered. 823 8241999-12-14 Nick Clifton <nickc@cygnus.com> 825 826 * elflink.h (is_global_symbol_definition): New Function: Return 827 true iff the symbol is being given a global definition in this 828 bfd. 829 (elf_link_is_defined_archive_symbol): Do not bother processing 830 symbols for an archive element that has already been included 831 in the link. 832 Use is_global_symbol_definition(). 833 8341999-12-09 Andrew Cagney <cagney@cygnus.com> 835 836 * config.bfd: Add support for sparc-*-netbsdelf* and 837 sparc-*-netbsdaout*. 838 8391999-12-13 Nick Clifton <nickc@cygnus.com> 840 841 * elflink.h (elf_link_is_defined_archive_symbol): Check to see 842 if the symbol is in the common section. 843 8441999-12-10 Nick Clifton <nickc@cygnus.com> 845 846 * elflink.h (elf_link_is_defined_archive_symbol): New 847 function: Decide if a symbol, in an archive map is there 848 because it is defined in the archive element, or because it is 849 just another common declaration of it. 850 (elf_link_add_archive_symbols): Use 851 elf_link_is_defined_archive_symbol to decide if an archive 852 element contain a reference to a common symbol should be 853 linked in or not. 854 8551999-12-10 Nick Clifton <nickc@cygnus.com> 856 857 * elflink.h: Revert previous patch. 858 * targets.c: Revert previous patch. 859 * libbfd-in2.h: Revert previous patch. 860 * libbfd.h: Revert previous patch. 861 * elfxx-target.h: Revert previous patch. 862 * archive.c: Revert previous patch. 863 * aout-target.h: Revert previous patch. 864 * aout-tic30.h: Revert previous patch. 865 * bfd.c: Revert previous patch. 866 * coff-alpha.c: Revert previous patch. 867 * coff-rs6000.c: Revert previous patch. 868 * elf64-mips.c: Revert previous patch. 869 * ieee.c: Revert previous patch. 870 * libecoff.h: Revert previous patch. 871 * oasys.c: Revert previous patch. 872 * som.c: Revert previous patch. 873 * vms.c: Revert previous patch. 874 8751999-12-09 Nick Clifton <nickc@cygnus.com> 876 877 * elflink.h (elf_link_add_archive_symbols): Add an archive 878 element even if contains a symbol which is currently only 879 considered to be a common. 880 881 * targets.c (struct bfd_target): Add new field 882 _bfd_allow_commons_in_armap. 883 * bfd-in2.h:Regenerate. 884 885 * libbfd-in2.h (_bfd_noarchive_allow_commons_in_armap): 886 Define. 887 (_bfd_archive_bsd_allow_commons_in_armap): Define. 888 * libbfd.h: Regenerate. 889 890 * elfxx-target.h: If using COFF archive map, override 891 definition of allow_commons_in_armap and replace with 892 bfd_false. 893 894 * archive.c (bfd_compute_and_write_armap): Do not place common 895 symbols into the archive map unless _bfd_allow_commons_in_armap 896 returns true. 897 898 * aout-target.h (MY_allow_commons_in_armap): Define. 899 * aout-tic30.h (MY_allow_commons_in_armap): Define. 900 * bfd.c (bfd_allow_commons_in_armap): Define. 901 * coff-alpha.h (alpha_ecoff_allow_commons_in_armap): Define. 902 * coff-rs6000.h (xcoff_allow_commons_in_armap): Define. 903 * elf64-mips.c (bfd_elf64_allow_commons_in_armap): Define. 904 * ieee.c (ieee_ecoff_allow_commons_in_armap): Define. 905 * libecoff.h (_bfd_ecoff_allow_commons_in_armap): Define. 906 * oasys.c (oasys_allow_commons_in_armap): Define. 907 * som.c (som_allow_commons_in_armap): Define. 908 * vms.c (vms_allow_commons_in_armap): Define. 909 9101999-12-07 Jim Blandy <jimb@cygnus.com> 911 912 Add support for SSE registers in ELF core files. 913 * elf.c (elfcore_make_note_pseudosection): New function. 914 (elfcore_grok_prfpreg): Use it. 915 (elfcore_grok_prxfpreg): New function. 916 (elfcore_grok_note): Recognize Linux NT_PRXFPREG notes. 917 9181999-12-03 Ian Lance Taylor <ian@zembu.com> 919 920 * elf32-mips.c (mips_elf_calculate_relocation): Divide R_MIPS_PC16 921 value by 4 before storing it back in the field. From 922 Koundinya. K <kk@ddeorg.soft.net>. 923 924Tue Nov 30 22:41:14 1999 Jeffrey A Law (law@cygnus.com) 925 926 * archures.c (bfd_mach_am33): Define. 927 * bfd-in2.h: Rebuilt. 928 * cpu-m10300.c (bfd_am33_arch): Add to the mn103 architecture list 929 * elf-m10300.c (mn10300_elf_relax_section): Handle am33 instructions. 930 (compute_function_info): Handle additional registers saved by 931 movm on the am33. 932 (elf_mn10300_mach): Handle E_MN10300_MACH_AM33. 933 (_bfd_mn10300_elf_final_write_processing): Handle bfd_mach_am33. 934 9351999-11-29 Jim Blandy <jimb@cygnus.com> 936 937 * elf.c (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New 938 functions. 939 * bfd-in2.h (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New 940 declarations. 941 9421999-11-27 Michael Meissner <meissner@cygnus.com> 943 944 * reloc.c (BFD_RELOC_ALPHA_USER_LITERAL): New relocation for 945 internal use within gas for alpha explicit relocations. 946 (BFD_RELOC_ALPHA_USER_LITUSE_BASE): Ditto. 947 (BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF): Ditto. 948 (BFD_RELOC_ALPHA_USER_LITUSE_JSR): Ditto. 949 (BFD_RELOC_ALPHA_USER_GPDISP): Ditto. 950 (BFD_RELOC_ALPHA_USER_GPRELHIGH): Ditto. 951 (BFD_RELOC_ALPHA_USER_GPRELLOW): Ditto. 952 953 * elf64-alpha.c (elf64_alpha_reloc_map): Add mappings for 954 BFD_RELOC_ALPHA_USER_*. 955 956 * bfd-in2.h: Regenerate. 957 * libbfd.h: Regenerate. 958 9591999-11-26 Fred Fish <fnf@cygnus.com> 960 961 * elf.c (elfcore_read_notes): Add prototype for static function. 962 (_bfd_elf_make_section_from_phdr): Renamed from bfd_section_from_phdr. 963 (bfd_section_from_phdr): Replacement function that calls 964 _bfd_elf_make_section_from_phdr for generic segment types and 965 backend fucntion pointed to by elf_backend_section_from_phdr for 966 backend specific segment types. 967 (_bfd_elfcore_section_from_phdr): Remove call to elfcore_read_notes, 968 now called by _bfd_elf_make_section_from_phdr. Note that this func 969 is now just a stub between the caller and bfd_section_from_phdr. 970 971 * elf-bfd.h (struct elf_backend_data): Add new function pointer 972 elf_backend_section_from_phdr. 973 (elf_backend_section_from_phdr): Add prototype. 974 975 * elfxx-target.h (elf_backend_section_from_phdr): Define default. 976 (elfNN_bed): Add elf_backend_section_from_phdr. 977 9781999-11-25 Nick Clifton <nickc@cygnus.com> 979 980 * coff-arm.c (bfd_arm_get_bfd_for_interworking): Add 981 SEC_CODE and SEC_READONLY flags to glue sections. 982 983 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add 984 SEC_CODE and SEC_READONLY flags to glue sections. 985 9861999-11-20 Nick Clifton <nickc@cygnus.com> 987 988 * coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous 989 delta. 990 9911999-11-19 Catherine Moore <clm@cygnus.com> 992 993 * elf32-m68k.c (elf_cpu32_plt0_entry): Fix encoding. 994 (elf_cpu32_plt_entry): Likewise. 995 9961999-11-18 Nick Clifton <nickc@cygnus.com> 997 998 * coff-mcore.c (coff_mcore_rtype_to_howto): Special case handling 999 for RVA relocs. 1000 (coff_mcore_relocate_section): Initialise addend to 0. 1001 Special case processing of RVA reloc. 1002 10031999-11-17 Richard Henderson <rth@cygnus.com> 1004 1005 * elf-bfd.h (struct elf_backend_data): Reorder collect and 1006 type_change_ok; add sign_extend_vma. 1007 * elf32-mips.c (elf_backend_sign_extend_vma): Define. 1008 * elfcode.h (elf_swap_symbol_in): Mind be->sign_extend_vma. 1009 (elf_swap_shdr_in, elf_swap_phdr_in): Likewise. 1010 * elfxx-target.h (elf_backend_sign_extend_vma): Default. 1011 (elfNN_bed): Follow struture changes. 1012 10131999-11-09 Ian Lance Taylor <ian@zembu.com> 1014 1015 * libbfd.c (bfd_read): Check result of read against desired result 1016 using !=, not <. 1017 (_bfd_generic_get_section_contents): Set bfd_error if the seek is 1018 invalid compared to the section size. 1019 1020 * ieee.c (ieee_slurp_debug): Get the length of the debug 1021 information right if there is no data part. 1022 1023Tue Nov 2 01:44:41 1999 Jeffrey A Law (law@cygnus.com) 1024 1025 * som.c (som_fixup_formats): Improve handling of R_AUX_UNWIND, 1026 R_LINETAB, R_LINETAB_ESC, and R_COMMENT. 1027 10281999-10-28 Ian Lance Taylor <ian@zembu.com> 1029 1030 * elflink.h (elf_bfd_final_link): Make last_local signed. 1031 10321999-10-27 Ian Lance Taylor <ian@zembu.com> 1033 1034 * stabs.c (_bfd_link_section_stabs): Make sure .stabstr section 1035 starts with a zero. 1036 1037Sat Oct 23 17:36:12 1999 Andrew Cagney <cagney@b1.cygnus.com> 1038 1039 * archures.c: Add definitions bfd_mach_d10v, bfd_mach_d10v_ts2 and 1040 bfd_mach_d10v_ts3. 1041 * cpu-d10v.c (d10v_ts3_info, d10v_ts2_info): Add. 1042 * bfd-in2.h: Regenerate. 1043 10441999-10-15 Andrew Haley <aph@cygnus.com> 1045 1046 * dwarf1.c (parse_die): Fail to parse a die if its length is zero. 1047 1048Sun Oct 17 17:19:00 1999 Jeffrey A Law (law@cygnus.com) 1049 1050 * libhppa.h (bfd_hppa_insn2fmt): Change to return an int. 1051 10521999-10-08 Ian Lance Taylor <ian@zembu.com> 1053 1054 * elflink.h (elf_merge_symbol): When overriding a weak symbol with 1055 a defined symbol in a shared library, clear the DEF_DYNAMIC flag 1056 too. 1057 1058Fri Oct 8 13:03:45 1999 Geoffrey Keating <geoffk@cygnus.com> 1059 1060 * elf32-mips.c (mips_elf_calculate_relocation): R_MIPS_LITERAL 1061 relocs also need the GP value. 1062 (_bfd_mips_elf_relocate_section): Handle unpaired LO16 relocs 1063 properly. Handle sign-extension for R_MIPS_64 correctly. Correct 1064 the GP value for R_MIPS_LITERAL relocs too. Handle 1065 R_MIPS_64 relocs properly on big-endian MIPS. 1066 (mips_elf_sign_extend): Behave properly with 'long long'. 1067 (mips_elf_highest): Correct typo. 1068 1069Mon Oct 4 17:49:45 1999 Nick Clifton <nickc@cygnus.com> 1070 1071 * cpu-m32r.c (arch_info_struct): New static global. 1072 (bfd_m32r_arch): Refer to it. 1073 * elf32-m32r.c (m32r_elf_object_p): Recognize E_M32RX_ARCH. 1074 (m32r_elf_print_private_bfd_data): Ditto. 1075 (m32r_elf_final_write_processing): Handle bfd_mach_m32rx. 1076 * archures.c (bfd_mach_m32rx): Define it. 1077 * bfd-in2.h: Rebuild. 1078 10791999-09-28 Fred Fish <fnf@cygnus.com> 1080 1081 * targets.c (cisco_core_vec): Replaced with two new vecs ... 1082 (cisco_core_big_vec): Add new bigendian vec. 1083 (cisco_core_little_vec): Add new little endian vec. 1084 1085 * cisco-core.c (CRASH_INFO): Fixed offset replaced with ... 1086 (crash_info_locs): Add array of possible offsets. 1087 (MASK_ADDR): Mask to apply to crash info offset. 1088 (crashinfo_external): Add textbase, database, bssbase and 1089 turn into a typedef. 1090 (cisco_core_file_validate): Renamed from cisco_core_file_p. 1091 Many small changes to account for additional hardware versions. 1092 Pick a reasonable size for ".reg" section. Add a ".crash" 1093 section to allow access to crashinfo_external struct. 1094 (cisco_core_file_p): New version of this function that 1095 iterates over crash_info_locs, calling cisco_core_file_validate. 1096 (cisco_core_vec): Old big endian only vec replaced with ... 1097 (cisco_core_big_vec): Add big endian version. 1098 (cisco_core_little_vec): Add little endian version. 1099 1100 * configure.in (cisco_core_vec): Split to two new vectors ... 1101 (cisco_core_big_vec): New target vector. 1102 (cisco_core_little_vec): New target vector. 1103 * configure: Regenerate. 1104 * config.bfd (targ): For m68*-*-aout* targ, change cisco_core_vec 1105 to cisco_core_big_vec in targ_selvecs. 1106 11071999-09-28 Geoffrey Keating <geoffk@cygnus.com> 1108 1109 * elf32-mips.c (mips_elf_relocate_hi16): Unused, delete. 1110 (mips_elf_relocate_got_local): Unused, delete. 1111 (mips_elf_relocate_global_got): Unused, delete. 1112 11131999-09-24 Fred Fish <fnf@cygnus.com> 1114 1115 * elf.c (bfd_section_from_phdr): Add typename variable. Use p_type 1116 to initialize it to something meaningful. Then use it to generate 1117 more useful segment names. 1118 1119Sun Sep 19 12:16:47 1999 Jeffrey A Law (law@cygnus.com) 1120 1121 * som.c (NO_PCREL_MODES): Define if the system does not define 1122 R_SHORT_PCREL_MODE. 1123 (hppa_som_gen_reloc_type): Handle both short and long pcrel branches. 1124 (som_write_fixups): Eliminate redundant pcrel mode relocs. Handle 1125 R_LONG_PCREL_MODE and R_SHORT_PCREL_MODE 1126 * libhppa.h (dis_assemble_22): New function. 1127 (bfd_hppa_insn2fmt): Handle long branch. 1128 1129 * libhppa.h (bfd_hppa_insn2fmt): Decode and handle formats found 1130 in PA2.0. 1131 11321999-09-17 Alan Modra <alan@spri.levels.unisa.edu.au> 1133 1134 * coff-i386.c (coff_i386_reloc_type_lookup): Support BFD_RELOC_16, 1135 BFD_RELOC_16_PCREL, BFD_RELOC_8, BFD_RELOC_8_PCREL relocs. 1136 (reloc_howto_type howto_table): Tidy comments and whitespace. 1137 11381999-09-17 Nick Clifton <nickc@cygnus.com> 1139 1140 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Undo 1141 previous delta. Set sec->gc_mark instead. 1142 1143Thu Sep 16 11:21:13 1999 Catherine Moore <clm@cygnus.com> 1144 1145 * elf32-m68k.c (elf_cpu32_plt0_entry): Use a1 instead of a0. 1146 (elf_cpu32_plt_entry): Likewise. 1147 1148Thu Sep 16 10:48:17 1999 Jeffrey A Law (law@cygnus.com) 1149 1150 * elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL. 1151 1152 * elf-hppa.h (elf_hppa_final_link): If unable to find __gp in the 1153 symbol table, then just compute a suitable value (but do not 1154 create a __gp symbol). 1155 1156 * elf-hppa.h (elf_hppa_relocate_section): Allow undefined 1157 symbols when building shared libraries. 1158 (elf_hppa_final_link_relocate): Correct handling of PCREL 1159 relocations against undefined symbols. 1160 11611999-09-16 Nick Clifton <nickc@cygnus.com> 1162 1163 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Mark 1164 interworking sections as linker created so that they will not 1165 be removed by garbage collection. 1166 1167Wed Sep 15 02:31:57 1999 Jeffrey A Law (law@cygnus.com) 1168 1169 * elf-hppa.h (elf_hppa_final_link): Revamp __gp handling. 1170 (elf_hppa_final_link_relocate): Consistently create an absolute 1171 address, then subtract out the value of __gp. 1172 11731999-09-14 Michael Meissner <meissner@cygnus.com> 1174 1175 * configure.in (Canonicalization of target names): Remove adding 1176 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14 1177 generates $ac_config_sub with a ${CONFIG_SHELL} already. 1178 * configure: Regenerate. 1179 11801999-09-14 Nick Clifton <nickc@cygnus.com> 1181 1182 * elf32-m32r.c (ELF_MAXPAGESIZE): Change to 0x1 (at request of 1183 Mitsubishi). 1184 1185Mon Sep 13 20:01:47 1999 Jeffrey A Law (law@cygnus.com) 1186 1187 * elf-hppa.h (elf_hppa_record_segment_addrs): New function. 1188 (elf_hppa_final_link): Initialize text_segment_base and 1189 data_segment_base. 1190 (elf_hppa_final_link_relocate): Handle SEGREL relocations. 1191 1192 * elf-hppa.h (elf_hppa_final_link): Remove unused variables. 1193 (elf_hppa_final_link_relocate): Likewise. 1194 (elf_hppa_relocate_insn): Likewise. 1195 (elf_hppa_relocate_section): Initialize HOWTO. 1196 11971999-09-13 Donn Terry <donn@interix.com> 1198 1199 * coffcode.h (styp_to_sec_flags): Further refinement of COMDAT 1200 handling to support both GNU and MS objects. 1201 1202 * coffcode.h (coff_write_object_contents): Don't check reloc_count 1203 when determining whether to set F_RELFLG. 1204 12051999-09-13 Philip Blundell <pb@nexus.co.uk> 1206 1207 * elf32-arm.h (elf32_arm_final_link_relocate): Don't range-check 1208 PC24 relocs if the target is an undefined weak symbol. 1209 (arm_add_to_rel): Fix compiler warning. 1210 (elf32_arm_plt0_entry): Correct comments. 1211 12121999-09-13 Alan Modra <alan@spri.levels.unisa.edu.au> 1213 1214 * elfcode.h (write_relocs): Check for the_bfd NULL when handling 1215 an absolute symbol in REL relocs. 1216 1217Sun Sep 12 23:47:58 1999 Jeffrey A Law (law@cygnus.com) 1218 1219 * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32. 1220 Stub SEGREL32. Return an error for any relocation not handled. 1221 12221999-09-12 Ian Lance Taylor <ian@zembu.com> 1223 1224 * cofflink.c (coff_link_add_symbols): Look for special MSVC string 1225 constant symbols, and avoid multiple definition errors on them. 1226 12271999-09-12 Donn Terry <donn@interix.com> 1228 1229 * libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most 1230 significant bit is set. 1231 12321999-09-11 Ian Lance Taylor <ian@zembu.com> 1233 1234 * coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define. 1235 1236 * elfcode.h (write_relocs): Handle an absolute symbol in REL 1237 relocs as we do for RELA relocs. 1238 12391999-09-11 Donn Terry <donn@interix.com> 1240 1241 * libpei.h (_bfd_pei_final_link_postscript): Declare. 1242 (coff_final_link_postscript): Define. 1243 * peigen.c (_bfd_pei_swap_aouthdr_out): Don't set value for data 1244 directory entries here. 1245 (_bfd_pei_final_link_postscript): New function. 1246 1247 * peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets 1248 section flags based on the section name. 1249 1250 * peicode.h (coff_swap_scnhdr_in): If COFF_IMAGE_WITH_PE, the 1251 get the overflow of the s_nlnno field from the s_nreloc field. 1252 * peigen.c (_bfd_pei_swap_scnhdr_out): If doing a final link, swap 1253 the s_nlnno overflow of the .text section into the s_nreloc 1254 field. 1255 1256 * peigen.c (add_data_entry): Declare. 1257 (pei_swap_aouthdr_out): Get image size right. Set linker version 1258 more intuitively. 1259 (pei_swap_scnhdr_out): Test for UNINIT section, not .bss. 1260 (pe_print_idata): Code cleanup, print more info, get rid of (now) 1261 extraneous ImageBase. 1262 (pe_print_edata): Likewise. 1263 (pe_print_pdata): Likewise. Print exception entries. 1264 (pe_print_reloc): Likewise. Print MIPS_JMPADDR. 1265 (tbl): Make const, add "UNKNOWN". 1266 (_bfd_pe_print_private_bfd_data_common): Print timestamp. 1267 (_bfd_pe_bfd_copy_private_bfd_data_common): Don't copy deleted 1268 section data directory. 1269 (_bfd_pe_bfd_copy_private_section_data): Copy pe_flags. 1270 1271 * libpei.h (_bfd_pe_bfd_get_symbol_info): Declare. 1272 * peigen.c (_bfd_pe_bfd_get_symbol_info): New function. 1273 * peicode.h (coff_get_symbol_info): Define. 1274 1275 * config.bfd (i[3456]86-*-interix*): Set targ_cflags to 1276 -DSTRICT_PE_FORMAT. 1277 * coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather 1278 than __INTERIX. 1279 (coff_classify_symbol): Re-revert 1999-08-08 patch if 1280 STRICT_PE_FORMAT. 1281 1282 * libpei.h: New file, broken out of peicode.h. 1283 * peigen.c: New file, broken out of peicode.h. 1284 * peicode.h: A bunch of code moved out to libpei.h and peigen.c. 1285 * configure.in: Add peigen.lo to list of files required for each 1286 PE target. 1287 * Makefile.am: Rebuild dependencies. 1288 (BFD32_BACKENDS): Add peigen.lo. 1289 (BFD32_BACKENDS_CFILES): Add peigen.c. 1290 (SOURCE_HFILES): Add libpei.h. 1291 * configure, Makefile.in: Rebuild. 1292 1293 * peicode.h (coff_swap_scnhdr_in): Don't check for a special 1294 section name of _BSS; check IMAGE_SCN_CNT_UNINITIALIZED_DATA 1295 instead. Don't clear the s_paddr field for an uninitialized data 1296 section. 1297 1298 * coffcode.h (coff_mkobject_hook): Set timestamp field in 1299 coff_data_type to f_timdat. 1300 * peicode.h (pe_mkobject_hook): Likewise. 1301 1302 * peicode.h (coff_swap_filehdr_in): Check the NT executable magic 1303 number if COFF_IMAGE_WITH_PE. 1304 1305 * coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG 1306 to the reverse of IMAGE_FILE_DEBUG_STRIPPED. 1307 (coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if 1308 there is no SEC_DEBUGGING section. 1309 * peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of 1310 IMAGE_FILE_DEBUG_STRIPPED. 1311 1312 * pe-i386.c (COFF_LONG_FILENAMES): Define. 1313 (COFF_SECTION_ALIGNMENT_ENTRIES): Define. 1314 * pei-i386.c (COFF_LONG_FILENAMES): Define. 1315 (COFF_SECTION_ALIGNMENT_ENTRIES): Define. 1316 1317 * coffswap.h (IMAGE_BASE): Don't define. 1318 * pei-arm.c (IMAGE_BASE): Don't define. 1319 * pei-i386.c (IMAGE_BASE): Don't define. 1320 * pei-mcore.c (IMAGE_BASE): Don't define. 1321 * pei-ppc.c (IMAGE_BASE): Don't define. 1322 1323 * cofflink.c (_bfd_coff_link_input_bfd): When writing out a 1324 symbol, switch on the class when determining whether to modify the 1325 value. For PE, don't modify the value of a C_FCN symbol not named 1326 .bf. 1327 1328 * libbfd-in.h (_bfd_abort): Declare. 1329 (abort): Define. 1330 * bfd.c (_bfd_abort): New function. 1331 * libbfd.h: Rebuild. 1332 1333 * coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE 1334 special handling. 1335 1336 * cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped, 1337 don't write out the associated line numbers. 1338 1339 * cofflink.c (_bfd_coff_write_global_sym): Handle section symbol 1340 aux entries. 1341 1342 * cofflink.c (coff_link_add_symbols): Don't warn about symbol type 1343 changes when the base type is unknown. 1344 1345 * coffgen.c (coff_print_symbol): Fix printing of aux record for 1346 function symbols. 1347 1348 * syms.c (BSF_DEBUGGING_RELOC): Define. 1349 * coffcode.h (coff_slurp_symbol_table): If PE, set BSF_DEBUGGING 1350 for C_FCN/C_EFCN symbols, and set BSF_DEBUGGING_RELOC for such 1351 symbols named .bf. 1352 * coffgen.c (fixup_symbol_value): Relocate a symbol which has 1353 BSF_DEBUGGING_RELOC set. 1354 * bfd-in2.h: Rebuild. 1355 13561999-09-10 Ian Lance Taylor <ian@zembu.com> 1357 1358 * ecoff.c (bfd_debug_section): Update initialization for new 1359 comdat_info field. 1360 (_bfd_ecoff_styp_to_sec_flags): Add section parameter. 1361 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Update declaration. 1362 13631999-09-10 H.J. Lu <hjl@gnu.org> 1364 1365 * coff-alpha.c (alpha_ecoff_backend_data): Initialize the new 1366 _bfd_filnmlen field. 1367 * coff-mips.c (mips_ecoff_backend_data): Likewise. 1368 1369Fri Sep 10 00:35:14 1999 Jeffrey A Law (law@cygnus.com) 1370 1371 * elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entries 1372 for FPTR relocs involving local symbols. 1373 1374 * elf-hppa.h (elf_hppa_final_link_relocate): Get the right 1375 value for the stub address in a call through a stub. 1376 Install the value for a local symbol directly into the DLT 1377 instead of generating a reloc. Correctly handle FPTR64 relocs. 1378 1379 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): New function. 1380 (elf_hppa_remark_useless_dynamic_symbols): Similarly. 1381 (elf_hppa_final_link): Call them. 1382 13831999-09-10 Ian Lance Taylor <ian@zembu.com> 1384 1385 * elflink.h (elf_fix_symbol_flags): Move weakdef handling here... 1386 (elf_adjust_dynamic_symbol): ...from here. 1387 1388Wed Sep 8 17:56:11 1999 Jeffrey A Law (law@cygnus.com) 1389 1390 * elf-hppa.h (elf_hppa_howto_table); There is no DIR64WR, DIR64DR 1391 relocation, remove them. SECREL64->LTOFF16WF. 1392 (elf_hppa_final_link_relocate): Handle LTOFF* relocations. Handle 1393 DIR* relocations. 1394 (elf_hppa_relocate_insn): Similarly. 1395 1396 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PLTOFF* relocs. 1397 (elf_hppa_relocate_insn): Similarly. 1398 1399 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DPREL* and 1400 GPREL* relocations. 1401 (elf_hppa_relocate_insn): Similarly. 1402 1403 * elf-hppa.h (elf_hppa_link_final_relocate): Fix typos. 1404 Handle LTOFF_TP* relocs. 1405 (elf_hppa_relocate_insn): Similarly. 1406 1407 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PCREL* relocs. 1408 Consistently deal with addends. Handle DLTIND14F and DLTREL14F. 1409 (elf_hppa_relocate_insn): Handle PCREL* relocs. 1410 1411 * elf-hppa.h (elf_hppa_final_link_relocate): Handle LT_OFF_FPTR*, 1412 DIR32, DIR64 and FPTR64 relocations. 1413 (elf_hppa_relocate_insn): Similarly. 1414 1415 * elf-hppa.h (elf_hppa_final_link): Set the value of __gp to the 1416 address of the .PARISC.global section. 1417 (elf_hppa_relocate_section): Lookup and pass the PA64 hash 1418 table entry elf_hppa_final_link_relocate. Do not give a warning 1419 for a reloc against an external symbol if it has a PA64 hash 1420 table entry. 1421 (elf_hppa_final_link_relocate): Significantly rework. Handle 1422 DLTIND relocations. Compute the final value of the relocation 1423 before passing the value of elf_hppa_relocate_insn. 1424 (elf_hppa_relocate_insn): Revamp to handle just bit tiwiddling 1425 relocation support. Handle DLTIND relocation requests just like 1426 DLTREL relocation requests. Simplify branch handling. 1427 14281999-09-08 Ulrich Drepper <drepper@cygnus.com> 1429 1430 * elf-hppa.h (elf_hppa_relocate_section): Catch problems with 1431 non-allocated section as done in i386 version. 1432 (elf_hppa_final_link_relocate): Uncomment R_PARISC_14F in switch 1433 statement since this is no know relocation. 1434 1435Tue Sep 7 17:25:12 1999 Jeffrey A Law (law@cygnus.com) 1436 1437 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14F 1438 relocs. 1439 (elf_hppa_relocate_insn): Similarly. 1440 1441 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14WR and 1442 DLTREL14WD relocs. 1443 (elf_hppa_relocate_insn): Similarly. 1444 1445 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14R and 1446 DLTREL21L relocs. Pass the output bfd to elf_hppa_relocate_insn. 1447 Pass the relocate type rather than the insn format to 1448 elf_hppa_relocate_insn. 1449 (elf_hppa_relocate_insn): Make switch dependent on relocation type 1450 rather than the opcode. Handle DLTREL21L and DLTREL14R relocs. 1451 14521999-09-07 Ian Lance Taylor <ian@zembu.com> 1453 1454 * coffcode.h (bfd_coff_backend_data): Add _bfd_filnmlen field. 1455 (bfd_coff_filnmlen): Define. 1456 (bfd_coff_std_swap_table): Initialize new field. 1457 * coffgen.c (coff_fix_symbol_name): Use bfd_coff_filnmlen rather 1458 than FILNMLEN. 1459 (coff_write_symbols): Likewise. 1460 (coff_get_normalized_symtab): Likewise. 1461 * coff-sh.c (bfd_coff_small_swap_table): Initialize new field. 1462 * libcoff.h: Rebuild. 1463 14641999-09-06 Donn Terry <donn@interix.com> 1465 1466 * coffcode.h (sort_by_secaddr): New static function if 1467 COFF_IMAGE_WITH_PE. 1468 (coff_compute_section_file_positions): If COFF_IMAGE_WITH_PE, sort 1469 sections by VMA when assigning target_index values. Always set 1470 virt_size. 1471 1472 * libcoff-in.h (struct pei_section_tdata): Add pe_flags field. 1473 * coffcode.h (coff_set_alignment_hook) [COFF_WITH_PE version]: Set 1474 pe_flags field. 1475 * libcoff.h: Rebuild. 1476 1477 * coffcode.h (coff_set_custom_section_alignment): Add const to 1478 declaration to match definition. 1479 (coff_write_object_contents): Don't set F_AR32W(R)? if 1480 COFF_WITH_PE. 1481 1482 * coff-i386.c (in_reloc_p): Add declaration. 1483 (i386coff_vec): Simplify initialization of 1484 application_section_flags. 1485 1486 * coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE 1487 version. Move COFF_WITH_PE specific code to new version. 1488 (stype_to_sec_flags): Likewise. Add section parameter. 1489 * coffgen.c (make_a_section_from_file): Set target_index before 1490 calling styp_to_sec_flags. Pass section to styp_to_sec_flags. 1491 * libcoff.h: Rebuild. 1492 1493 * syms.c (stt): Add some PE/PEI section names. 1494 (bfd_decode_symclass): Return 'w', not 'U', for a weak undefined 1495 symbol. 1496 (bfd_symbol_info): Check for 'w'. 1497 1498 * section.c (struct bfd_comdat_info): Define. 1499 (asection): Add comdat field. 1500 (STD_SECTION): Initialize comdat field. 1501 (bfd_make_section_anyway): Likewise. 1502 * bfd-in2.h: Rebuild. 1503 15041999-09-06 Andreas Schwab <schwab@suse.de> 1505 1506 * elflink.h (elf_link_add_object_symbols): Copy NON_GOT_REF flag 1507 to version symbols. 1508 15091999-09-06 Nick Clifton <nickc@cygnus.com> 1510 1511 * elflink.h (elf_gc_record_vtentry): Use bfd_zmalloc and 1512 bfd_realloc instead of calloc and realloc. 1513 15141999-09-04 Steve Chamberlain <sac@pobox.com> 1515 1516 * cpu-pj.c: New file. 1517 * elf32-pj.c: New file. 1518 * config.bfd (pj*): New cpu. 1519 (pj-*-*, pjl-*-*): New targets. 1520 * configure.in (bfd_elf32_pj_vec): New target vector. 1521 (bfd_elf32_pjl_vec): New target vector. 1522 * archures.c (bfd_arch_pj): Define. 1523 * elf.c (prep_headers): Handle bfd_arch_pj. 1524 * reloc.c: Define BFD_RELOC_PJ_* relocations. 1525 * targets.c (bfd_elf32_pj_vec, bfd_elf32_pjl_vec): Declare and add 1526 to target vector list. 1527 * Makefile.am: Rebuild dependencies. 1528 (ALL_MACHINES): Add cpu-pj.lo. 1529 (ALL_MACHINES_CFILES): Add cpu-pj.c. 1530 (BFD32_BACKENDS): Add elf32-pj.lo. 1531 (BFD32_BACKENDS_CFILES): Add elf32-pj.c. 1532 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild. 1533 15341999-09-04 Ian Lance Taylor <ian@zembu.com> 1535 1536 * elf-bfd.h (ELF_LINK_NON_GOT_REF): Define. 1537 * elflink.h (elf_adjust_dynamic_symbol): Copy REF_REGULAR_NONWEAK 1538 and NON_GOT_REF from weak defined symbol to real symbol. 1539 * elf32-i386.c (elf_i386_check_relocs): Set NON_GOT_REF. 1540 (elf_i386_adjust_dynamic_symbol): If NON_GOT_REF is not set, don't 1541 create a COPY reloc. 1542 * elf32-sparc.c (elf32_sparc_check_relocs): Set NON_GOT_REF. 1543 (elf32_sparc_adjust_dynamic_symbol): If NON_GOT_REF is not set, 1544 don't create a COPY reloc. 1545 15461999-09-03 Ian Lance Taylor <ian@zembu.com> 1547 1548 * elflink.h (elf_bfd_final_link): When counting relocations, don't 1549 count those in sections we are not including in the link. 1550 1551Thu Sep 2 17:41:20 1999 Jeffrey A Law (law@cygnus.com) 1552 1553 * elflink.h (elf_link_add_object_symbols): Work around bogus SH_LINK 1554 field in hpux11 shared libraries. 1555 15561999-09-02 Nick Clifton <nickc@cygnus.com> 1557 1558 * elflink.h (elf_gc_record_vtentry): Fix memory leak. 1559 1560Wed Sep 1 13:34:29 1999 Jeffrey A Law (law@cygnus.com) 1561 1562 * elf-hppa.h (elf_hppa_add_symbol_hook): New function. 1563 (elf_hppa_final_link, elf_hppa_relocate_section): Likewise. 1564 (elf_hppa_final_link_relocate, elf_hppa_relocate_insn): Likewise. 1565 15661999-08-31 Alexandre Petit-Bianco <apbianco@cygnus.com> 1567 1568 * elflink.h (record_link_assignment): When possible, keep the 1569 original type of the symbol. 1570 1571Mon Aug 30 15:26:48 1999 Jeffrey A Law (law@cygnus.com) 1572 1573 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Allow both 1574 R_PARISC_DIR32 and R_PARISC_DIR64 regardless of how the 1575 tools were configured. 1576 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Declare. 1577 15781999-08-26 Mark Mitchell <mark@codesourcery.com> 1579 1580 * elf32-mips.c (_bfd_mips_elf_check_relocs): Don't allocate local 1581 GOT entries for GOT16 relocations; they're not required. 1582 15831999-08-24 Nick Clifton <nickc@cygnus.com> 1584 1585 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com> 1586 1587 * config.bfd (arm-*-netbsd*): New target. 1588 * configure.in (armnetbsd_vec): New target vector. 1589 * configure: Regenerate 1590 * targets.c (bfd_target_vector): Add &armnetbsd_vec. 1591 1592 * Makefile.am (BFD32_BACKENDS): Add armnetbsd.lo. 1593 (ALL_MACHINES_CFILES): Add armnetbsd.c. 1594 (armnetbsd.lo): New rule with deps. 1595 * Makefile.in: Regenerate. 1596 1597 * armnetbsd.c: New file: Definitions specific to arm-netbsd 1598 target. 1599 1600Tue Aug 24 00:25:58 1999 Jeffrey A Law (law@cygnus.com) 1601 1602 * som.c (som_slurp_symbol_table): Fix typo in comment. 1603 1604Fri Aug 20 17:01:23 1999 Jeffrey A Law (law@cygnus.com) 1605 1606 * elf-hppa.h (elf_hppa_fake_sections): Compute section indices 1607 here instead of using elf_section_data... 1608 16091999-08-19 Nick Clifton <nickc@cygnus.com> 1610 1611 * coff-mcore.c (mcore_emit_base_file_entry): New function: Emit 1612 relocations into the base file. 1613 (coff_mcore_relocate_section): Call mcore_emit_base_file_entry if 1614 we are building a base file. 1615 16161999-08-19 Nick Clifton <nickc@cygnus.com> 1617 1618 * elf32-arm.h (arm_add_to_rel): New function. Add a value to 1619 a REL style reloc. 1620 (elf32_arm_relocate_section): Use arm_add_to_rel to increment 1621 REL relocs when performing a partial relocation. 1622 16231999-08-18 Donn Terry <donn@interix.com> 1624 1625 * cofflink.c: Move definitions of N_TMASK, et. al., out of 1626 _bfd_coff_link_input_bfd into top level. 1627 1628 * coff-i386.c (coff_i386_reloc): Handle R_IMAGEBASE. 1629 (RTYPE2HOWTO): Return NULL if reloc type is out of range. 1630 (coff_i386_rtype_to_howto): Likewise. 1631 * coffcode.h (coff_slurp_symbol_table): Change a -2 to N_DEBUG. 1632 Completely ignore symbols which are all zero. 1633 (dummy_reloc16_estimate): Add return 0. 1634 * cofflink.c (_bfd_coff_link_input_bfd): Rename inner scope 1635 variable copy to name_copy to avoid shadowing outer scope 1636 variable. 1637 * libcoff-in.h (coff_data_type): Change raw_syment_count field 1638 from unsigned int to unsigned long. Add timestamp field. 1639 * libcoff.h: Rebuild. 1640 16411999-08-17 H.J. Lu <hjl@gnu.org> 1642 1643 * elf32-hppa.c (bfd_elf32_bfd_is_local_label_name): Fix typo in 1644 macro definition. 1645 16461999-08-17 Ian Lance Taylor <ian@zembu.com> 1647 1648 * elf32-mips.c (_bfd_mips_elf_add_symbol_hook): Set BSF_DYNAMIC 1649 for special section symbols. 1650 * elflink.h (elf_merge_symbol): If we have no old BFD, check 1651 BSF_DYNAMIC on the section symbol to see whether the old BFD is 1652 dynamic. 1653 16541999-08-15 Mark Mitchell <mark@codesourcery.com> 1655 1656 * elf32-mips.c (mips_elf_calculate_relocation): Fix unfortunate 1657 coincidence of variable names between old and new code. 1658 16591999-08-12 Nick Clifton <nickc@cygnus.com> 1660 1661 * elf32-arm.h (elf32_arm_to_thumb_stub): Make 'offset' parameter 1662 into a bfd_vma and 'addend' parameter a 'bfd_signed_vma'. 1663 (elf32_thumb_to_arm_stub): Make 'offset' parameter into a bfd_vma 1664 and 'addend' parameter a 'bfd_signed_vma'. 1665 (elf32_arm_final_link_relocate): Do not involve stubs in 1666 R_ARM_THM_PC22 relocs relative to section symbols, they are long 1667 jumps, not function calls. 1668 16691999-08-11 Robin Farine <advanc@dial.eunet.ch> 1670 1671 * elf32-arm.h (elf32_arm_final_link_relocate): Check for overflow 1672 in R_ARM_PC24 relocs. 1673 1674Tue Aug 10 12:48:09 1999 Jeffrey A Law (law@cygnus.com) 1675 1676 * elf-hppa.h (elf_hppa_fake_sections): New function. 1677 * elf32-hppa.c (elf_backend_fake_sections): Define. 1678 1679 * elf-hppa.h (elf_hppa_final_write_processing): Update for 1680 recent changes to the arch_info structure. 1681 1682 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle 1683 R_HPPA_SEGBASE and R_HPPA_SEGREL32. 1684 * cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info 1685 list. 1686 1687Tue Aug 10 00:34:29 1999 Mark P. Mitchell <mark@codesourcery.com> 1688 Ralf Baechle <ralf@uni-koblenz.de> 1689 1690 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Always 1691 output DT_MIPS_GOTSYM. 1692 (_bfd_mips_elf_finish_dynamic_sections): Use the same value as 1693 DT_MIPS_SYMTABNO if there are no global GOT symbols. 1694 1695Tue Aug 10 00:21:08 1999 Mark P. Mitchell <mark@codesourcery.com> 1696 1697 * elf32-mips.c (mips_elf_create_dynamic_relocation): Change 1698 prototype. Handle local symbols. Add commentary. 1699 (mips_elf_calculate_relocation): Adjust accordingly. 1700 (_bfd_mips_elf_check_relocs): Handle local symbols in R_MIPS_32 1701 relocations. 1702 1703 * elflink.h (elf_bfd_final_link): Tweak last change. 1704 17051999-08-09 Mark Mitchell <mark@codesourcery.com> 1706 1707 * elflink.h (elf_link_size_reloc_section): Use the counts in the 1708 elf-section data to allocate just the right amount of relocation 1709 space. Don't allocate the hash space twice. 1710 (elf_bfd_final_link): Calculate the amount of space to allocate in 1711 each relocation section. 1712 1713Mon Aug 9 17:37:30 1999 Jeffrey A Law (law@cygnus.com) 1714 1715 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case 32): When in 1716 64bit mode, generate a section relative relocation for a 32bit 1717 wide relocation. 1718 (elf_hppa_is_local_label_name): New function. 1719 * elf32-hppa.c (elf_hppa_is_local_label_name): Deleted. To be 1720 shared between 32bit and 64bit port. 1721 17221999-08-09 Mark Mitchell <mark@codesourcery.com> 1723 1724 * elf32-mips.c (elf_mips_howto_table): Fix src_mask for 1725 R_MIPS_GOT16 and R_MIPS_CALL16. 1726 (mips_elf_got16_entry): Use mips_elf_high to calculate the value 1727 to use when looking for a preexisting GOT entry. 1728 17291999-08-09 Jakub Jelinek <jj@ultra.linux.cz> 1730 1731 * elf64-sparc.c (sparc64_elf_relocate_section): Back out part of 1732 the Sep. 4th, 1998 change. glibc 2.0.x dynamic linker had bug, 1733 not binutils. 1734 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 1735 17361999-08-09 Geoff Keating <geoffk@cygnus.com> 1737 1738 * elflink.h (elf_link_output_extsym): Don't output a weak 1739 reference to an undefined symbol just because it was defined weak 1740 in a shared object. 1741 17421999-08-09 Eli Zaretskii <eliz@is.elta.co.il> 1743 1744 * coffgen.c (coff_find_nearest_line): When looking for file, use 1745 last best match rather than first. If address is beyond last line 1746 number record, don't return the last line as the correct value. 1747 17481999-08-08 Ian Lance Taylor <ian@zembu.com> 1749 1750 * section.c (SEC_SMALL_DATA): Rename from SEC_SHORT. 1751 * bfd-in2.h: Rebuild. 1752 17531999-08-08 Mark Elbrecht <snowball3@bigfoot.com> 1754 1755 * libcoff-in.h (struct coff_section_alignment_entry): Define. 1756 * coffcode.h (coff_set_custom_section_alignment): New static 1757 function. 1758 (coff_section_alignment_table): New static array. 1759 (coff_new_section_hook): Use coff_set_customer_section_alignment. 1760 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define. 1761 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define. 1762 * libcoff.h: Rebuild. 1763 17641999-08-08 Ian Lance Taylor <ian@zembu.com> 1765 1766 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to 1767 MKDEP. 1768 * Makefile.in: Rebuild. 1769 17701999-08-08 Mumit Khan <khan@xraylith.wisc.edu> 1771 1772 * section.c (SEC_SHARED): Define. 1773 * coffcode.h (sec_to_styp_flags): Handle SEC_SHARED. 1774 (styp_to_sec_flags): Likewise. 1775 * peicode.h (coff_swap_scnhdr_out): Likewise. 1776 * bfd-in2.h: Rebuild. 1777 17781999-08-08 Ian Lance Taylor <ian@zembu.com> 1779 1780 * coffcode.h (coff_classify_symbol): Comment out part of 1781 1999-08-05 change which breaks cygwin DLLs. 1782 1783 * acinclude.m4 (BFD_BINARY_FOPEN): Change -windows to -windows*. 1784 * aclocal.m4, configure: Rebuild. 1785 17861999-08-06 Ian Lance Taylor <ian@zembu.com> 1787 1788 * section.c (global_syms): Only initialize union field if 1789 __STDC__. 1790 17911999-08-04 Mark Mitchell <mark@codesourcery.com> 1792 1793 * elf32-mips.c (mips_elf_got16_entry): Don't multiply GOT index by 1794 the size of a GOT entry here. 1795 (mips_elf_calculate_relocation): Don't create a local GOT entry 1796 for the symbol in a GOT16 relocation; just for it's high-order bit 1797 (_bfd_mips_elf_relocate_section): Fix thinko. 1798 17991999-08-05 Ian Lance Taylor <ian@zembu.com> 1800 1801 Based on patches from Donn Terry <donn@interix.com>: 1802 * coffcode.h (enum coff_symbol_classification): Define. 1803 (bfd_coff_backend_data): Rename _bfd_coff_sym_is_global to 1804 _bfd_coff_classify_symbol. Change return type. 1805 (bfd_coff_classify_symbol): Rename from bfd_coff_sym_is_global. 1806 (coff_slurp_symbol_table): Use coff_classify_symbol. 1807 (coff_classify_symbol): New static function. 1808 (coff_sym_is_global): Never define. 1809 (bfd_coff_std_swap_table): Initialize with coff_classify_symbol. 1810 * cofflink.c (coff_link_check_ar_symbols): Use 1811 bfd_coff_classify_symbol rather than bfd_coff_sym_is_global. 1812 (coff_link_add_symbols): Likewise. 1813 (_bfd_coff_link_input_bfd): Likewise. 1814 * coff-sh.c (bfd_coff_small_swap_table): Initialize with 1815 coff_classify_symbol. 1816 * libcoff.h: Rebuild. 1817 1818Wed Aug 4 18:08:07 1999 Jeffrey A Law (law@cygnus.com) 1819 1820 * libhppa.h (R_HPPA_LTPSEL, R_HPPA_RTPSEL): New field selectors 1821 (e_ltpsel, e_rtpsel): Similarly. 1822 1823 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle 21bit e_ltpsel 1824 and 14bit ertpsel. Handle 64bit psel. 1825 18261999-08-04 Mark Mitchell <mark@codesourcery.com> 1827 1828 * elf32-mips.c (_bfd_mips_elf_relocate_section): Tweak HI16/LO16 1829 handling for REL relocations. And only left-shift R_MIPS26 1830 relocation addends where necessary. 1831 18321999-08-03 Mark Mitchell <mark@codesourcery.com> 1833 1834 * elf32-mips.c (mips_elf_next_lo16_addend): Rename to ... 1835 (mips_elf_next_lo16_relocation): Don't compute the addend here. 1836 Just return the relocation found. 1837 (mips_elf_relocate_section): Pull the LO16 addend out of the 1838 section itself when using REL relocations. 1839 1840 * elf32-mips.c (mips_elf_calculate_relocation): Restore 1841 _DYNAMIC_LINK handling and handling of undefined symbols in shared 1842 libraries. 1843 18441999-08-03 Ian Lance Taylor <ian@zembu.com> 1845 1846 * elf32-ppc.c (ppc_elf_relocate_section): Don't use the relocation 1847 value of a symbol in a SEC_DEBUGGING section. Warn when doing a 1848 relocation against a symbol in an input section with no output 1849 section. From Daniel Jacobowitz <drow@false.org>. 1850 1851 * coff-stgo32.c (go32_stubbed_coff_object_p): Remove; not used. 1852 1853 * acinclude.m4 (BFD_CC_FOR_BUILD): Change to use conftest, and to 1854 look for generated file correctly. 1855 * aclocal.m4, configure: Rebuild. 1856 18571999-08-02 Mark Mitchell <mark@codesourcery.com> 1858 1859 * elf32-mips.c (_bfd_mips_elf_relocate_section): Handle R_MIPS_26 1860 and R_MIPS16_26 relocations correctly when relocating. 1861 (_bfd_mips_elf_check_relocs): Don't assume that R_MIPS_CALL_HI16 1862 and R_MIPS_CALL_LO16 are for global symbols. 1863 18641999-08-02 Jakub Jelinek <jj@ultra.linux.cz> 1865 1866 * elflink.h (elf_bfd_final_link): Copy the whole isym, not just 1867 some fields. 1868 * elf64-sparc.c (sparc64_elf_output_arch_syms): Declare used 1869 variables and initialize them. 1870 18711999-08-01 Mark Mitchell <mark@codesourcery.com> 1872 1873 * elf32-mips.c (_bfd_mips_elf_final_link): Handle the case where 1874 there are no global symbols requiring GOT entries. 1875 (_bfd_mips_elf_size_dynamic_sections): Likewise. 1876 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. 1877 (_bfd_mips_elf_finish_dynamic_sections): Likewise. 1878 1879 * elf32-mips.c (mips_elf_calculate_relocation): Undefined weak 1880 symbols are considered to have the value zero. 1881 (_bfd_mips_elf_relocate_section): Don't try to perform a 1882 relocation for an undefined symbol. 1883 (_bfd_mips_elf_check_relocs): Allocate locate GOT space for local 1884 GOT16 relocations. 1885 18861999-07-30 Jakub Jelinek <jj@ultra.linux.cz> 1887 1888 * elf64-sparc.c (sparc64_elf_build_plt): Cosmetic change - ABI 1889 wants ba,a,pt %xcc instead of %icc. 1890 Emit correct .PLT0-(.PLTN+4) initial value into the pointer slots 1891 of large PLT entries. 1892 (sparc64_elf_plt_ptr_offset): Fix calculation. 1893 (sparc64_elf_finish_dynamic_symbol): Negative value of R_SPARC_JMP_SLOT 1894 addend should be relative to load address, not .plt section start. 1895 (sparc64_elf_size_info): Sparc64 uses 32bit .hash entries. 1896 18971999-07-30 Jakub Jelinek <jj@ultra.linux.cz> 1898 1899 * elf-bfd.h (struct elf_backend_data): Add 1900 print_symbol_all and output_arch_syms backend methods. 1901 * elfxx-target.h: Likewise. 1902 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create, 1903 sparc64_elf_add_symbol_hook, sparc64_elf_output_arch_syms, 1904 sparc64_elf_get_symbol_type, sparc64_elf_symbol_processing): New 1905 functions. 1906 (sparc64_elf_size_dynamic_sections): Leave space for STT_REGISTER 1907 symbols in .dynsym, add their names into .dynstr. Put those symbols 1908 into dynlocal. 1909 (sparc64_elf_finish_dynamic_sections): Fix up DT_SPARC_REGISTER 1910 pointers to STT_REGISTER symbols in dynsym section. 1911 (sparc64_elf_print_symbol_all): New function. 1912 * elf.c (bfd_elf_print_symbol): Allow special backend symbol 1913 printing using the print_symbol_all hook. 1914 19151999-07-30 Catherine Moore <clm@cygnus.com> 1916 1917 * elf32-arm.h (elf32_arm_check_relocs): Use r_offset for 1918 R_ARM_GNU_VTENTRY. 1919 19201999-07-29 Richard Henderson <rth@cygnus.com> 1921 1922 * elf32-mips.c (_bfd_mips_elf_final_link): Only re-sort dynsyms if 1923 dynamic_sections_created. 1924 19251999-07-29 Richard Henderson <rth@cygnus.com> 1926 1927 * elf32-mips.c (mips_info_to_howto_rel): Split out switch to ... 1928 (mips_rtype_to_howto): ... new function. 1929 (_bfd_mips_elf_relocate_section): Use it. 1930 19311999-07-28 Mark Mitchell <mark@codesourcery.com> 1932 1933 * elf32-mips.c (_bfd_mips_elf_relocate_section): Fix typo. 1934 19351999-07-27 Nick Clifton <nickc@cygnus.com> 1936 1937 Patch generated by Bernd Schmidt. <bernds@cygnus.co.uk> 1938 1939 * coff-arm.c (coff_arm_is_local_label_name): Change to strip 1940 out only symbols that start with LOCAL_LABEL_PREFIX followed by 'L'. 1941 19421999-07-23 Donn Terry <donn@interix.com> 1943 1944 * libcoff-in.h (coff_link_hash_entry): Add coff_link_hash_flags 1945 field, and define COFF_LINK_HASH_PE_SECTION_SYMBOL. 1946 * cofflink.c (coff_link_add_symbols): If PE, handle section 1947 symbols specially. 1948 * libcoff.h: Rebuild. 1949 1950 * config.bfd (i[3456]86-*-interix*): New target. 1951 19521999-07-21 Mark Elbrecht <snowball3@bigfoot.com> 1953 1954 * coffcode.h (styp_to_sec_flags): If COFF_LONG_SECTION_NAMES and 1955 COFF_SUPPORT_GNU_LINKONCE, mark sections whose names begin with 1956 .gnu.linkonce with SEC_LINKONCE and SEC_LINK_DUPLICATES_DISCARD. 1957 * coff-go32.c: (COFF_LONG_SECTION_NAMES): Define. 1958 (COFF_SUPPORT_GNU_LINKONCE): Define. 1959 * coff-stgo32.c: (COFF_LONG_SECTION_NAMES): Define. 1960 (COFF_SUPPORT_GNU_LINKONCE): Define. 1961 19621999-07-21 Ian Lance Taylor <ian@zembu.com> 1963 1964 From Mark Elbrecht: 1965 * makefile.dos: Remove; obsolete. 1966 * configure.bat: Remove; obsolete. 1967 19681999-07-21 H.J. Lu <hjl@gnu.org> 1969 1970 * config.bfd (i[3456]86-*-vxworks*): Add targ_underscore=yes. 1971 19721999-07-21 Philippe De Muyter <phdm@macqel.be> 1973 1974 * cofflink.c (_bfd_coff_generic_relocate_section): Issue an error 1975 message and fail if a symbol index is out of range. 1976 19771999-07-21 Ian Lance Taylor <ian@zembu.com> 1978 1979 * elf32-mips.c (mips_elf_calculate_relocation): Get the GP value 1980 when looking at a R_MIPS_GOT16 relocation. 1981 19821999-07-20 Nick Clifton <nickc@cygnus.com> 1983 1984 * coff-m88k.c: Use CREATE_BIG_COFF_TARGET_VEC. 1985 1986Mon Jul 19 14:03:44 1999 Mark P. Mitchell <mark@codesourcery.com> 1987 1988 * elf32-mips.c (_bfd_mips_elf_final_link): Restore setting of GP 1989 removed in previous change. 1990 (_bfd_mips_elf_relocate_section): Adjust GP relative relocations 1991 in relocateable output. 1992 19931999-07-19 Ian Lance Taylor <ian@zembu.com> 1994 1995 * coff-m88k.c (m88kbcs_vec): Initialize new field of bfd_target 1996 structure. 1997 1998 * elflink.h (elf_merge_symbol): Do merge symbols from the same BFD 1999 if they appear to be specially created by the linker. 2000 20011999-07-19 Nick Clifton <nickc@cygnus.com> 2002 2003 * targets.c (alternative_target): New field in bfd_target 2004 structure. 2005 (bfd_search_for_target): New function: Find a target that 2006 satisifies a search function. 2007 * bfd-in2.h: Regenerate. 2008 2009 * elfxx-target.h: Initialise the alternative_target field of 2010 the bfd_target structures to point to the other target (if 2011 defined). 2012 * nlm-target.h: Initialise the alternative_target field of 2013 the bfd_target structures to point to the other target (if 2014 defined). 2015 2016 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): New macro. 2017 (CREATE_LITTLE_COFF_TARGET_VEC): New macro. 2018 2019 * aix386-core.c: Initialise new field of bfd_target structure. 2020 * aout-adobe.c: Initialise new field of bfd_target structure. 2021 * aout-arm.c: Initialise new field of bfd_target structure. 2022 * aout-target.h: Initialise new field of bfd_target structure. 2023 * aout-tic30.c: Initialise new field of bfd_target structure. 2024 * binary.c: Initialise new field of bfd_target structure. 2025 * bout.c: Initialise new field of bfd_target structure. 2026 * cisco-core.c: Initialise new field of bfd_target structure. 2027 * coff-a29k.c: Use CREATE_BIG_COFF_TARGET_VEC. 2028 * coff-alpha.c: Initialise new field of bfd_target structure. 2029 * coff-apollo.c: Use CREATE_BIG_COFF_TARGET_VEC. 2030 * coff-arm.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC. 2031 * coff-h8300.c: Use CREATE_BIG_COFF_TARGET_VEC. 2032 * coff-h8500.c: Use CREATE_BIG_COFF_TARGET_VEC. 2033 * coff-i386.c: Initialise new field of bfd_target structure. 2034 * coff-i860.c: Initialise new field of bfd_target structure. 2035 * coff-i960.c: Use CREATE_LITTLE_COFF_TARGET_VEC. 2036 * coff-m68k.c: Use CREATE_BIG_COFF_TARGET_VEC. 2037 * coff-mcore.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC. 2038 * coff-mips.c: Initialise new field of bfd_target structure. 2039 * coff-ppc.c: Initialise new field of bfd_target structure. 2040 * coff-rs6000.c: Initialise new field of bfd_target structure. 2041 * coff-sh.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC. 2042 * coff-sparc.c: Use CREATE_BIG_COFF_TARGET_VEC. 2043 * coff-tic30.c: Initialise new field of bfd_target structure. 2044 * coff-tic80.c: Use CREATE_LITTLE_COFF_TARGET_VEC. 2045 * coff-w65.c: Use CREATE_LITTLE_COFF_TARGET_VEC. 2046 * coff-we32k.c: Use CREATE_BIG_COFF_TARGET_VEC. 2047 * coff-z8k.c: Use CREATE_BIG_COFF_TARGET_VEC. 2048 * hppabsd-core.c: Initialise new field of bfd_target structure. 2049 * hpux-core.c: Initialise new field of bfd_target structure. 2050 * i386msdos.c: Initialise new field of bfd_target structure. 2051 * i386os9k.c: Initialise new field of bfd_target structure. 2052 * ieee.c: Initialise new field of bfd_target structure. 2053 * ihex.c: Initialise new field of bfd_target structure. 2054 * irix-core.c: Initialise new field of bfd_target structure. 2055 * mipsbsd.c: Initialise new field of bfd_target structure. 2056 * netbsd-core.c: Initialise new field of bfd_target structure. 2057 * oasys.c: Initialise new field of bfd_target structure. 2058 * osf-core.c: Initialise new field of bfd_target structure. 2059 * ppcboot.c: Initialise new field of bfd_target structure. 2060 * ptrace-core.c: Initialise new field of bfd_target structure. 2061 * sco5-core.c: Initialise new field of bfd_target structure. 2062 * som.c: Initialise new field of bfd_target structure. 2063 * srec.c: Initialise new field of bfd_target structure. 2064 * tekhex.c: Initialise new field of bfd_target structure. 2065 * trad-core.c: Initialise new field of bfd_target structure. 2066 * versados.c: Initialise new field of bfd_target structure. 2067 * vms.c: Initialise new field of bfd_target structure. 2068 20691999-07-19 Andreas Schwab <schwab@suse.de> 2070 2071 * elflink.h (elf_bfd_final_link): Remove unused variables rel_hash 2072 and rel_hdr. 2073 2074Sat Jul 17 02:28:28 1999 Mark P. Mitchell <mark@codesourcery.com> 2075 2076 * elflink.h (elf_link_adjust_relocs): New function. 2077 (elf_bfd_final_link): Use it. 2078 (elf_link_input_bfd): Deal with the fact that there can be 2079 two relocation sections for a single section. 2080 (elf_reloc_link_order): Likewise. 2081 2082 * elf32-mips.c (_bfd_mips_elf_final_link): Don't set GP for 2083 a relocateable object. 2084 (_bfd_mips_elf_relocate_section): Handle relocateable links. 2085 20861999-07-16 Jakub Jelinek <jj@ultra.linux.cz> 2087 2088 * elf64-sparc.c (sparc64_elf_info_to_howto): Use ELF64_R_TYPE_ID. 2089 (sparc64_elf_get_reloc_upper_bound, 2090 sparc64_elf_get_dynamic_reloc_upper_bound, 2091 sparc64_elf_slurp_one_reloc_table, sparc64_elf_slurp_reloc_table, 2092 sparc64_elf_canonicalize_dynamic_reloc, sparc64_elf_write_relocs): 2093 New functions. 2094 (sparc64_elf_check_relocs, sparc64_elf_relocate_section): Use 2095 ELF64_R_TYPE_ID/DATA where appropriate. 2096 20971999-07-16 Jakub Jelinek <jj@ultra.linux.cz> 2098 2099 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Remove 2100 DT_SPARC_PLTFMT. 2101 21021999-07-16 Ian Lance Taylor <ian@zembu.com> 2103 2104 * elf32-mips.c (mips_elf_local_relocation_p): New static 2105 function. 2106 (mips_elf_next_lo16_addend): Call bfd_set_error on failure. 2107 (mips_elf_calculate_relocation): Use mips_elf_local_relocation_p. 2108 Always set *require_jalxp. 2109 (mips_elf_stub_section_p): Mark abfd parameter as unused. 2110 (_bfd_mips_elf_relocate_section): Only look for LO16 following 2111 GOT16 if the GOT16 is against a local symbol. Don't return false 2112 for an undefined symbol. If there is an overflow, assert that we 2113 have a name. 2114 21151999-07-16 Andreas Schwab <schwab@suse.de> 2116 2117 * elflink.h (elf_link_record_local_dynamic_symbol): Remove unused 2118 variables `link' and `elfsec'. 2119 (elf_bfd_final_link): Remove unused variable `os'. 2120 2121Thu Jul 15 17:55:31 1999 Mark P. Mitchell <mark@codesourcery.com> 2122 2123 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Don't require 2124 a PT_PHDR program headers. 2125 (_bfd_mips_elf_final_link): Don't assume there are going to be 2126 section symbols when we're not building a shared object. 2127 (_bfd_mips_elf_check_relocs): Make sure we have a GOT when 2128 we need one. 2129 21301999-07-15 J.T. Conklin <jtc@redback.com> 2131 2132 * config.bfd (i[3456]86-*-vxworks*): New target. 2133 21341999-07-15 Mark Mitchell <mark@codesourcery.com> 2135 2136 * elf32-mips.c (mips_elf_stub_section_p): New function. 2137 (mips_elf_calculate_relocation): Handle MIPS16 stub functions. 2138 (mips_elf_relocate_section): Adjust calling sequence for 2139 mips_elf_calculate_relocation and mips_elf_perform_relocation. 2140 (mips_elf_perform_relocation): Turn `jal' into `jalx' where 2141 required. 2142 21431999-07-15 Ian Lance Taylor <ian@zembu.com> 2144 2145 * configure.in: Bump version number to 2.9.5. 2146 * configure: Rebuild. 2147 2148Thu Jul 15 02:56:15 1999 Jeffrey A Law (law@cygnus.com) 2149 2150 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case R_HPPA): Handle 2151 64bit format. 2152 (_bfd_elf_hppa_gen_reloc_type, case R_GOTOFF): Use base reloc type 2153 to derive final type instead of hardwiring a selection. 2154 21551999-07-14 Mark Mitchell <mark@codesourcery.com> 2156 2157 * elf32-mips.c (mips_elf_obtain_contents): Swap 16-bit halves of 2158 things relocated by R_MIPS16_GPREL. 2159 (mips_elf_perform_relocation): Likewise. 2160 2161Wed Jul 14 15:23:19 1999 Jim Wilson <wilson@cygnus.com> 2162 2163 * elfxx-target.h (elfNN_bed): Add elf_backend_want_dynbss. 2164 21651999-07-14 Richard Henderson <rth@cygnus.com> 2166 2167 * elf32-mips.c (struct mips_got_info): Add global_gotno. 2168 (_bfd_mips_elf_size_dynamic_sections): Set it. 2169 (_bfd_mips_elf_final_link): Re-sort; verify the got did not grow. 2170 (mips_elf_sort_hash_table): Set max_non_got_dynindex based off 2171 new argument max_local. 2172 21731999-07-14 Mark Mitchell <mark@codesourcery.com> 2174 2175 * elf32-mips.c (mips_elf_obtain_contents): Swap the 16-bit 2176 subwords when handling an R_MIPS16_26 relocation. 2177 (mips_elf_perform_relocation): Don't be paranoid abour right-shift 2178 semantics. 2179 2180 * elf32-mips.c (elf_mips16_gprel_howto): Adjust src_mask and 2181 dst_mask to match reality. 2182 (_bfd_mips_elf_calculate_relocation): Handle R_MIPS16_GPREL. 2183 (mips_elf_obtain_contents): Use bfd_get. 2184 (mips_elf_perform_relocation): Handle R_MIPS16_GPREL. 2185 (mips_elf_relocate_section): Likewise. 2186 21871999-07-13 Mark Mitchell <mark@codesourcery.com> 2188 2189 * elf32-mips.c (mips_elf_calculate_relocation): Handle R_MIPS16_26. 2190 (mips_elf_relocate_section): Adjust calling sequence for 2191 mips_elf_perform_relocation. 2192 (mips_elf_perform_relocation): Take additional argument. Handle 2193 R_MIPS16_26. Use bfd_put for convenience. 2194 21951999-07-13 Richard Henderson <rth@cygnus.com> 2196 2197 * elf.c (assign_file_positions_for_segments): Thinko last change. 2198 Always overwrite p_flags. 2199 22001999-07-13 Richard Henderson <rth@cygnus.com> 2201 2202 * elf-bfd.h (struct elf_backend_data): Add want_dynbss. 2203 * elflink.c (_bfd_elf_create_dynamic_sections): Only create 2204 .dynbss and .rel[a].bss if want_dynbss. 2205 * elfxx-target.h (elf_backend_want_dynbss): Provide default. 2206 22071999-07-13 Richard Henderson <rth@cygnus.com> 2208 2209 * elf.c (assign_file_positions_for_segments): Don't overwrite p_flags. 2210 22111999-07-13 Richard Henderson <rth@cygnus.com> 2212 2213 * elf-bfd.h (struct elf_link_local_dynamic_entry): New. 2214 (struct elf_link_hash_table): Add dynlocal. 2215 (_bfd_elf_link_lookup_local_dynindx): Prototype. 2216 (_bfd_elf_link_adjust_dynindx): Delete. 2217 (_bfd_elf_link_renumber_dynsyms): Prototype. 2218 (_bfd_elf,link_record_local_dynamic_symbol): Prototype. 2219 * elfcode.h (elf_link_record_local_dynamic_symbol): New alias. 2220 * elflink.c (_bfd_elf_link_adjust_dynindx): Delete. 2221 (_bfd_elf_link_lookup_local_dynindx): New function. 2222 (elf_link_renumber_hash_table_dynsyms): New function. 2223 (_bfd_elf_link_renumber_dynsyms): New function. 2224 * elflink.h (elf_link_record_local_dynamic_symbol): New function. 2225 (struct elf_assign_sym_version_info): Delete removed_dynamic. 2226 (bfd_elf,size_dynamic_sections): Use _bfd_strip_section_from_output 2227 instead of elf_link_remove_section_and_adjust_dynindices. 2228 Remove removed_dynamic code. Use _bfd_elf_link_renumber_dynsyms. 2229 (elf_link_assign_sym_version): Remove removed_dynamic code. 2230 (elf_link_renumber_dynsyms): Delete. 2231 (elf_bfd_final_link): Install section and local symbols into .dynsym. 2232 2233 * elf32-m68k.c (elf_m68k_adjust_dynindx): Delete. 2234 (elf_m68k_size_dynamic_sections): Don't set section dynindicies. 2235 (elf_m68k_finish_dynamic_sections): Don't write section dynsyms. 2236 * elf32-mips.c: Similarly. 2237 * elf32-ppc.c: Similarly. 2238 * elf32-sparc.c: Similarly. 2239 * elf64-alpha.c: Similarly. 2240 * elf64-sparc.c: Similarly. 2241 22421999-07-13 Mark Mitchell <mark@codesourcery.com> 2243 2244 * elf32-mips.c (mips_elf_calculate_relocation): Do not complain 2245 when _gp_disp is undefined. Do not check R_MIPS_LO16 for overflow 2246 when the relocation is against _gp_disp. 2247 22481999-07-12 Mark Mitchell <mark@codesourcery.com> 2249 2250 * dwarf2.c (read_attribute): Support DW_FORM_ref8. 2251 * elf32-mips.c (mips_elf_link_hash_entry): Change mips_32_relocs 2252 to possibly_dynamic_relocs. Adjust usage throughout code. 2253 (elf_mips_howto_table): Handle R_MIPS_64 correctly. 2254 (elf_mips_ctor64_howto): Likewise. 2255 (mips_elf_calculate_relocation): Handle R_MIPS_64 like R_MIPS_32. 2256 Adjust indentation. 2257 (mips_elf_relocate_section): Handle R_MIPS_64 in 32-bit mode. 2258 (_bfd_mips_elf_check_relocs): Handle R_MIPS_64 like R_MIPS_32. 2259 Use MIPS_ELF_GOT_SIZE to calculate the size of GOT entries. 2260 * elf64-mips.c (elf_backend_may_use_rel_p): Define. 2261 22621999-07-12 Ian Lance Taylor <ian@zembu.com> 2263 2264 * Makefile.am: Rebuild dependencies. 2265 * Makefile.in: Rebuild. 2266 2267 * bfd-in.h: Remove tests of COFF_IMAGE_WITH_PE. 2268 * bfd-in2.h: Rebuild. 2269 2270 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED 2271 as appropriate. Use EMPTY_HOWTO as appropriate. Fill in 2272 structure initializations. Add casts. 2273 * reloc.c (EMPTY_HOWTO): Define. 2274 * bfd-in2.h: Rebuild. 2275 * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless 2276 comparisons against 0. 2277 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change 2278 previous_ibfd_e_flags to unsigned long. 2279 * vms.h (struct vms_private_data_struct): Change section_count to 2280 unsigned. 2281 * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned. 2282 (_bfd_vms_write_gsd): Change symnum to unsigned. 2283 * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned. 2284 * vms-tir.c (etir_sta): Change psect to unsigned. 2285 (alloc_section): Change idx to unsigned. 2286 (tir_sta, tir_ctl): Change psect to unsigned. 2287 (_bfd_vms_write_tir): Change len and before to bfd_size_type. 2288 * vms.c (priv_section_count): Change to unsigned. 2289 22901999-07-12 Andreas Schwab <schwab@suse.de> 2291 2292 * elf32-m68k.c: Add some ATTRIBUTE_UNUSED. 2293 * m68klinux.c: Likewise. 2294 22951999-07-12 Ian Lance Taylor <ian@zembu.com> 2296 2297 * Many files: Changes to avoid gcc warnings: Remove unused local 2298 variables. Add default case to enum switches. 2299 * coff-arm.c (bfd_arm_allocate_interworking_sections): Only 2300 compile if not COFF_IMAGE_WITH_PE. 2301 (record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise. 2302 (bfd_arm_get_bfd_for_interworking): Likewise. 2303 (bfd_arm_process_before_allocation): Likewise. 2304 * epoc-pei-arm.c: Don't rename bfd_arm functions. 2305 * pei-arm.c: Likewise. 2306 * elf32-mips.c (mips_elf_link_hash_table_create): Don't declare. 2307 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change. 2308 (mips_elf_got16_entry): Put parens around & in body of ==. 2309 (mips_elf_calculate_relocation): Correct test for empty string. 2310 * vms-gsd.c: Use _bfd_error_handler rather than fprintf to 2311 stderr. 2312 * vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf 2313 format. 2314 23151999-07-11 Ian Lance Taylor <ian@zembu.com> 2316 2317 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED 2318 as appropriate. Fill in structure initializations. Add variable 2319 initializations. Add casts. 2320 * dwarf1.c (parse_line_table): Change eachLine to unsigned long. 2321 (dwarf1_unit_find_nearest_line): Change i to unsigned long. 2322 2323 * elf.c (bfd_elf_hash): Change parameter from unsigned char * to 2324 char *. 2325 * elf-bfd.h (bfd_elf_hash): Update declaration. 2326 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove casts 2327 when calling bfd_elf_hash. 2328 23291999-07-11 Mark Mitchell <mark@codesourcery.com> 2330 2331 * libbfd.c (bfd_put_8): Make it of type `void'. 2332 * bfd-in2.h: Regenerated. 2333 * elf32-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Conditionalize 2334 for 32-bit hosts. 2335 (_bfd_mips_elf_final_link): Likewise. 2336 2337 * elflink.h (elf_link_read_relocs_from_section): Be type-correct. 2338 2339Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca> 2340 2341 * config.bfd (hppa*-*-linux-gnu*): New target 2342 23431999-07-07 Mark Mitchell <mark@codesourcery.com> 2344 2345 * elf-bfd.h (_bfd_mips_elf_section_from_shdr): Constify. 2346 (_bfd_mips_elf_create_dynamic_sections): New function. 2347 (_bfd_mips_elf_add_symbol_hook): Likewise. 2348 (_bfd_mips_elf_adjust_dynamic_symbol): Likewise. 2349 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. 2350 (_bfd_mips_elf_finish_dynamic_sections): Likewise. 2351 (_bfd_mips_elf_gc_mark_hook): Likewise. 2352 (_bfd_mips_elf_gc_sweep_hook): Likewise. 2353 (_bfd_mips_elf_always_size_sections): Likewise. 2354 (_bfd_mips_elf_size_dynamic_sections): Likewise. 2355 (_bfd_mips_elf_check_relocs): Likewise. 2356 (_bfd_mips_elf_link_hash_table_create): Likewise. 2357 (_bfd_mips_elf_print_private_data): Likewise. 2358 (_bfd_mips_elf_link_output_symbol_hook): Likewise. 2359 (_bfd_mips_elf_final_link): Likewise. 2360 (_bfd_mips_elf_additional_program_headers): Likewise. 2361 (_bfd_mips_elf_modify_segment_map): Likewise. 2362 (_bfd_mips_elf_relocate_section): Likewise. 2363 * elf32-mips.c (mips_elf32_object_p): Move contents into 2364 _bfd_mips_elf_object_p. 2365 (mips_elf_additional_program_headers): Rename to 2366 _bfd_mips_elf_additional_program_headers. 2367 (mips_elf_modify_segment_map): Rename to 2368 _bfd_mips_elf_modify_segment_map. 2369 (elf_mips_abi_name): Change prototype. 2370 (mips_elf32_section_from_shdr): Merge into 2371 _bfd_mips_elf_section_from_shdr. 2372 (mips_elf32_section_processing): Merge into 2373 _bfd_mips_elf_section_processing. 2374 (mips_elf_final_link): Rename to _bfd_mips_elf_final_link. Invoke 2375 the right back-end ELF linker. 2376 (mips_elf_relocate_section): Rename to 2377 _bfd_mips_elf_relocate_section. Clean up. Adjust for 64-bit code. 2378 (mips_elf_link_output_symbol_hook): Rename to 2379 _bfd_mips_elf_link_output_symbol_hook. 2380 (mips_elf_create_dynamic_section): Rename to 2381 _bfd_mips_elf_create_dynamic_section. 2382 (mips_elf_check_relocs): Rename to _bfd_mips_elf_check_relocs. 2383 Adjust for 64-bit code. Use mips_elf_got_section. 2384 (mips_elf_adjust_dynamic_symbol): Rename to 2385 _bfd_mips_elf_adjust_dynamic_symbol. Use 2386 mips_elf_allocate_dynamic_relocations. 2387 (mips_elf_finish_dynamic_symbol): Rename to 2388 _bfd_mips_elf_finish_dynamic_symbol. Use mips_elf_got_section. 2389 Adjust for 64-bit code. 2390 (mips_elf_finish_dynamic_sections): Rename to 2391 _bfd_mips_elf_finish_dynamic_sections. Adjust for 64-bit code. 2392 (mips_elf_always_size_sections): Rename to 2393 _bfd_mips_elf_always_size_sections. 2394 (mips_elf_add_symbol_hook): Rename to 2395 _bfd_mips_elf_add_symbol_hook. 2396 (mips_elf_next_lo16_addend): Constify. 2397 (mips_elf_calculate_relocation): Likewise. 2398 (mips_elf_obtain_contents): Likewise. 2399 (mips_elf_perform_relocation): Likewise. 2400 (mips_elf_create_dynamic_relocation): Likewise. 2401 (mips_elf_allocate_dynamic_relocations): New function. 2402 (MIPS_ELF_REL_DYN_SECTION_NAME): New macro. 2403 (MIPS_ELF_REL_SIZE): Likewise. 2404 (MIPS_ELF_DYN_SIZE): Likewise. 2405 (MIPS_ELF_GOT_SIZE): Likewise. 2406 (MIPS_ELF_SYM_SIZE): Likewise. 2407 (MIPS_ELF_LOG_FILE_ALIGN): Likewise. 2408 (MIPS_ELF_GET_WORD): Likewise. 2409 (MIPS_ELF_PUT_WORD): Likewise. 2410 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise. 2411 (STUB_LW): Conditionalize for 64-bit value. 2412 (elf_mips_howto_table): Add R_MIPS_HIGHER and R_MIPS_HIGHEST 2413 entries. 2414 (_bfd_mips_elf_merge_private_bfd_data): Merge e_ident[EI_CLASS]. 2415 Check it for inconsistency. 2416 (_bfd_mips_elf_print_private_bfd_data): Print ABI=64 for 64-bit 2417 ABI. 2418 (_bfd_mips_elf_fake_sections): Remove duplicate handling of 2419 .msym. 2420 (mips_elf_global_got_index): Use MIPS_ELF_GOT_SIZE. 2421 (mips_elf_got_offset_from_index): Use misp_elf_got_section. 2422 (mips_elf_create_local_got_entry): Use MIPS_ELF_GOT_SIZE. 2423 (mips_elf_local_got_index): Likewise. 2424 (mips_elf_got_page): Likewise. 2425 (mips_elf_got_info): Likewise. 2426 (mips_elf_create_dynamic_relocation): Handle 32-bit/64-bit split. 2427 (ELF_DYNAMIC_INTERPRETER): Handle 64-bit code. 2428 (mips_elf_create_dynamic_sections): Use MIPS_ELF_LOG_FILE_ALIGN, 2429 instead of constant `2'. 2430 (mips_elf_create_got_section): Tidy. Use MIPS_ELF_GOT_SIZE. 2431 (mips_elf_create_msym_section): Use MIPS_ELF_LOG_FILE_ALIGN. 2432 (mips_elf_size_dynamic_sections): Use 2433 MIPS_ELF_REL_DYN_SECTION_NAME, MIPS_ELF_GOT_SIZE, 2434 MIPS_ELF_ADD_DYNAMIC_ENTRY. Remove #if 0'd code. 2435 Adjust all releveant entries in elf backend table. 2436 * elf64-mips.c (mips_elf64_section_from_shdr): Remove. 2437 (mips_elf64_section_processing): Likewise. 2438 Adjust elf backend entries to use _bfd_mips_elf variants now 2439 publicly available. 2440 2441 * elflink.h (elf_link_create_dynamic_sections): Handle non-standard 2442 hash-entry sizes. 2443 (size_dynamic_sections): Likewise. 2444 (elf_link_output_extsym): Likewise. 2445 * elf.c: (elf_fake_sections): Likewise. 2446 * libbfd.c (bfd_get): New macro. 2447 (bfd_put): Likewise. 2448 * bfd-in2.h: Regenerated. 2449 24501999-07-07 Mark Mitchell <mark@codesourcery.com> 2451 2452 * elf-bfd.h (elf_size_info): Add hash_entry_size, 2453 int_rels_per_ext_rel, swap_dyn_out, swap_reloc_in, swap_reloc_out, 2454 wap_reloca_in, and swap_reloca_out. 2455 * elflink.h (elf_link_read_relocs_from_section): Adjust to handle 2456 multiple internal relocations per external relocation. 2457 (link_read_relocs): Likewise. 2458 (elf_bfd_final_link): Likewise. 2459 (elf_link_input_bfd): Likewise. 2460 (elf_gc_mark): Likewise. 2461 (elf_gc_smash_unused_vtentry_relocs): Likewise. 2462 * elfcode.h (elf_swap_dyn_out): Adjust type to match 2463 elf_swap_dyn_in. 2464 (size_info): Add entries for new fields. 2465 * elf64-mips.c (mips_elf64_swap_reloc_out): Enable. 2466 (mips_elf64_be_swap_reloc_in): New function. 2467 (mips_elf64_be_swap_reloc_out): Likewise. 2468 (mips_elf64_be_swap_reloca_in): Likewise. 2469 (mips_elf64_be_swap_reloca_out): Likewise. 2470 (mips_elf64_size_info): Add entries for new fields. 2471 24721999-07-07 Ian Lance Taylor <ian@zembu.com> 2473 2474 * elflink.h (elf_bfd_final_link): Assert that section reloc_count 2475 field equals the new rel_count field. 2476 (elf_link_input_bfd): When doing a relocateable link, use the new 2477 rel_count field rather than the reloc_count field. 2478 (elf_reloc_link_order): Likewise. 2479 (elf_finish_pointer_linker_section): Likewise. 2480 2481 Based on patch from H.J. Lu <hjl@gnu.org>: 2482 * elflink.h (elf_merge_symbol): Permit a non-weak definition in a 2483 shared library to override a weak definition in a regular object. 2484 2485Tue Jul 6 10:23:39 1999 Jeffrey A Law (law@cygnus.com) 2486 2487 * libhppa.h: Revert July 2, 1999 patch. 2488 2489 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): T mode selectors 2490 need to generate DLTIND relocations, not DLTREL relocations. 2491 24921999-07-05 Nick Clifton <nickc@cygnus.com> 2493 2494 * coffcode.h (coff_set_arch_mach_hook): Recognise arm 5 2495 architectures. 2496 (coff_set_flags): Recognise arm 5 architectures. 2497 2498 * cpu-arm.c: Add support for strongarm and arm9 cpus. 2499 Add support for armv5 architecture. 2500 2501 * archures.c: Add bfd_mach_arm_5 and bfd_mach_arm_5T. 2502 2503 * reloc.c: Add new, assembler only, ARM reloc: 2504 BFD_RELOC_ARM_ADRL_IMMEDIATE. 2505 2506 * bfd-in2.h: Regenerate. 2507 25081999-07-02 Mark Mitchell <mark@codesourcery.com> 2509 2510 * dwarf2.c (parse_comp_unit): Add ABBREV_LENGTH parameter. 2511 (_bfd_dwarf2_find_nearest_line): Add ADDR_SIZE parameter. 2512 * elf.c (_bfd_elf_find_nearest_line): Pass it. 2513 * elf32-arm.h (elf32_arm_find_nearest_line): Likewise. 2514 * elf32-mips.c (ABI_64_P): New macro. 2515 (IRIX_COMPAT): We are IRIX6-compatible if ABI_64_P. 2516 (_bfd_mips_elf_find_nearest_line): Adjust call to 2517 _bfd_dwarf2_find_nearest_line. 2518 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype. 2519 * libbfd.h: Regenerated. 2520 25211999-07-02 Ian Lance Taylor <ian@zembu.com> 2522 2523 * config.bfd: Add * at the end of i[3456]86-*-unixware. 2524 2525Fri Jul 2 12:21:10 1999 Jeffrey A Law (law@cygnus.com) 2526 2527 * libhppa.h (HPPA_R_ARG_RELOC): Delete. 2528 (HPPA_R_CONSTANT, HPPA_R_ADDEND): Likewise. 2529 25301999-07-01 Mark Mitchell <mark@codesourcery.com> 2531 2532 * elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2 2533 fields. 2534 (_bfd_elf_init_reloc_shdr): New function. 2535 * elf.c (_bfd_elf_new_section_hook): Use bfd_zalloc, rather than 2536 bfd_alloc followed by memset. 2537 (_bfd_elf_init_reloc_shdr): New function, split out from ... 2538 (elf_fake_sections): Here. 2539 (assign_section_numbers): Assign section numbers for the second 2540 relocation section, if required. 2541 * elflink.h (elf_link_output_relocs): New function. 2542 (elf_link_size_reloc_section): Likewise. 2543 (elf_bfd_final_link): Use elf_link_size_reloc_section. 2544 (elf_link_input_bfd): Use elf_link_output_relocs. 2545 2546 * elf32-mips.c (_bfd_mips_elf_fake_sections): Use 2547 _bfd_elf_init_reloc_shdr to initialize rel_hdr2. 2548 2549Thu Jul 1 13:58:48 1999 Jeffrey A Law (law@cygnus.com) 2550 2551 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle R_PCREL_CALL 2552 with 22bit format. 2553 25541999-06-28 Mark Mitchell <mark@codesourcery.com> 2555 2556 * elf32-mips.c (mips_elf_got_info): Move declaration before 2557 prototypes. Change global_gotsym to be a pointer to a hash entry, 2558 rather than a number index. 2559 (mips_elf_link_hash_entry): Move declaration before prototypes. 2560 (mips_elf_irix6_finish_dynamic_symbol): New function. 2561 (mips_elf_sign_extend): Likewise. 2562 (mips_elf_high): Likewise. 2563 (mips_elf_higher): Likewise. 2564 (mips_elf_highest): Likewise. 2565 (mips_elf_global_got_index): Likewise. 2566 (mips_elf_local_got_index): Likewise. 2567 (mips_elf_got_offset_from_index): Likeiwse. 2568 (mips_elf_record_global_got_symbol): Likewise. 2569 (mips_elf_got_page): Likewise. 2570 (mips_elf_next_lo16_addend): Likewise. 2571 (mips_elf_calculate_relocation): Likewise. 2572 (mips_elf_obtain_contents): Likewise. 2573 (mips_elf_perform_relocation): Likewise. 2574 (mips_elf_assign_gp): Likewise. 2575 (mips_elf_sort_hash_table_f): Likewise. 2576 (mips_elf_sort_hash_table): Likewise. 2577 (mips_elf_got_section): Likewise. 2578 (mips_elf_got_info): Likewise. 2579 (mips_elf_create_local_got_entry): Likewise. 2580 (mips_elf_got16_entry): Likewise. 2581 (mips_elf_create_dynamic_relocation): Likewise. 2582 (elf_mips_howto_table): Add description of R_MIPS_SCN_DISP. 2583 (mips_elf_final_gp): Use mips_elf_assign_gp. 2584 (_bfd_mips_elf_symbol_processing): Don't move SHN_COMMON symbols 2585 into SHN_SCOMMON automatically on IRIX6. 2586 (mips_elf_add_symbol_hook): Likewise. 2587 (mips_elf_relocate_section): Rewrite, using 2588 mips_elf_calculate_relocation and mips_elf_perform_relocation. 2589 (mips_elf_create_dynamic_section): Use MIPS_ELF_STUB_SECTION_NAME. 2590 Don't deal with .rld_map on IRIX6. 2591 (mips_elf_create_got_section): Adjust use of global_gotsym. Set 2592 section flags appropriately for .got. 2593 (mips_elf_check_relocs): Handle IRIX6 relocations making use of 2594 the got. Call mips_elf_record_global_got_symbol and allocate 2595 local got space appropriately. 2596 (mips_elf_size_dynamic_sections): Use bfd_byte *, not unsigned 2597 char *. Rework calculation of GOT size. Sort dynamic symbol 2598 table entries so entries that do not require GOT entries appear at 2599 the beginning. Don't use DT_MIPS_HIPAGENO on IRIX6. Remove dead 2600 code dealing with DT_INIT and DT_FINI. Remove fiddling with 2601 global_gotsym. 2602 (mips_elf_finish_dynamic_symbol): Adjust creation of global GOT 2603 entries. 2604 (mips_elf_finish_dynamic_symbol): Use 2605 mips_elf_irix6_finish_dynamic_symbol. 2606 (mips_elf_finish_dynamic_sections): Correct off-by-one error 2607 setting DT_MIPS_UNREFEXTNO. Adjust setting of DT_MIPS_GOTSYM for 2608 change to global_gotsym. Set DT_MIPS_OPTIONS on IRIX6. 2609 26101999-06-30 Ian Lance Taylor <ian@zembu.com> 2611 2612 * elf32-mips.c (mips_elf_final_link): Don't set CPIC when doing a 2613 relocateable link. From Ralf Baechle <ralf@uni-koblenz.de>. 2614 26151999-06-04 Philip Blundell <philb@gnu.org> 2616 2617 * elf32-arm.h (elf_backend_got_header_size): Define. 2618 (elf_backend_plt_header_size): Likewise. 2619 26201999-06-28 Jim Pick <jim@jimpick.com> 2621 2622 * elf32-arm.h (elf32_arm_relocate_section): Mind no_undefined 2623 2624Tue Jun 29 02:25:03 1999 Jeffrey A Law (law@cygnus.com) 2625 2626 * elf-hppa.c (elf_hppa_howto_table): Use bfd_elf_generic_reloc as 2627 relocation function. 2628 * elf32-hppa.c (hppa_elf_reloc): Kill unused/unwanted function. 2629 26301999-06-27 Mark Mitchell <mark@codesourcery.com> 2631 2632 * elf32-mips.c (MIPS_ELF_SRDATA_SECTION_NAME): New macro. 2633 (MIPS_ELF_OPTIONS_SECTION_NAME): Likewise. 2634 (MIPS_ELF_STUB_SECTION_NAME): Likewise. 2635 (_bfd_mips_elf_section_from_shdr): Use them. 2636 (_bfd_mips_elf_fake_sections): Likewise. Add .srdata to the list 2637 of GP-relative sections. 2638 (_bfd_mips_elf_set_section_contents): Use them. 2639 (_bfd_mips_elf_section_processing): Share code between .sdata and 2640 .lit4/.lit8 sections. Set appropriate flags for .srdata. 2641 (mips_elf_additional_program_headers): Add handling for 2642 PT_MIPS_OPTIONS segment on IRIX6. 2643 (mips_elf_modify_segment_map): Likeiwse. 2644 (mips_elf_final_link): Set EF_MIPS_CPIC when required by the ABI. 2645 Include the options sections on IRIX6. Don't look for GP-relative 2646 sections by name; use SHF_MIPS_GPREL instead. 2647 (ELF_DYNAMIC_INTERPRETER): Adjust to use /usr/lib32/libc.so.1 for 2648 the N32 ABI. 2649 (mips_elf_create_dynamic_sections): Don't muck about with section 2650 alignments and such on IRIX6. 2651 (mips_elf_adjust_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME. 2652 (mips_elf_size_dynamic_sections): Likewise. Adjust to handle the 2653 fact that ELF_DYNAMIC_INTERPRETER is no longer a constant. Use 2654 bfd_zalloc rather than bfd_alloc and memset. 2655 (mips_elf_finish_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME. 2656 Don't assert the existence of .rld_map on IRIX6. 2657 (mips_elf_finish_dynamic_sections): Use MIPS_ELF_STUB_SECTION_NAME. 2658 2659 * elf32-mips.c (mips_elf_adjust_dynindx): Remove. 2660 (mips_elf_size_dynamic_sections): Use _bfd_elf_link_adjust_dynindx 2661 instead. 2662 26631999-06-26 Mark Mitchell <mark@codesourcery.com> 2664 2665 * elf32-mips.c (mips_elf_swap_msym_in): New function. 2666 (mips_elf_swap_msym_out): New function. 2667 (mips_elf_create_msym_section): Likewise. 2668 (MIPS_ELF_MSYM_SECTION_NAME): New macro. 2669 (_bfd_mips_elf_final_write_processing): Set sh_link for .msym. 2670 (_bfd_mips_elf_section_from_shdr): Reject an SHT_MIPS_MSYM 2671 section not named .msym. 2672 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_MSYM_SECTION_NAME, not 2673 .msym directly. Set appropriate attributes for the .msym 2674 section. 2675 (mips_elf_link_hash_entry): Add min_dyn_reloc_index field. 2676 (mips_elf_link_hash_newfunc): Clear it. 2677 (mips_elf_create_dynamic_sections): Create the .msym section 2678 on IRIX6. 2679 (mips_elf_size_dynamic_sections): Allocate space for the 2680 .msym section. Add a DT_MIPS_MSYM entry. 2681 (mips_elf_finish_dynamic_symbol): Write out a .msym entry for 2682 the symbol. 2683 (mips_elf_finish_dynamic_sections): Assign a value for 2684 DT_MIPS_MSYM. Add .msym entries for the section symbols as well. 2685 2686 * elf32-mips.c (irix_compat_t): New enumeration. 2687 (ABI_N32_P): New macro. 2688 (IRIX_COMPAT): Likewise. 2689 (SGI_COMPAT): Implement in terms of IRIX_COMPAT. 2690 (mips_elf_relocate_section): Fix typo. 2691 26921999-06-26 Mumit Khan <khan@xraylith.wisc.edu> 2693 2694 * peicode.h (coff_swap_scnhdr_out): Mark non readonly BFD sections 2695 as writable PE sections. 2696 26971999-06-26 David Mosberger <davidm@hpl.hp.com> 2698 2699 * dwarf2.c (struct arange): New type. 2700 (struct comp_unit): Replace LOW and HIGH by member ARANGE. 2701 (arange_add): New function. 2702 (decode_line_info): Keep track of address ranges that a compilation 2703 unit covers. 2704 (comp_unit_contains_address): Return true if address is contained 2705 in _any_ of the address ranges associated with a compilation unit. 2706 (_bfd_dwarf2_find_nearest_line): Call comp_unit_find_nearest_line 2707 on the first comp_unit that contains the address. 2708 27091999-06-26 David Mosberger <davidm@hpl.hp.com> 2710 2711 * dwarf2.c (struct dwarf2_debug): Add member dwarf_line_buffer. 2712 (decode_line_info): Add variable STASH and initialize it to point 2713 to the per-bfd dwarf2_debug info. Remove static variable 2714 dwarf_line_buffer and use stash->dwarf_line_buffer in its place. 2715 27161999-06-26 Ian Lance Taylor <ian@zembu.com> 2717 2718 * elflink.h (elf_link_output_extsym): It's OK for a -Bsymbolic 2719 shared library to have an undefined symbol. 2720 2721 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>: 2722 * elf32-ppc.c (ppc_elf_relocate_section): Fix last patch. 2723 2724Thu Jun 24 20:59:11 1999 Jeffrey A Law (law@cygnus.com) 2725 2726 * elf-hppa.c (elf_hppa_final_write_processing): New function. 2727 * elf32-hppa.c: Remove everything related to symbol extension 2728 sections & records. Use the common elf_hppa_final_write_processing. 2729 27301999-06-22 Mark Mitchell <mark@codesourcery.com> 2731 2732 * elflink.h (size_dynamic_sections): Use user-specified init/fini 2733 functions instead of _init/_fini if requested. 2734 27351999-06-23 Ian Lance Taylor <ian@zembu.com> 2736 2737 * elf.c (bfd_section_from_shdr): Avoid crashing on a bogus sh_link 2738 field. 2739 27401999-06-22 Ian Lance Taylor <ian@zembu.com> 2741 2742 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>: 2743 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set unused dynindx 2744 field to 0, not -1. 2745 (ppc_elf_finish_dynamic_sections): Check for positive section 2746 dynindx field, rather than comparing against -1. 2747 (ppc_elf_relocate_section): Only return false if undefined_symbol 2748 or reloc_overflow fail, not always upon encountering an error. 2749 27501999-06-22 Mark Mitchell <mark@codesourcery.com> 2751 2752 * elflink.h (link_read_relocs): Explicitly cast external_relocs to 2753 bfd_byte * before performing pointer arithmetic. 2754 2755Tue Jun 22 13:06:25 1999 Jeffrey A Law (law@cygnus.com) 2756 2757 * elf-hppa.h: New file. Common stuff for elf32 and elf64 PA 2758 support. 2759 * elf32-hppa.c: Include elf-hppa.h. 2760 (ARCH_SIZE): Define. 2761 (elf_hppa_reloc_type_lookup): Delete. Found in the common code 2762 now. 2763 (elf32_hppa_info_to_howto): Similarly. 2764 (elf_hppa_howto_table): Similarly. 2765 (elf_hppa_reloc_type_lookup): Similarly. 2766 (hppa_elf_gen_reloc_type): Similarly. 2767 * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete. 2768 27691999-06-22 Nick Clifton <nickc@cygnus.com> 2770 2771 * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow 2772 handling R_V850_22_PCREL relocation. 2773 27741999-06-21 Ian Lance Taylor <ian@zembu.com> 2775 2776 * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return 2777 type. 2778 2779Sun Jun 20 14:13:57 1999 Richard Henderson <rth@cygnus.com> 2780 2781 * section.c (_bfd_strip_section_from_output): Ignore sections 2782 DISCARDed by the link script. 2783 27841999-06-19 Ian Lance Taylor <ian@zembu.com> 2785 2786 * elflink.h (elf_link_remove_section_and_adjust_dynindices): 2787 Remove unused local variable spp. 2788 2789 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if 2790 the entry symbol is not set. 2791 2792Fri Jun 18 04:24:57 1999 Richard Henderson <rth@cygnus.com> 2793 2794 * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust 2795 GPDISP or LITUSE in a relocatable link. 2796 2797Thu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk> 2798 2799 * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc. 2800 * (alloc_dwarf1_func): Likewise. 2801 2802Wed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com) 2803 2804 * libhppa.h: Fix various formatting errors. 2805 (assemble_3); Rewrite using CATENATE. 2806 (assemble_17): Fix various bugs. 2807 28081999-06-16 Nick Clifton <nickc@cygnus.com> 2809 2810 * elf32-mcore.c (R_MCORE_RAW): Fix definition. 2811 28121999-06-15 Richard Henderson <rth@cygnus.com> 2813 2814 * section.c (SEC_SHORT): Define. 2815 * bfd-in2.h: Rebuild. 2816 28171999-06-13 Mark Mitchell <mark@codesourcery.com> 2818 2819 * elflink.h (elf_link_remove_section_and_adjust_dynindices): 2820 Remove abfd parameter. Use _bfd_strip_section_from_output. 2821 (bfd_elf_size_dynamic_sections): Adjust callers accordingly. 2822 2823 * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function. 2824 * elflink.c (_bfd_elf_link_adjust_dynindx): Define it. 2825 * elflink.h (elf_link_remove_section_and_adjust_dynindices): New 2826 function. 2827 (bfd_elf_size_dynamic_sections): Use it. 2828 28291999-06-13 Alan Modra <alan@spri.levels.unisa.edu.au> 2830 2831 * elf32-i386.c (elf_howto_table): Change R_386_PC8 from 2832 complain_overflow_bitfield to complain_overflow_signed. 2833 28341999-06-13 Mark Mitchell <mark@codesourcery.com> 2835 2836 * elflink.h (elf_link_read_relocs_from_section): New function, 2837 split out from ... 2838 (elf_link_read_relocs): Here. Use it for both relocation 2839 sections. 2840 28411999-06-12 Mark Mitchell <mark@codesourcery.com> 2842 2843 * elfcode.h (elf_slurp_reloc_table_from_section): Don't assume 2844 asect->reloc_count is valid. 2845 28461999-06-12 Ian Lance Taylor <ian@zembu.com> 2847 2848 * elf32-mips.c (mips_elf32_section_processing): Permit a 2849 SHT_MIPS_REGINFO section to have a size of 0. 2850 28511999-06-12 David O'Brien <obrien@freebsd.org> 2852 2853 * config.bfd (alpha*-*-freebsd*): New target. 2854 (i[3456]86-*-freebsd*): Now defaults to ELF. 2855 28561999-06-11 Ian Lance Taylor <ian@zembu.com> 2857 2858 * reloc.c (_bfd_relocate_contents): Permit bitfield relocations to 2859 wrap if the relocation covers the high bit of an address. 2860 2861 * dwarf2.c (decode_line_info): Remove unused variable first_time. 2862 28631999-06-10 Jakub Jelinek <jj@ultra.linux.cz> 2864 2865 * elf64_sparc.c (sparc64_elf_relocate_section): Use R_SPARC_max_std 2866 instead of R_SPARC_max. 2867 (sparc64_elf_info_to_howto): Likewise. 2868 * elf32_sparc.c (elf32_sparc_relocate_section): Likewise. 2869 (elf32_sparc_info_to_howto): Likewise; handle vtable relocations. 2870 28711999-06-07 Richard Henderson <rth@cygnus.com> 2872 2873 * section.c (_bfd_strip_section_from_output): Remove output 2874 sections with no initial link_order. 2875 28761999-06-07 Nick Clifton <nickc@cygnus.com> 2877 2878 * elf32-m88k.c (ELF_MAXPAGESIZE): Define. 2879 2880Mon Jun 7 11:49:43 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 2881 2882 * Makefile.am (SOURCE_HFILES): Add missing headers. 2883 * Makefile.in: Regenerated. 2884 28851999-06-06 Mark Mitchell <mark@codesourcery.com> 2886 2887 * elf32-mips.c (_bfd_mips_elf_print_private_data): Recognize 2888 the N32 ABI. 2889 28901999-06-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 2891 2892 * elf32-ppc.c (ppc_elf_relocate_section): Don't barf on out of 2893 range undefweak symbols. 2894 * hash.c: Add missing comma after @xref{} 2895 * linker.c: Likewise. 2896 28971999-06-04 Nick Clifton <nickc@cygnus.com> 2898 2899 * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message 2900 if not defined. 2901 * elf32-gen.c (ELF_MAXPAGESIZE): Define. 2902 * elf32-i860.c (ELF_MAXPAGESIZE): Define. 2903 * elf32-i960.c (ELF_MAXPAGESIZE): Define. 2904 * elf64-gen.c (ELF_MAXPAGESIZE): Define. 2905 29061999-06-04 Ian Lance Taylor <ian@zembu.com> 2907 2908 * Makefile.am: Rebuild dependencies. 2909 (BFD32_BACKENDS): Add dwarf1.lo. 2910 (BFD32_BACKENDS_CFILES): Add dwarf1.c. 2911 * Makefile.in: Rebuild. 2912 29131999-06-04 Nick Clifton <nickc@cygnus.com> 2914 2915 * Makefile.am: Add epoc-arm-pe target. 2916 * Makefile.in: Regenerate. 2917 * pe-arm.c: Only redefine interworking function names if they have 2918 not already been redefined. 2919 * pei-arm.c: Only redefine interworking function names if they have 2920 not already been redefined. 2921 * epoc-pe-arm.c: Redefine interworking function names to avoid a 2922 name space clash. 2923 * epoc-pei-arm.c: Redefine interworking function names to avoid a 2924 name space clash. 2925 29261999-06-03 Nick Clifton <nickc@cygnus.com> 2927 2928 * elfxx-target.h (ELF_MAXPAGESIZE): Default to 0x1000 not 1. 2929 2930Fri Jun 4 10:05:11 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 2931 2932 * elf.c (elf_fake_sections): Undo change of 1999-05-10. 2933 2934Fri Jun 4 03:10:49 1999 J"orn Rennecke <amylaar@cygnus.co.uk> 2935 2936 * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of 2937 start / stop for recalculating of r_addend of R_SH_SWITCH*. 2938 2939Fri Jun 4 02:53:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk> 2940 2941 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH32 2942 in other text sections. 2943 2944Fri Jun 4 02:29:34 1999 J"orn Rennecke <amylaar@cygnus.co.uk> 2945 2946 * libbfd.c (_bfd_generic_verify_endian_match): New function. 2947 * libbfd-in.h (_bfd_generic_verify_endian_match): Declare. 2948 * libbfd.h: Regenerate. 2949 * coff-sh.c (sh_merge_private_data): Delete. 2950 (coff_bfd_merge_private_bfd_data): Change to 2951 _bfd_generic_verify_endian_match. 2952 (elf32-sh.c): bfd_elf32_bfd_merge_private_bfd_data: Define. 2953 29541999-06-03 Ulrich Drepper <drepper@cygnus.com> 2955 2956 * elf32-arm.h: Fix typo: change ELF_MAXPAGE_SIZE to ELF_MAXPAGESIZE. 2957 29581999-06-03 Ian Lance Taylor <ian@zembu.com> 2959 2960 * bfd-in.h (bfd_elf32_arm_allocate_interworking_sections): Correct 2961 prototype. 2962 (bfd_elf32_arm_process_before_allocation): Likewise. 2963 * bfd-in2.h: Rebuild. 2964 29651999-06-03 David Mosberger <davidm@hpl.hp.com> 2966 2967 * dwarf2.c (struct line_info): Add member END_SEQUENCE to keep 2968 track of end_sequence markers. 2969 (add_line_info): Add END_SEQUENCE arg. 2970 (decode_line_info): Don't try to infer lo_pc and hi_pc from the 2971 debug-line info---it doesn't work right if a compilation unit 2972 consists of multiple discontiguous code-sequences. It would be 2973 worthwhile to optimize for the common case where a compilation 2974 unit results in a contiguous set of code sequences, but this is 2975 quite tricky to get right for arbitrary DWARF2 files. 2976 (lookup_address_in_line_info_table): Don't use the last line entry 2977 for a compilation unit for anything with an address higher than 2978 this line entry. Also, check for end_sequence markers to 2979 correctly handle discontinuities. 2980 (_bfd_dwarf2_find_nearest_line): When checking previously loaded 2981 compilation units, check all compilation units with each->high==0 2982 just like when reading compilation units. 2983 2984 * dwarf2.c (decode_line_info): Initialize table->files and 2985 table->last_line to NULL to avoid segfaults due to random 2986 values in these members. 2987 (concat_filename): Check for out-of-range file number before 2988 indexing filename table. Segfaults suck. 2989 2990 * dwarf2.c (decode_line_info): Don't truncate address to least 2991 significant 32 bits (breaks 64 bit targets). 2992 (lookup_address_in_function_table): Ditto. 2993 (comp_unit_contains_address): Ditto. 2994 29951999-06-02 Mark Mitchell <Mark Mitchell <mark@codesourcery.com>> 2996 2997 * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR. 2998 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise. 2999 (mips_elf64_howto_table_rela): Likewise. 3000 3001 * elfcode.h (elf_slurp_reloc_table_from_section): New function, 3002 split out from ... 3003 (elf_slurp_reloc_table): Here. Use it to handle the case where a 3004 single section has two associated relocation sections. 3005 30061999-06-02 Mark Salter <msalter@cygnus.com> 3007 3008 * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if 3009 COFF_WITH_PE defined. 3010 30111999-06-02 Nick Clifton <nickc@cygnus.com> 3012 3013 * pe-arm.c: Rename global arm interworking functions to avoid name 3014 collision when all targets BFD is built. 3015 * pei-arm.c: Ditto. 3016 30171999-05-31 Mark Mitchell <mark@codesourcery.com> 3018 3019 * elf-bfd.h (elf_backend_data): Remove use_rela_p. Add 3020 may_use_rel_p, may_use_rela_p, default_use_rela_p. 3021 (bfd_elf_section_data): Add use_rela_p. 3022 * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately. 3023 (_bfd_elf_new_section_hook): Likewise. 3024 (elf_fake_sections): Use may_use_rela_p, etc., instead of 3025 use_rela_p. 3026 (_bfd_elf_copy_private_section_data): Copy use_rela_p. 3027 * elfcode.h (write_relocs): Determine whether or not use rela 3028 relocs based on the relocation section header. 3029 * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p 3030 instead of use_rela_p. 3031 * elfxx-target.h (elf_backend_may_use_relp): New macro. 3032 (elf_backend_may_use_rela_p): Likewise. 3033 (elf_backend_default_use_rela_p): Likewise. 3034 (elfNN_bed): Use them. 3035 3036Wed Jun 2 12:38:49 1999 Miodrag Vallat <miodrag@multimania.com> 3037 3038 * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096. 3039 3040Tue Jun 1 17:57:58 1999 Mark P. Mitchell <mitchell@n02.acl.lanl.gov> 3041 3042 * reloc.c (BFD_RELOC_MIPS_SUB): New relocation. 3043 (BFD_RELOC_MIPS_GOT_PAGE): Likewise. 3044 (BFD_RELOC_MIPS_GOT_OFST): Likewise. 3045 (BFD_RELOC_MIPS_GOT_DISP): Likewise. 3046 * bfd-in2.h: Regenerated. 3047 * libbfd.h: Likewise. 3048 * elf32-mips.c (mips_info_to_howto_rela): New function. 3049 (USE_REL): Adjust for new conventions. 3050 (MINUS_ONE): New macro. 3051 (elf_mips_howto_table): Add R_MIPS_SUB. 3052 (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST, 3053 and MIPS_GOT_DISP. 3054 (mips_elf_final_write_processing): Set sh_link, not sh_info, for a 3055 .MIPS.content section. 3056 (_bfd_mips_elf_fake_sections): Treat all sections that begin 3057 with .MIPS.content as .MIPS.content sections. Set 3058 SHF_MNIPS_NOSTRIP for such section. 3059 (elf_info_to_howto): Define to mips_info_to_howto_rela. 3060 * elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, 3061 MIPS_GOT_OFST, and MIPS_GOT_DISP. 3062 3063Wed Jun 2 11:51:12 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 3064 3065 * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized 3066 variable. 3067 3068 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous 3069 `else'. 3070 30711999-05-30 Philip Blundell <philb@gnu.org> 3072 3073 * elf32-arm.h (elf32_arm_relocate_section): Reinstate change of 3074 1993-03-25 (!!). Take into account the bitmasks for the reloc so 3075 the addend does not overflow into the rest of the word. 3076 30771999-05-29 Nick Clifton <nickc@cygnus.com> 3078 3079 * bfd-in.h: Amend prototype for 3080 bfd_elf32_arm_process_before_allocation . 3081 * bfd-in.h: Regenerate. 3082 3083 * elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of 3084 elements in a fixed sized array. 3085 (ARM_ELF_ABI_VERSION): Define. 3086 (ARM_ELF_OS_ABI_VERSION): Define. 3087 (R_ARM_THM_ABS5): Fix rightshift and size. 3088 (R_ARM_THM_PC22): Fix size. 3089 (R_ARM_PLT32): Define Howto. 3090 (find_howto): New function: Locate a howto based on a reloc 3091 number. 3092 (elf32_arm_info_to_howto): Use find_howto if necessary. 3093 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to 3094 bfd_reloc_code_real_type. 3095 (elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT 3096 and BFD_RELOC_VTABLE_ENTRY. 3097 (elf32_arm_reloc_type_lookup): Use find_howto if necessary. 3098 3099 * elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of 3100 elements in a fixed sized array. 3101 (ARM_ELF_ABI_VERSION): Define. 3102 (ARM_ELF_OS_ABI_VERSION): Define. 3103 (R_ARM_THM_ABS5): Fix rightshift and size. 3104 (R_ARM_THM_PC22): Fix size. 3105 (elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto. 3106 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to 3107 bfd_reloc_code_real_type. 3108 3109 * elf32-arm.h (struct elf32_arm_link_hash_table): Add new field: 3110 no_pipeline_knowledge. 3111 (elf32_arm_link_hash_create): Initialise new field to zero. 3112 (bfd_elf32_arm_process_before_allocation): Add new paraemter: 3113 no_pipeline_knowledge. Use this parameter to initialise the field 3114 in the globals data structure. 3115 (elf32_arm_final_link_relocate): Only add in pipeline offset if 3116 no_pipeline_knowledge is false and the binary is from an old 3117 toolchain. 3118 (elf32_arm_merge_private_data): Generate an error if an attempt is 3119 made to linl together big endian and little endian code. 3120 (elf32_arm_post_process_headers): New function: Initialise the 3121 EI_OSABI and EI_ABIVERSION fields of the newly created ELF program 3122 header. 3123 (elf_backend_post_process_headers): Define. 3124 31251999-05-28 Nick Clifton <nickc@cygnus.com> 3126 3127 * elf-bfd.h (struct elf_backend_data): Add new field: 3128 elf_backend_post_process_headers. 3129 3130 * elfxx-target.h (elf_backend_post_process_headers): Define to 3131 NULL if not already defined. 3132 (elfNN_bed): Initialise elf_backend_post_process_headers field. 3133 3134 * elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields 3135 to zero. 3136 (_bfd_elf_compute_section_file_positions): Call 3137 elf_backend_post_process_headers if defined. 3138 31391999-05-28 Ian Lance Taylor <ian@zembu.com> 3140 3141 * configure.in: Check whether getuid and getgid exist. 3142 * archive.c: Define getuid and getgid as macros if HAVE_GETUID or 3143 HAVE_GETGID are not defined, respectively. 3144 (bfd_write_armap): Don't special case on _WIN32 for getuid and 3145 getgid. 3146 * configure.host: Set ac_cv_func_get{ug}id for *-*-windows*. 3147 * configure, config.in: Rebuild. 3148 31491999-05-28 Martin Dorey <mdorey@madge.com> 3150 3151 * elf32-i960.c: New file. 3152 * elf.c (prep_headers): Handle bfd_arch_i960. 3153 * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec. 3154 * config.bfd (i960-*-elf*): New target. 3155 * configure.in (bfd_elf32_i960_vec): New target vector. 3156 * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo. 3157 (BFD32_BACKENDS_CFILES): Add elf32-i960.c. 3158 * Makefile.in, aclocal.m4, configure: Rebuild. 3159 31601999-05-27 Nick Clifton <nickc@cygnus.com> 3161 3162 * elfarm-oabi.c (elf32_arm_howto_table): Add entry for 3163 R_ARM_PLT32. 3164 (find_howto): New function: Find entries in the 3165 elf32_arm_howto_table. 3166 (elf32_arm_info_to_howto): Use find_howto if the entry cannot be 3167 computed simply. 3168 (elf32_arm_reloc_type_lookup): Add lookup for 3169 BFD_RELOC_ARM_PLT32. 3170 31711999-05-25 Philip Blundell <pb@nexus.co.uk> 3172 3173 * bfd/elf32-arm.h (elf32_arm_link_hash_newfunc): New function. 3174 (elf32_arm_link_hash_table_create): Use above function as the 3175 constructor for hash table entries. 3176 (elf32_arm_relocate_section): Avoid crash when there is no output 3177 section. 3178 (elf32_arm_final_link_relocate): New parameter h. 3179 (elf32_arm_relocate_section): Pass symbol hash entry to above 3180 routine. 3181 (elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct 3182 comments. 3183 31841999-05-25 Catherine Moore <clm@cygnus.com> 3185 3186 * coff-arm.c (coff_arm_relocate_section): Don't emit 3187 base file entries for pc-relative values. 3188 31891999-05-25 DJ Delorie <dj@cygnus.com> 3190 3191 * peicode.h (coff_swap_sym_in): When we create the actual section 3192 to reflect the not-there section C_SECTION symbols refer to, 3193 change the symbol class to C_STAT as the section is now really 3194 there. 3195 31961999-05-24 Philip Blundell <pb@nexus.co.uk> 3197 3198 * elf32-arm.h (elf32_arm_relocate_section): Undo change of 3199 1999-03-25. 3200 3201Mon May 17 13:35:35 1999 Stan Cox <scox@cygnus.com> 3202 3203 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed 3204 F_PIC_INT to F_PIC. 3205 * coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and 3206 F_ARM_3M labels. Changed F_PIC_INT to F_PIC. 3207 32081999-05-16 Nick Clifton <nickc@cygnus.com> 3209 3210 * coff-mcore.c (in_reloc_p): Reinstate. 3211 32121999-05-15 Nick Clifton <nickc@cygnus.com> 3213 3214 * reloc.c (BFD_RELOC_MCORE_RVA): Define. 3215 * bfd-in2.h: Regenerate. 3216 * coff-mcore.c (in_reloc_p): Remove defintion. 3217 (mcore_coff_howto): Add IMAGE_REL_MCORE_RVA. 3218 (mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to 3219 IMAGE_REL_MCORE_RVA. 3220 (coff_mcore_rtype_to_howto): Add special processing for 3221 IMAGE_REL_MCORE_RVA. 3222 (coff_mcore_relocate_section): Add support for 3223 IMAGE_REL_MCORE_RVA. 3224 * elf32-mcore (mcore_elf_howto_): Add R_MCORE_RELATIVE. 3225 (mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to 3226 R_MCORE_RELATIVE. 3227 (mcore_elf_relocate_section): Delete redundant case labels. 3228 3229Fri May 14 10:59:55 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 3230 3231 * elf32-arm.h (elf32_arm_relocate_section): Fix operator 3232 precedence between bit-and and comparison. 3233 3234Thu May 13 09:45:23 1999 Joel Sherrill (joel@OARcorp.com) 3235 3236 * config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to 3237 list of target formats (targ_selvecs). 3238 (i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets. 3239 (powerpcle*-*rtems*, sh-*-rtemself*): New targets. 3240 32411999-05-10 DJ Delorie <dj@cygnus.com> 3242 3243 * ecoff.c (_bfd_ecoff_write_armap): give the symtab element a 3244 reasonable mode until "ar x" is smart enough to skip it (fixes 3245 gcc/libgcc.a builds on mips-ecoff targets 3246 3247 * coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed 3248 to work. Hack to support MS import libraries, which use different 3249 COMDAT types than GNU. 3250 (coff_slurp_symbol_table): C_SECTION symbols are local; they refer 3251 to implied zero-length sections (see peicode below) 3252 * coffgen.c (coff_get_normalized_symtab): Properly read long MS 3253 filename symbols, which use one *or more* auxents. 3254 * coffswap.h (coff_swap_aux_in): ditto 3255 * peicode.h (coff_swap_sym_in): Build the implied zero-length 3256 sections 3257 3258Tue May 11 15:51:58 1999 Jeffrey A Law (law@cygnus.com) 3259 3260 * elf32-v850.c (v850_elf_howto_table): Make partial_inplace false 3261 for all relocations. 3262 32631999-05-10 Catherine Moore <clm@cygnus.com> 3264 3265 * bfd-in.h (bfd_arm_allocate_interworking_sections): Static 3266 if COFF_IMAGE_WITH_PE. 3267 (bfd_arm_process_before_allocation): Likewise. 3268 (bfd_arm_get_bfd_for_interworking): Likewise. 3269 * coff-arm.c: Likewise. 3270 * bfd-in2.h: Regenerate. 3271 * configure.in (armpe_little_vec): Remove coff-arm.lo. 3272 (armpe_big_vec): Likewise. 3273 * configure: Rebuild. 3274 32751999-05-10 Nick Clifton <nickc@cygnus.com> 3276 3277 * elf.c (elf_fake_sections): Check for .rel. as start of rel 3278 section, not just .rel. Same for .rela. 3279 32801999-05-07 Nick Clifton <nickc@cygnus.com> 3281 3282 * coff-mcore.c (coff_mcore_relocate_section): Replace assert about 3283 endianism with an error message. 3284 3285Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com> 3286 3287 * dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer 3288 assignment from "unsigned char *" to "char *". 3289 (decode_line_info): Likewise for dwarf_line_buffer assignment. 3290 32911999-05-05 Catherine Moore <clm@cygnus.com> 3292 3293 * coff-arm.c (coff_arm_relocate_section): Add one to 3294 address of ARM_RVA32 thumb functions. 3295 32961999-05-05 Catherine Moore <clm@cygnus.com> 3297 3298 * elf32-m68k.c (elf32_m68k_set_private_flags): New. 3299 (elf32_m68k_copy_private_bfd_data): New. 3300 (elf32_m68k_merge_private_bfd_data): New. 3301 (elf32_m68k_print_private_bfd_data): New. 3302 (CPU32_FLAG): Define. 3303 (PLT_CPU32_ENTRY_SIZE): Define. 3304 (elf_cpu32_plt0_entry): Declare. 3305 (elf_cpu32_plt_entry): Declare. 3306 (elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries. 3307 (elf_m68k_finish_dynamic_symbol): Likewise. 3308 (elf_m68k_finish_dynamic_sections): Likewise. 3309 (elf_backend_plt_header_size): Remove definition. 3310 (bfd_elf32_bfd_copy_private_bfd_data): Define. 3311 (bfd_elf32_bfd_merge_private_bfd_data): Define. 3312 (bfd_elf32_bfd_set_private_flags): Define. 3313 (bfd_elf32_bfd_print_private_bfd_data): Define. 3314 3315Mon May 3 09:24:49 1999 Jeffrey A Law (law@cygnus.com) 3316 3317 * som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE 3318 and R_LONG_PCREL_MODE. 3319 33201999-04-29 Nick Clifton <nickc@cygnus.com> 3321 3322 * coff-mcore.c (coff_mcore_relocate_section): Fix typos. 3323 3324Fri Apr 28 16:36:19 1999 Stan Cox <scox@cygnus.com> 3325 3326 * elf32-sh.c (sh_elf_relocate_section): Include relocation addend 3327 in relocation calculation. 3328 33291999-04-26 Tom Tromey <tromey@cygnus.com> 3330 3331 * aclocal.m4, configure: Updated for new version of libtool. 3332 33331999-04-21 Nick Clifton <nickc@cygnus.com> 3334 3335 * coff-mcore.c: Add support for mcore relocs. 3336 33371999-04-20 Gavin Romig-Koch <gavin@cygnus.com> 3338 3339 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): Scrap the 3340 incorrect use EF_MIPS_xxBITPTRS. 3341 33421999-04-18 Ian Lance Taylor <ian@zembu.com> 3343 3344 * elf64-alpha.c (elf64_alpha_relax_section): Remove unused local 3345 variable insn. 3346 3347 * bfd-in2.h: Rebuild. 3348 * libbfd.h: Rebuild. 3349 3350Sat Apr 17 20:55:15 1999 Catherine Moore <clm@cygnus.com> 3351 3352 * coff-arm.c (coff_arm_rtype_to_howto): Remove ARM26D transform. 3353 (coff_arm_relocate_section): Add ARM26D transform. Only 3354 change to ARM26D for relocateable links. 3355 33561999-04-16 Gavin Romig-Koch <gavin@cygnus.com> 3357 3358 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): New. 3359 (bfd_elf32_bfd_print_private_bfd_data): New. 3360 33611999-04-15 Doug Evans <devans@casey.cygnus.com> 3362 3363 * elf32-arm.h (elf32_arm_final_link_relocate): For R_ARM_THM_ABS5, 3364 refetch addend if USE_REL, add many comments regarding current state. 3365 For R_ARM_THM_PC22, refetch addend if USE_REL, simplify. 3366 * elfarm-nabi.c (elf32_arm_howto_table): For R_ARM_THM_ABS5, fix 3367 size and rightshift. For R_ARM_THM_PC22, fix bitsize. 3368 * elfarm-oabi.c (elf32_arm_howto_table): Ditto. 3369 3370Wed Apr 14 14:33:08 1999 Richard Henderson <rth@cygnus.com> 3371 3372 * elf32-mips.c (_bfd_mips_elf_read_ecoff_info): Zero `debug'. 3373 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Likewise. 3374 33751999-04-13 David Mosberger <davidm@hpl.hp.com> 3376 3377 * dwarf2.c (decode_line_info): Don't truncate address to least 3378 significant 32 bits (breaks 64 bit targets). 3379 (lookup_address_in_function_table): Ditto. 3380 (comp_unit_contains_address): Ditto. 3381 3382Tue Apr 13 21:27:19 1999 Catherine Moore <clm@cygnus.com> 3383 3384 * coff-arm.c (arm_emit_base_file_entry): New routine. 3385 (A2T3_OFFSET): Define. 3386 (T2A3_OFFSET): Define. 3387 (coff_arm_relocate_section): Emit base file entries for interworking 3388 stubs. 3389 33901999-04-13 Philip Blundell <philb@gnu.org> 3391 3392 * elfarm-nabi.c (elf32_arm_howto_table): Add dummy entries for 3393 relocs 17 through 19. 3394 3395Sun Apr 11 01:25:17 1999 Richard Henderson <rth@cygnus.com> 3396 3397 * elfcode.h: Remove fnmatch.h. 3398 * elflink.h (elf_link_assign_sym_version): Call back to ld 3399 instead of calling fnmatch. 3400 3401 * config.bfd (i?86-*-beoself): Include pe vecs. 3402 3403Sun Apr 11 01:14:06 1999 Richard Henderson <rth@cygnus.com> 3404 3405 * elf32-i386.c (elf_i386_finish_dynamic_sections): Allow .plt 3406 to go missing. 3407 34081999-04-10 Richard Henderson <rth@cygnus.com> 3409 3410 * elf32-i386.c (elf_i386_relocate_section): Mind no_undefined 3411 when trying to resolve dynamic symbol references. 3412 * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 3413 * elf32-mips.c (mips_elf_relocate_section): Likewise. 3414 * elf32-ppc.c (ppc_elf_relocate_section): Likewise. 3415 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 3416 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. 3417 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. 3418 * elflink.h (elf_link_output_extsym): Likewise. 3419 3420Sat Apr 10 15:12:09 1999 Richard Henderson <rth@cygnus.com> 3421 3422 * section.c (_bfd_strip_section_from_output): New function moved from 3423 * elf64-alpha.c (elf64_alpha_strip_section_from_output): ... here. 3424 * elf32-i386.c (elf_i386_size_dynamic_sections): Use it. 3425 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. 3426 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise. 3427 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. 3428 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. 3429 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise. 3430 * bfd-in2.h: Update. 3431 34321999-04-09 Ian Lance Taylor <ian@zembu.com> 3433 3434 * elf64-sparc.c: Fix incorrect calls to bfd_check_overflow. 3435 34361999-04-08 Nick Clifton <nickc@cygnus.com> 3437 3438 * coff-mcore.c: New File: Support for mcore-pe targets. 3439 * cpu-mcore.c: New File: Support for mcore targets. 3440 * elf32-mcore.c: New File: Support for mcore-elf target. 3441 * pe-mcore.c: New File: Definitions for mcore-pe target. 3442 * pei-mcore.c: New File: Definitions for mcore-pei target. 3443 * Makefile.am: Add support for MCore targets. 3444 * Makefile.in: Regenerate. 3445 * config.bfd: Add support for MCore targets. 3446 * configure.in: Add support for MCore targets. 3447 * configure: Regenerate. 3448 * archures.c: Add support for MCore architecture. 3449 * bfd-in2.h: Regenerate. 3450 * coffcode.h: Add support for mcore-pe targets. 3451 * elf.c: Add support for mcore-elf target. 3452 * reloc.c: Add support for MCore relocs. 3453 * targets.c: Add support for MCore targets. 3454 34551999-04-07 Nick Clifton <nickc@cygnus.com> 3456 3457 * elfarm-nabi.c (elf32_arm_howto_table): Add entries for 3458 R_ARM_XPC25 and R_ARM_THM_XPC22. 3459 (elf32_arm_reloc_map): Remove redundant entries. 3460 34611999-04-06 Ian Lance Taylor <ian@zembu.com> 3462 3463 * sysdep.h (LC_MESSAGES): Never define. 3464 34651999-04-06 Chris Torek <torek@bsdi.com> 3466 3467 * reloc.c (bfd_check_overflow): Add addrsize parameter. Change 3468 all callers. Rewrite completely. 3469 (_bfd_relocate_contents): Rewrite overflow checking. 3470 * bfd-in2.h: Rebuild. 3471 34721999-04-05 Ian Lance Taylor <ian@zembu.com> 3473 3474 From Gabriel Paubert <paubert@iram.es>: 3475 * elf32-ppc.c (ppc_elf_howto_raw): Set R_PPC_GOT16_LO, 3476 R_PPC_PLT16_LO and R_PPC_SECTOFF_LO to be complain_overflow_dont. 3477 Set R_PPC_PLT16_HA, R_PPC_SECTOFF_HA and R_PPC_EMB_NADDR16_HA to 3478 have a rightshift of 16 and use ppc_elf_addr16_ha_reloc. 3479 * ppcboot.c (ppcboot_vec): Use little endian routines for 3480 headers. 3481 3482 * elf.c (elfcore_strndup): Only define if it will be used. 3483 * elf32-ppc.c (ppc_elf_relax_section): Remove unused locals irel 3484 and irelend. 3485 (ppc_elf_check_relocs): Remove unused local i. 3486 (ppc_elf_gc_mark_hook): Add default case to switch. 3487 3488 From Bernd Nitzler <nitzler@kagcpd01.ag01.kodak.COM>: 3489 * srec.c (srec_scan): Accept \r in symbol definitions. 3490 (srec_object_p): Set HAS_SYMS if we saw any symbols. 3491 (symbolsrec_object_p): Likewise. 3492 34931999-04-04 Don Bowman <don@pixsci.com> 3494 3495 * config.bfd: Add mips*el-*-vxworks* and mips*-*-vxworks*. 3496 34971999-04-04 Ian Lance Taylor <ian@zembu.com> 3498 3499 * dwarf1.c (parse_line_table): Remove unused locals last_pc and 3500 last_line. 3501 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Declare. 3502 * elf32-i386.c (elf_i386_gc_mark_hook): Add default case to 3503 switch. 3504 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove unused 3505 local i. 3506 * syms.c (_bfd_stab_section_find_nearest_line): Remove unused 3507 local val. 3508 35091999-03-31 Nick Clifton <nickc@cygnus.com> 3510 3511 * config.bfd: Add support for arm-epoc-pe target. 3512 * configure.in: Add support for arm-epoc-pe target. 3513 * configure: Regenerate. 3514 * targets.c: Add support for arm-epoc-pe target. 3515 * coff-arm.c: Allow header files to override definition of 3516 TARGET_UNDERSCORE and USER_LABEL_PREFIX. 3517 * pe-arm.h: Allow previous header files to override definition of 3518 TARGET_LITTLE_SYM and TARGET_BIG_SYM. 3519 * pei-arm.h: Allow previous header files to override definition of 3520 TARGET_LITTLE_SYM and TARGET_BIG_SYM. 3521 * epoc-pe-arm.c: New file. Support arm-epoc-pe target. 3522 * epoc-pei-arm.c: New file. Support arm-epoc-pei target. 3523 35241999-03-30 Nick Clifton <nickc@cygnus.com> 3525 3526 * elf.c (elf_map_symbols): Handle the case where section 3527 symbols are generated for content-less sections which are 3528 not mapped to the output file. 3529 3530 * linker.c: Replace direct references to fields in BFD structure 3531 with accessor macros. 3532 3533 * elflink.h: Replace direct references to fields in BFD structure 3534 with accessor macros. 3535 35361999-03-25 Philip Blundell <pb@nexus.co.uk> 3537 3538 * config.bfd: Eliminate redundancy in checks for Linux/ARM. 3539 3540 * elf32-arm.h (elf32_arm_relocate_section): Take the rightshift into 3541 account when adjusting section symbols during a partial link. 3542 35431999-03-24 Nick Clifton <nickc@cygnus.com> 3544 3545 * coff-sparc.c (struct coff_reloc_map): Change type of field 3546 'bfd_reloc_val' to bfd_reloc_code_real_type. 3547 * elf-m10200.c (struct mn10200_reloc_map): Ditto. 3548 * elf-m10300.c (struct mn10300_reloc_map): Ditto. 3549 * elf32-arc.c (struct arc_reloc_map): Ditto. 3550 * elf32-d10v.c (struct d10v_reloc_map): Ditto. 3551 * elf32-d30v.c (struct d30v_reloc_map): Ditto. 3552 * elf32-fr30.c (struct fr30_reloc_map): Ditto. 3553 * elf32-m32r.c (struct m32r_reloc_map): Ditto. 3554 * elf32-sh.c (struct elf_reloc_map): Ditto. 3555 * elf32-sparc.c (struct elf_reloc_map): Ditto. 3556 * elf32-v850.c (struct v850_reloc_map): Ditto. 3557 * elf64-sparc.c (struct elf_reloc_map): Ditto. 3558 * elfarm-nabi.c (struct elf32_arm_reloc_map): Ditto. 3559 * elfarm-oabi.c (struct elf32_arm_reloc_map): Ditto. 3560 35611999-03-17 Martin Hunt <hunt@cygnus.com> 3562 3563 * syms.c (_bfd_stab_section_find_nearest_line): Changed this 3564 function so source-level assembly works. If multiple N_SOs 3565 are seen without and N_FUNs, create an indextable entry with 3566 a NULL function name. 3567 35681999-03-16 Gavin Romig-Koch <gavin@cygnus.com> 3569 3570 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data) Allow merging 3571 of certian similar cpus. 3572 35731999-03-16 Gavin Romig-Koch <gavin@cygnus.com> 3574 3575 * elf32-mips.c (_bfd_mips_elf_final_write_processing): 3576 Add the 5000. Change the architecture for the 5400 to mips4. 3577 (elf_mips_mach): Add r5000. 3578 35791999-03-11 Doug Evans <devans@casey.cygnus.com> 3580 3581 * cpu-i960.c (scan_i960_mach): Recognize i960:ka_sa and i960:kb_sb. 3582 35831999-03-11 Nick Clifton <nickc@cygnus.com> 3584 3585 * binary.c (binary_set_section_contents): Generate warning about 3586 huge file offsets for any section that will occupy file space, not 3587 just those that are loadable. 3588 35891999-02-24 Jim Blandy <jimb@zwingli.cygnus.com> 3590 3591 * libbfd.h: Regenerate after Nick Clifton's Feb 17 changes. 3592 35931999-02-22 Jim Lemke <jlemke@cygnus.com> 3594 3595 * elf32-ppc.c: Add ppc_elf_relax_section() for the ld option mpc860c0. 3596 3597Mon Feb 22 18:26:51 1999 Ian Lance Taylor <ian@cygnus.com> 3598 3599 * elf-bfd.h (ELF_LINK_HASH_REF_REGULAR_NONWEAK): Define. 3600 * elflink.h: Revert all changes since Feb 16. Instead: 3601 (elf_link_add_object_symbols): Set REF_REGULAR_NONWEAK flag if 3602 appropriate. Copy it to version symbols. 3603 (elf_fix_symbol_flags): Set REF_REGULAR_NONWEAK for non ELF 3604 symbols if appropriate. 3605 (elf_adjust_dynamic_symbol): Set REF_REGULAR_NONWEAK for weakdef 3606 symbol if appropriate. 3607 (elf_link_output_extsym): If symbol is marked as undefined, and 3608 has no nonweak references, mark it as weak undefined. 3609 3610Fri Feb 19 16:01:12 1999 Ian Lance Taylor <ian@cygnus.com> 3611 3612 * elflink.h (elf_merge_symbol): When overriding a dynamic 3613 definition with a weak undefined symbol, set NEEDS_PLT if it is a 3614 function. 3615 (elf_link_add_object_symbols): Don't copy the other field if we 3616 are overridding. 3617 3618Thu Feb 18 18:07:43 1999 Ian Lance Taylor <ian@cygnus.com> 3619 3620 * elflink.h (elf_merge_symbol): Do not merge any symbol from a 3621 shared object with a weak undefined symbol. 3622 36231999-02-18 Nick Clifton <nickc@cygnus.com> 3624 3625 * elfarm-nabi.c: Set partial_inplace back to false. 3626 36271999-02-17 Nick Clifton <nickc@cygnus.com> 3628 3629 * coff-arm.c (TARGET_UNDERSCORE): Re-enable. 3630 (USER_LABEL_PREFIX): Set to "_". 3631 3632 The following patches are from: Scott Bambrough 3633 <scottb@corelcomputer.com> 3634 3635 * libaout.h (M_ARM6_NETBSD): Set to 143. 3636 3637 * reloc.c: Add ARM PIC relocs: BFD_RELOC_ARM_GOT12, 3638 BFD_RELOC_ARM_GOT32, BFD_RELOC_ARM_JUMP_SLOT, BFD_RELOC_ARM_COPY, 3639 BFD_RELOC_ARM_GLOB_DAT, BFD_RELOC_ARM_PLT32, 3640 BFD_RELOC_ARM_RELATIVE, BFD_RELOC_ARM_GOTOFF, BFD_RELOC_ARM_GOTPC. 3641 * bfd-in2.h: Regenerate. 3642 3643 * elfarm-nabi.c (elf32_arm_howto_table): Set partial_inplace to 3644 'true' as REL relocs are now being used. Add new PIC relocs: 3645 R_ARM_COPY, R_ARM_GLOB_DAT, R_ARM_JUMP_SLOT, R_ARM_RELATIVE, 3646 R_ARM_GOTOFF, R_ARM_GOTPC, R_ARM_GOT32, R_ARM_PLT32. 3647 3648 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Check byte order 3649 of targets. 3650 (elf32_arm_final_link_relocate): Change parameters so that entire 3651 reloc is passed. Add support for PIC relocs. 3652 (elf32_arm_relocate_section): Pass entire reloc to 3653 elf32_arm_final_link_relocate. 3654 (elf32_arm_check_relocs): Handle new PIC relocs. 3655 (elf32_arm_adjust_dynamic_symbol): New function. 3656 (elf32_arm_size_dynamic_sections): New function. 3657 (elf32_arm_discard_copies): New function. 3658 (elf32_arm_finish_dynamic_symbol): New function. 3659 (elf32_arm_finish_dynamic_sections): New function. 3660 (ELF_MAXPAGE_SIZE): Define. 3661 (bfd_elf32_bfd_reloc_type_lookup): Define. 3662 (elf_backend_relocate_section): Define. 3663 (elf_backend_adjust_dynamic_symbol): Define. 3664 (elf_backend_create_dynamic_sections): Define. 3665 (elf_backend_finish_dynamic_symbol): Define. 3666 (elf_backend_finish_dynamic_sections): Define. 3667 (elf_backend_size_dynamic_sections): Define. 3668 (elf_backend_plt_readonly): Define. 3669 (elf_backend_want_got_plt): Define. 3670 (elf_backend_want_plt_sym): Define. 3671 3672Wed Feb 17 12:02:26 1999 Stan Cox <scox@cygnus.com> 3673 3674 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Make reginfo 3675 sections SEC_LINK_ONCE and SEC_LINK_DUPLICATES_SAME_SIZE. 3676 (_bfd_mips_elf_fake_sections): Likewise. 3677 3678Wed Feb 17 12:07:23 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 3679 3680 * elfarm-oabi.c (bfd_elf32_arm_allocate_interworking_sections, 3681 bfd_elf32_arm_get_bfd_for_interworking, 3682 bfd_elf32_arm_process_before_allocation): Define to avoid clash 3683 with elfarm-nabi.c. 3684 3685 * elf32-arm.h: Don't declare elf32_arm_info_to_howto. 3686 (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub, 3687 elf32_arm_find_nearest_line): Make them static. 3688 3689Tue Feb 16 22:44:37 1999 Ian Lance Taylor <ian@cygnus.com> 3690 3691 * elflink.h (elf_merge_symbol): Add pflags parameter. Change all 3692 callers. Do not merge a definition from a shared object with a 3693 weak undefined symbol. 3694 (elf_link_add_object_symbols): Do not change the symbol type or 3695 size if the old symbol overrides the new one. 3696 36971999-02-08 Nick Clifton <nickc@cygnus.com> 3698 3699 * config.bfd: Add support for strongarm target. 3700 3701Mon Feb 8 11:18:14 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 3702 3703 * elf32-m68k.c (reloc_map): Use the correct types for the struct 3704 fields instead of unsigned char. 3705 3706Fri Feb 5 00:22:36 1999 Ian Lance Taylor <ian@cygnus.com> 3707 3708 * Makefile.am: Rebuild dependencies. 3709 * Makefile.in: Rebuild. 3710 3711Thu Feb 4 22:30:13 1999 Ian Lance Taylor <ian@cygnus.com> 3712 3713 * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32. 3714 Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to 3715 AC_PROG_INSTALL. Add comments to uses of AC_DEFINE. 3716 * acinclude.m4: Add comments to uses of AC_DEFINE. 3717 * acconfig.h: Remove. 3718 * configure: Rebuild with current autoconf/automake. 3719 * aclocal.m4: Likewise. 3720 * config.in: Likewise. 3721 * Makefile.in: Likewise. 3722 37231999-02-04 DJ Delorie <dj@cygnus.com> 3724 3725 * libbfd.c (real_read): don't call fread for zero bytes. This 3726 covers up a bug (or misuse of bfd) that's exposed by Solaris. 3727 3728Thu Feb 4 12:38:10 1999 Stan Cox <scox@cygnus.com> 3729 3730 * elf32-mips.c (mips_elf_relocate_section): Insure that the target 3731 of a jump is in the current 256 MB region. 3732 3733Thu Feb 4 12:15:38 1999 Ian Lance Taylor <ian@cygnus.com> 3734 3735 * format.c (bfd_check_format_matches): Change last patch to only 3736 take effect for the binary target. 3737 3738Wed Feb 3 19:40:12 1999 Ian Lance Taylor <ian@cygnus.com> 3739 3740 * elf32-i386.c (elf_i386_reloc_type_lookup): Add BFD_RELOC_CTOR. 3741 3742Wed Feb 3 15:02:44 1999 Catherine Moore <clm@cygnus.com> 3743 3744 * elf32-fr30.c (fr30_elf_check_relocs): New routine. 3745 3746Tue Feb 2 21:38:28 1999 Ian Lance Taylor <ian@cygnus.com> 3747 3748 * format.c (bfd_check_format_matches): If the target was 3749 previously specified, don't check other targets when checking for 3750 an archive file. 3751 3752Tue Feb 2 18:16:43 1999 Catherine Moore <clm@cygnus.com> 3753 3754 * elf32-arm.h (elf32_arm_reloc_map): Removed. 3755 (elf32_arm_reloc_type_lookup): Removed 3756 * elfarm-nabi.c (elf32_arm_reloc_map): New. 3757 (elf32_arm_reloc_type_lookup): New. 3758 * elfarm-oabi.c (elf32_arm_reloc_map): New. 3759 (elf32_arm_reloc_type_lookup): New. 3760 3761Mon Feb 1 19:49:21 1999 Catherine Moore <clm@cygnus.com> 3762 3763 * elfarm-nabi.c: Renamed from elf32-arm-newabi.c. 3764 * elfarm-oabi.c: Renamed from elf32-arm-oldabi.c 3765 * Makefile.am: Use new files. 3766 * Makefile.in: Regenerate. 3767 * configure.in: Use new files. 3768 * configure: Regenerate. 3769 37701999-02-01 Nick Clifton <nickc@cygnus.com> 3771 3772 * elf32-fr30.c (fr30_elf_gc_mark_hook): New function. 3773 (fr30_elf_gc_sweep_hook): New function. 3774 (elf_backend_can_gc_sections): Define. 3775 3776Mon Feb 1 12:21:47 1999 Catherine Moore <clm@cygnus.com> 3777 3778 * targets.c (bfd_target_vector): Add bfd_elf32_littlearm_oabi_vec 3779 and bfd_elf32_bigarm_oabi_vec. 3780 3781Mon Feb 1 11:46:31 1999 Catherine Moore <clm@cygnus.com> 3782 3783 * Makefile.am (elf32-arm-oldabi.lo): New. 3784 (elf32-arm-newabi.lo): New. 3785 * Makefile.in: Regenerate. 3786 * config.bfd (thumb-*-elf): Remove definition of targ_underscore. 3787 (arm-*-elf): Likewise. 3788 (arm-*-oabi): New. 3789 (thumb-*-oabi): New. 3790 * configure: Regenerate. 3791 * configure.in (bfd_elf32_littlearm_oabi_vec): New. 3792 (bfd_elf32_bigarm_oabi_vec): New. 3793 * elf32-arm-newabi.c: New. 3794 * elf32-arm-oldabi.c: New. 3795 * elf32-arm.c: Removed. 3796 * elf32-arm.h: New. 3797 3798Mon Feb 1 11:52:12 1999 Frank Ch. Eigler <fche@cygnus.com> 3799 3800 * binary.c (binary_set_section_contents): Omit warnings for 3801 unloadable sections. 3802 38031999-01-31 Michael Meissner <meissner@cygnus.com> 3804 3805 * config.bfd (powerpc{,le}-*-vxworks*): Add aliases to 3806 powerpc{,le}-*-eabi. 3807 38081999-01-29 Nick Clifton <nickc@cygnus.com> 3809 3810 * dwarf2.c (read_unsigned_leb128): Remove unused variables. 3811 * dwarf2.c (read_signed_leb128): Remove unused variables. 3812 3813Fri Jan 29 00:47:21 1999 H.J. Lu <hjl@gnu.org> 3814 3815 * elf.c (assign_file_positions_for_segments): Only adjust 3816 p_align when needed. 3817 3818Thu Jan 28 20:05:22 1999 Ian Lance Taylor <ian@cygnus.com> 3819 3820 * binary.c (binary_set_section_contents): Don't return early for a 3821 non-loadable section, in case the first section is non-loadable. 3822 Don't set the low lma for a SEC_NEVER_LOAD section. From Maciej 3823 W. Rozycki <macro@ds2.pg.gda.pl>. 3824 38251999-01-28 Nick Clifton <nickc@cygnus.com> 3826 3827 * elf32-fr30.c (fr30_reloc_map): Add R_FR30_GNU_VTINHERIT and 3828 R_FR30_GNU_VTENTRY relocs. 3829 3830Thu Jan 28 11:08:16 1999 Catherine Moore <clm@cygnus.com> 3831 3832 * elflink.h (elf_link_output_sym): Zero syms which are 3833 part of sections which have been excluded. 3834 3835Wed Jan 27 13:35:35 1999 Stan Cox <scox@cygnus.com> 3836 3837 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC 3838 to F_PIC_INT. 3839 * coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and 3840 F_ARM_3M labels. Changed F_PIC to F_PIC_INT. 3841 38421999-01-27 Nick Clifton <nickc@cygnus.com> 3843 3844 * elf32-fr30.c (fr30_elf_howto_table): Fix name of R_FR30_48 3845 relocation. 3846 (fr30_final_link_relocate): Use computed value as result of 3847 relocation. 3848 38491999-01-26 Frank Ch. Eigler <fche@cygnus.com> 3850 3851 * binary.c (binary_set_section_contents): Emit warning for 3852 huge file offsets due to widely-dispersed section LMAs. 3853 3854Mon Jan 18 03:35:35 1999 Ian Lance Taylor <ian@cygnus.com> 3855 3856 * elf.c (assign_file_positions_for_segments): If not D_PAGED, 3857 align first section to largest section alignment, not first 3858 section alignment. 3859 38601999-01-04 Jason Molenda (jsm@bugshack.cygnus.com) 3861 3862 * configure.in: Require autoconf 2.12.1 or higher. 3863 3864Tue Dec 22 15:21:41 1998 Catherine Moore <clm@cygnus.com> 3865 3866 * archures.c (bfd_mach_i386_i386_intel_syntax): Define. 3867 * bfd-in2.h: Likewise. 3868 * cpu-i386.c (bfd_i386_arch_intel_syntax): New. 3869 38701998-12-16 Gavin Romig-Koch <gavin@cygnus.com> 3871 3872 * archures.c,bfd-in2.h (bfd_mach_mips4111): New. 3873 * cpu-mips.c: Add support for and independent 4111. 3874 * elf32-mips.c (elf_mips_mach): E_MIPS_MACH_4111 -> bfd_mach_mips4111. 3875 (_bfd_mips_elf_final_write_processing): 3876 bfd_mach_mips4111 -> E_MIPS_ARCH_3 | E_MIPS_MACH_4111. 3877 38781998-12-15 Gavin Romig-Koch <gavin@cygnus.com> 3879 3880 * elf32-mips.c (elf_mips_abi_name): New. 3881 (_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags. 3882 38831998-12-12 Gavin Romig-Koch <gavin@cygnus.com> 3884 3885 * elf32-mips.c (_bfd_mips_elf_final_write_processing): 3886 Handle bfd_mach_mips4300. 3887 38881998-12-11 Ulrich Drepper <drepper@cygnus.com> 3889 3890 * elf32-i386.c: Remove leaked development code from patch 3891 1998-12-10 by Richard Henderson. 3892 38931998-12-10 Richard Henderson <rth@cygnus.com> 3894 3895 * elf32-i386.c (elf_i386_relocate_section): Don't fail relocations 3896 in debug sections for symbol defined externally. 3897 3898Thu Dec 10 10:58:38 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 3899 3900 * targets.c (bfd_target_vector): Remove duplicate entry for 3901 tekhex_vec. 3902 39031998-12-09 Nick Clifton <nickc@cygnus.com> 3904 3905 * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0 3906 since we are using RELAs. 3907 3908Tue Dec 8 22:15:48 1998 Ian Lance Taylor <ian@cygnus.com> 3909 3910 SCO Open Server Release 5 core file support, from Jouke Numan 3911 <jnuman@hiscom.nl>: 3912 * sco5-core.c: New file. 3913 * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo. 3914 (sco5-core.lo): Define SCO5_CORE in COREFLAG. 3915 * Makefile.am: Rebuild dependencies. 3916 (OPTIONAL_BACKENDS): Add sco5-core.lo. 3917 (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c. 3918 * bfd.c (struct _bfd): Add sco5_core_data field to tdata. 3919 * targets.c (sco5_core_vec): Add to target list if SCO5_CORE. 3920 * bfd-in2.h, configure, Makefile.in: Rebuild. 3921 3922Tue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com> 3923 3924 * config.bfd (hppa*-*-mpeix*): New target. 3925 * configure.in: Add AC_HEADER_DIRENT. 3926 (hppa*-*-mpeix*): New target. 3927 * configure.host (hppa*-*-mpeix*): New host. 3928 * hpux-core.c: Check HOST_HPPAMPEIX. Use HAVE_DIRENT_H and 3929 friends rather than just including <sys/dir.h>. 3930 * som.h (struct som_symbol): Add hppa_priv_level and apto 3931 tc_data. Change all users. 3932 (struct somdata): Add comp_unit field. 3933 (obj_som_compilation_unit): Define. 3934 (bfd_som_attach_compilation_unix): Declare. 3935 * som.c: Check HOST_HPPAMPEIX. 3936 (struct som_misc_symbol_info): Add new field priv_level. 3937 (som_object_setup): Add current_offset parameter. Change all 3938 callers. 3939 (setup_sections): Likewise. 3940 (som_object_p): For EXECLIBMAGIC, read the lst header. 3941 (som_write_symbol_strings): Add compilation_unit parameter. 3942 Change all callers. 3943 (som_finish_writing): Write out compilation_unit. 3944 (som_bfd_derive_misc_symbol_info): Set priv_level. 3945 (som_build_and_write_symbol_table): Set xleast field to 3. 3946 (som_slurp_symbol_table): Set symbol priv_level. 3947 (bfd_som_attach_compilation_unit): New function. 3948 (som_bfd_ar_write_symbol_stuff): Set xleast field to 3. Set 3949 priv_level into symbol_value. 3950 * configure, config.in: Rebuild. 3951 3952Tue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com> 3953 3954 * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent 3955 warning function to call _bfd_error_handler instead. 3956 3957 * libbfd.c (COERCE32): Cast through unsigned long and long to 3958 avoid bug in old version of gcc. 3959 3960 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove. 3961 (elf_backend_additional_program_headers): Don't define. 3962 39631998-12-08 Nick Clifton <nickc@cygnus.com> 3964 3965 * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative 3966 relocations to include offset of 2 included in the insns, and the 3967 offset of the relocs within the section. 3968 3969Wed Dec 2 15:03:59 1998 David Taylor <taylor@texas.cygnus.com> 3970 3971 The following changes were made by David Taylor 3972 <taylor@texas.cygnus.com>, Edith Epstein 3973 <eepstein@sophia.cygnus.com>, Jim Blandy 3974 <jimb@zwingli.cygnus.com>, and Elena Zannoni 3975 <ezannoni@kwikemart.cygnus.com> as part of the project to merge in 3976 changes originally made by HP; HP did not create ChangeLog 3977 entries. 3978 3979 * aclocal.m4, configure, Makefile.in: Rebuilt using latest 3980 automake macro library. 3981 3982 * hpux-core.c (hpux_core_core_file_p): this function now 3983 understands HPUX 10.30 thread info. Yes, the thread stacks can be 3984 found in the corefile! Also, in hpux_core_core_file_p, if we 3985 encounter a section with an unknown type, don't punt. Instead, 3986 just skip it. Also, count the number of sections of known type 3987 that we encounter. If we encounter at least one good one, then 3988 we'll declare that the file is a core file. If we encounter any 3989 unknown ones but some known ones, then we'll issue a warning (but 3990 still declare it to be a core file). Also, correctly decide when a 3991 file is not a core. 3992 (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined. 3993 (CORE_ANON_SHMEM): define if not defined. 3994 (hpux_core_struct): add members lwpid and user_tid. 3995 (core_kernel_thread_id, core_user_thread_id): new macros. 3996 (make_bfd_asection): use bfd_alloc to allocate room for a copy of 3997 the name before storing it in the bfd. 3998 (hpux_core_core_file_p): handle threads. 3999 4000 * libhppa.h (GET_FIELD): protect against redefinition. 4001 (HPPA_WIDE): define. 4002 (GET_FIELD): define. 4003 (GET_BIT): define. 4004 (MASK): define. 4005 (CATENATE): define. 4006 (ELEVEN): define. 4007 (sign_extend): redefine. 4008 (assemble_6): define. 4009 (assemble_12): rewrite. 4010 (assemble_16): define. 4011 (assemble_16a): define. 4012 (assemble_17): rewrite. 4013 (assemble_22): define. 4014 40151998-12-07 Nick Clifton <nickc@cygnus.com> 4016 4017 * elf32-fr30.c (fr30_final_link_relocate): Using signed 4018 relocations for signed values. 4019 4020Sun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com> 4021 4022 * mipsbsd.c (MY(set_arch_mach)): Make static. 4023 * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use 4024 bfd_mach_mips* macros rather than simple numbers. 4025 4026 COFF weak symbol support, based on patches from Mark Elbrecht 4027 <snowball3@usa.net>: 4028 * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT. 4029 * coffgen.c (coff_renumber_symbols): Handle weak symbols. 4030 (coff_write_alien_symbol): Likewise. 4031 * cofflink.c (coff_link_check_ar_symbols): Likewise. 4032 (coff_link_add_symbols): Likewise. 4033 (_bfd_coff_link_input_bfd): Likewise. 4034 (_bfd_coff_write_global_sym): Likewise. 4035 4036 * elf.c (copy_private_bfd_data): Always initialize the 4037 includes_phdrs field. 4038 4039 * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF 4040 file defines a symbol first mentioned in an ELF file. 4041 4042 * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if 4043 possible, rather than only if BFD64. 4044 * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT, 4045 not __GNUC__. 4046 * bfd-in2.h: Rebuild. 4047 4048 * srec.c (srec_set_section_contents): Correct test to avoid 4049 switching to 4 byte addresses after seeing a second section which 4050 requires 3 byte addresses. From Joel Schantz 4051 <joel.schantz@argosys.boeing.com>. 4052 4053 * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent 4054 <aymeric.vincent@emi.u-bordeaux.fr>. 4055 40561998-12-04 Jim Blandy <jimb@zwingli.cygnus.com> 4057 4058 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to 4059 decide whether the output file is -mrelocatable-lib, 4060 -mrelocatable, or neither. (gdb.base/nodebug.exp) 4061 40621998-12-03 Nick Clifton <nickc@cygnus.com> 4063 4064 * elf32-fr30.c: Add support for R_FR30_48 reloc. 4065 * reloc.c: Add BFD_RELOC_FR30_48 relocation. 4066 * bfd-in2.h: Regenerate. 4067 * libbfd.h: Regenerate 4068 4069Wed Dec 2 00:58:37 1998 Ian Lance Taylor <ian@cygnus.com> 4070 4071 * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to 4072 link against a dynamic symbol with no type or size. 4073 40741998-12-01 Ulrich Drepper <drepper@cygnus.com> 4075 4076 * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit 4077 relocation for section which does not get loaded. 4078 (elf_i386_relocate_section) [R_386_32]: Likewise. 4079 4080Tue Dec 1 11:33:33 1998 Jim Wilson <wilson@cygnus.com> 4081 4082 * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size, 4083 reloc_count and i long instead of unsigned long. Handle error 4084 return from bfd_canonicalize_reloc. 4085 40861998-12-01 Nick Clifton <nickc@cygnus.com> 4087 4088 * elf32-v850.c (v850_elf_relocate_section): Detect the absence of 4089 a hash table. 4090 4091Mon Nov 30 15:28:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk> 4092 4093 * elf32-sh.c (elf/sh.h): Include. 4094 sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type. 4095 (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8. 4096 (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8. 4097 (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8. 4098 * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h. 4099 4100Fri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au> 4101 4102 * elflink.h (compute_bucket_count): Don't allow minsize==0, it 4103 causes division by zero later on. 4104 4105Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com> 4106 4107 * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not 4108 needed. 4109 41101998-11-25 DJ Delorie <dj@cygnus.com> 4111 4112 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation 4113 hook now. 4114 4115Tue Nov 24 10:25:27 1998 Nick Clifton <nickc@cygnus.com> 4116 4117 * elf32-fr30.c (fr30_elf_relocate_section): Call 4118 fr30_final_link_relocate. 4119 (fr30_final_link_relocate): New function: Handle I20 and I32 4120 relocs. 4121 (fr30_elf_i32_reloc): New function: Handle I32 relocs. 4122 (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs. 4123 (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs. 4124 4125 * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc 4126 chain to empty. 4127 4128 The following changes are based on a patch submitted by Gianluca 4129 Moro <glctr@abc.it>: 4130 4131 (v850_elf_perform_relocation): Only update a hi16s reloc if it has 4132 not already been updated. 4133 (find_remembered_hi16s_reloc): New parameter 'already_found' 4134 returns state of remembered hi16s reloc. 4135 (remember_hi16s_reloc): Set 'found' field to false. 4136 (hi16s_location): Add 'found' field. 4137 41381998-11-23 DJ Delorie <dj@cygnus.com> 4139 4140 * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants 4141 to see .DLL files as unrecognized. 4142 (i3coff_object_p): Sorry, had to hack it to not recognize these 4143 files (pei-i386) on request. 4144 41451998-11-23 DJ Delorie <dj@cygnus.com> 4146 4147 * opncls.c (bfd_make_readable): need more cleanup for symbols and 4148 relents. Call bfd_check_format to reinitialize. 4149 4150Fri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com> 4151 4152 * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious 4153 warnings. 4154 4155Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com> 4156 4157 * aclocal.m4: regenerate 4158 * configure: regenerate 4159 4160Tue Nov 17 20:23:35 1998 Richard Henderson <rth@cygnus.com> 4161 4162 * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size. 4163 * elf.c (_bfd_elf_link_hash_newfunc): Clear it. 4164 * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and 4165 respect it as an upper bound on what memory to reference. 4166 (elf_gc_smash_unused_vtentry_relocs): Likewise. 4167 (elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and 4168 update vtable_entries_size appropriately. 4169 4170Tue Nov 17 15:28:31 1998 Nick Clifton <nickc@cygnus.com> 4171 4172 * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold 4173 reloc number. 4174 4175Mon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com> 4176 4177 * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY 4178 bfds; they have no "file" so we fake it. 4179 * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen) 4180 * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by 4181 resizing the memory buffer. 4182 * opncls.c (bfd_make_writable): New function; lets you write a 4183 bfd_create'd bfd to an in-memory buffer. 4184 (bfd_make_readable): New function; lets you read back that buffer 4185 as if it were from bfd_openr. Used to build generated archive 4186 members (winsup's ld's dlltool) 4187 4188Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com> 4189 4190 * po/bfd.pot: Regenerated. 4191 4192Mon Nov 16 10:57:06 1998 Nick Clifton <nickc@cygnus.com> 4193 4194 * elf32-v850.c (hi16s_location): Replaced fixed size array with 4195 linked list. 4196 4197Sun Nov 15 20:28:25 1998 Richard Henderson <rth@cygnus.com> 4198 4199 * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper 4200 element of the gotentry list for local symbols too. 4201 (elf64_alpha_relocate_section): Unify local and global handling. 4202 Assert that gotent->use_count > 0. 4203 4204Sat Nov 14 15:16:01 1998 Ian Lance Taylor <ian@cygnus.com> 4205 4206 * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and 4207 update for file name changes of July 2, 1998. 4208 (vms_vax_vec): New. 4209 * configure: Rebuild. 4210 4211Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com> 4212 4213 * po/bfd.pot: Regenerated. 4214 4215Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com> 4216 4217 * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*. 4218 * aclocal.m4, configure: regenerate 4219 4220Tue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com> 4221 4222 * elf.c (prep_headers): Add support for bfd_arch_fr30. 4223 4224Tue Nov 10 13:37:36 1998 Felix Lee <flee@cygnus.com> 4225 4226 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE, 4227 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value 4228 was cached. 4229 * aclocal.m4, configure: regenerated. 4230 4231Tue Nov 10 14:31:01 1998 Catherine Moore <clm@cygnus.com> 4232 4233 * elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and 4234 R_D10V_GNU_VTENTRY relocs. 4235 (elf_d10v_howto_table): Likewise. 4236 (d10v_reloc_map d10v_reloc_map): Likewise. 4237 (elf32_d10v_gc_mark_hook): New. 4238 (elf32_d10v_gc_sweep_hook): New. 4239 (elf32_d10v_check_relocs): New. 4240 (elf32_d10v_relocate_section): New. 4241 (elf_backend_relocate_section): Define. 4242 (elf_backend_can_gc_sections): Define. 4243 4244Sat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de> 4245 4246 * Makefile.am (BFD32_BACKENDS): Move vms files here... 4247 (BFD64_BACKENDS): ...from here. 4248 (BFD32_BACKENDS_CFILES): Move vms files here... 4249 (BFD64_BACKENDS_CFILES): ...from here. 4250 * Makefile.in: Rebuild. 4251 4252Wed Nov 4 15:58:48 1998 Nick Clifton <nickc@cygnus.com> 4253 4254 * Makefile.am: Add FR30 target. 4255 * Makefile.in: Add FR30 target. 4256 * archures.c: Add support for FR30. 4257 * config.bfd: Add support for FR30. 4258 * configure.in: Add support for FR30. 4259 * reloc.c: Add support for FR30 relocations. 4260 * targets.c: Add support for FR30 relocations. 4261 * bfd-in2.h: Regenerate. 4262 * configure: Regenerate. 4263 * libbfd.h: Regenerate. 4264 * cpu-fr30.c: New file. 4265 * elf32-fr30.c: New file. 4266 4267Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com> 4268 4269 * configure.in: detect cygwin* instead of cygwin32* 4270 * configure: regenerate 4271 4272Sun Nov 1 19:32:28 1998 Jeffrey A Law (law@cygnus.com) 4273 4274 * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca, 4275 use bfd_malloc and free instead and check return value from bfd_malloc. 4276 4277Sun Nov 1 16:20:35 1998 Ian Lance Taylor <ian@cygnus.com> 4278 4279 * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare. 4280 * libbfd.h: Rebuild. 4281 4282 * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out. 4283 (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise. 4284 (MIPS_TEXT_DYNSYM_SECN): Likewise. 4285 (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash 4286 section. 4287 (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex 4288 field. 4289 (mips_elf_link_hash_table_create): Don't initialize 4290 dynsym_sec_strindex. 4291 (mips_elf_gc_mark_hook): Add default case to avoid warning. 4292 (mips_elf_size_dynamic_sections): Generate a section symbol for 4293 every output section. 4294 (mips_elf_finish_dynamic_sections): Count all sections for 4295 DT_MIPS_UNREFEXTNO. 4296 (mips_elf_finish_dynamic_sections): Use dynamic symbols for all 4297 output sections. 4298 4299Sun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au> 4300 4301 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots 4302 for later PLT entries in large PLTs. 4303 (ppc_elf_finish_dynamic_symbol): Allow for the extra slots. 4304 4305Sat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com) 4306 4307 * elf32-ppc.c (ppc_elf_reload_section): Fix typo. 4308 43091998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com> 4310 4311 * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value. 4312 * elflink.h (elf_collect_hash_codes): New function. This function is 4313 called for each exported symbol and we compute the ELF hash value for 4314 it. 4315 (compute_bucket_value): New function. It is called from 4316 size_dynamic_sections to determine the hash table size. When we are 4317 optimizing a better, but slower, algorithm is used. 4318 (size_dynamic_sections): Call compute_bucket_value. 4319 4320 * elf.c (bfd_elf_hash): Optimize the hash function a bit. 4321 4322Mon Oct 19 20:03:21 1998 Catherine Moore <clm@cygnus.com> 4323 4324 * elf32-sh.c: Add HOWTO entries for R_SH_GNU_VTINHERIT and 4325 R_SH_GNU_VTENTRY. 4326 (sh_elf_gc_mark_hook): New. 4327 (sh_elf_gc_sweep_hook): New. 4328 (sh_elf_check_relocs): New. 4329 (elf_backend_can_gc_sections): Define. 4330 4331Mon Oct 19 16:57:05 1998 Felix Lee <flee@cygnus.com> 4332 4333 * acinclude.m4: undo previous gettext change 4334 * aclocal.m4: rebuild with right version of aclocal. 4335 4336Mon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com> 4337 4338 * acinclude.m4, aclocal.m4: move gettext-related fragments from 4339 aclocal.m4 to acinclude.m4, so they don't get lost. 4340 4341 * elfcore.h: rewrite for better corefile support. 4342 * elf.c (elfcore_*): new functions. 4343 * elf-bfd.h (elf_obj_tdata): new structure members. 4344 * acconfig.h, acinclude.m4, configure.in: add feature-tests for 4345 flavor of procfs. 4346 * aclocal.m4, config.in, configure, Makefile.in: regenerated. 4347 4348Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com> 4349 4350 * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT 4351 and R_M32R_GNU_VTENTRY. 4352 (elf_backend_can_gc_sections): Define. 4353 (m32r_elf_check_relocs): New. 4354 (m32r_elf_gc_mark_hook): New. 4355 (m32r_elf_gc_sweep_hook): New. 4356 (m32r_elf_relocate_section): Handle VT relocs. 4357 4358Mon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com> 4359 4360 * coff-arm.c (arm_relocate_section): Remove redundant test. 4361 4362 * bfd-in2.h (struct reloc_howto_struct): Improve comment to make 4363 cleat that the 'bitsize' field is the size of the bitfield AFTER 4364 relocation not before. 4365 4366 * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield. 4367 4368 * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo 4369 relocs. 4370 4371Tue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com> 4372 4373 * elf32-sparc.c: Add HOWTO entries for R_SPARC_GNU_VTINHERIT and 4374 R_SPARC_GNU_VTENTRY. 4375 (elf32_sparc_check_relocs): Handle them. 4376 (elf32_sparc_reloc_type_lookup): Likewise. 4377 (elf32_sparc_relocate_section): Likewise. 4378 (elf32_sparc_gc_mark_hook): New. 4379 (elf32_sparc_gc_sweep_hook): New. 4380 4381Mon Oct 5 14:55:30 1998 Jeffrey A Law (law@cygnus.com) 4382 4383 * som.c (som_finish_writing): Perform some sanity checks when 4384 writing an executable or shared library. 4385 4386Mon Oct 5 12:02:31 1998 Gavin Romig-Koch <gavin@cygnus.com> 4387 4388 * dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line. 4389 * configure.in (elf): Add dwarf1.lo. 4390 * elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info. 4391 * elf.c (_bfd_elf_find_nearest_line): Add call to 4392 _bfd_dwarf1_find_nearest_line. 4393 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): 4394 Add call to _bfd_dwarf1_find_nearest_line. 4395 * configure: Rebuilt. 4396 4397Mon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com> 4398 4399 * elflink.h (elf_gc_sections): Do not allow garbage 4400 collection if dynamic sections have been created. 4401 4402Mon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com> 4403 4404 * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and 4405 R_V850_GNU_VTENTRY. 4406 (v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs. 4407 (v850_elf_perform_relocation): Likewise. 4408 (v850_elf_final_link_relocate): Likewise. 4409 (v850_elf_relocate_section): Likewise. 4410 (v850_elf_gc_sweep_hook): New routine. 4411 (v850_elf_gc_mark_hook): New routine. 4412 (elf_backend_can_gc_sections): Define. 4413 4414Mon Oct 5 09:04:25 1998 Catherine Moore <clm@cygnus.com> 4415 4416 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume 4417 that dynobj exists. 4418 4419Sun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu> 4420 4421 * rs6000-core.c (rs6000coff_core_file_matches_executable_p): 4422 Declare size as bfd_size_type. 4423 (rs6000coff_get_section_contents): Declare count as bfd_size_type. 4424 4425Sun Oct 4 20:38:29 1998 Jeffrey A Law (law@cygnus.com) 4426 4427 * cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch 4428 structure. 4429 * som.c (CPU_PA_RISC2_0): Define. 4430 (_PA_RISC2_0_ID): Likewise. 4431 (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed. 4432 4433Sun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com> 4434 4435 * elflink.h (elf_link_add_object_symbols): When a versioned symbol 4436 has a base which is already defined, only add the referenced 4437 symbol to the dynamic symbol table if it is defined or referenced 4438 by a regular file. 4439 4440 * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs 4441 correctly. 4442 44431998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 4444 4445 * elflink.h (elf_link_add_object_symbols): Undo last change. 4446 4447Wed Sep 23 16:09:31 1998 Richard Henderson <rth@cygnus.com> 4448 4449 * elflink.h (elf_link_add_object_symbols): Don't record a dynamic 4450 symbol for the indirect alias to a versioned symbol. 4451 4452Mon Sep 21 12:15:22 1998 Catherine Moore <clm@cygnus.com> 4453 4454 * elf32-i386.c (elf32_i386_vtinherit_howto): New. 4455 (elf32_i386_vtentry_howto): New. 4456 (elf_i386_reloc_type_lookup): Return elf32_i386_vtentry_howto 4457 or elf32_i386_vtinherit_howto on lookup. 4458 4459Sun Sep 20 00:48:07 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 4460 4461 * elf32-m68k.c: Include "elf/m68k.h". Remove definition of enum 4462 reloc_type. Rename R_68K__max to R_68K_max. 4463 (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY 4464 reloc. 4465 4466Sun Sep 20 00:09:25 1998 Chris Torek <torek@bsdi.com> 4467 4468 * libbfd.c (bfd_getb32): Rewrite expression to get better code. 4469 (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise. 4470 4471 * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not 4472 after. 4473 4474Sat Sep 19 22:42:23 1998 Doug Rabson <dfr@nlsystems.com> 4475 4476 * elflink.h (elf_link_add_object_symbols): Ensure that the warning 4477 message has a null byte terminator. 4478 4479Fri Sep 18 14:35:29 1998 Nick Clifton <nickc@cygnus.com> 4480 4481 * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of 4482 word subject to R_V850_32 relocation. 4483 4484Thu Sep 17 17:20:36 1998 Nick Clifton <nickc@cygnus.com> 4485 4486 * dwarf2.c: Add comment describing problem computing line numbers 4487 for undefined symbols at link time. 4488 4489Thu Sep 17 16:03:28 1998 Richard Henderson <rth@cygnus.com> 4490 4491 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't 4492 transform a defweak into a plt entry. 4493 (elf64_alpha_calc_dynrel_sizes): Allow room for secondary 4494 plt entry references to receive a RELATIVE reloc. 4495 (elf64_alpha_finish_dynamic_symbol): Fill them in. 4496 (elf64_alpha_relocate_section): Assert we don't overrun 4497 the allocated relocation space. 4498 4499Wed Sep 16 18:03:13 1998 Nick Clifton <nickc@cygnus.com> 4500 4501 * elf.c (swap_out_syms): Always treat section symbols as 4502 special, even if they are attached to a common section. 4503 4504Wed Sep 16 10:34:13 1998 Nick Clifton <nickc@cygnus.com> 4505 4506 * elf32-v850.c (v850_elf_symbol_processing): Move symbols in 4507 sections with v850 common section attributes into named v850 4508 common sections. 4509 (v850_elf_add_symbol_hook): Move symbols in sections with v850 4510 common section attributes into named v850 common sections. 4511 4512Wed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com> 4513 4514 * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print 4515 statement. 4516 45171998-09-15 Geoff Keating <geoffk@ozemail.com.au> 4518 4519 * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset 4520 part of Vladimir's change of 1998-08-19. Make a R_PPC_SDAREL16 4521 reloc to the wrong section a warning, not an error. .dynsbss 4522 is not an output section, so there is no need to check for it. 4523 4524Tue Sep 15 12:40:05 1998 Catherine Moore <clm@cygnus.com> 4525 4526 * elf-bfd.h: Add argument to elf_backend_get_symbol_type. 4527 4528Tue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com> 4529 4530 * elf.c (swap_out_syms): Pass type to elf_backend_get_symbol_type. 4531 * elf32-arm.c: Add HOWTO entries for R_ARM_GNU_VTINHERIT and 4532 R_ARM_GNU_VTENTRY. 4533 (elf32_arm_gc_mark_hook): New. 4534 (elf32_arm_gc_sweep_hook): New. 4535 (elf32_arm_check_relocs): New. 4536 (elf32_arm_final_link_relocate): Handle VTINHERIT and VTENTRY 4537 relocations. 4538 (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY 4539 relocations. 4540 45411998-09-10 Geoff Keating <geoffk@ozemail.com.au> 4542 4543 * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL, 4544 assume there is no PLT or GOT. 4545 4546Wed Sep 9 14:24:12 1998 Nick Clifton <nickc@cygnus.com> 4547 4548 * elf32-arm.c (elf32_arm_find_nearest_line): New function: just 4549 like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is 4550 also accepted as a function symbol type. 4551 4552Mon Sep 7 13:24:03 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 4553 4554 * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only. 4555 4556Sat Sep 5 20:40:18 1998 Ian Lance Taylor <ian@cygnus.com> 4557 4558 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to 4559 match definition of _bfd_gc_sections field. 4560 * libbfd.h: Rebuild. 4561 4562Fri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com> 4563 4564 * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust 4565 the addend of a dynamic relocation referencing a section. 4566 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. 4567 (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset. 4568 4569Thu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com> 4570 4571 * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the 4572 bed has a size_dynamic_sections routine before trying to use it. 4573 4574Mon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com> 4575 4576 * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use 4577 _bfd_elf_rel_vtable_reloc_fn. 4578 4579Mon Aug 31 10:23:40 1998 Catherine Moore <clm@cygnus.com> 4580 4581 * Makefile.am: Add elf32-arm.c. 4582 * Makefile.in: Rebuild. 4583 * elf-bfd.h: Add elf_backend_get_symbol_type. 4584 * elf.c (swap_out_syms): If defined, call 4585 elf_backend_get_symbol_type. 4586 * elf32-arm.c: Define elf_backend_get_symbol_type. 4587 (elf32_arm_get_symbol-type): New routine. 4588 (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC. 4589 (bfd_elf32_arm_process_before_allocation): Change to 4590 check for STT_ARM_TFUNC. 4591 (elf32_arm_final_link_relocate): Likewise. 4592 * elfxx-target.h: Add elf_backend_get_symbol_type. 4593 4594Fri Aug 28 19:44:07 1998 Richard Henderson <rth@cygnus.com> 4595 4596 * archures.c (bfd_mach_alpha_ev[456]): New. 4597 * cpu-alpha.c: Rework to match these types. 4598 * bfd-in2.h: Rebuild. 4599 4600Fri Aug 28 19:38:53 1998 Richard Henderson <rth@cygnus.com> 4601 4602 * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare. 4603 * elf.c (_bfd_elf_rel_vtable_reloc_fn): New. 4604 4605 * elf32-i386.c (elf_howto_table): Add vtable relocs. 4606 (elf_i386_reloc_type_lookup): Recognize them. 4607 (elf_i386_check_relocs): Pass them off to generic code. 4608 (elf_i386_relocate_section): Ignore them. 4609 (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New. 4610 (elf_backend_can_gc_sections): True. 4611 4612Thu Aug 20 15:03:45 1998 Nick Clifton <nickc@cygnus.com> 4613 4614 * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL 4615 before looking at owner field. 4616 (elf32_arm_to_thumb_stub): Ditto. 4617 (elf32_arm_relocate_section): Compute name before calling 4618 elf32_arm_final_link_relocate(). 4619 4620Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com> 4621 4622 * elf.c: comment and formatting cleanups. 4623 * elfcore.h: ditto. 4624 4625Wed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com> 4626 4627 * elfcode.h (elf_object_p): Reject files of header type ET_CORE 4628 (core files are treated differently than object files). 4629 * elf-bfd.h (_bfd_elf_write_corefile_contents, 4630 bfd_elf_mkcorefile): declare. 4631 * elfxx-target.h (_bfd_elf_write_corefile_contents, 4632 bfd_elf_mkcorefile): add to bfd_target vector. 4633 * elfcore.h (elf_core_file_p): save the program header table, 4634 and set the bfd architecture from the elf file header. 4635 * elf.c (bfd_elf_mkcorefile): new function. 4636 (_bfd_elf_write_corefile_contents): new function. 4637 (assign_file_positions_for_segments): add cases for handling 4638 PT_NOTE segments. (assign_file_positions_except_relocs): 4639 core files should be handled the same as exec files. 4640 (prep_headers): identify core files as type ET_CORE. 4641 (copy_private_bfd_data): identify the sections belonging to 4642 the PT_NOTE segment. 4643 4644 * elf32-sparc.c (elf32_sparc_final_write_processing): 4645 add break statement to default case. 4646 46471998-08-19 Vladimir N. Makarov <vmakarov@cygnus.com> 4648 4649 * elf32-ppc.c (ppc_elf_relocate_section): Check that output 4650 section (not input) will be in sections ".sbss", ".sbss2", 4651 ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL, 4652 R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA. In all these cases also ignore 4653 output_offset for correct evaluation of addend. 4654 4655Tue Aug 18 11:48:12 1998 Catherine Moore <clm@cygnus.com> 4656 4657 * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking, 4658 elf32_arm_allocate_interworking_sections and 4659 elf32_arm_process_before_allocation. 4660 4661Tue Aug 18 11:46:00 1998 Nick Clifton <nickc@cygnus.com> 4662 4663 * bfd-in.h: Ammend prototype for 4664 elf32_arm_process_before_allocation to remove surplus third 4665 argument. 4666 4667 * bfd-in2.h: Regenerate. 4668 4669Sat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com> 4670 4671 * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols. 4672 4673Fri Aug 14 09:12:28 1998 Stan Cox <scox@cygnus.com> 4674 4675 * aoutx.h (aout_link_input_section_ext): Use the relocation already 4676 calculated for RELOC_SPARC_REV32 case. 4677 4678Thu Aug 13 14:02:02 1998 Catherine Moore <clm@cygnus.com> 4679 4680 * bfd-in.h: Add prototypes for elf32_arm_get_bfd_for_interworking, 4681 elf32_arm_allocate_interworking_sections and 4682 elf32_arm_process_before_allocation. 4683 * bfd-in2.h: Regenerated. 4684 * elf32-arm.c Define elf32_arm_link_hash_table. 4685 (insert_thumb_branch): New routine. 4686 (find_thumb_glue): New routine. 4687 (find_arm_glue): New routine. 4688 (record_arm_to_thumb_glue): New routine. 4689 (record_thumb_to_arm_glue): New routine. 4690 (elf32_arm_link_hash_table_create): New routine. 4691 (elf32_arm_get_bfd_for_interworking): New routine. 4692 (elf32_arm_allocate_interworking_sections) New routine. 4693 (elf32_arm_process_before_allocation) New routine. 4694 (elf32_thumb_to_arm_stub): New routine. 4695 (elf32_arm_to_thumb_stub): New routine. 4696 (elf32_print_private_bfd_data): Fix typo. 4697 (elf32_arm_final_link_relocate): Add argument sym_sec. 4698 Check for branches to thumb symbols in case R_ARM_PC24. 4699 Check for branches to arm symbols in case R_ARM_THM_PC22. 4700 (elf32_arm_relocate_section): Pass symbol section to 4701 elf32_arm_final_link_relocate. 4702 4703Wed Aug 12 19:00:39 1998 Geoff Keating <geoffk@ozemail.com.au> 4704 4705 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT 4706 entries unless the symbol is defined in the executable; in 4707 particular, undefined weak symbols get a PLT entry. 4708 4709Wed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com> 4710 4711 * libaout.h: Remove nested comment to avoid warning. 4712 4713Wed Aug 12 08:10:11 1998 Catherine Moore <clm@cygnus.com> 4714 4715 * elf32-arm.c (elf32_arm_final_link_relocate): Rework 4716 R_ARM_PC24 relocation. 4717 4718Tue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com> 4719 4720 * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused 4721 argument is_local. Add argument sym_flags. Check sym_flags 4722 in R_ARM_ABS32 case. Include addend for R_ARM_THM_PC22 case. 4723 (elf32_arm_relocate_section): Don't pass local sym and pass 4724 sym_flags to elf32_arm_final_link_relocate. 4725 4726Mon Aug 10 20:38:39 1998 Richard Henderson <rth@cygnus.com> 4727 4728 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change 4729 to not count too few relocs for dynamicly linked executables. 4730 4731Mon Aug 10 15:35:34 1998 Richard Henderson <rth@cygnus.com> 4732 4733 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider 4734 symbols without a dynamic index dynamic. Consider all weak 4735 symbols dynamic. 4736 (elf64_alpha_strip_section_from_output): Don't assume 1-1 4737 correspondance between input and output sections. 4738 4739Mon Aug 10 15:31:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 4740 4741 * elflink.h (elf_gc_common_finalize_got_offsets): For backends 4742 that use a .got.plt section start the got offset at zero. 4743 4744Mon Aug 10 17:31:21 1998 Ian Lance Taylor <ian@cygnus.com> 4745 4746 * ieee.c (ieee_write_processor): Correct the processor ID written 4747 out for bfd_arch_m68k, accommodating change of March 25. 4748 4749Sun Aug 9 20:55:44 1998 Catherine Moore <clm@cygnus.com> 4750 4751 * elf32-arm.c (elf32_arm_final_link_relocate): Rework 4752 R_ARM_THM_RPC22 relocations. 4753 4754Sat Aug 8 15:15:30 1998 Richard Henderson <rth@cygnus.com> 4755 4756 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols 4757 are always dynamic. 4758 (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE 4759 .got relocs in -Bsymbolic shared objects. 4760 4761Wed Aug 5 15:48:08 1998 Nick Clifton <nickc@cygnus.com> 4762 4763 * elf32-arm.c: Add private flags to ELF header. 4764 (elf32_arm_print_private_bfd_data): New Function. 4765 (elf32_arm_set_private_flags): New Function. 4766 (elf32_arm_copy_private_flags): New Function. 4767 (elf32_arm_merge_private_bfd_data): New Function. 4768 4769Mon Aug 3 17:10:15 1998 Ian Lance Taylor <ian@cygnus.com> 4770 4771 * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against 4772 a local symbol. 4773 (elf32_sparc_relocate_section): Likewise. 4774 4775Sun Aug 2 03:19:23 1998 Richard Henderson <rth@cygnus.com> 4776 4777 * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL. Create the 4778 .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_. 4779 (ppc_elf_relocate_section): Pull sgot and splt search to the start 4780 of the function. Recognize no .plt as static linking. 4781 47821998-08-01 Ulrich Drepper <drepper@cygnus.com> 4783 4784 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass 4785 ".liblist" string through gettext. 4786 4787Fri Jul 31 16:38:14 1998 Catherine Moore <clm@cygnus.com> 4788 4789 * Makefile.am: Add support for elf32-arm.lo. 4790 * Makefile.in: Rebuild. 4791 * config.bfd (arm-*-elf): Define targ_defvec and targ_selvecs. 4792 (thumb-*-elf): Define targ_defvec and targ_selvecs. 4793 * configure.in: Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec. 4794 * configure: Regenerate. 4795 * elf.c: (prep_headers): Support arch_type of EM_ARM. 4796 * targets.c: Support new targets bfd_elf32_bigarm_vec and 4797 bfd_target bfd_elf32_littlearm_vec. 4798 * elf32-arm.c: New file. 4799 4800Tue Jun 28 19:05:28 1998 Stan Cox <scox@cygnus.com> 4801 4802 * libaout.h (M_SPARCLITE_LE): New machine. 4803 * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE. 4804 * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE. 4805 (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le 4806 * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32. 4807 (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le 4808 (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support. 4809 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map, 4810 elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32 4811 * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to 4812 be BFD_RELOC_SPARC_REV32. 4813 * reloc.c: Ditto. 4814 * config.bfd (sparc86x-*-aout): New 4815 4816Fri Jul 24 13:54:19 1998 Nick Clifton <nickc@cygnus.com> 4817 4818 * linker.c (_bfd_generic_final_link): Allocate NULL symbol before 4819 actually mapping the output sections. 4820 4821Fri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com) 4822 4823 4824 * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry. 4825 (mn10300_elf_reloc_map): Similarly. 4826 (mn10300_elf_final_link_relocate): Handle R_MN10300_24. 4827 4828Fri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com> 4829 4830 * elf32-mips.c (elf_mips_howto_table): Add reloc types used on 4831 Irix 6. 4832 (bfd_elf32_bfd_reloc_type_lookup): Add default case. 4833 * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with 4834 elf_mips_reloc_type defined in elf/mips.h. 4835 48361998-07-24 Ulrich Drepper <drepper@cygnus.com> 4837 4838 * elf64-mips.c: Remove reloc_type definition completely. It's now 4839 in elf/mips.h. 4840 4841Thu Jul 23 13:33:19 1998 Doug Evans <devans@canuck.cygnus.com> 4842 4843 * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations 4844 as they are defined in elf/mips.h now. 4845 4846Thu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com) 4847 4848 4849 * Re-add lost change: 4850 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field 4851 "movm_stack_size". 4852 (mn10300_elf_relax_section): Include stack space for register saves 4853 in the imm8 field of a "call" instruction. 4854 (compute_function_info): Determine how much stack is allocated by 4855 the movm instruction. Fix typo. 4856 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size. 4857 4858Thu Jul 23 11:38:05 1998 Ian Lance Taylor <ian@cygnus.com> 4859 4860 * elf32-sparc.c (elf_backend_got_header_size): Define as 4. 4861 * elf64-sparc.c (elf_backend_got_header_size): Define as 8. 4862 48631998-07-22 Ulrich Drepper <drepper@cygnus.com> 4864 4865 * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type. 4866 4867Wed Jul 22 16:27:18 1998 Nick Clifton <nickc@cygnus.com> 4868 4869 * elf32-hppa.h: Let ELF header define the enum containing the 4870 external reloc numbers. 4871 * elf32-i386.h: Likewise. 4872 48731998-07-22 14:57 Ulrich Drepper <drepper@cygnus.com> 4874 4875 * elf-m10300.c: Let ELF header now define the macros to get the enum. 4876 * elf32-mips.c: Likewise. 4877 * elf32-ppc.c: Likewise. 4878 4879Wed Jul 22 13:53:52 1998 Nick Clifton <nickc@cygnus.com> 4880 4881 * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in 4882 bfd_coff_set_symbol_class(), in order to avoid K&R compatability 4883 prblems. 4884 * bfd-in.h: Regenerate. 4885 * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class' 4886 parameter to 'unsigned int' to avoid K&R compatability problems. 4887 4888Wed Jul 22 16:43:24 1998 Ian Lance Taylor <ian@cygnus.com> 4889 4890 * ieee.c (ieee_find_nearest_line): Change filename_ptr and 4891 functionname_ptr to be const. Change line_ptr to be unsigned. 4892 4893 * coffcode.h (coff_link_output_has_begun): Simplify handling when 4894 macro is not defined. Change second parameter from bfd_link_info 4895 to coff_final_link_info. Add prototype. 4896 (coff_final_link_postscript): Simplify handling when macro is not 4897 defined. Add prototype. 4898 48991998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com> 4900 4901 * elf-mn10300.c: Before include system specific ELF header define 4902 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS. 4903 * elf32-mips.c: Likewise. 4904 * elf32-ppc.c: Likewise. 4905 4906Wed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com> 4907 4908 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c 4909 temporary patch over to elf64-mips.c as well. 4910 49111998-07-21 Ulrich Drepper <drepper@cygnus.com> 4912 4913 * elf32-mips.c (reloc_type): Temporarily disable definition of 4914 standard relocation since they are now defined in elf/mips.h. 4915 4916Tue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com> 4917 4918 * elf-m10200.c (mn10200_elf_final_link_relocate): 4919 Modify range test for case R_MN10200_8. 4920 4921 * elf-m10300.c (mn10300_elf_final_link_relocate): 4922 Modify range test for case R_MN10300_8. 4923 4924Mon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com> 4925 4926 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size. 4927 * elf32-i386.c (elf_backend_got_header_size): Define. 4928 (elf_backend_plt_header_size): Define. 4929 * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise. 4930 * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise. 4931 * elfxx-target.h: Provide a default of zero. 4932 * elflink.c (_bfd_elf_create_got_section): Use got_header_size. 4933 * elflink.h (elf_gc_common_finalize_got_offsets): Likewise. 4934 4935 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT 4936 entry from an executable, even if the plt refcount goes to 0. 4937 4938Mon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 4939 4940 * aoutx.h (NAME(aout,find_nearest_line)): Also remember the 4941 directory name at the line number. 4942 4943 * elf.c (_bfd_elf_find_nearest_line): Also consider symbols 4944 with an unspecified type. 4945 4946Wed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com> 4947 4948 * sunos.c: Add undef of valid to avoid problem on SunOS. 4949 4950Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com> 4951 4952 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize. 4953 4954Tue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 4955 4956 * elf32-m68k.c (elf_m68k_check_relocs): Also reference count 4957 R_68K_PCxx and R_68K_xx relocations. Make sure that 4958 ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference. 4959 (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and 4960 R_68K_xx relocations. 4961 (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol 4962 that has no plt entry. 4963 (elf_m68k_relocate_section): Ignore the plt offset in a static 4964 link. 4965 * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for 4966 an ignored symbol. 4967 (elf_gc_common_finalize_got_offsets): Set the got offsets also in 4968 a static link. 4969 4970 * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc 4971 types. 4972 (howto_table, reloc_map): Add entries for them. 4973 (elf_m68k_check_relocs): Handle them. Implement reference 4974 counting for got and plt entries. 4975 (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions. 4976 (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt 4977 symbols. 4978 (rtype_to_howto_rel, elf_info_to_howto_rel): Delete. 4979 (elf_m68k_relocate_section): Handle the new reloc types. 4980 (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook, 4981 elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define. 4982 * elflink.h (elf_link_add_object_symbols): When creating an 4983 indirect reference for symbol versioning also copy the plt 4984 offset. 4985 (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT 4986 flag also reset the plt offset. 4987 (elf_link_assign_sym_version): Likewise. 4988 (elf_gc_common_finalize_got_offsets): Increment the got offset by 4989 the size of the entry in bytes. 4990 (elf_gc_allocate_got_offsets): Likewise. 4991 4992Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com> 4993 4994 * elflink.h (elf_gc_sections): Return true rather than falling off 4995 the bottom. 4996 4997 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not 4998 xmalloc. 4999 5000Mon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com> 5001 5002 * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a 5003 comment describing when it should be enabled. 5004 Changed definition of USER_LABEL_PREFIX to "", to fall into line 5005 with GCC sources. 5006 5007Mon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com> 5008 5009 * ieee.c (ieee_slurp_external_symbols): Handle call optimization 5010 information ATN records. 5011 5012Fri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com> 5013 5014 * ieee.c (ieee_slurp_external_symbols): Select an appropriate 5015 section for an absolute symbol in a fully linked file. Based on 5016 patch from Christian Holland <CHolland@de.lucent.com>. 5017 5018Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de> 5019 5020 * coff-m88k.c (m88k_special_reloc): Don't lose the information 5021 that a symbol is undefined. 5022 5023Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com) 5024 5025 * som.c (som_bfd_gc_sections): Define. 5026 5027Mon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com> 5028 5029 * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about 5030 overflows in ARM_26D patches, since they have already been 5031 implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk> 5032 5033Sat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com> 5034 5035 * coffcode.h (coff_write_object_contents): If we have any long 5036 section names, call coff_write_symbols even if there are no 5037 symbols. 5038 5039Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com> 5040 5041 * elf.c (copy_private_bfd_data): Only set phdr_included once for a 5042 PT_LOAD segment, rather than only setting it once for the entire 5043 file. 5044 5045 * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA, 5046 rather than ignoring every phdr with a p_paddr of 0, ignore all 5047 the phdrs if they all have a p_paddr of 0. 5048 5049 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr 5050 section was discarded from the link. 5051 5052Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk> 5053 5054 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number. 5055 5056Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk> 5057 5058 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with 5059 floating point operations. 5060 5061Thu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com> 5062 5063 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global 5064 function symbols. 5065 5066Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de> 5067 5068 Merge of vax/vms (read-only) support 5069 * configure.com: Support Vax target. 5070 * makefile.vms: Support Vax target. 5071 * vms.h: Renamed from evax.h, merged vax/vms (read-only) support. 5072 * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only) 5073 support. 5074 * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only) 5075 support. 5076 * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only) 5077 support. 5078 * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only) 5079 support. 5080 * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only) 5081 support. 5082 * libbfd.c (real_read): Use unbuffered read on VMS/Vax. 5083 * targets.c (bfd_target_ovax_flavour): New flavour. 5084 (vms_alpha_vec): Renamed from evax_alpha_vec. 5085 (vms_vax_vec): New. 5086 (target_vector): Update accordingly. 5087 * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not 5088 evax_alpha_vec. 5089 (vax*-*-*vms*): New target. 5090 * Makefile.am: Update for renamed files. Rebuild dependencies. 5091 * bfd-in2.h: Rebuild. 5092 * configure.in, Makefile.in, aclocal.m4: Rebuild. 5093 5094Thu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com> 5095 5096 Based on patch from Matt Semersky <matts@scd.hp.com>: 5097 * linker.c (_bfd_generic_final_link): Force a trailing NULL 5098 pointer on abfd->outsymbols. 5099 (generic_add_output_symbol): Handle NULL sym parameter. 5100 5101Wed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com> 5102 5103 * elf.c (copy_private_bfd_data): Add support for changing VMA or 5104 LMA of sections. 5105 5106Wed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com> 5107 5108 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons 5109 when handling 32 bit immediate relocs. 5110 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise. 5111 5112Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com) 5113 5114 * section.c (STD_SECTION): Account for recently added gc_mark 5115 field in struct asection. 5116 5117 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function. 5118 (bfd_elf32_bfd_merge_private_bfd_data): Define. 5119 5120Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com> 5121 5122 ELF Section-level Garbage Collection: 5123 * bfd.c (bfd_gc_sections): New. 5124 * aout-adobe.c: Hook to default implementation. 5125 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise. 5126 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise. 5127 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise. 5128 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise. 5129 * tekhex.c, versados.c: Likewise. 5130 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New. 5131 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections. 5132 5133 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New. 5134 (bfd_generic_gc_sections): New. 5135 * section.c (SEC_KEEP): New. 5136 (asection): Add gc_mark member. 5137 5138 * elfcode.h (elf_gc*): New name remappings. 5139 * elflink.h (elf_link_input_bfd): Don't set contents on stabs 5140 sections to be excluded. 5141 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New. 5142 (elf_gc_propogate_vtable_entries_used): New. 5143 (elf_gc_smash_unused_vtentry_relocs): New. 5144 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New. 5145 (elf_gc_common_finalize_got_offsets): New. 5146 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New. 5147 * elfxx-target.h: Add and default gc hooks. 5148 5149 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset 5150 for unions. 5151 (struct elf_obj_tdata): Likewise for local_got_offsets. 5152 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses. 5153 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise. 5154 * elf64-sparc.c, elflink.h: Likewise. 5155 5156 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members. 5157 (ELF_LINK_HASH_MARK): Define. 5158 (struct elf_backend_data): Add GC hooks. 5159 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members. 5160 5161 * elf-m10300.c (mn10300_elf_check_relocs): New. 5162 (mn10300_elf_gc_mark_hook): New. 5163 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New. 5164 (elf_mn10300_howto, mn10300_reloc_map): Handle them. 5165 (mn10300_elf_final_link_relocate): Likewise. 5166 (mn10300_elf_relocate_section): Likewise. 5167 (elf_backend_can_gc_sections): Define. 5168 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New. 5169 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New. 5170 (bfd_elf32_bfd_reloc_type_lookup): Handle them. 5171 (mips_info_to_howto_rel): Likewise. 5172 (mips_elf_relocate_section): Likewise. 5173 (mips_elf_check_relocs): Likewise. 5174 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New. 5175 (elf_backend_can_gc_sections): Define. 5176 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New. 5177 (ppc_elf_howto_raw): Handle them. 5178 (ppc_elf_reloc_type_lookup): Likewise. 5179 (ppc_elf_relocate_section): Likewise. 5180 (ppc_elf_check_relocs): Reference count .got and .plt entires. 5181 Handle new vtable relocs. 5182 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries. 5183 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New. 5184 (elf_backend_can_gc_sections): Define. 5185 5186Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com) 5187 5188 * archures.c (bfd_mach_mn10300): Define. 5189 * elf-m10300.c: Include elf/mn10300.h 5190 (elf_mn10300_mach): New function. 5191 (_bfd_mn10300_elf_final_write_processing): Likewise. 5192 (_bfd_mn10300_elf_object_p): Likewise. 5193 (elf_backendfinal_write_processing): Define. 5194 (elf_backend_object_p): Likewise. 5195 5196Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com> 5197 5198 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S 5199 relocation. 5200 5201Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com> 5202 5203 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the 5204 link_next field, not the next field. 5205 5206Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com> 5207 5208 * elf.c (map_sections_to_segments): Check the section address 5209 against the phdr size both with and without a modulo of 5210 maxpagesize. 5211 5212Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com> 5213 5214 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a 5215 linker created empty input section if the output section has the 5216 same name. 5217 5218 * elflink.h (elf_link_output_extsym): Print an error message if 5219 _bfd_elf_section_from_bfd_section fails. 5220 5221 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on 5222 failure. 5223 5224Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com> 5225 5226 * elf.c (copy_private_bfd_data): Improve handling of Solaris 5227 native linker output. Avoid putting an empty section in more than 5228 one segment. 5229 5230Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com> 5231 5232 * po/Make-in (all-yes): If maintainer mode, depend on .pot file. 5233 ($(PACKAGE).pot): Unconditionally depend on POTFILES. 5234 5235Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com> 5236 5237 * elf.c (swap_out_syms): New arg relocatable_p. 5238 Don't add section VMA to symbols for relocatable output. 5239 (_bfd_elf_compute_section_file_positions): Update call to 5240 swap_out_syms. 5241 5242Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com> 5243 5244 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons 5245 against 'addend' be signed rather than unsigned. 5246 5247Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com> 5248 5249 * elf32-m32r.c: Add prototyps for static functions. 5250 5251 * coff-arm.c: Add prototypes for static functions. 5252 5253Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com> 5254 5255 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the 5256 LMA is used to order sections in a segment. 5257 5258 * elf32-v850.c: Add prototypes for static functions. 5259 Change type of addend parameter to bfd_vma in various functions. 5260 5261Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com> 5262 5263 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use 5264 complain_overflow_signed instead of complain_overflow_bitfield. 5265 5266Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 5267 5268 * elf.c (elf_map_symbols): Don't add section VMA to symbol value 5269 when comparing against 0. 5270 5271Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com> 5272 5273 * Makefile.am (config.status): New target. 5274 * Makefile.in: Rebuild. 5275 5276Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com> 5277 5278 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an 5279 error if previous object endianness doesn't match current object. 5280 5281Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com> 5282 5283 * elf32-v850.c (v850_elf_print_private_bfd_data): Call 5284 _bfd_elf_print_private)bfd_data (). 5285 5286Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com> 5287 5288 * elflink.h (elf_merge_symbol): Don't always set type_change_ok 5289 and size_change_ok. 5290 (elf_link_add_object_symbols): Set type_change_ok and 5291 size_change_ok before calling elf_merge_symbol. 5292 5293 * elf32-mips.c (mips_elf_relocate_section): If we issue an 5294 undefined symbol error, don't also issue an overflow error. 5295 5296Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au> 5297 5298 * elf32-ppc.c (ppc_elf_relocate_section): The target of an 5299 R_PPC_LOCAL24PC relocation should be local; if not, print an error 5300 message instead of crashing. 5301 5302Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il> 5303 5304 * archures.c (bfd_mach_cpu32): Define. 5305 (bfd_default_scan): Add case for 68060. Fix 68332 case to use 5306 bfd_mach_cpu32. 5307 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32. 5308 * ieee.c: Include <ctype.h>. 5309 (ieee_object_p): Parse out process ID string to make it more 5310 likely to be acceptable for bfd_scan_arch. 5311 * bfd-in2.h: Rebuild. 5312 5313Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com> 5314 5315 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call 5316 _bfd_elf_print_private_bfd_data() so that the program header will 5317 be displayed. 5318 5319Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com> 5320 5321 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than 5322 0x68. Reindent. Add some comments. 5323 5324Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com> 5325 5326 * elf.c (copy_private_bfd_data): Adjust physical address of 5327 segment in output BFD to contain LMAs of its sections. 5328 5329Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com> 5330 5331 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map, 5332 elf32_sparc_relocate_section): Added R_SPARC_32LE for little 5333 endian data 32 bit relocations. 5334 (elf32_sparc_merge_private_bfd_data): Check if linking little 5335 endian objects with big endian objects. 5336 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le. 5337 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags. 5338 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE. 5339 * reloc.c: Same. 5340 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le 5341 * archures.c (bfd_mach_sparc_sparclite_le): New. 5342 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New. 5343 5344Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com> 5345 5346 * peicode.h (add_data_entry): Fix precedence of operators in if () 5347 statement. 5348 5349Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com> 5350 5351 * bfd-in.h: Move over patch to bfd-in2.h. 5352 5353 * reloc.c (bfd_check_overflow): Add casts before shifts which may 5354 not fit in 32 bits. 5355 (_bfd_relocate_contents): Likewise. 5356 5357Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com> 5358 5359 * peicode.h (add_data_entry): If the section has no private data 5360 then do not create a Data Dictionary entry for it. 5361 5362Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com> 5363 5364 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes. 5365 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots, 5366 elf64_alpha_size_got_sections): Rewrite, handling multiple got 5367 subsections during relaxation more correctly. 5368 5369Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com> 5370 5371 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class (). 5372 Add extra argument to bfd_arm_process_before_allocation (). 5373 * bfd-in.h: Reflect changes made in bfd-in2.h. 5374 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the 5375 coff class of a BFD symbol. 5376 * coff-arm.c: Add support for interworking between Thumb code and 5377 non-interworking aware ARM code. 5378 5379Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com) 5380 5381 * po/Make-in (install-info): New target. 5382 5383Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com> 5384 5385 * filemode.c: Remove; not used. 5386 5387 If sysdep.h includes a header file, don't include it again: 5388 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or 5389 <errno.h>. 5390 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than 5391 <sysdep.h>. 5392 * archive.c: Don't include <string.h> or <errno.h>. 5393 * evax-alpha.c; Don't include <stdio.h>. 5394 * evax-egsd.c: Likewise. 5395 * evax-etir.c: Likewise. 5396 * evax-misc.c: Likewise. 5397 * evax-emh.c: Likewise. Also, don't include <sys/types.h>. 5398 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or 5399 <errno.h>. 5400 * hpux-core.c: Likewise. 5401 * netbsd-core.c: Likewise. 5402 * som.c: Likewise. 5403 * libbfd.c: Don't include <sys/types.h>. 5404 * nlmcode.h: Don't include <string.h>. 5405 * osf-core.c: Don't include <string.h> or <stdio.h>. 5406 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>, 5407 <errno.h>, or <unistd.h>. 5408 * trad-core.c: Don't include <stdio.h> or <sys/types.h>. 5409 5410Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de> 5411 5412 * configure.com: If the version number can not be found in 5413 configure.in, set it to "unknown" rather than "2.8.1". 5414 5415Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com> 5416 5417 * elf32-mips.c (elf_mips_mach): New. 5418 (_bfd_mips_elf_object_p): Use elf_mips_mach. 5419 (_bfd_mips_elf_final_write_processing): Use the names 5420 of machines, rather than the numbers. Set both the ARCH 5421 and MACH in e_flags. Handle a few more specific machines. 5422 (_bfd_mips_elf_merge_private_bfd_data): Merge both 5423 EF_MIPS_ARCH and EF_MIPS_MACH. 5424 5425Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com> 5426 5427 * syms.c (bfd_is_local_label): Revert last change. 5428 * srec.c (srec_write_symbols): Discard debugging symbols. 5429 5430Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com> 5431 5432 * som.c: Include <ctype.h>. 5433 * som.h: Don't include sysdep.h. 5434 5435Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com> 5436 5437 * libbfd.h: Rebuilt. 5438 * libbfd-in.h: Removed gettext includes and defines. 5439 * sysdep.h: Moved gettext-related includes and defines here. 5440 5441Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com> 5442 5443 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than 5444 an ad-hoc test. Kill bogus #if 0 code. 5445 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local. 5446 5447Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com> 5448 5449 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address 5450 when generating a normal executable for a symbol defined in a 5451 regular file. When copying a reloc into the output file, adjust 5452 the addend for a PC relative reloc against a global symbol. 5453 5454Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com> 5455 5456 * libbfd.h: Rebuilt. 5457 * libbfd-in.h (_): Define as dgettext. 5458 5459Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com> 5460 5461 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma, 5462 not signed. 5463 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS 5464 when declaring parameter types. 5465 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise. 5466 5467Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com> 5468 5469 * config.bfd: If we include any ELF targets in targ_defvec and/or 5470 targ_selvecs, then add the generic ELF targets to targ_selvecs. 5471 * elf32-gen.c (dummy): New static const variable. 5472 (elf_generic_info_to_howto): New static function. 5473 (elf_generic_info_to_howto_rel): New static function. 5474 (elf_info_to_howto): Define as elf_generic_info_to_howto. 5475 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel. 5476 * elf64-gen.c: Same changes as elf32-gen.c. 5477 * elfcode.h (elf_object_p): For the generic target, ignore a 5478 failure of bfd_default_set_arch_mach. Fix indentation a bit. 5479 5480Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com> 5481 5482 * configure.in (WIN32LIBADD): Add -lintl on cygwin32. 5483 * configure: Rebuild. 5484 5485Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com) 5486 5487 * config.bfd: Update OSR5/Unixware patterns. 5488 5489Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com> 5490 5491 * elf.c (assign_file_positions_for_segments): Allow for holes 5492 between sections added by a link script. 5493 5494Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com> 5495 5496 * configure.in: Change version number to 2.9.4 5497 * configure: Rebuild. 5498 5499 Based on patch from H.J. Lu <hjl@gnu.org>: 5500 * elf.c (bfd_elf_get_bfd_needed_list): New function. 5501 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare. 5502 * bfd-in2.h: Rebuild. 5503 5504Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com> 5505 5506 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other. 5507 Change all users. 5508 5509Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com> 5510 5511 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members. 5512 (elf64_alpha_relax_section): Fill them in. 5513 (elf64_alpha_relax_opt_call): Implement more than a stub. 5514 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default 5515 alignment on .scommon. 5516 (elf64_alpha_merge_gots): Merge use counts as well. 5517 5518Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com> 5519 5520 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section 5521 for calculating a local symbol's address. 5522 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count. 5523 Set the .got's cooked size as well as the raw size. 5524 5525Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com> 5526 5527 * elf32-v850.c (v850_elf_print_private_bfd_data): Add 5528 internationalisation of printed information. 5529 5530 * coff-arm.c (coff_arm_print_private_bfd_data): Add 5531 internationalisation of printed information. 5532 5533Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com> 5534 5535 * syms.c (struct indexentry): Change directory_name, file_name, 5536 and function_name fields to char *. 5537 (struct stab_find_info): Change cached_file_name field to char *. 5538 5539Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com> 5540 5541 * peicode.h (dir_names): Add missing N_() macros to dir_names array. 5542 5543Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com> 5544 5545 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir). 5546 5547Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com> 5548 5549 * Makefile.am (install-data-local): Make $(includedir). 5550 * Makefile.in: Rebuild. 5551 5552Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com> 5553 5554 * libbfd-in.h: Use `gettext' and not `dgettext' for now. 5555 5556Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com> 5557 5558 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl. 5559 * Makefile.in: Rebuild. 5560 5561 * bfd-in2.h: Rebuild for Nick's changes. 5562 5563Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com> 5564 5565 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last 5566 change wrt length == max_namelen. 5567 5568Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com> 5569 5570 * Many files: Added gettext invocations around user-visible 5571 strings. 5572 * libbfd-in.h: Added gettext includes and defines. 5573 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY, 5574 HAVE_LC_MESSAGES): Define. 5575 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and 5576 po/Makefile. 5577 * Makefile.am (SUBDIRS): Added po. 5578 (POTFILES): New macro. 5579 (po/POTFILES.in): New target. 5580 (SOURCE_HFILES): New macro. 5581 (HFILES): Use it. 5582 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files. 5583 5584Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 5585 5586 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first 5587 NT_PRSTATUS note section encountered, it contains the status of 5588 the currently executing thread when the core file was written. 5589 5590Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com> 5591 5592 * libcoff.h: Add extra parameter to 5593 bfd_coff_link_output_has_begun overrideable function. 5594 * cofflink.c: Pass extra parameter to 5595 bfd_coff_link_output_has_begun function. 5596 * bfd-in.h: Add prototypes for exported ARM interworking 5597 functions. 5598 * peicode.h: ARM specific code reorganised to conform to BFD 5599 coding conventions. 5600 * coffcode.h: ARM specific code reorganised to conform to BFD 5601 coding conventions. 5602 * coff-arm.c: Code reorganised to conform to the BFD coding 5603 conventions. Global variables have been moved into an ARM 5604 specific hash table structure and a new function: 5605 bfd_arm_get_bfd_for_interworking() has been created which is 5606 called from the linker scripts. 5607 5608Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com> 5609 5610 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test. 5611 5612 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from 5613 elf64_alpha_relax_find_reloc_ofs. Changed all callers. 5614 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss. 5615 (elf64_alpha_size_got_sections): Don't merge .got sections twice. 5616 5617Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com> 5618 5619 * config.bfd: Added sparc86x support. 5620 5621Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com> 5622 5623 * elf32-mips.c (mips_elf_relocate_section): Do not complain about 5624 an out of range pc-relative jump/call to an undefined weak symbol. 5625 5626Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com> 5627 5628 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp 5629 comparisons signed. 5630 5631Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com> 5632 5633 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns 5634 an error other than bfd_error_system_call, set the error to 5635 bfd_error_wrong_format. 5636 5637 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add 5638 bfd_elf32_powerpcle_vec. 5639 5640 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the 5641 program segments are zero, don't set p_paddr_valid. 5642 5643Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com> 5644 5645 * elf64-alpha.c: Initial implementation of relaxation -- 5646 (struct alpha_elf_link_hash_entry): Add use_count member. 5647 (elf64_alpha_check_relocs): Initialize and increment it. 5648 (elf64_alpha_can_merge_gots): Check it when considering merging. 5649 (elf64_alpha_merge_gots): Drop entries with zero use. 5650 (elf64_alpha_calc_got_offsets_for_symbol): Likewise. 5651 (elf64_alpha_always_size_sections): Split out got sizing ... 5652 (elf64_alpha_size_got_sections): ... here. New function. 5653 (elf64_alpha_relax_find_reloc_ofs): New function. 5654 (elf64_alpha_relax_with_lituse): Likewise. 5655 (elf64_alpha_relax_without_lituse): Likewise. 5656 (elf64_alpha_relax_opt_call): Likewise. 5657 (elf64_alpha_relax_section): Likewise. 5658 (elf64_alpha_add_symbol_hook): Likewise. 5659 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16. 5660 (elf64_alpha_relocate_section): Likewise. 5661 (bfd_elf64_bfd_relax_section): Define. 5662 (elf_backend_add_symbol_hook): Likewise. 5663 5664Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com> 5665 5666 * elf.c (prep_headers): Use new EM_SPARCV9 symbol. 5667 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise. 5668 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64. 5669 5670Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com> 5671 5672 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32. 5673 * configure: Rebuild. 5674 5675Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com> 5676 5677 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@. 5678 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@. 5679 * configure.in: Define and substitute WIN32LDFLAGS and 5680 WIN32LIBADD. 5681 * aclocal.m4: Rebuild with new libtool. 5682 * configure, Makefile.in: Rebuild. 5683 5684Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com> 5685 5686 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol 5687 before any other symbols in the same section. 5688 5689Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com> 5690 5691 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF 5692 systems. 5693 5694Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com> 5695 5696 * dwarf2.c (comp_unit): Move it earlier in the source. Add 5697 addr_size. 5698 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument. 5699 Use addr_size for address size, rather than sizeof(bfd_vma). 5700 (read_attribute): Replace bdf* argument with 'comp_unit*' argument. 5701 Fix call to read_address. 5702 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument. 5703 Scrap other unneeded arguments. Fix call to read_address. 5704 (scan_unit_for_functions): Fix call to read_attribute. 5705 (parse_comp_unit): We now handle more values for addr_size. 5706 Set addr_size in unit. Fix call to read_attribute and 5707 decode_line_info. 5708 5709Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com> 5710 5711 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null. 5712 5713Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com> 5714 5715 * archures.c (bfd_default_scan): Add m68k cases back to default 5716 switch, reverting patch of March 25, since IEEE support depends 5717 upon them. 5718 5719Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com> 5720 5721 * Makefile.am (diststuff): New target. 5722 * Makefile.in: Rebuild. 5723 5724Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com) 5725 5726 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of 5727 som_offset when we have an extended name table. 5728 5729Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org> 5730 5731 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before 5732 trying to copy it. 5733 * Makefile.in: Rebuild. 5734 5735Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 5736 5737 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section 5738 symbols when creating a shared library. 5739 (elf_m68k_adjust_dynindx): New function, used by above code. 5740 (elf_m68k_finish_dynamic_sections): Initialize the section 5741 symbols. 5742 (elf_m68k_relocate_section): Change abort to BFD_ASSERT. 5743 5744Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com> 5745 5746 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant 5747 value 11. 5748 5749Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 5750 5751 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix 5752 assertion. 5753 5754Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com) 5755 5756 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle 5757 absolute symbols. 5758 5759Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com> 5760 5761 * configure.in: Set version to 2.9.1. 5762 * configure: Rebuild. 5763 5764 * Branched binutils 2.9. 5765 5766Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org> 5767 5768 * syms.c (ENABLE_CACHING): Define. 5769 (struct indexentry): Define. 5770 (struct stab_cache): Remove. 5771 (cmpindexentry): New static function. 5772 (struct stab_find_info): Add new fields: indextable, 5773 indextablesize, cached_indexentry, cached_offset, cached_stab, and 5774 cached_file_name. Remove fields: file_cache, function_cache, and 5775 line_cache. 5776 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted 5777 index table and search it. 5778 5779Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com> 5780 5781 * elf.c (_bfd_elf_copy_private_section_data): Call 5782 copy_private_bfd_data once we've seen the last SEC_ALLOC section. 5783 5784 * cpu-mips.c: Remove trailing comma at end of enumeration list. 5785 5786Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com> 5787 5788 * coff-arm.c: Define all globally visible variables and functions 5789 only when COFF_WITH_PE is not defined. 5790 * configure.in (armpe_little_vec, armpe_big_vec): Add 5791 coff-arm.lo. 5792 * configure: Rebuild. 5793 5794Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com> 5795 5796 Fix some gcc -Wall warnings: 5797 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings. 5798 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise. 5799 * archures.c (bfd_default_scan): Likewise. 5800 * bfd.c (bfd_scan_vma): Likewise. 5801 * binary.c (mangle_name): Likewise 5802 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise. 5803 * coff-sh.c (sh_relocate_section): Likewise. 5804 * coff-stgo32.c (create_go32_stub): Likewise. 5805 * coffcode.h (coff_slurp_line_table): Likewise. 5806 * ecoff.c (_bfd_ecoff_write_armap): Likewise. 5807 * elf.c (_bfd_elf_make_section_from_shdr): Likewise. 5808 (assign_file_positions_for_segments): Likewise. 5809 * elf32-mips.c (mips_elf_relocate_section): Likewise. 5810 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise. 5811 * oasys.c (oasys_write_sections): Likewise. 5812 * ppcboot.c (ppcboot_object_p): Likewise. 5813 (mangle_name): Likewise. 5814 * riscix.c (riscix_fix_pcrel_26): Likewise. 5815 * srec.c (srec_scan): Likewise. 5816 * stabs.c (_bfd_write_section_stabs): Likewise. 5817 * sunos.c (sunos_add_dynamic_symbols): Likewise. 5818 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to 5819 switch. Declare parameters for function pointers. 5820 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if 5821 warning. 5822 * elf.c (elf_sort_sections): Likewise. 5823 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation. 5824 Add default cases to switches. 5825 (coff_arm_relocate_section): Remove unused local variables. 5826 Always set rstat. 5827 (coff_arm_bfd_set_private_flags): Change flag variable to type 5828 flagword. 5829 * coff-mips.c (mips_relocate_section): Initialize use_lo. 5830 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int. 5831 (dump_toc): Change cat to const, and initialize it. 5832 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff. 5833 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise. 5834 (sh_elf_relocate_section): Initialize r_symndx. 5835 * coffcode.h (coff_compute_section_file_positions): Only declare 5836 old_sofar if ALIGN_SECTIONS_IN_FILE. 5837 (coff_write_object_contents): Initialize csym. 5838 * coffgen.c (coff_pointerize_aux): Make type and class unsigned. 5839 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to 5840 switch. 5841 * dwarf2.c: Include libiberty.h. 5842 (read_2_signed_bytes, read_4_signed_bytes): Comment out. 5843 (decode_line_info): Remove unused local variables. 5844 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise. 5845 (m32r_elf_relocate_section): Likewise. 5846 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise. 5847 (v850_elf_reloc): Likewise. 5848 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned. 5849 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned. 5850 * elf.c (assign_file_positions_for_segments): Always set adjust. 5851 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully 5852 parenthesize expression. 5853 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h. 5854 (m32r_elf_object_p): Return a value. 5855 (m32r_elf_print_private_bfd_data): Change fprintf format string. 5856 * elf32-mips.c (mips_elf_final_link): Initialize last. 5857 (mips_elf_finish_dynamic_sections): Initialize last and dindx. 5858 * elf32-v850.c (v850_elf_object_p): Return a value. 5859 (v850_elf_print_private_bfd_data): Change fprintf format string. 5860 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to 5861 unsigned long. 5862 * elflink.h (elf_link_add_object_symbols): Change vernum to 5863 unsigned int, and initialize it. Change fprintf format string. 5864 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type 5865 when setting or comparing to soname_indx. 5866 (elf_create_pointer_linker_section): Change num_symbols to 5867 unsigned int. 5868 * libcoff-in.h (coff_data_type): Change flags to flagword. 5869 * peicode.h (pe_print_idata): Initialize idx. Change j to 5870 bfd_size_type. Initialize hint_member. Remove useless test to 5871 time_stamp. 5872 (pe_print_edata): Change num_functions and num_names in struct 5873 EDT_type to unsigned long. Remove cast. Change fprintf format 5874 string. 5875 * ppcboot.c (ppcboot_object_p): Change i to size_t. 5876 * reloc.c (bfd_get_reloc_size): Change return type to unsigned 5877 int. 5878 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to 5879 int *. Update uses. Change j to long. 5880 * bfd-in2.h, libcoff.h: Rebuild. 5881 5882Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com> 5883 5884 * elf32-v850.c Remove definition of USE_REL. 5885 (v850_elf_info_to_howto_rela): New function. 5886 (v850_elf_perform_relocation): Renamed from 5887 v850_elf_store_addend_in_insn. Removed replace argument. 5888 (v850_elf_reloc): store the relocation in the addend field instead 5889 of the insn. 5890 (v850_elf_final_link_relocate): Now calls 5891 v850_elf_perform_relocation. 5892 (v850_elf_relocate_section): Remove code to generate REL 5893 relocations. 5894 5895Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com> 5896 5897 * coffcode.h (coff_new_section_hook): Set the type and storage 5898 class in the native symbol information allocated for a new section 5899 symbol. 5900 5901Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com> 5902 5903 * peicode.h: Chain together calls to 5904 coff_bfd_copy_private_bfd_data and 5905 coff_bfd_print_private_bfd_data. 5906 5907 * coff-arm.c: Add prototypes for 5908 coff_arm_bfd_print_private_bfd_data and 5909 coff_arm_bfd_copy_private_bfd_data. 5910 5911Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com> 5912 5913 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE 5914 build. 5915 5916 * peicode.h: Call arm-coff private data functions after handling 5917 pe private data. 5918 5919 * coff-arm.c: Turn statics into globals so that they can be shared 5920 both pe and pei backends. 5921 5922Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com> 5923 5924 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than 5925 plain numbers. 5926 (sunos_write_object_contents): Likewise. 5927 * aoutx.h (NAME(aout,machine_type)): Likewise. 5928 * coffcode.h (coff_set_arch_mach_hook): Likewise. 5929 5930Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 5931 5932 * archures.c (bfd_mach_m68*): Add definitions for various m68k 5933 variants. 5934 (bfd_default_scan): Remove m68k special cases. 5935 * bfd-in2.h: Rebuild. 5936 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather 5937 than plain numbers. 5938 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise. 5939 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for 5940 m68k:68000. 5941 (bfd_m68k_arch): Set mach field to zero to signal no explicit 5942 selection, change printable_name to just "m68k" and make that the 5943 default instead of m68k:68020. 5944 5945 * aout-tic30.c (NAME): Define this to avoid multiple definitions 5946 from aoutx.h. 5947 (MY_get_section_contents): Define as aout_32_get_section_contents 5948 rather than NAME(aout,get_section_contents). 5949 5950 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast. 5951 5952 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha 5953 and call bfd_default_set_arch_mach to do the real work. 5954 5955Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com> 5956 5957 * bout.c (BALX): Include return register g14 as part of the insn. 5958 (BALX_MASK): New. 5959 (calljx_callback): Use it. 5960 5961Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com> 5962 5963 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma. 5964 * libbfd.h: Rebuild. 5965 5966 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change 5967 byte_count to unsigned int. 5968 (mn10300_elf_relax_section): Initialize internal_relocs. Remove 5969 unused local variables. 5970 5971 * evax-alpha.c (evax_close_and_cleanup): Remove unused local 5972 variables er and er1. 5973 5974 * cpu-v850.c: Include <ctype.h>. 5975 (scan): Case isdigit argument to unsigned char. 5976 5977 From Yan Meroth <YAN.MEROTH@st.com>: 5978 * ihex.c (ihex_scan): Add extbase variable so that getting an 5979 extended linear address record does not ignore any previous 5980 extended address. 5981 (ihex_write_object_contents): When writing out an extended linear 5982 address record, zero out any previous extended address. 5983 5984Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de> 5985 5986 * ieee.c (do_one): Check section before dereferencing it. 5987 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr. 5988 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive. 5989 5990Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com> 5991 5992 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF. 5993 5994Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com> 5995 5996 * coff-arm.c: Add interworking functions to pe backends. 5997 5998Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com> 5999 6000 * configure.in: Use AM_DISABLE_SHARED. 6001 * aclocal.m4, configure: Rebuild with libtool 1.2. 6002 6003Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com> 6004 6005 * coff-arm.c (coff_arm_relocate_section): Better error messages 6006 when interowrking conflucts occur. Courtesy of Jonathan Walton 6007 and Tony Thompson. 6008 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted 6009 relocations. Patch courtesy of Jonathan Walton and Tony 6010 Thompson. 6011 6012Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com> 6013 6014 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert 6015 part of Feb 22 change controling when to override the existing 6016 symbol with the .plt entry. 6017 6018Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com> 6019 6020 * config.bfd (targ_cpu): Add thumb-pe target. 6021 6022 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external 6023 functions in PE build. 6024 6025Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com> 6026 6027 * config.bfd (sparclite-*-elf*): Added. 6028 6029Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com> 6030 6031 * configure.in: Add elf.lo to elf shell variable. 6032 * Makefile.am (BFD_LIBS): Remove elf.lo. 6033 (BFD_LIBS_CFILES): Remove elf.c. 6034 (BFD32_BACKENDS): Add elf.lo. 6035 (BFD32_BACKENDS_CFILES): Add elf.c. 6036 * configure, Makefile.in: Rebuild. 6037 60381998-02-23 15:53 Richard Henderson <rth@cygnus.com> 6039 6040 * elf32-i386.c (elf_i386_relocate_section): A pc-relative 6041 relocation against a now-local symbol should not have a dynamic 6042 relocation. 6043 6044Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com> 6045 6046 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in 6047 COFF filehdr flags. 6048 (pe_print_private_bfd_data): Print PE flags. From Mikey 6049 <jeffdb@netzone.com>. 6050 6051Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com> 6052 6053 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create 6054 a plt entry when we can determine that we authoritatively define 6055 the symbol. 6056 6057Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com> 6058 6059 * configure.in (COREFILE selection): Remove sparc-*-linux*. They 6060 don't actually use trad-core, but a SunOS-style core file handled 6061 by gdb directly. 6062 * hosts/sparclinux.h: Remove. 6063 6064Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com> 6065 6066 * peicode.h (pe_print_idata): If there is no .idata section, look 6067 for the import tables in some other section. Make the initial 6068 label line up better with the data. Print the import address 6069 table even if there is no import name table. If the import 6070 address table holds actual addresses, print them. 6071 6072Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com> 6073 6074 * libbfd.c (bfd_seek): If fseek fails, save errno around call to 6075 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not 6076 bfd_error_system_call. 6077 6078Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com> 6079 6080 * Makefile.am (AUTOMAKE_OPTIONS): Define. 6081 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e. 6082 6083 From H.J. Lu <hjl@gnu.org>: 6084 * Makefile.am (libbfd_la_LDFLAGS): Define. 6085 * Makefile.in: Rebuild. 6086 6087Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com> 6088 6089 NetBSD patches from Gordon W. Ross <gwr@mc.com>: 6090 * netbsd.h (MACHTYPE_OK): Define. 6091 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when 6092 calling N_SET_MACHTYPE, rather than having a switch. 6093 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD, 6094 and M_ALPHA_NETBSD. 6095 * i386netbsd.c (MACHTYPE_OK): Don't define. 6096 (DEFAULT_MID): Define. 6097 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define. 6098 (MACHTYPE_OK): Don't define. 6099 (DEFAULT_MID): Define. 6100 * m68knetbsd.c: (MACHTYPE_OK): Don't define. 6101 (DEFAULT_MID): Define. 6102 * ns32knetbsd.c (MACHTYPE_OK): Don't define. 6103 (DEFAULT_MID): Define. 6104 * sparcnetbsd.c (MACHTYPE_OK): Don't define. 6105 (DEFAULT_MID): Define. 6106 6107 NetBSD patches from Gordon W. Ross <gwr@mc.com>: 6108 * vaxnetbsd.c: New file. 6109 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd 6110 rather than netbsd_core. 6111 * targets.c (vaxnetbsd_vec): Declare. 6112 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is 6113 defined, add netbsd_core_vec. 6114 * configure.in: Set COREFILE for alpha*-*-netbsd* and 6115 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is 6116 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE. 6117 * config.bfd (alpha*-*-netbsd*): New target. 6118 * Makefile.am: Rebuild dependencies. 6119 (BFD32_BACKENDS): Add vaxnetbsd.lo. 6120 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c. 6121 * configure, Makefile.in: Rebuild. 6122 6123 * configure.host: Remove the old shared library build stuff. We 6124 now use libtool instead. 6125 6126Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com> 6127 6128 * tekhex.c (tekhex_write_object_contents): Call tekhex_init. 6129 6130Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org> 6131 6132 * configure.in: Take stab-syms.lo out of sparclinux_vec list. 6133 * configure: Rebuild. 6134 6135Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com> 6136 * elf32-v850.c (remember_hi16s_reloc): New function. 6137 (find_remembered_hi16s_reloc): New function. 6138 (v850_elf_store_addend_in_insn): Use the above new functions to 6139 match up HI6S relocs with LO16 relocs. 6140 6141Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com> 6142 6143 * configure.in: Change -linux* to -linux-gnu*. 6144 * config.bfd, configure.host: Likewise. 6145 * configure: Rebuild. 6146 6147Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com> 6148 6149 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another 6150 LO16/HI16S bug and improve comments about what is going on. 6151 6152Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com> 6153 6154 * configure, aclocal.m4: Rebuild with new libtool. 6155 6156Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com> 6157 6158 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain 6159 when merging v850 code into v850e/v850ea code. Do not initialise 6160 output flags if the input is the default architecture. 6161 6162Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com) 6163 6164 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR 6165 get the size from bfd_arch_bits_per_address instead of directly 6166 from the isa. 6167 6168Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com> 6169 6170 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address 6171 to wrap, just return all 1's bits instead. 6172 * libbfd.h: Regenerate. 6173 6174Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com> 6175 6176 * coff-i386.c (coff_pe_i386_relocate_section): New static function 6177 if COFF_WITH_PE. 6178 (coff_relocate_section): If COFF_WITH_PE, define as 6179 coff_pe_i386_relocate_section. 6180 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE, 6181 skip empty sections, to match coff_write_object_contents. 6182 6183 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend, 6184 rather than swapping out r_offset twice. From Luke Deller 6185 <luked@cse.unsw.edu.au>. 6186 6187Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com> 6188 6189 * configure.in: Set libtool_enable_shared rather than 6190 libtool_shared. Remove diversion hack. 6191 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild 6192 with new libtool. 6193 6194Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org> 6195 6196 * syms.c (struct stab_cache): Define. 6197 (struct stab_find_info): Remove cached_offset, cached_stab, 6198 cached_str, and cached_stroff fields. Add file_cache, 6199 function_cache, and line_cache fields. 6200 (_bfd_stab_section_find_nearest_line): Use extensive caching to 6201 speed up searches. 6202 6203Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com> 6204 6205 * peicode.h (pe_print_idata): Check for import of ordinal rather 6206 than name. 6207 (pe_print_edata): If there is no .edata section, look for the 6208 export data in some other section. 6209 6210Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com) 6211 6212 * configure.in: Change version to 2.8.4. 6213 * configure: Regenerated. 6214 6215Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU> 6216 6217 Add tms320c30 support: 6218 * cpu-tic30.c: New file. 6219 * aout-tic30.c: New file. 6220 * coff-tic30.c: New file. 6221 * archures.c (bfd_arch_tic30): Define. 6222 (bfd_tic30_arch): Declare. 6223 (bfd_archures_list): Add bfd_tic30_arch. 6224 * targets.c (bfd_target_vector): Add tic30_aout_vec and 6225 tic30_coff_vec. 6226 * reloc.c (BFD_RELOC_TIC30_LDP): Define. 6227 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case. 6228 (coff_set_flags): Likewise. 6229 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets. 6230 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors. 6231 * Makefile.am: Rebuild dependencies. 6232 (ALL_MACHINES): Add cpu-tic30.lo. 6233 (ALL_MACHINES_CFILES): Add cpu-tic30.c. 6234 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo. 6235 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c. 6236 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild. 6237 6238Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com> 6239 6240 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc 6241 to lag behind LO16 reloc by a couple of instructions. 6242 6243Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com> 6244 6245 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force 6246 make to reexamine the file timestamp. 6247 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise. 6248 6249 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from 6250 0x100000. 6251 6252Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au> 6253 6254 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure 6255 to create .dynsbss and .rela.sbss sections. 6256 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be 6257 copied from dynamic objects into .sbss. 6258 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't 6259 use it. Correct typo of .rela.sdata2. 6260 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we 6261 put the data, which may now be in .sbss. 6262 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss. 6263 (elf_backend_create_dynamic_sections): Define as 6264 ppc_elf_create_dynamic_sections. 6265 6266 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs 6267 against _GLOBAL_OFFSET_TABLE_. 6268 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in 6269 shared libraries which refer to local symbols. Make sure that the 6270 test for allocating space for a reloc in a shared object is the 6271 same as the test for emitting a reloc. 6272 6273Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl> 6274 6275 * config.bfd (i[3456]-*-mingw32*): New target. 6276 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32. 6277 * aclocal.m4, configure: Rebuild. 6278 6279Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com> 6280 6281 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we 6282 have a bfd_object. 6283 6284Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com> 6285 6286 Sparc v9 ABI compliant PLT: 6287 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries. 6288 (plt_templates, sparc64_elf_build_plt_entry): Delete. 6289 (LARGE_PLT_THRESHOLD): New define. 6290 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1. 6291 (sparc64_elf_build_plt): New function. 6292 (sparc64_elf_plt_entry_offset): Likewise. 6293 (sparc64_elf_plt_ptr_offset): Likewise. 6294 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to 6295 contain the index for convenience. Skip the initial entries 6296 in .rela.plt. 6297 (sparc64_elf_size_dynamic_sections): Zero the allocated contents 6298 memory for the benefit of .rela.plt. 6299 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset. 6300 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use 6301 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc. 6302 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt. 6303 Call sparc64_elf_build_plt. 6304 (elf_backend_want_got_plt): No. 6305 (elf_backend_plt_readonly): No. 6306 (elf_backend_plt_alignment): 8. 6307 6308 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab. 6309 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it. 6310 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it 6311 to be called. 6312 6313Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com) 6314 6315 * archures.c (bfd_mach_mips*): Add definitions for various MIPS 6316 processors. 6317 * cpu-mips.c (arch_info_struct): Add mips variants. 6318 * bfd-in2.h: Rebuilt. 6319 6320Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com> 6321 6322 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of 6323 t2a3_b_insn. 6324 6325Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com> 6326 6327 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default. 6328 (i[3456]86sco3.2v5*coff): New target. 6329 6330Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com> 6331 6332 * bfd-in2.h: Rebuild with changes to chew--tab expansion. 6333 6334Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com> 6335 6336 * bfd.c (bfd_get_error_handler): Add orthogonal function. 6337 * bfd-in2.h: Regenerate. 6338 6339Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com> 6340 6341 * tekhex.c (tekhex_write_object_contents): Check for no symbols. 6342 6343Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com> 6344 6345 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't 6346 adjust addend for an output common symbol (from Jimmy Blair 6347 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative 6348 defined symbol to counteract adjustment made in generic relocation 6349 code. 6350 6351 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h. 6352 6353Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de> 6354 6355 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name. 6356 (GET_SCNDHR_NLNNO): Likewise. 6357 6358Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com> 6359 6360 * cpu-sh.c (arch_info_struct): Correct next field of sh3e. 6361 6362Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com> 6363 6364 * elf32-m32r.c: Add macros to handle NOP insertion. 6365 6366Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com> 6367 6368 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section. 6369 (xcoff_mark): Likewise. 6370 (xcoff_build_ldsyms): Mark absolute symbols. 6371 6372Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com> 6373 6374 * bout.c (b_out_write_object_contents): Sort symbols before output 6375 to keep {CALL,BAL}NAME symbols adjacent. 6376 (b_out_symbol_cmp): New function. 6377 6378For older changes see ChangeLog-9697 6379 6380Local Variables: 6381mode: change-log 6382left-margin: 8 6383fill-column: 74 6384version-control: never 6385End: 6386