ChangeLog revision 38889
1Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com> 2 3 * configure.in: Set version number to 2.9.1. 4 * configure: Rebuild. 5 6 Based on patch from H.J. Lu <hjl@gnu.org>: 7 * elf.c (bfd_elf_get_bfd_needed_list): New function. 8 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare. 9 * bfd-in2.h: Rebuild. 10 11Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com> 12 13 * syms.c (struct indexentry): Change directory_name, file_name, 14 and function_name fields to char *. 15 (struct stab_find_info): Change cached_file_name field to char *. 16 17Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com> 18 19 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns 20 an error other than bfd_error_system_call, set the error to 21 bfd_error_wrong_format. 22 23 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add 24 bfd_elf32_powerpcle_vec. 25 26 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the 27 program segments are zero, don't set p_paddr_valid. 28 29Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com> 30 31 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol 32 before any other symbols in the same section. 33 34Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com> 35 36 * archures.c (bfd_default_scan): Add m68k cases back to default 37 switch, reverting patch of March 25, since IEEE support depends 38 upon them. 39 40Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com> 41 42 * Makefile.am (diststuff): New target. 43 * Makefile.in: Rebuild. 44 45Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com) 46 47 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of 48 som_offset when we have an extended name table. 49 50Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org> 51 52 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before 53 trying to copy it. 54 * Makefile.in: Rebuild. 55 56Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 57 58 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section 59 symbols when creating a shared library. 60 (elf_m68k_adjust_dynindx): New function, used by above code. 61 (elf_m68k_finish_dynamic_sections): Initialize the section 62 symbols. 63 (elf_m68k_relocate_section): Change abort to BFD_ASSERT. 64 65Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 66 67 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix 68 assertion. 69 70Tue Mar 31 16:25:45 1998 Ian Lance Taylor <ian@cygnus.com> 71 72 * Makefile.am: Rebuild dependencies. 73 * Makefile.in: Rebuild. 74 75Mon Mar 30 16:12:17 1998 Ian Lance Taylor <ian@cygnus.com> 76 77 * configure.in: Set version number to 2.9. 78 * configure: Rebuild. 79 80Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org> 81 82 * syms.c (ENABLE_CACHING): Define. 83 (struct indexentry): Define. 84 (struct stab_cache): Remove. 85 (cmpindexentry): New static function. 86 (struct stab_find_info): Add new fields: indextable, 87 indextablesize, cached_indexentry, cached_offset, cached_stab, and 88 cached_file_name. Remove fields: file_cache, function_cache, and 89 line_cache. 90 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted 91 index table and search it. 92 93Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com> 94 95 * elf.c (_bfd_elf_copy_private_section_data): Call 96 copy_private_bfd_data once we've seen the last SEC_ALLOC section. 97 98 * cpu-mips.c: Remove trailing comma at end of enumeration list. 99 100Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com> 101 102 * coff-arm.c: Define all globally visible variables and functions 103 only when COFF_WITH_PE is not defined. 104 * configure.in (armpe_little_vec, armpe_big_vec): Add 105 coff-arm.lo. 106 * configure: Rebuild. 107 108Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com> 109 110 Fix some gcc -Wall warnings: 111 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings. 112 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise. 113 * archures.c (bfd_default_scan): Likewise. 114 * bfd.c (bfd_scan_vma): Likewise. 115 * binary.c (mangle_name): Likewise 116 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise. 117 * coff-sh.c (sh_relocate_section): Likewise. 118 * coff-stgo32.c (create_go32_stub): Likewise. 119 * coffcode.h (coff_slurp_line_table): Likewise. 120 * ecoff.c (_bfd_ecoff_write_armap): Likewise. 121 * elf.c (_bfd_elf_make_section_from_shdr): Likewise. 122 (assign_file_positions_for_segments): Likewise. 123 * elf32-mips.c (mips_elf_relocate_section): Likewise. 124 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise. 125 * oasys.c (oasys_write_sections): Likewise. 126 * ppcboot.c (ppcboot_object_p): Likewise. 127 (mangle_name): Likewise. 128 * riscix.c (riscix_fix_pcrel_26): Likewise. 129 * srec.c (srec_scan): Likewise. 130 * stabs.c (_bfd_write_section_stabs): Likewise. 131 * sunos.c (sunos_add_dynamic_symbols): Likewise. 132 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to 133 switch. Declare parameters for function pointers. 134 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if 135 warning. 136 * elf.c (elf_sort_sections): Likewise. 137 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation. 138 Add default cases to switches. 139 (coff_arm_relocate_section): Remove unused local variables. 140 Always set rstat. 141 (coff_arm_bfd_set_private_flags): Change flag variable to type 142 flagword. 143 * coff-mips.c (mips_relocate_section): Initialize use_lo. 144 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int. 145 (dump_toc): Change cat to const, and initialize it. 146 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff. 147 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise. 148 (sh_elf_relocate_section): Initialize r_symndx. 149 * coffcode.h (coff_compute_section_file_positions): Only declare 150 old_sofar if ALIGN_SECTIONS_IN_FILE. 151 (coff_write_object_contents): Initialize csym. 152 * coffgen.c (coff_pointerize_aux): Make type and class unsigned. 153 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to 154 switch. 155 * dwarf2.c: Include libiberty.h. 156 (read_2_signed_bytes, read_4_signed_bytes): Comment out. 157 (decode_line_info): Remove unused local variables. 158 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise. 159 (m32r_elf_relocate_section): Likewise. 160 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise. 161 (v850_elf_reloc): Likewise. 162 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned. 163 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned. 164 * elf.c (assign_file_positions_for_segments): Always set adjust. 165 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully 166 parenthesize expression. 167 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h. 168 (m32r_elf_object_p): Return a value. 169 (m32r_elf_print_private_bfd_data): Change fprintf format string. 170 * elf32-mips.c (mips_elf_final_link): Initialize last. 171 (mips_elf_finish_dynamic_sections): Initialize last and dindx. 172 * elf32-v850.c (v850_elf_object_p): Return a value. 173 (v850_elf_print_private_bfd_data): Change fprintf format string. 174 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to 175 unsigned long. 176 * elflink.h (elf_link_add_object_symbols): Change vernum to 177 unsigned int, and initialize it. Change fprintf format string. 178 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type 179 when setting or comparing to soname_indx. 180 (elf_create_pointer_linker_section): Change num_symbols to 181 unsigned int. 182 * libcoff-in.h (coff_data_type): Change flags to flagword. 183 * peicode.h (pe_print_idata): Initialize idx. Change j to 184 bfd_size_type. Initialize hint_member. Remove useless test to 185 time_stamp. 186 (pe_print_edata): Change num_functions and num_names in struct 187 EDT_type to unsigned long. Remove cast. Change fprintf format 188 string. 189 * ppcboot.c (ppcboot_object_p): Change i to size_t. 190 * reloc.c (bfd_get_reloc_size): Change return type to unsigned 191 int. 192 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to 193 int *. Update uses. Change j to long. 194 * bfd-in2.h, libcoff.h: Rebuild. 195 196Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com> 197 198 * coffcode.h (coff_new_section_hook): Set the type and storage 199 class in the native symbol information allocated for a new section 200 symbol. 201 202Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com> 203 204 * peicode.h: Chain together calls to 205 coff_bfd_copy_private_bfd_data and 206 coff_bfd_print_private_bfd_data. 207 208 * coff-arm.c: Add prototypes for 209 coff_arm_bfd_print_private_bfd_data and 210 coff_arm_bfd_copy_private_bfd_data. 211 212Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com> 213 214 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE 215 build. 216 217 * peicode.h: Call arm-coff private data functions after handling 218 pe private data. 219 220 * coff-arm.c: Turn statics into globals so that they can be shared 221 both pe and pei backends. 222 223Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com> 224 225 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than 226 plain numbers. 227 (sunos_write_object_contents): Likewise. 228 * aoutx.h (NAME(aout,machine_type)): Likewise. 229 * coffcode.h (coff_set_arch_mach_hook): Likewise. 230 231Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 232 233 * archures.c (bfd_mach_m68*): Add definitions for various m68k 234 variants. 235 (bfd_default_scan): Remove m68k special cases. 236 * bfd-in2.h: Rebuild. 237 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather 238 than plain numbers. 239 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise. 240 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for 241 m68k:68000. 242 (bfd_m68k_arch): Set mach field to zero to signal no explicit 243 selection, change printable_name to just "m68k" and make that the 244 default instead of m68k:68020. 245 246 * aout-tic30.c (NAME): Define this to avoid multiple definitions 247 from aoutx.h. 248 (MY_get_section_contents): Define as aout_32_get_section_contents 249 rather than NAME(aout,get_section_contents). 250 251 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast. 252 253 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha 254 and call bfd_default_set_arch_mach to do the real work. 255 256Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com> 257 258 * bout.c (BALX): Include return register g14 as part of the insn. 259 (BALX_MASK): New. 260 (calljx_callback): Use it. 261 262Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com> 263 264 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma. 265 * libbfd.h: Rebuild. 266 267 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change 268 byte_count to unsigned int. 269 (mn10300_elf_relax_section): Initialize internal_relocs. Remove 270 unused local variables. 271 272 * evax-alpha.c (evax_close_and_cleanup): Remove unused local 273 variables er and er1. 274 275 * cpu-v850.c: Include <ctype.h>. 276 (scan): Case isdigit argument to unsigned char. 277 278 From Yan Meroth <YAN.MEROTH@st.com>: 279 * ihex.c (ihex_scan): Add extbase variable so that getting an 280 extended linear address record does not ignore any previous 281 extended address. 282 (ihex_write_object_contents): When writing out an extended linear 283 address record, zero out any previous extended address. 284 285Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de> 286 287 * ieee.c (do_one): Check section before dereferencing it. 288 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr. 289 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive. 290 291Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com> 292 293 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF. 294 295Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com> 296 297 * coff-arm.c: Add interworking functions to pe backends. 298 299Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com> 300 301 * configure.in: Use AM_DISABLE_SHARED. 302 * aclocal.m4, configure: Rebuild with libtool 1.2. 303 304Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com> 305 306 * coff-arm.c (coff_arm_relocate_section): Better error messages 307 when interowrking conflucts occur. Courtesy of Jonathan Walton 308 and Tony Thompson. PR 15357. 309 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted 310 relocations. Patch courtesy of Jonathan Walton and Tony 311 Thompson. PR 15373. 312 313Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com> 314 315 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert 316 part of Feb 22 change controling when to override the existing 317 symbol with the .plt entry. 318 319Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com> 320 321 * config.bfd (targ_cpu): Add thumb-pe target. 322 323 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external 324 functions in PE build. 325 326Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com> 327 328 * config.bfd (sparclite-*-elf*): Added. 329 330Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com> 331 332 * configure.in: Add elf.lo to elf shell variable. 333 * Makefile.am (BFD_LIBS): Remove elf.lo. 334 (BFD_LIBS_CFILES): Remove elf.c. 335 (BFD32_BACKENDS): Add elf.lo. 336 (BFD32_BACKENDS_CFILES): Add elf.c. 337 * configure, Makefile.in: Rebuild. 338 3391998-02-23 15:53 Richard Henderson <rth@cygnus.com> 340 341 * elf32-i386.c (elf_i386_relocate_section): A pc-relative 342 relocation against a now-local symbol should not have a dynamic 343 relocation. 344 345Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com> 346 347 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in 348 COFF filehdr flags. 349 (pe_print_private_bfd_data): Print PE flags. From Mikey 350 <jeffdb@netzone.com>. 351 352Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com> 353 354 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create 355 a plt entry when we can determine that we authoritatively define 356 the symbol. 357 358Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com> 359 360 * configure.in (COREFILE selection): Remove sparc-*-linux*. They 361 don't actually use trad-core, but a SunOS-style core file handled 362 by gdb directly. 363 * hosts/sparclinux.h: Remove. 364 365Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com> 366 367 * peicode.h (pe_print_idata): If there is no .idata section, look 368 for the import tables in some other section. Make the initial 369 label line up better with the data. Print the import address 370 table even if there is no import name table. If the import 371 address table holds actual addresses, print them. 372 373Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com> 374 375 * libbfd.c (bfd_seek): If fseek fails, save errno around call to 376 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not 377 bfd_error_system_call. 378 379Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com> 380 381 * Makefile.am (AUTOMAKE_OPTIONS): Define. 382 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e. 383 384 From H.J. Lu <hjl@gnu.org>: 385 * Makefile.am (libbfd_la_LDFLAGS): Define. 386 * Makefile.in: Rebuild. 387 388Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com> 389 390 NetBSD patches from Gordon W. Ross <gwr@mc.com>: 391 * netbsd.h (MACHTYPE_OK): Define. 392 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when 393 calling N_SET_MACHTYPE, rather than having a switch. 394 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD, 395 and M_ALPHA_NETBSD. 396 * i386netbsd.c (MACHTYPE_OK): Don't define. 397 (DEFAULT_MID): Define. 398 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define. 399 (MACHTYPE_OK): Don't define. 400 (DEFAULT_MID): Define. 401 * m68knetbsd.c: (MACHTYPE_OK): Don't define. 402 (DEFAULT_MID): Define. 403 * ns32knetbsd.c (MACHTYPE_OK): Don't define. 404 (DEFAULT_MID): Define. 405 * sparcnetbsd.c (MACHTYPE_OK): Don't define. 406 (DEFAULT_MID): Define. 407 408 NetBSD patches from Gordon W. Ross <gwr@mc.com>: 409 * vaxnetbsd.c: New file. 410 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd 411 rather than netbsd_core. 412 * targets.c (vaxnetbsd_vec): Declare. 413 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is 414 defined, add netbsd_core_vec. 415 * configure.in: Set COREFILE for alpha*-*-netbsd* and 416 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is 417 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE. 418 * config.bfd (alpha*-*-netbsd*): New target. 419 * Makefile.am: Rebuild dependencies. 420 (BFD32_BACKENDS): Add vaxnetbsd.lo. 421 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c. 422 * configure, Makefile.in: Rebuild. 423 424 * configure.host: Remove the old shared library build stuff. We 425 now use libtool instead. 426 427Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com> 428 429 * tekhex.c (tekhex_write_object_contents): Call tekhex_init. 430 431Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org> 432 433 * configure.in: Take stab-syms.lo out of sparclinux_vec list. 434 * configure: Rebuild. 435 436Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com> 437 * elf32-v850.c (remember_hi16s_reloc): New function. 438 (find_remembered_hi16s_reloc): New function. 439 (v850_elf_store_addend_in_insn): Use the above new functions to 440 match up HI6S relocs with LO16 relocs. 441 442Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com> 443 444 * configure.in: Change -linux* to -linux-gnu*. 445 * config.bfd, configure.host: Likewise. 446 * configure: Rebuild. 447 448Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com> 449 450 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another 451 LO16/HI16S bug and improve comments about what is going on. 452 453Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com> 454 455 * configure, aclocal.m4: Rebuild with new libtool. 456 457Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com) 458 459 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR 460 get the size from bfd_arch_bits_per_address instead of directly 461 from the isa. 462 463Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com> 464 465 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address 466 to wrap, just return all 1's bits instead. 467 * libbfd.h: Regenerate. 468 469Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com> 470 471 * coff-i386.c (coff_pe_i386_relocate_section): New static function 472 if COFF_WITH_PE. 473 (coff_relocate_section): If COFF_WITH_PE, define as 474 coff_pe_i386_relocate_section. 475 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE, 476 skip empty sections, to match coff_write_object_contents. 477 478 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend, 479 rather than swapping out r_offset twice. From Luke Deller 480 <luked@cse.unsw.edu.au>. 481 482Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com> 483 484 * configure.in: Set libtool_enable_shared rather than 485 libtool_shared. Remove diversion hack. 486 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild 487 with new libtool. 488 489Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org> 490 491 * syms.c (struct stab_cache): Define. 492 (struct stab_find_info): Remove cached_offset, cached_stab, 493 cached_str, and cached_stroff fields. Add file_cache, 494 function_cache, and line_cache fields. 495 (_bfd_stab_section_find_nearest_line): Use extensive caching to 496 speed up searches. 497 498Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com> 499 500 * peicode.h (pe_print_idata): Check for import of ordinal rather 501 than name. 502 (pe_print_edata): If there is no .edata section, look for the 503 export data in some other section. 504 505Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com) 506 507 * configure.in: Change version to 2.8.4. 508 * configure: Regenerated. 509 510Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU> 511 512 Add tms320c30 support: 513 * cpu-tic30.c: New file. 514 * aout-tic30.c: New file. 515 * coff-tic30.c: New file. 516 * archures.c (bfd_arch_tic30): Define. 517 (bfd_tic30_arch): Declare. 518 (bfd_archures_list): Add bfd_tic30_arch. 519 * targets.c (bfd_target_vector): Add tic30_aout_vec and 520 tic30_coff_vec. 521 * reloc.c (BFD_RELOC_TIC30_LDP): Define. 522 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case. 523 (coff_set_flags): Likewise. 524 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets. 525 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors. 526 * Makefile.am: Rebuild dependencies. 527 (ALL_MACHINES): Add cpu-tic30.lo. 528 (ALL_MACHINES_CFILES): Add cpu-tic30.c. 529 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo. 530 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c. 531 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild. 532 533Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com> 534 535 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc 536 to lag behind LO16 reloc by a couple of instructions. 537 538Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com> 539 540 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force 541 make to reexamine the file timestamp. 542 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise. 543 544 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from 545 0x100000. 546 547Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au> 548 549 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure 550 to create .dynsbss and .rela.sbss sections. 551 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be 552 copied from dynamic objects into .sbss. 553 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't 554 use it. Correct typo of .rela.sdata2. 555 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we 556 put the data, which may now be in .sbss. 557 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss. 558 (elf_backend_create_dynamic_sections): Define as 559 ppc_elf_create_dynamic_sections. 560 561 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs 562 against _GLOBAL_OFFSET_TABLE_. 563 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in 564 shared libraries which refer to local symbols. Make sure that the 565 test for allocating space for a reloc in a shared object is the 566 same as the test for emitting a reloc. 567 568Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl> 569 570 * config.bfd (i[3456]-*-mingw32*): New target. 571 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32. 572 * aclocal.m4, configure: Rebuild. 573 574Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com> 575 576 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we 577 have a bfd_object. 578 579Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com> 580 581 Sparc v9 ABI compliant PLT: 582 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries. 583 (plt_templates, sparc64_elf_build_plt_entry): Delete. 584 (LARGE_PLT_THRESHOLD): New define. 585 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1. 586 (sparc64_elf_build_plt): New function. 587 (sparc64_elf_plt_entry_offset): Likewise. 588 (sparc64_elf_plt_ptr_offset): Likewise. 589 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to 590 contain the index for convenience. Skip the initial entries 591 in .rela.plt. 592 (sparc64_elf_size_dynamic_sections): Zero the allocated contents 593 memory for the benefit of .rela.plt. 594 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset. 595 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use 596 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc. 597 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt. 598 Call sparc64_elf_build_plt. 599 (elf_backend_want_got_plt): No. 600 (elf_backend_plt_readonly): No. 601 (elf_backend_plt_alignment): 8. 602 603 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab. 604 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it. 605 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it 606 to be called. 607 608Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com) 609 610 * archures.c (bfd_mach_mips*): Add definitions for various MIPS 611 processors. 612 * cpu-mips.c (arch_info_struct): Add mips variants. 613 * bfd-in2.h: Rebuilt. 614 615Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com> 616 617 * coff-arm.c (coff_arm_relocate_section): Fix for PR14752 by 618 preserving the contents of t2a3_b_insn. 619 620Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com> 621 622 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default. 623 (i[3456]86sco3.2v5*coff): New target. 624 625Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com> 626 627 * bfd-in2.h: Rebuild with changes to chew--tab expansion. 628 629Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com> 630 631 * bfd.c (bfd_get_error_handler): Add orthogonal function. 632 * bfd-in2.h: Regenerate. 633 634Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com> 635 636 * tekhex.c (tekhex_write_object_contents): Check for no symbols. 637 638Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com> 639 640 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't 641 adjust addend for an output common symbol (from Jimmy Blair 642 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative 643 defined symbol to counteract adjustment made in generic relocation 644 code. 645 646 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h. 647 648Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de> 649 650 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name. 651 (GET_SCNDHR_NLNNO): Likewise. 652 653Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com> 654 655 * cpu-sh.c (arch_info_struct): Correct next field of sh3e. 656 657Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com> 658 659 * elf32-m32r.c: Add macros to handle NOP insertion. 660 661Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com> 662 663 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section. 664 (xcoff_mark): Likewise. 665 (xcoff_build_ldsyms): Mark absolute symbols. 666 667Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com> 668 669 * bout.c (b_out_write_object_contents): Sort symbols before output 670 to keep {CALL,BAL}NAME symbols adjacent. 671 (b_out_symbol_cmp): New function. 672 673Tue Dec 30 12:45:18 1997 Ian Lance Taylor <ian@cygnus.com> 674 675 * elf32-sparc.c (elf32_sparc_check_relocs): If -Bsymbolic, don't 676 allocate space for a PC relative reloc against a symbol which is 677 defined in a regular file. 678 (elf32_sparc_relocate_section): If -Bsymbolic, don't copy a PC 679 relative reloc against a symbol which is defined in a regular 680 file. 681 682Mon Dec 29 18:02:28 1997 Ian Lance Taylor <ian@cygnus.com> 683 684 From Jonathan Stone <jonathan@DSG.Stanford.EDU>: 685 * config.bfd (mips-dec-netbsd*): Add ECOFF vectors to 686 targ_selvecs. 687 (mips*el-*-netbsd*): Like mips-dec-netbsd*. 688 (mips*-*-netbsd*): New target. 689 690Mon Dec 29 17:13:28 1997 H.J. Lu (hjl@gnu.org) 691 692 * elflink.h (elf_link_assign_sym_version): Change error message 693 from "undefined version name" to "undefined versioned symbol 694 name". 695 696Mon Dec 29 11:41:16 1997 Nick Clifton <nickc@cygnus.com> 697 698 * coff-arm.c (coff_arm_relocate_section): Fix typo from previous 699 delta. 700 701Tue Dec 23 17:01:10 1997 Ian Lance Taylor <ian@cygnus.com> 702 703 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Declare. 704 * libbfd.h: Rebuild. 705 706 * peicode.h (coff_swap_scnhdr_out): Set .reloc section to be 707 shared. Set stab* sections to be shared and read. Set .rsrc 708 section to be read and shared. 709 710Mon Dec 22 13:20:57 1997 Ian Lance Taylor <ian@cygnus.com> 711 712 * Makefile.am: Rebuild dependencies. 713 (ALL_MACHINES_CFILES): Add dwarf2.lo. 714 (ALL_MACHINES_CFILES): Add dwarf2.c. 715 * Makefile.in: Rebuild. 716 717 * coff-arm.c: Don't include obstack.h. 718 719Mon Dec 22 13:04:33 1997 Joel Sherrill <joel@oarcorp.com> 720 721 * config.bfd (i[3456]86*-go32-rtems*): Fix to be the same as 722 i[3456]86-go32. 723 724Thu Dec 18 16:01:25 1997 Doug Evans <devans@canuck.cygnus.com> 725 726 * configure: Regenerate to get @SHELL@ substituted. 727 728Wed Dec 17 09:45:09 1997 Nick Clifton <nickc@cygnus.com> 729 730 * coff-arm.c (coff_arm_relocate_section): Only look at section 731 owner if there is one. 732 733 * elf.c (assign_file_positions_for_segments): Fail if there is not 734 enough room for the program headers. (PR14186) 735 736Tue Dec 16 08:09:56 1997 Gavin Koch <gavin@cygnus.com> 737 738 * elf.c (_bfd_elf_find_nearest_line): Call 739 _bfd_dwarf2_find_nearest_line first. 740 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Same. 741 * dwarf2.c: New file; implement _bfd_dwarf2_find_nearest_line. 742 743Mon Dec 15 16:08:52 1997 Nick Clifton <nickc@cygnus.com> 744 745 * archures.c: Add bfd_mach_m32r. 746 747Mon Dec 15 16:11:22 1997 Fred Fish <fnf@cygnus.com> 748 749 * coffcode.h (ALIGN_SECTIONS_IN_FILE): Define if I960 not defined. 750 (coff_compute_section_file_positions): Use ALIGN_SECTIONS_IN_FILE 751 to decide when to align the file sections for paging. 752 753Mon Dec 15 15:01:15 1997 Nick Clifton <nickc@cygnus.com> 754 755 * elf32-m32r.c (m32r_elf_object_p): New Function. 756 (m32r_elf_final_write_processing): New Function. 757 (m32r_elf_set_private_flags): New Function. 758 (m32r_elf_copy_private_bfd_data): New Function. 759 (m32r_elf_merge_private_bfd_data): New Function. 760 (m32r_elf_print_private_bfd_data): New Function. 761 (elf_backend_object_p): Point to m32r_object_p. 762 (elf_backend_final_write_processing): Point to 763 m32r_elf_final_write_processing. 764 (bfd_elf32_bfd_copy_private_bfd_data): Point to 765 m32r_elf_copy_private_bfd_data. 766 (bfd_elf32_bfd_merge_private_bfd_data): Point to 767 m32r_elf_merge_private_bfd_data. 768 (bfd_elf32_bfd_set_private_flags): Point to 769 m32r_elf_set_private_bfd_data. 770 (bfd_elf32_bfd_print_private_bfd_data): Point to 771 m32r_elf_print_private_bfd_data. 772 773 774 * bfd-in2.h (bfd_mach_m32r): Add identifier for M32R architecture 775 machines. 776 777Fri Dec 12 11:30:28 1997 Brendan Kehoe <brendan@canuck.cygnus.com> 778 779 * configure: Only build libbfd shared if --enable-shared's value 780 was `yes', or was set to `*bfd*'. 781 * aclocal.m4: Likewise. 782 * NOTE: this really needs to be fixed in libtool/libtool.m4, the 783 original source of this bit of code. It's not clear what the best fix 784 would be, though. 785 786Thu Dec 11 17:48:11 1997 Richard Henderson <rth@cygnus.com> 787 788 * linker.c (generic_link_add_symbol_list): Always init udata.p so 789 that the generic relaxation code can function when input and output 790 file formats are mismatched. 791 792Thu Dec 11 01:02:18 1997 Ian Lance Taylor <ian@cygnus.com> 793 794 * coff-sh.c (bfd_coff_small_swap_table): Initialize new fields. 795 796 * elf.c (assign_file_positions_for_segments): For a loadable 797 section, make sure that the load address is correct relative to 798 the load address of the segment plus the size of the segment so 799 far. 800 801 * coffcode.h (_coff_link_output_has_begun): Make static. 802 (_coff_final_link_postscript): Likewise. 803 804Wed Dec 10 23:37:11 1997 Ian Lance Taylor <ian@cygnus.com> 805 806 * elflink.h (elf_link_input_bfd): Handle a relocateable link in 807 which a relocation refers to an indirect or warning symbol. 808 809Wed Dec 10 11:15:55 1997 Nick Clifton <nickc@cygnus.com> 810 811 * coff-arm.c (bfd_arm_coff_final_link): Function deleted. 812 (coff_arm_final_link_postscript): New function. 813 (coff_arm_link_output_has_begun): New function. 814 815 * libcoff.h (struct bfd_coff_backend_data): Add new fields: 816 _bfd_coff_link_output_has_begun and 817 _bfd_coff_final_link_postscript. Add new macros: 818 bfd_coff_link_output_has_begun() and 819 bfd_coff_final_link_postscript(). 820 821 * cofflink.c (_bfd_coff_final_link): Insert calls to 822 bfd_coff_link_output_has_begun() and 823 bfd_coff_final_link_postscript(). 824 825 * coffcode.h: Add two new fields to bfd_coff_backend_data 826 structure: _bfd_coff_link_output_has_begun and 827 _bfd_coff_final_link_postscript. Add default initialisers for 828 these fields. Add overridable aliases for the coff swap functions 829 in the backend data structure. 830 831 * elf32-v850.c: Update with patches from the branch to fix 832 HI16_S/LO16 reloc pairs. 833 834Tue Dec 9 11:37:53 1997 Andrew Cagney <cagney@b1.cygnus.com> 835 836 * archures.c (bfd_mach_mips*): Define. 837 (bfd_default_scan): For 3000 and 4000 replace magic constant with 838 macro. 839 840 * cpu-mips.c (N): Define. 841 (bfd_mips_arch, arch_info_struct): Re-write using macro N, replace 842 numbers with bfd_mach_mips* macros. 843 844Fri Dec 5 11:13:46 1997 Nick Clifton <nickc@cygnus.com> 845 846 * elf32-v850.c (v850_elf_reloc, v850_elf_store_addend_in_insn, 847 v850_elf_relocate_section): Fix PR2 14180 and 14181 848 (v850_elf_section_from_bfd_section, v850_elf_symbol_processing, 849 v850_elf_add_symbol_hook, v850_elf_link_output_symbol_hook, 850 v850_elf_section_from_shdr, v850_elf_fake_sections): New functions 851 (for PR14180) to create and handle special common sections. 852 (v850_elf_final_link_relocate): Fix HI16 and HI16_S relocations 853 which have data stored in the instructions. PR14258. 854 855Tue Dec 2 10:26:16 1997 Nick Clifton <nickc@cygnus.com> 856 857 * coff-arm.c (TARGET_UNDERSCORE): Revert back to '_' 858 (USER_LABEL_PREFIX): Revert back to '_' 859 860 * config.bfd (targ_cpu): Add support for Thumb target. 861 862Mon Dec 1 20:24:18 1997 J"orn Rennecke <amylaar@cygnus.co.uk> 863 864 * coff-sh.c (sh_coff_howtos): Add R_SH_SWITCH8 entry. 865 (get_symbol_value): Handle R_SH_SWITCH8. 866 (sh_relax_delete_bytes): Likewise. 867 868Wed Nov 26 14:13:34 1997 Nick Clifton <nickc@cygnus.com> 869 870 * coff-arm.c (TARGET_UNDERSCORE): Changed to match definition in 871 gcc/config/arm/semi.h 872 873 * coffcode.h (coff_slurp_symbol_table): Add ARM and Thumb symbol 874 classes. 875 876Sun Nov 23 16:02:58 1997 Andrew Cagney <cagney@b1.cygnus.com> 877 878 * freebsd.h (SWAP_MAGIC): Read magic number little and not big 879 endian. 880 881Wed Nov 26 09:30:37 1997 Nick Clifton <nickc@cygnus.com> 882 883 * coffcode.h (coff_mkobject_hook): Only set private flags for non 884 PE ARM ports. 885 886Tue Nov 25 15:33:23 1997 Richard Henderson <rth@cygnus.com> 887 888 * binary.c (binary_set_section_contents): Also ignore NEVER_LOAD 889 sections. 890 891Tue Nov 25 10:55:36 1997 Nick Clifton <nickc@cygnus.com> 892 893 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Do not 894 complain if inout and output formats differ. 895 896Tue Nov 25 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com> 897 898 * Makefile.am (BFD32_BACKENDS): Remove tekhex.lo. 899 (BFD32_BACKENDS_CFILES): Remove tekhex.c. 900 * Makefile.in: Rebuild. 901 * aclocal.m4, configure, src/Makefile.in: Rebuild with current 902 automake and autoconf. 903 904 * coff-arm.c (arm_allocate_interworking_sections): Fix typo 905 (COFF_WITH_PR to COFF_WITH_PE). 906 907Mon Nov 24 15:47:49 1997 Nick Clifton <nickc@cygnus.com> 908 909 * coff-arm.c: Make variables and some functions static, so that 910 this file can be included in multiple object files. 911 (coff_arm_bfd_final_link): Fix minor bug. 912 913Sat Nov 22 15:16:00 1997 Nick Clifton <nickc@cygnus.com> 914 915 * coff-arm.c: Add support for PIC and APCS-FLOAT type binaries. 916 917 * coffcode.h: Add support for PIC and APCS-FLOAT type binaries. 918 919Sat Nov 22 16:06:56 1997 Klaus Kaempf <kkaempf@progis.de> 920 921 * evax-emh.c (_bfd_evax_write_emh): Use alloca instead of strdup. 922 923Sat Nov 22 12:29:30 1997 Ian Lance Taylor <ian@cygnus.com> 924 925 * sunos.c (sunos_add_one_symbol): When overriding a defined 926 symbol, set it to undefined, not new. 927 928 * elf32-sh.c (sh_elf_relax_delete_bytes): Don't kill LABEL 929 relocs. 930 931Fri Nov 21 14:14:22 1997 Richard Henderson <rth@cygnus.com> 932 933 * coff-sh.c (sh_relax_section): Force sign extention of USES r_offset. 934 (sh_relax_delete_bytes): Don't kill LABEL relocs. 935 936Mon Nov 17 15:08:38 1997 Jeffrey A Law (law@cygnus.com) 937 938 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Fix typo. 939 (mn10300_elf_relax_section): Likewise. 940 941Sat Nov 15 15:36:07 1997 Fred Fish <fnf@cygnus.com> 942 943 * peicode.h (coff_swap_aouthdr_in): Cast second arg of 944 bfd_h_get_* calls to "bfd_byte *". 945 946Tue Nov 11 10:37:23 1997 Jeffrey A Law (law@cygnus.com) 947 948 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field 949 "movm_stack_size". 950 (mn10300_elf_relax_section): Include stack space for register saves 951 in the imm8 field of a "call" instruction. 952 (compute_function_info): Determine how much stack is allocated by 953 the movm instruction. Fix typo. 954 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size. 955 956Mon Nov 10 14:32:40 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 957 958 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't crash if 959 a version dependency could not be found. 960 961Tue Nov 4 12:05:56 1997 Klaus K"ampf <kkaempf@progis.de> 962 963 * configure.com: Get version info from configure.in 964 965Fri Oct 24 11:15:58 1997 Jakub Jelinek <jj@sunsite.mff.cuni.cz> 966 967 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): 968 New function. Avoid mixing US1 and HAL R1 code. 969 Set resulting memory ordering to the strongest one used. 970 (sparc64_elf_object_p): Set bfd_mach correctly. 971 972Thu Oct 23 14:09:33 1997 Richard Henderson <rth@cygnus.com> 973 974 * elf64-sparc.c (sparc64_elf_howto_table): Add UA64 & UA16. 975 (sparc64_elf_check_relocs): Handle them. 976 (sparc64_elf_relocate_section): Likewise. Before emitting a dyn reloc, 977 check alignment and transmute R_SPARC_x<->R_SPARC_UAx. 978 979Thu Oct 23 00:53:14 1997 Richard Henderson <rth@dot.cygnus.com> 980 981 * configure.in (sparc*-*-linux*): Use trad-core and ... 982 * hosts/sparclinux.h: New file. 983 984Thu Oct 23 00:25:29 1997 Richard Henderson <rth@dot.cygnus.com> 985 986 * config.bfd (sparc64-*-linux*): New target. 987 988 * elf-bfd.h (struct elf_backend_data): Add plt_alignment member. 989 * elflink.c (_bfd_elf_create_got_section): Set .got alignment based 990 on arch_size. 991 (_bfd_elf_create_dynamic_sections): Likewise for .rel* sections. 992 Set .plt alignment from new plt_alignment. 993 * elflink.h (elf_link_create_dynamic_sections): Set version section 994 alignment to LOG_FILE_ALIGN. 995 * elfxx-target.h (elf_backend_plt_alignment): Provide default. 996 (elfXX_bed): Init plt_alignment. 997 998 * elf64-sparc.c (sparc64_elf_check_relocs, 999 sparc64_elf_adjust_dynamic_symbol, sparc64_elf_size_dynamic_sections, 1000 sparc64_elf_adjust_dynindx, sparc64_elf_finish_dynamic_symbol, 1001 sparc64_elf_finish_dynamic_sections): New functions. 1002 (sparc64_elf_howto_table): Fix a few name strings. 1003 (ELF_DYNAMIC_INTERPRETER): New definition. 1004 (sparc64_elf_relocate_section): Handle shared libraries. 1005 1006 * elf64-sparc.c (struct plt_template, plt_*_header, plt_*_entry, 1007 sparc64_elf_build_plt_entry, sparc64_elf_finish_dynamic_symbol): 1008 PLT definitions sparc64-linux originally choose. These will go 1009 away soon in favour of the official abi definitions. 1010 1011Wed Oct 22 16:08:45 1997 Ian Lance Taylor <ian@cygnus.com> 1012 1013 * coff-sh.c (coff_small_object_p): New static function. 1014 (coff_small_new_section_hook): New static function. 1015 (bfd_coff_small_swap_table): New static const structure. 1016 (coff_small_close_and_cleanup): Define. 1017 (coff_small_bfd_free_cached_info): Define. 1018 (coff_small_get_section_contents): Define. 1019 (coff_small_get_section_contents_in_window): Define. 1020 (shcoff_small_vec): New static structure. 1021 (shlcoff_small_vec): New static structure. 1022 * targets.c (bfd_target_vector): Add shcoff_small_vec and 1023 shlcoff_small_vec. 1024 * config.bfd (sh-*-elf*): Add shcoff_small_vec and 1025 shlcoff_small_vec to targ_selvecs. 1026 (sh-*-*): Likewise. 1027 * configure.in: Add shcoff_small_vec and shlcoff_small_vec cases. 1028 * configure: Rebuild. 1029 1030Mon Oct 20 15:01:27 1997 Klaus K"ampf <kkaempf@progis.de> 1031 1032 * evax-egsd.c: Weak symbols are global. 1033 1034 * evax-emh.c: Use proper casts. 1035 1036 * evax-egsd.c (_bfd_evax_write_egsd): Remove unneeded uname. 1037 1038 * evax-egsd.c: Section names and symbols have different 1039 length restrictions. Add length parameter to 1040 _bfd_evax_length_hash_symbol. 1041 * evax-etir.c: Likewise. 1042 * evax-misc.c (_bfd_evax_length_hash_symbol): Add length 1043 parameter. 1044 * evax.h (EOBJ_S_C_SECSIZ): Define. 1045 1046 * evax-alpha.c: Remove duplicate test. 1047 1048 * evax-emh.c: SYS$ functions are upper-case. 1049 1050 * evax-egsd.c: Create separate sections for common symbols. 1051 * evax-etir.c: Don't output common section. 1052 * evax.h: Bump up section count. 1053 1054 * configure.com: Use 64bit integers with DEC C. 1055 1056 * evax-egsd.c: Make section flags dec c compatible. 1057 1058Mon Oct 20 09:38:31 1997 Jeffrey A Law (law@cygnus.com) 1059 1060 * som.c (normalize): Delete function. 1061 (som_bfd_ar_write_symbol_stuff): New parameter elength. All callers 1062 changed. Use passed in elength to determine size of the extended 1063 name table instead of computing it again. 1064 1065Sun Oct 19 23:36:21 1997 Jim Wilson <wilson@cygnus.com> 1066 1067 * peicode.h (coff_swap_scnhdr_out): Use |= not = to set 1068 IMAGE_SCN_MEM_READ for an unrecognized section. 1069 1070Sun Oct 19 21:04:56 1997 Jeffrey A Law (law@cygnus.com) 1071 1072 * som.c (som_bfd_ar_write_symbol_stuff): Account for trailing 1073 '/' in the extended name table. 1074 1075Fri Oct 17 00:04:13 1997 Richard Henderson <rth@cygnus.com> 1076 1077 * elflink.h (elf_link_assign_sym_version): For explicitly versioned 1078 symbols, check globals list before matching on locals. 1079 1080Thu Oct 16 08:17:06 1997 Michael Meissner <meissner@cygnus.com> 1081 1082 * peicode.h (coff_swap_scnhdr_out,pe_print_idata): Fix mangled 1083 patch. 1084 1085Wed Oct 15 13:45:10 1997 Ian Lance Taylor <ian@cygnus.com> 1086 1087 * peicode.h (pe_mkobject_hook): Set DLL flag. 1088 (pe_bfd_copy_private_bfd_data): Copy DLL flag. 1089 1090 * peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_DISCARDABLE 1091 for .stab* sections. Replace strlen of constant strings with 1092 number. 1093 1094Tue Oct 14 15:42:45 1997 Richard Henderson <rth@cygnus.com> 1095 1096 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): New function to 1097 merge got and reloc entries from ind syms to their target. 1098 (elf64_alpha_always_size_sections): Call it. 1099 (elf64_alpha_check_relocs): Operate on the target of indirect symbols. 1100 (elf64_alpha_can_merge_gots): Likewise. 1101 (elf64_alpha_merge_gots): Likewise. 1102 1103 * elf64-alpha.c (elf64_alpha_relocate_section): Back out HJ's change, 1104 as it is insufficient to handle the relocation changes as well. 1105 1106Mon Oct 13 23:10:08 1997 Richard Henderson <rth@cygnus.com> 1107 1108 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Allow for RELATIVE 1109 relocs for symbols in shlibs that have been forced local. 1110 (elf64_alpha_relocate_section): Output RELATIVEs in .got for same. 1111 1112Mon Oct 13 21:24:04 1997 Richard Henderson <rth@cygnus.com> 1113 1114 * elf64-alpha.c (elf64_alpha_relocate_section): Use the 1115 got_enties of the default symbol for the default versioned 1116 symbol. Patch from hjl@gnu.ai.mit.edu, modified not to use 1117 alloca in the loop. 1118 1119Mon Oct 13 17:37:37 1997 Nick Clifton <nickc@cygnus.com> 1120 1121 * elf32-v850.c (v850_elf_final_link_relocate): Only use the bottom 1122 24 bits of the PC when computing a PC relative relocation. 1123 1124Fri Oct 10 16:01:30 1997 Nick Clifton <nickc@cygnus.com> 1125 1126 * elf32-v850.c (v850_elf_reloc, v850_elf_final_link_relocate): 1127 Correct value for maximum positive 22 bit PC relative relocation. 1128 (v850_elf_final_link_relocate): Prevent overflow from HI16_S and 1129 HI_16 relocations. Correct bit adjustment in TDA offsets. 1130 1131Thu Oct 9 16:43:39 1997 Doug Evans <dje@canuck.cygnus.com> 1132 1133 * elf64-sparc.c (sparc_elf_{hix22,lox10}_reloc): New functions. 1134 (sparc64_elf_howto_table): Use them for HIX22,LOX10 relocs. 1135 1136Wed Oct 8 11:38:45 1997 Richard Henderson <rth@cygnus.com> 1137 1138 * elfcore.h (bfd_prstatus): Pedanticly, alignment_power should 1139 be LOG_FILE_ALIGN. 1140 1141Wed Oct 8 11:36:00 1997 Richard Henderson <rth@cygnus.com> 1142 1143 * config.bfd: Missed one alpha* change. 1144 1145Tue Oct 7 13:00:17 1997 Doug Evans <dje@canuck.cygnus.com> 1146 1147 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove BFD64 support. 1148 * elf64-sparc.c (SPARC64_OLD_RELOCS): Undef. 1149 (MINUS_ONE): New macro. 1150 (sparc_elf_notsup_reloc): New function. 1151 (sparc64_elf_howto_table): Add entries for DISP64,PLT64,HIX22,LOX10, 1152 H44,M44,L44,REGISTER. 1153 (sparc_reloc_map): Likewise. Map BFD_RELOC_CTOR to R_SPARC_64. 1154 (init_insn_reloc): New function. 1155 (sparc_elf_wdisp16_reloc): Use it. 1156 (sparc64_elf_relocate_section): Add entries for OLO10,HIX22,LOX10. 1157 1158Tue Oct 7 11:40:37 1997 Ian Lance Taylor <ian@cygnus.com> 1159 1160 * som.c (som_construct_extended_name_table): Remove static 1161 function, and define as macro instead. 1162 1163Fri Oct 3 14:02:17 1997 Richard Henderson <rth@cygnus.com> 1164 1165 * config.bfd: Change alpha-*-* to alpha*-*-*; config.guess now 1166 recognizes alphaev5 etc. 1167 * configure.host: Likewise. 1168 1169Fri Oct 3 11:23:47 1997 Ian Lance Taylor <ian@cygnus.com> 1170 1171 Make ld -s work on AIX: 1172 * xcofflink.c (xcoff_link_add_symbols): Don't create the .debug 1173 section if we are stripping. 1174 (bfd_xcoff_size_dynamic_sections): Don't set the .debug section 1175 size if we are stripping. 1176 (_bfd_xcoff_bfd_final_link): Don't set SEC_RELOC or rel_filepos, 1177 and don't write out relocs, if we are stripping. 1178 (xcoff_link_input_bfd): Don't set up reloc if we are stripping. 1179 (xcoff_write_global_symbol): Don't write out symbol or reloc if we 1180 are stripping. 1181 1182 * configure.in: Don't include elf.lo again for ELF targets; it's 1183 always in the library anyhow. 1184 * configure: Rebuild. 1185 1186 * bfd-in2.h: Rebuild. 1187 1188 * elf32-sparc.c (sparc_elf_wdisp16_reloc): Cast to bfd_byte *, not 1189 char *, when calling bfd_get_32 and bfd_put_32. 1190 * sunos.c (sunos_scan_dynamic_symbol): Cast contents to char * 1191 when calling strcpy. 1192 1193Thu Oct 2 16:15:50 1997 Doug Evans <dje@canuck.cygnus.com> 1194 1195 * reloc.c (bfd_check_overflow): New function. 1196 (bfd_perform_relocation, bfd_install_relocation): Use it. 1197 (BFD_RELOC_SPARC_{DISP64,PLT64}): New relocs. 1198 (BFD_RELOC_SPARC_{HIX22,LOX10,H44,M44,L44,REGISTER}): New relocs. 1199 * bfd-in2.h: Regenerate. 1200 * libbfd.h: Regenerate. 1201 1202Thu Oct 2 13:17:18 1997 Ian Lance Taylor <ian@cygnus.com> 1203 1204 * peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_READ for an 1205 unrecognized section. From Jon Thackray <jont@harlequin.co.uk>. 1206 1207Wed Oct 1 14:03:44 1997 Ian Lance Taylor <ian@cygnus.com> 1208 1209 * Makefile.am ($(BFD_H)): Change stmp-bfd.h to stmp-bfd-h. 1210 (stmp-bfd-h): Rename from stmp-bfd.h. 1211 (BFD_H_FILES, LIBBFD_H_FILES, LIBCOFF_H_FILES): New variables. 1212 ($(srcdir)/bfd-in2.h): Just depend upon stmp-bin2-h. 1213 (stmp-bin2-h): New target. 1214 ($(srcdir)/libbfd.h): Just depend upon stmp-lbfd-h. 1215 (stmp-lbfd-h): New target. 1216 ($(srcdir)/libcoff.h): Just depend upon stmp-lcoff-h. 1217 (stmp-lcoff-h): New target. 1218 (CLEANFILES): Change stmp-bfd.h to stmp-bfd-h. Add stmp-bin2.h, 1219 stmp-lbfd-h, and stmp-lcoff-h. 1220 * Makefile.in: Rebuild. 1221 1222 * configure.in: Use a diversion to set enable_shared before the 1223 arguments are parsed. 1224 * configure: Rebuild. 1225 1226Tue Sep 30 14:18:32 1997 Doug Evans <dje@canuck.cygnus.com> 1227 1228 * elf32-sparc.c (_bfd_sparc_elf_howto_table): R_SPARC_GLOB_JMP 1229 renamed to R_SPARC_UNUSED_42. 1230 (sparc_reloc_map): Delete R_SPARC_GLOB_JMP entry. 1231 * elf64-sparc.c (_bfd_sparc_elf_howto_table): R_SPARC_GLOB_JMP 1232 renamed to R_SPARC_UNUSED_42. 1233 (sparc_reloc_map): Delete R_SPARC_GLOB_JMP entry. 1234 * reloc.c (BFD_RELOC_SPARC_GLOB_JMP): Delete. 1235 * bfd-in2.h: Regenerated. 1236 * libbfd.h: Regenerated. 1237 1238Thu Sep 25 12:15:02 1997 Ian Lance Taylor <ian@cygnus.com> 1239 1240 * elflink.h (elf_merge_symbol): Don't check the hash creator until 1241 after we have set *sym_hash. 1242 1243Wed Sep 24 16:52:28 1997 Joel Sherrill <joel@oarcorp.com> 1244 1245 * config.bfd (sh*-*-rtems*): New target, like sh-*-*elf*. 1246 1247Wed Sep 24 11:27:23 1997 Ian Lance Taylor <ian@cygnus.com> 1248 1249 * Makefile.am (libbfd_a_SOURCES): Define. 1250 * Makefile.in: Rebuild. 1251 1252 * configure.in: Call AC_CHECK_TOOL before AM_PROG_LIBTOOL. 1253 * aclocal.m4: Rebuild with new libtool. 1254 * configure: Rebuild. 1255 1256Tue Sep 23 19:03:13 1997 Ian Lance Taylor <ian@cygnus.com> 1257 1258 * elf.c (map_sections_to_segments): Even if we are not demand 1259 paged, don't put a loadable section after a nonloadable section. 1260 (assign_file_positions_for_segments): Increment the file offset 1261 for a section with contents, even if it is not loadable. 1262 1263Thu Sep 18 15:04:57 1997 Nick Clifton <nickc@cygnus.com> 1264 1265 * elf32-v850.c (v850_elf_check_relocs): Improve error message. 1266 1267Wed Sep 17 09:54:51 1997 Nick Clifton <nickc@cygnus.com> 1268 1269 * elf32-v850.c (v850_elf_final_link_relocate): Add checks to catch 1270 relocations against non-existant symbols. 1271 1272Tue Sep 16 14:20:27 1997 Nick Clifton <nickc@cygnus.com> 1273 1274 * reloc.c: Add BFR_RELOC_V850_TDA_16_16_OFFSET. 1275 1276 * elf32-v850.c (v850_elf_reloc, v850_elf_final_link_relocate, 1277 v850_elf_howto_table, v850_elf_reloc_map): Add support for a 16 1278 bit reloc in the tiny data area. 1279 1280Wed Sep 10 15:17:25 1997 Nick Clifton <nickc@cygnus.com> 1281 1282 * elf32-v850.c (v850_elf_reloc): Remove spurious error message. 1283 1284Wed Sep 10 11:17:50 1997 Andrew Cagney <cagney@b1.cygnus.com> 1285 1286 * archures.c (bfd_default_scan): Use strcasecmp. 1287 (bfd_default_scan): Test for match with arch_name + ":" + 1288 printable_name. 1289 (bfd_default_scan): Test for match with printable_name - ":". 1290 (bfd_default_scan): Delete w65, h8300, h8500, z8k, i960 special 1291 cases. Each implements their own scan function. 1292 (bfd_default_scan): Delete 386, 2900, 860, mips 2000, mips 4400 1293 special cases. Since info->mach == 0. The test mach == number 1294 fails. 1295 (bfd_arch_list): New function, return name of all the supported 1296 architectures. 1297 1298Tue Sep 9 10:21:56 1997 Nick Clifton <nickc@cygnus.com> 1299 1300 * elf32-v850.c (v850_elf_print_private_bfd_data): Break after 1301 decoding architecture. 1302 (v850_elf_reloc): Do not complain if a R_V850_LO16 reloc has bit 1303 15 set. 1304 1305Sun Sep 7 12:25:22 1997 H.J. Lu (hjl@gnu.ai.mit.edu) 1306 1307 * bfd/elf64-alpha.c (reloc_howto_type): Fix the howto table. 1308 1309Thu Sep 4 09:44:10 1997 Ian Lance Taylor <ian@cygnus.com> 1310 1311 * Makefile.am: Rebuild dependencies. 1312 (ALL_MACHINES_CFILES): Add cpu-v850.c. 1313 (ALL_MACHINES_CFILES): Add elf32-v850.c. 1314 * Makefile.in: Rebuild. 1315 1316 * reloc.c: Remove extraneous commas from relocation entries. 1317 Remove BFD_RELOC_V850_16_PCREL. 1318 * bfd-in2.h: Rebuild. 1319 1320 * xcofflink.c (xcoff_link_add_symbols): Put XTY_CM/XMC_TD symbols 1321 in sections named .tocbss rather than .bss. 1322 1323Wed Sep 3 11:23:23 1997 Nick Clifton <nickc@cygnus.com> 1324 1325 * libbfd.h, bfd-in2.h, elf32-v850.c: Removed 1326 BFD_RELOC_V850_16_PCREL. 1327 1328Tue Sep 2 20:44:10 1997 Fred Fish <fnf@cygnus.com> 1329 1330 * cofflink.c (coff_link_check_ar_symbols): Handle C_SYSTEM syms 1331 the same as C_EXT syms. 1332 (coff_link_add_symbols): Ditto. 1333 (_bfd_coff_link_input_bfd): Ditto. 1334 (_bfd_coff_write_task_globals): Add save_global_to_static. Use 1335 it to preserve and restore state of global_to_static flag. 1336 1337Tue Sep 2 17:45:22 1997 Nick Clifton <nickc@cygnus.com> 1338 1339 * elf32-v850.c (v850_elf_object_p): Set machine number based on 1340 bits in e_flags field rather than magic numbers. 1341 (v850_elf_final_write_processing, v850_elf_set_private_flags, 1342 v850_elf_copy_private_bfd_data, v850_elf_merge_private_bfd_data, 1343 v850_elf_print_private_bfd_data): New functions. 1344 1345 1346Tue Sep 2 17:35:05 1997 Doug Evans <dje@canuck.cygnus.com> 1347 1348 * cpu-arc.c (arc_get_mach): Properly scan defined mach entries. 1349 1350Tue Sep 2 18:29:37 1997 Jeffrey A Law (law@cygnus.com) 1351 1352 * elf-m10200.c (mn10200_elf_final_link_relocate): PC relative 1353 instructions are relative to the next instruction, not the 1354 current instruction. 1355 (mn10200_elf_relax_section): Similarly. 1356 1357Tue Sep 2 15:45:45 1997 Nick Clifton <nickc@cygnus.com> 1358 1359 * cpu-v850.c: Use a macro to construct bfd_arch_info_type 1360 entries. 1361 1362 * reloc.c, libbfd.h, bfd-in2.h, elf32-v850.c: Replace 1363 BFD_RELOC_V850_{SDA/TDA/ZDA}_OFFSET relocs with new bit pattern 1364 specific versions: BFD_RELOC_V850_{area}_{bits}_OFFSET. 1365 1366Thu Aug 28 17:01:09 1997 Andrew Cagney <cagney@b1.cygnus.com> 1367 1368 * cpu-v850.c: Remove "plain" from v850 printable name. 1369 (scan): Use strcasecmp. 1370 1371 * archures.c (bfd_mach_v850): Define. 1372 1373 * cpu-sh.c (scan_mach): Compare with table instead of hardwired to 1374 just sh/SH, use strcasecmp. 1375 (arch_info_struct): Add entries for sh3 et.al. 1376 1377 * archures.c (bfd_mach_sh, ...): Define. 1378 1379Wed Aug 27 17:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com> 1380 1381 * archures.c (bfd_archures_list): Always NULL terminate the list. 1382 1383Tue Aug 26 17:26:51 1997 Ian Lance Taylor <ian@cygnus.com> 1384 1385 * Makefile.am: Rebuild dependencies. 1386 (ALL_MACHINES_CFILES): Add cpu-arc.c. 1387 (ALL_MACHINES_CFILES): Add elf32-arc.c. 1388 (elf32-arc.lo): Remove explicit dependency. 1389 * Makefile.in: Rebuild. 1390 1391 * acinclude.m4 (BFD_CC_FOR_BUILD): Set EXEEXT_FOR_BUILD. 1392 * doc/Makefile.am (MKDOC): Use EXEEXT_FOR_BUILD, not EXEEXT. 1393 * aclocal.m4, configure, Makefile.in, doc/Makefile.in: Rebuild. 1394 1395Mon Aug 25 16:14:34 1997 Christopher Provenzano <proven@cygnus.com> 1396 1397 * configure: Rebuild with latest devo autoconf for NT support 1398 1399Mon Aug 25 16:11:04 1997 Nick Clifton <nickc@cygnus.com> 1400 1401 * cpu-arm.c (compatible): If B is a default type, return A. 1402 1403Mon Aug 25 15:35:46 1997 Nick Clifton <nickc@cygnus.com> 1404 1405 * cpu-v850.c (scan): New function. 1406 (arch_info_struct): New structure. 1407 (bfd_v850_arch): Add link into arch_info_structure. 1408 1409 * config.bfd (targ_cpu): All v850 variants use the bfd_arch_v850 1410 architecture. 1411 1412 * elf32-v850.c (v850_elf_object_p): New function. 1413 1414 1415Mon Aug 25 14:07:33 1997 Ian Lance Taylor <ian@cygnus.com> 1416 1417 * syms.c (_bfd_stab_section_find_nearest_line): Clear the 1418 cached_stab field if the offset prevents us from using the cache. 1419 1420Mon Aug 25 12:08:13 1997 Ian Lance Taylor <ian@cygnus.com> 1421 1422 * aout-target.h (MY(vec)): Add SEC_CODE and SEC_DATA to section 1423 flags. 1424 * aout-arm.c (aout_arm_little_vec): Likewise. 1425 (aout_arm_big_vec): Likewise. 1426 * bout.c (b_out_vec_big_host): Likewise. 1427 (b_out_vec_little_host): Likewise. 1428 * mipsbsd.c (aout_mips_little_vec): Likewise. 1429 (aout_mips_big_vec): Likewise. 1430 1431Tue Aug 19 08:47:17 1997 Fred Fish <fnf@cygnus.com> 1432 1433 * coff-i960.c (COFF_ALIGN_IN_SECTION_HEADER): Define to 1. 1434 (GET_SCNHDR_ALIGN, PUT_SCNHDR_ALIGN): Define. 1435 * coff-m88k.c (GET_SCNHDR_NRELOC, GET_SCNHDR_NLNNO): Define. 1436 * coffcode.h (coff_set_alignment_hook): Conditionally compile in if 1437 COFF_ALIGN_IN_SECTION_HEADER is defined. Convert alignment to power 1438 of two for I960 only. 1439 * coffswap.h (GET_SCNHDR_NRELOC, PUT_SCNHDR_NRELOC, GET_SCNDHR_NLNNO, 1440 PUT_SCNHDR_NLNNO, GET_SCNHDR_FLAGS, PUT_SCNHDR_FLAGS): Provide 1441 default definitions. 1442 (coff_swap_scnhdr_in): Use GET_SCNHDR_FLAGS, GET_SCNHDR_NRELOC, 1443 GET_SCNHDR_NLNNO, and GET_SCNHDR_ALIGN. 1444 (coff_swap_scnhdr_out): Use PUT_SCNHDR_FLAGS, PUT_SCNHDR_ALIGN. 1445 1446Mon Aug 18 11:36:19 1997 Nick Clifton <nickc@cygnus.com> 1447 1448 * elf32-v850.c (v850_elf_howto_table, v850_elf_reloc_map, 1449 v850_elf_check_relocs, v850_elf_reloc, 1450 v850_elf_final_link_relocate): Add support for 1451 BFD_RELOC_V850_16_PCREL relocation. 1452 1453 * reloc.c (COMMENT): Add suuport for BFD_RELOC_V850_16_PCREL 1454 relocation. 1455 1456 * libbfd.h: Add support for BFD_RELOC_V850_16_PCREL relocation. 1457 1458 * bfd-in2.h: Add support for BFD_RELOC_V850_16_PCREL relocation. 1459 1460 1461Fri Aug 15 12:01:28 1997 Ian Lance Taylor <ian@cygnus.com> 1462 1463 * coffgen.c (coff_find_nearest_line): Correctly handle the offset 1464 argument as section relative, rather than an absolute address. 1465 From Jan Hoogenraad <hoogenrd@natlab.research.philips.com>. 1466 1467Fri Aug 15 04:58:02 1997 Doug Evans <dje@canuck.cygnus.com> 1468 1469 * config.bfd (arc-*-elf*): Add. 1470 * configure.in (bfd_elf32_{little,big}arc_vec): Add. 1471 * configure: Rebuild. 1472 * Makefile.am (ALL_MACHINES): Add cpu-arc.lo. 1473 (BFD32_BACKENDS): Add elf32-arc.lo. 1474 (cpu-arc.lo,elf32-arc.lo): Add rules for. 1475 * Makefile.in: Rebuild. 1476 * archures.c (architecture list): Add bfd_arch_arc. 1477 (bfd_archures_list): Add bfd_arc_arch. 1478 (bfd_mach_arc_base): Define. 1479 * reloc.c (BFD_RELOC_ARC_B22_PCREL,BFD_RELOC_ARC_B26): Add. 1480 * targets.c (bfd_elf32_{little,big}arc_vec): Declare. 1481 (bfd_target_vect): Add them. 1482 * bfd-in2.h, libbfd.h: Rebuild. 1483 * cpu-arc.c, elf32-arc.c: New files. 1484 * elf.c (pre_headers): Recognize bfd_arch_arc. 1485 1486Tue Aug 12 11:45:18 1997 Ian Lance Taylor <ian@cygnus.com> 1487 1488 * aoutx.h (NAME(aout,final_link)): If no symbols, make sure the 1489 data section is correctly rounded to a page in the file. 1490 1491Mon Aug 11 12:45:43 1997 Ian Lance Taylor <ian@cygnus.com> 1492 1493 * aoutx.h (NAME(aout,final_link)): Don't emit the string table if 1494 there are no symbols. 1495 1496Sun Aug 10 14:45:56 1997 Ian Lance Taylor <ian@cygnus.com> 1497 1498 * coff-stgo32.c: Rename from coff-stubgo32.c to avoid old System V 1499 file system 14 character limit. 1500 * Makefile.am, configure.in: Corresponding changes. 1501 * Makefile.in, configure: Rebuild. 1502 1503Fri Aug 8 18:34:36 1997 Ian Lance Taylor <ian@cygnus.com> 1504 1505 * Makefile.am: (ALL_MACHINES_CFILES): Add elf32-d10v.c. 1506 Rebuild dependencies. 1507 * Makefile.in: Rebuild. 1508 1509Wed Aug 6 18:56:51 1997 Ian Lance Taylor <ian@cygnus.com> 1510 1511 * Makefile.am (docdir): Define. 1512 * Makefile.in: Rebuild. 1513 1514Tue Aug 5 23:05:03 1997 Ian Lance Taylor <ian@cygnus.com> 1515 1516 * configure: Rebuild with autoconf 2.12.1. 1517 1518Mon Aug 4 12:00:35 1997 Ian Lance Taylor <ian@cygnus.com> 1519 1520 * aclocal.m4, configure: Rebuild with new automake patches. 1521 1522Sun Aug 3 08:15:12 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 1523 1524 * rs6000-core.c (make_bfd_asection): New function to add a section 1525 to the core file bfd. 1526 (rs6000coff_core_p): Use make_bfd_asection to add the core file 1527 sections. 1528 Use BFD routines to seek, read and stat the core file. 1529 Handle .data sections from loaded objects and anonymously mmapped 1530 regions, these are available in AIX 4 core files. 1531 1532Fri Aug 1 12:58:32 1997 Ian Lance Taylor <ian@cygnus.com> 1533 1534 * configure.in: Set enable_shared before AM_PROG_LIBTOOL. 1535 * acinclude.m4: Move acmacros.m4 in here. Remove AM_PROG_LIBTOOL 1536 copy; use a patches libtool instead. 1537 * acmacros.m4: Remove. 1538 * Makefile.in, aclocal.m4, configure: Rebuild. 1539 1540Thu Jul 31 19:55:36 1997 Ian Lance Taylor <ian@cygnus.com> 1541 1542 * Makefile.am: New file, based on old Makefile.in. 1543 * acmacros.m4: New file, copied from old aclocal.m4. 1544 * acinclude.m4: New file. 1545 * configure.in: Call AM_PROG_LIBTOOL. Remove shared library 1546 handling; now handled by libtool. Replace AC_CONFIG_HEADER with 1547 AM_CONFIG_HEADER. Replace AC_PROG_INSTALL with AM_PROG_INSTALL. 1548 Call AM_MAINTAINER_MODE, AM_CYGWIN32, and AM_EXEEXT. Change all 1549 .o files to .lo. Remove stamp-h handling in AC_OUTPUT. 1550 * acconfig.h: Mention PACKAGE and VERSION. 1551 * stamp-h.in: New file. 1552 * dep-in.sed: Change .o to .lo. 1553 * Makefile.in: Now built with automake. 1554 * aclocal.m4: Now built with aclocal. 1555 * config.in, configure: Rebuild. 1556 * VERSION: Remove. 1557 1558Thu Jul 31 12:09:20 1997 Geoff Keating <geoffk@ozemail.com.au> 1559 1560 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Don't set TEXTREL 1561 if there is only a relocation to a read-only but not allocatable 1562 section (like .stab). 1563 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. 1564 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise. 1565 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. 1566 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise. 1567 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise. 1568 1569 * elf32-ppc.c (ppc_elf_howto_raw): Correct various comments. 1570 (ppc_elf_create_linker_section): These sections are not 1571 created by the linker (that is, they are created by the user 1572 putting data in them). In particular, they can be the source 1573 and target of relocations. 1574 (ppc_elf_adjust_dynamic_symbol): Check postcondition of 1575 bfd_elf32_link_record_dynamic_symbol. Align 16-byte common 1576 objects (for instance, 'long double') to 16-byte boundaries. 1577 (ppc_elf_size_dynamic_sections): Make the code that generates 1578 section symbols exactly the same as for sparc, reducing the 1579 number of section symbols output. 1580 (ppc_elf_check_relocs): Check postcondition of 1581 bfd_elf32_link_record_dynamic_symbol. Make default case the 1582 same as corresponding code for sparc, fixing bug involving 1583 .rela.stabs. 1584 (ppc_elf_finish_dynamic_symbol): Fix case involving GOT symbols 1585 forced to be local because of versioning (by replicating 1586 corresponding change in sparc). Treat R_PPC_RELATIVE RELA relocs 1587 as usual in ELF, not as pseudo-REL relocs (as the sparc linker 1588 does). 1589 (ppc_elf_relocate_section): Add handy debugging code for when 1590 assertion fails. Add some more 'symbol made local because of 1591 versioning' cases. 1592 1593 * elf32-ppc.c (ppc_elf_relocate_section): Cope with addend when 1594 processing a GOT relocation as required by ABI. 1595 1596Wed Jul 30 21:30:35 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 1597 1598 * elflink.h (NAME(bfd_elf,record_link_assignment)): Remove any 1599 version info if this symbol came from a dynamic object. 1600 (elf_link_add_object_symbols): Set the version info of a symbol 1601 only if the object actually contains version definitions and 1602 defines this symbol. 1603 1604Mon Jul 28 18:07:43 1997 Rob Savoye <rob@chinadoll.cygnus.com> 1605 1606 * aclocal.m4: Add CYGWIN and EXEEXT autoconf macros. 1607 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for 1608 win32 dependencies. 1609 * configure: Regenerated with autoconf 2.12. 1610 * doc/Makefile.in: Add $(EXEEXT) to chew executable. 1611 1612Mon Jul 28 02:50:29 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 1613 1614 * rs6000-core.c (rs6000coff_core_p): If CORE_TRUNC is set, print 1615 a warning rather than returning an error. 1616 1617Sun Jul 27 19:54:14 1997 Felix Lee <flee@cygnus.com> 1618 1619 * coffswap.h (coff_swap_aux_in): add semicolon to make MSVC happy. 1620 1621Fri Jul 25 14:50:08 1997 Felix Lee <flee@cygnus.com> 1622 1623 * cisco-core.c: define signals for wingdb. 1624 1625Fri Jul 25 16:27:07 1997 Ian Lance Taylor <ian@cygnus.com> 1626 1627 * ecofflink.c (bfd_ecoff_debug_accumulate): Only merge files with 1628 the same number of aux entries. 1629 1630Fri Jul 25 08:22:15 1997 Jeffrey A Law (law@cygnus.com) 1631 1632 * som.c (hppa_som_gen_reloc_type): Use R_DATA_EXPR for the 1633 difference of two symbols if the relocation size is 32 bits. 1634 (som_write_fixups): Handle R_DATA_EXPR. 1635 1636Wed Jul 23 16:08:02 1997 Ian Lance Taylor <ian@cygnus.com> 1637 1638 * coff-i386.c (coff_i386_reloc): Don't offset a common symbol by 1639 its value if COFF_WITH_PE is defined. 1640 1641Tue Jul 22 17:19:45 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE> 1642 1643 * coff-stubgo32.c: New file. 1644 * go32stub.h: New file. 1645 * coff-i386.c: If COFF_GO32_EXE, include coff/go32exe.h. 1646 * coffswap.h (coff_swap_filehdr_in): Invoke 1647 COFF_ADJUST_FILEHDR_IN_PRE and COFF_ADJUST_FILEHDR_IN_POST if they 1648 are defined. 1649 (coff_swap_filehdr_out): Invoke COFF_ADJUST_FILEHDR_OUT_PRE and 1650 COFF_ADJUST_FILEHDR_OUT_POST if they are defined. 1651 (coff_swap_aux_in): Invoke COFF_ADJUST_AUX_IN_PRE and 1652 COFF_ADJUST_AUX_IN_POST if they are defined. 1653 (coff_swap_aux_out): Invoke COFF_ADJUST_AUX_OUT_PRE and 1654 COFF_ADJUST_AUX_OUT_POST if they are defined. 1655 (coff_swap_scnhdr_in): Invoke COFF_ADJUST_SCNHDR_IN_PRE and 1656 COFF_ADJUST_SCNHDR_IN_POST if they are defined. 1657 (coff_swap_scnhdr_out): Invoke COFF_ADJUST_SCNHDR_OUT_PRE and 1658 COFF_ADJUST_SCNHDR_OUT_POST if they are defined. 1659 * targets.c (go32stubbedcoff_vec): Declare. 1660 (bfd_target_vector): Add go32stubbedcoff_vec. 1661 * configure.in (go32coff_vec): New target vector. 1662 (go32stubbedcoff_vec): Likewise. 1663 * config.bfd (i[3456]86-*-msdosdjgpp*): New target. 1664 (i[3456]86-*-go32*): Change to be like new msdosdjgpp*. 1665 * Makefile.in: Rebuild dependencies. 1666 (BFD32_BACKENDS): Add coff-stubgo32.o. 1667 (BFD32_BACKENDS_CFILES): Add coff-stubgo32.c. 1668 (HFILES): Add go32stub.h. 1669 1670Tue Jul 22 15:09:12 1997 Ian Lance Taylor <ian@cygnus.com> 1671 1672 * configure.in: Check for fdopen. 1673 * configure, config.in: Rebuild. 1674 * opncls.c (bfd_fdopenr): Check HAVE_FDOPEN rather than VMS or 1675 __GO32__. Reindent a bit. 1676 1677Sun Jul 20 20:05:20 1997 Ian Lance Taylor <ian@cygnus.com> 1678 1679 * sunos.c (sunos_create_dynamic_sections): Set SEC_LINKER_CREATED 1680 flag for newly created sections. 1681 (sunos_add_dynamic_symbols): Don't discard newly created sections 1682 if shared library is dynobj. 1683 1684Mon Jul 14 15:33:55 1997 Ian Lance Taylor <ian@cygnus.com> 1685 1686 * elf.c (map_sections_to_segments): When checking whether 1687 including a section in a segment would force us to skip a page, 1688 align the address of the next segment to avoid wraparound 1689 problems. 1690 1691Mon Jul 7 16:41:20 1997 Ian Lance Taylor <ian@cygnus.com> 1692 1693 * coff-i386.c (coff_i386_is_local_label_name): New static function 1694 if TARGET_UNDERSCORE. 1695 (coff_bfd_is_local_label_name): Define if TARGET_UNDERSCORE. 1696 (i386coff_vec): Add SEC_CODE and SEC_DATA to section_flags. 1697 1698Mon Jun 30 14:29:26 1997 Ian Lance Taylor <ian@cygnus.com> 1699 1700 * elf32-m68k.c (howto_table): Use complain_overflow_bitfield, not 1701 complain_overflow_signed, for 32 bit PC relative relocations. 1702 1703Thu Jun 26 01:26:31 1997 Ian Lance Taylor <ian@cygnus.com> 1704 1705 * elflink.h (elf_link_add_object_symbols): When a version 1706 indirection symbol is overridden, make the original symbol point 1707 at the real overriding symbol. 1708 1709 * elf.c (bfd_elf_string_from_elf_section): Check for an invalid 1710 string index. 1711 1712 * elflink.h (elf_link_output_extsym): Use the right section for a 1713 common symbol. 1714 * elf32-mips.c (mips_elf_link_output_symbol_hook): If a common 1715 symbol was in .scommon, mark it as SHN_MIPS_SCOMMON. 1716 1717Wed Jun 25 12:43:10 1997 H.J. Lu <hjl@gnu.ai.mit.edu> 1718 1719 * elflink.h (elf_merge_symbols): Resolve indirect and warning 1720 symbols before checking for new symbols. 1721 1722 * elfcore.h (elf_corefile_note): Move out of HAVE_SYS_PROCFS_H. 1723 1724Tue Jun 24 11:20:43 1997 Ian Lance Taylor <ian@cygnus.com> 1725 1726 * coffgen.c (coff_object_p): Read the f_opthdr bytes from the 1727 file, not aoutsz bytes (they are different in XCOFF .o files). 1728 1729 * xcofflink.c (xcoff_link_add_symbols): Permit symbols to be 1730 redefined by objects included from archives. 1731 1732Mon Jun 23 18:03:27 1997 Ian Lance Taylor <ian@cygnus.com> 1733 1734 * elflink.h (elf_merge_symbol): In the case of a new defined 1735 symbol overriding an old defined symbol, return the hash table 1736 entry which we modify, even if it is the target of an 1737 indirection. 1738 (elf_link_add_object_symbols): If the real name of the symbol gets 1739 overridden, convert the versioned symbol into an indirect symbol 1740 to the real symbol. 1741 1742 * elflink.h (elf_merge_symbol): New static function, broken out of 1743 elf_link_add_object_symbols. 1744 (elf_link_add_object_symbols): Call it. 1745 1746Sun Jun 22 19:40:57 1997 Ian Lance Taylor <ian@cygnus.com> 1747 1748 * coff-i386.c (i3coff_object_p): If COFF_IMAGE_WITH_PE, hack to 1749 handle case where COFF filehdr does not immediately follow PE 1750 header. 1751 * coffgen.c (coff_object_p): Remove useless seek to current 1752 location. 1753 1754Wed Jun 18 19:03:38 1997 Ian Lance Taylor <ian@cygnus.com> 1755 1756 * linker.c (link_action): Change COMMON_ROW/indr to from CREF to 1757 REFC. 1758 1759Tue Jun 17 11:55:02 1997 Ian Lance Taylor <ian@cygnus.com> 1760 1761 * cofflink.c (_bfd_coff_link_input_bfd): If stripping debugging 1762 symbols, skip N_ABS symbols with debugging storage classes. 1763 1764Mon Jun 16 18:56:27 1997 Geoff Keating <geoffk@ozemail.com.au> 1765 1766 * elf32-ppc.c (ppc_elf_relocate_section): Don't emit R_PPC_REL* 1767 relocs in shared libraries which refer to local symbols. Cope 1768 with addend when processing a GOT relocation. 1769 1770 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Only create symbols 1771 for sections that the linker didn't create. 1772 (ppc_elf_finish_dynamic_sections): Only try to write out a section 1773 symbol if it was created in ppc_elf_size_dynamic_sections. 1774 (ppc_elf_relocate_section): Complain if we have to generate a reloc 1775 relative to a section for which we didn't output a symbol. 1776 1777 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Clean up. PLT 1778 relocs are 'rela' relocs, like everything else. .rela.plt is not 1779 a read-only section, so we don't have to special-case it. 1780 1781 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Entries in the 1782 .rela.bss section are (of course) 'rela' relocs not 'rel' relocs. 1783 1784 * elf32-ppc.c (ppc_elf_check_relocs): Initialise srelgot. 1785 (ppc_elf_relocate_section): @got offsets are 4 from start of the 1786 actual .got section. 1787 * elflink.c (_bfd_elf_create_got_section): The three reserved 1788 words start from the symbol '_GLOBAL_OFFSET_TABLE_'. 1789 1790 * elf32-ppc.c (ppc_elf_size_dynamic_sections): '.rela' is 5 1791 characters, not 4. 1792 1793 * elf32-ppc.c (ppc_elf_check_relocs): Use 1794 _bfd_elf_create_got_section to create the GOT rather than 1795 ppc_elf_create_linker_section. Create the '.rela.got' section 1796 ourselves. 1797 (ppc_elf_finish_dynamic_symbol): Set up GOT relocations when a 1798 symbol has a GOT entry. 1799 (ppc_elf_relocate_section): Record when a symbol is used through 1800 the GOT, and allocate space in the GOT for each such symbol. 1801 (ppc_elf_adjust_dynamic_symbol): Delete unused .got.plt stuff. 1802 (ppc_elf_create_linker_section): Delete unused LINKER_SECTION_GOT 1803 stuff. 1804 1805 * elf32-ppc.c (ppc_elf_howto_raw): GOT16_HA relocs should be 1806 treated in a similar way to ADDR16_HA relocs. 1807 (ppc_elf_relocate_section): PLTREL24 relocs do not get copied into 1808 shared objects; the linker must deal with them. 1809 (ppc_elf_create_linker_section): Stop setting 1810 _GLOBAL_OFFSET_TABLE_ to the wrong value; delete unused 1811 LINKER_SECTION_PLT stuff. 1812 (ppc_elf_check_relocs): Delete unused LINKER_SECTION_PLT stuff. 1813 (ppc_elf_finish_dynamic_sections): Use BFD calls to get GOT 1814 section, not ELF-specific calls. 1815 (elf_backend_plt_not_loaded): Set to 1. 1816 (elf_backend_got_symbol_offset): Set to 4. 1817 * elf-bfd.h (elf_backend_data): Add 'plt_not_loaded' member 1818 for when ld.so fills in the PLT; and 'got_symbol_offset' member. 1819 * elflink.c (_bfd_elf_create_dynamic_sections): Apply 1820 plt_not_loaded member. 1821 (_bfd_elf_create_got_section): Apply got_symbol_offset. 1822 * elfxx-target.h (elf_backend_plt_not_loaded): Set default to 1823 'loaded'. 1824 (elf_backend_G_O_T_offset): Set default to 0. 1825 (elfNN_bed): Set added fields. 1826 1827 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Was setting 1828 DT_RELENT in shared objects; should be DT_RELAENT. 1829 1830 * elf32-ppc.c (ppc_elf_relocate_section): Propagate 1831 R_PPC_ADDR16_HA relocs to shared objects. Cope with case where 1832 such a reloc (in a non-shared object) refers to a symbol that's 1833 not defined. 1834 1835Mon Jun 16 14:42:14 1997 H.J. Lu <hjl@gnu.ai.mit.edu> 1836 1837 * elfcode.h (put_signed_word): Define. 1838 (get_signed_word): Define. 1839 (elf_swap_reloca_in): Use get_signed_word for the r_addend field. 1840 (elf_swap_reloca_out): Use put_signed_word for the r_addend 1841 field. 1842 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Use 1843 bfd_get_signed_32 to set the r_addend field. 1844 * elf64-mips.c (mips_elf64_swap_reloca_in): Use 1845 bfd_h_get_signed_64 to set the r_addend field. 1846 1847Mon Jun 16 12:31:29 1997 Ian Lance Taylor <ian@cygnus.com> 1848 1849 * elf32-i386.c (elf_i386_relocate_section): When generating a 1850 shared library, do the relocation if the input section is not 1851 allocated in memory. 1852 1853 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Call 1854 elf_link_assign_sym_version before elf_adjust_dynamic_symbol. 1855 (elf_fix_symbol_flags): New static function, broken out of 1856 elf_adjust_dynamic_symbol. 1857 (elf_adjust_dynamic_symbol): Call elf_fix_symbol_flags. 1858 (elf_link_assign_sym_version): Likewise. Permit a symbol to be 1859 forced local even if NEEDS_PLT is set. When forcing a symbol to 1860 be local, clear NEEDS_PLT. 1861 (elf_link_output_extsym): Remove unused local bed. 1862 1863Wed Jun 11 22:44:20 1997 Jeffrey A Law (law@cygnus.com) 1864 1865 * elf32-mn10300.c (elf32_mn10300_link_hash_entry): New structure 1866 for derived elf linker hash table entries. References to 1867 elf_link_hash_entry changed appropriately. 1868 (elf32_mn10300_link_hash_table): New structure for derived elf 1869 linker hash table. 1870 (elf32_mn10300_hash_table): Define. 1871 (elf32_mn10300_link_hash_traverse): Likewise. 1872 (elf32_mn10300_link_hash_newfunc): New function. 1873 (elf32_mn10300_link_hash_table_create): Likewise. 1874 (elf32_mn10300_finish_hash_table_entry): Likewise. 1875 (mn10300_elf_relax_section): Handle "call" -> "calls", removal 1876 of prologue code, and call:32->call:16 relaxing. 1877 (compute_function_info: New function. 1878 (bfd_elf32_bfd_ilink_hash_table_create): Define. 1879 1880Wed Jun 11 00:00:07 1997 Ian Lance Taylor <ian@cygnus.com> 1881 1882 * elflink.h (elf_link_output_extsym): Call finish_dynamic_symbol 1883 for a symbol which is being forced to be local. 1884 * elf32-i386.c (elf_i386_relocate_section): Write out the 1885 relocation value for a GOT reloc for a symbol which is turning 1886 into a local symbol. 1887 (elf_i386_finish_dynamic_symbol): If a symbol is turning into a 1888 local symbol, write out a RELATIVE reloc rather than a GLOB_DAT 1889 reloc. 1890 * elf32-m68k.c, elf32-sparc.c: Corresponding changes. 1891 1892 * elf32-i386.c (elf_i386_relocate_section): Get the relocation 1893 value if the symbol is turning into a local symbol. 1894 * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 1895 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 1896 18971997-06-10 22:58 Ulrich Drepper <drepper@cygnus.com> 1898 1899 * elflink.h (elf_link_add_object_symbols): Also read verneed 1900 information by calling `_bfd_elf_slurp_version_tables'. 1901 (elf_link_add_object_symbols): For undefined symbols look for 1902 version information in the verneed records. 1903 (elf_link_add_object_symbols): Use soname of shared object 1904 for verneed record if it is available. 1905 1906Tue Jun 10 11:13:03 1997 H.J. Lu <hjl@gnu.ai.mit.edu> 1907 1908 * cpu-arm.c: Add prototypes for compatible and scan. 1909 * cofflink.c: Add prototype for mark_relocs. 1910 1911 * archive.c (bfd_special_undocumented_glue): Change filename to 1912 const pointer. Add prototype. 1913 1914Mon Jun 9 12:34:21 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 1915 1916 * elflink.h (elf_link_add_object_symbols): Ignore relocations of 1917 sections that will be discarded. 1918 19191997-06-06 22:58 Ulrich Drepper <drepper@cygnus.com> 1920 1921 * elflink.h (elf_link_find_version_dependencies): When searching 1922 for known version symbol skip non-matching verdef records, not 1923 matching records. 1924 1925Thu Jun 5 15:52:45 1997 Ian Lance Taylor <ian@cygnus.com> 1926 1927 * cofflink.c (_bfd_coff_generic_relocate_section): Write a long, 1928 not a bfd_vma, to the base file, to match how dlltool reads it. 1929 1930Tue Jun 3 16:57:45 1997 Nick Clifton <nickc@cygnus.com> 1931 1932 * reloc.c: Add thumb relocations. 1933 1934 * bfd-in2.h: Add Thumb relocations. 1935 1936 * libbfd.h: Add Thumb relocations. 1937 1938Mon Jun 2 10:41:52 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 1939 1940 * cpu-m68k.c (arch_info_struct): Fix 68060 cpu name. 1941 1942Fri May 30 12:46:27 1997 Ian Lance Taylor <ian@cygnus.com> 1943 1944 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Set dynindx 1945 for a section even if it is not loaded. 1946 1947 * cofflink.c (coff_link_add_symbols): If PE file, don't subtract 1948 section VMA. 1949 (_bfd_coff_link_input_bfd): Separate section VMA handling for 1950 input and output files. 1951 (_bfd_coff_generic_relocate_section): Check whether input file, 1952 not output file, is a PE file. 1953 1954Wed May 28 15:48:43 1997 Nick Clifton <nickc@cygnus.com> 1955 1956 * coff-arm.c: (coff_arm_bfd_set_private_flags): Make static. 1957 1958Wed May 28 16:16:04 1997 Ian Lance Taylor <ian@cygnus.com> 1959 1960 * coff-i386.c (coff_i386_reloc): Don't just exit if we see an 1961 R_IMAGEBASE reloc. 1962 1963Wed May 28 09:48:43 1997 Nick Clifton <nickc@cygnus.com> 1964 1965 * cpu-arm.c (compatible): Add test for supersets of ARM 1966 architectures. 1967 1968Tue May 27 19:42:03 1997 Bob Manson <manson@charmed.cygnus.com> 1969 1970 * cofflink.c (_bfd_coff_final_link): Initialize global_to_static 1971 member. 1972 1973Tue May 27 14:34:08 1997 Nick Clifton <nickc@cygnus.com> 1974 1975 * coff-arm.c (coff_arm_bfd_set_private_flags): Make global. It is 1976 called directly by gas/config/tc-arm.c. 1977 1978Tue May 27 15:58:53 1997 Richard Henderson <rth@tamu.edu> 1979 1980 * elf64-alpha.c (PLT_ENTRY_*): Use a new thread-safe format. 1981 (elf64_alpha_finish_dynamic_symbol): Fill it in properly. 1982 1983Mon May 26 14:05:13 1997 Ian Lance Taylor <ian@cygnus.com> 1984 1985 * coff-ppc.c (coff_ppc_relocate_section): If PE file, don't add 1986 section VMA. 1987 1988Mon May 26 10:57:48 1997 Fred Fish <fnf@cygnus.com> 1989 1990 * peicode.h (coff_bfd_print_private_bfd_data): #undef before #define. 1991 (coff_bfd_copy_private_bfd_data): Ditto. 1992 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Make static. 1993 (coff_arm_bfd_print_private_bfd_data): Ditto. 1994 (coff_arm_bfd_set_private_flags): Ditto. 1995 (coff_arm_bfd_copy_private_bfd_data): Ditto. 1996 1997Fri May 23 15:14:58 1997 Fred Fish <fnf@cygnus.com> 1998 1999 * libcoff-in.h (struct coff_final_link_info): Add boolean 2000 global_to_static member for support of task linking. 2001 (_bfd_coff_write_task_globals): Add prototype. 2002 * libcoff.h: Regenerate. 2003 * coffcode.h (coff_write_object_contents): Use #ifdef to 2004 check RS6000COFF_C, to be consistent with all other uses 2005 in this file. 2006 * cofflink.c (_bfd_coff_final_link): If doing task linking, 2007 call _bfd_coff_write_task_globals. 2008 (_bfd_coff_link_input_bfd): If doing task linking, convert 2009 global functions to static. 2010 (_bfd_coff_write_global_sym): If doing task linking, convert 2011 global variables to static. 2012 (_bfd_coff_write_task_globals): New function. 2013 2014Wed May 21 17:15:50 1997 Ian Lance Taylor <ian@cygnus.com> 2015 2016 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE or 2017 COFF_IMAGE_WITH_PE, don't subtract the section VMA from the symbol 2018 value. 2019 * coffgen.c (fixup_symbol_value): Add abfd parameter. Change all 2020 callers. If PE file, don't add section VMA. 2021 (coff_write_alien_symbol): If PE file, don't add section VMA. 2022 * cofflink.c (_bfd_coff_link_input_bfd): Likewise. 2023 (_bfd_coff_write_global_sym): Likewise. 2024 (_bfd_coff_generic_relocate_section): Likewise. 2025 2026 * peicode.h: Add & 0xffffffff when using ImageBase in case bfd_vma 2027 is 64 bits. 2028 2029Wed May 21 09:58:10 1997 Nick Clifton <nickc@cygnus.com> 2030 2031 * cofflink.c (mark_relocs): Add new function to mark symbols which 2032 are used by relocations. 2033 (_bfd_coff_link_input_bfd): Add call to mark_relocs() and code to 2034 suppress the skipping of symbols that have thus been marked. 2035 2036Tue May 20 18:45:26 1997 Ian Lance Taylor <ian@cygnus.com> 2037 2038 * coff-sh.c (sh_merge_private_data): New static function. 2039 (coff_bfd_merge_private_bfd_data): Define. 2040 2041Fri May 16 10:23:03 1997 Jeffrey A Law (law@cygnus.com) 2042 2043 * elf-m10300.c (elf32_mn10300_relax_section): Read in all 2044 the symbols associated with each BFD. 2045 (mn10300_elf_relax_delete_bytes): Don't adjust the same symbol 2046 more than once. 2047 * elf-m10200.c: Likewise. 2048 * elf32-m32r.c: Likewise. 2049 * elf32-sh.c: Likewise. 2050 2051Fri May 16 12:10:52 1997 Ian Lance Taylor <ian@cygnus.com> 2052 2053 * elflink.h (elf_link_add_object_symbols): Don't decrease the 2054 alignment of a common symbol. If two symbols that look like 2055 common symbols are found in two shared libraries, and the size is 2056 different, use the larger size, and warn if --warn-common. If a 2057 common symbol overrides a definition in a shared library, set the 2058 size to the larger size, and warn if --warn-common. 2059 2060Thu May 15 14:31:28 1997 Nick Clifton <nickc@cygnus.com> 2061 2062 * cpu-arm.c (compatible): Allow default machine to be polymorphed 2063 into any other machine type. 2064 2065 * coffcode.h (coff_set_flags): Initialise flags variable to 0. 2066 2067 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): When merging 2068 data into an unitialised destination set its machine type as well. 2069 2070Thu May 15 16:40:20 1997 Ian Lance Taylor <ian@cygnus.com> 2071 2072 * elflink.h (elf_link_add_object_symbols): Force ELF symbol size 2073 to common symbol size. Consistently treat uninitialized symbols 2074 in shared objects as common symbols. 2075 2076Fri May 9 10:15:27 1997 Nick Clifton <nickc@cygnus.com> 2077 2078 * archures.c (constants): Added new constants to identify the 2079 type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a, 2080 bfd_mach_arm_3, bfd_mach_arm_3M, bfd_mach_arm_4 and bfd_mach_arm_4T. 2081 2082 * bfd-in2.h (constants): Added new constants to identify 2083 the type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a, 2084 bfd_mach_arm_3, bfd_mach_arm_3M, bfd_mach_arm_4 and 2085 bfd_mach_arm_4T. This file is auto-magically generated from the 2086 archures.c file. This update is just to save work. 2087 2088 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data, 2089 coff_arm_bfd_print_private_bfd_data, 2090 coff_arm_bfd_set_private_flags, 2091 coff_arm_bfd_copy_private_bfd_data): Added these new functions. 2092 (global): Macro redefinitions set up to use these new functions. 2093 2094 * coffcode.h (coff_mkobject_hook): Added call to 2095 coff_arm_bfd_set_private_flags(). 2096 (coff_set_arch_mach_hook): Added code to set machine type based on 2097 bits stored in internal flags. 2098 (coff_set_flags): Added code to set the new bits in the flags 2099 field based on the machine number. 2100 (function definition macros): Made all function definition macros 2101 conditional so that they can be overridden by target specific 2102 files. 2103 2104 * cpu-arm.c (compatible): Added this function. (arch_info_struct): 2105 Structure extended to include new types, one each for ARMv2, 2106 ARMv2a, ARMv3, ARMv3M, ARMv4 and ARMv4T. 2107 2108 * libcoff-in.h (struct coff_tdata): Added flags field. 2109 2110Fri May 9 17:40:02 1997 Ian Lance Taylor <ian@cygnus.com> 2111 2112 * config.bfd (i[3456]86-*-gnu*): Don't include Mach support. 2113 2114 * config.bfd: Change #if 0 around uses of host_aout_vec to #if 2115 HAVE_host_aout_vec. 2116 2117Mon May 5 13:57:32 1997 Mike Meissner <meissner@cygnus.com> 2118 2119 * coffgen.c (coff_find_nearest_line): If there are no syments, 2120 just return false. 2121 2122Mon May 5 18:18:45 1997 Philip Blundell <pjb27@cam.ac.uk> 2123 2124 * config.bfd: cope with '*-*-linux-gnuaout' targets. 2125 2126Thu May 1 11:31:12 1997 Ian Lance Taylor <ian@cygnus.com> 2127 2128 * targmatch.sed: Add explicit \n characters to work around bug in 2129 HP/UX 10.20 sed program. 2130 2131Wed Apr 30 12:27:03 1997 Ian Lance Taylor <ian@cygnus.com> 2132 2133 * elf.c (copy_private_bfd_data): Cast csecs to avoid sign 2134 extension problems. 2135 2136Tue Apr 22 12:06:08 1997 Ian Lance Taylor <ian@cygnus.com> 2137 2138 * Makefile.in (do_maintainer_clean): Don't remove bfd-in2.h. 2139 2140Mon Apr 21 11:21:31 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 2141 2142 * elf32-m68k.c: Follow the last changes in elf32-i386.c: 2143 (struct elf_m68k_pcrel_relocs_copied, struct 2144 elf_m68k_link_hash_entry, struct elf_m68k_link_hash_table, 2145 elf_m68k_link_hash_traverse, elf_m68k_hash_table, 2146 elf_m68k_link_hash_newfunc, elf_m68k_link_hash_table_create, 2147 elf_m68k_discard_copies, bfd_elf32_bfd_link_hash_table_create): 2148 New definitions. 2149 (elf_m68k_check_relocs): If linking with -Bsymbolic, don't copy 2150 PC relative relocs for a global symbol defined in a regular 2151 object, and count the number of PC relative relocs copied for any 2152 global symbol. 2153 (elf_m68k_size_dynamic_sections): If linking with -Bsymbolic, 2154 traverse with elf_m68k_discard_copies. 2155 2156Sat Apr 19 22:50:14 1997 Ian Lance Taylor <ian@cygnus.com> 2157 2158 * elf32-i386.c (elf_i386_check_relocs): Only count PC relative 2159 relocs. From Jamie Lokier <jamie@rebellion.co.uk>. 2160 2161 * coffcode.h (coff_compute_section_file_positions): Force the 2162 potential last byte in the file to be written out when 2163 COFF_IMAGE_WITH_PE. 2164 2165Thu Apr 17 13:46:56 1997 Per Fogelstrom <pefo@openbsd.org> 2166 2167 * configure.host (mips*-*-openbsd*): New host. 2168 2169Thu Apr 17 11:10:54 1997 Ian Lance Taylor <ian@cygnus.com> 2170 2171 * elflink.h (elf_link_add_object_symbols): Only subtract the 2172 section VMA from the symbol value if this is a fully linked file. 2173 2174 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Define. 2175 (struct elf_i386_link_hash_entry): Define. 2176 (struct elf_i386_link_hash_table): Define. 2177 (elf_i386_link_hash_traverse): Define. 2178 (elf_i386_hash_table): Define. 2179 (elf_i386_link_hash_newfunc): New static function. 2180 (elf_i386_link_hash_table_create): New static function. 2181 (elf_i386_check_relocs): If linking with -Bsymbolic, don't copy 2182 PC relative relocs for a global symbol defined in a regular 2183 object, and count the number of PC relative relocs copied for any 2184 global symbol. 2185 (elf_i386_size_dynamic_sections): If linking with -Bsymbolic, 2186 traverse with elf_i386_discard_copies. 2187 (elf_i386_discard_copies): New static function. 2188 (bfd_elf32_bfd_link_hash_table_create): Define. 2189 2190 From Gordon W. Ross <gwr@mc.com>: 2191 * aoutf1.h (MY_entry_is_text_address): Define if not defined. 2192 (sunos4_aout_backend): Use MY_entry_is_text_address. 2193 2194Wed Apr 16 14:02:29 1997 Ian Lance Taylor <ian@cygnus.com> 2195 2196 From Gordon W. Ross <gwr@mc.com>: 2197 * netbsd.h (N_SHARED_LIB): Define. 2198 (SEGMENT_SIZE): Don't define. 2199 * m68knetbsd.c (SEGMENT_SIZE): Don't define (revert change of 2200 April 11). 2201 * sparcnetbsd.c (TARGET_PAGE_SIZE): Define as 0x2000. 2202 (SEGMENT_SIZE): Don't define. 2203 2204 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Set .rela.bss size 2205 to sizeof Rela structure, not sizeof Rel structure. From Gary 2206 Thomas <g.thomas@opengroup.org>. 2207 2208Tue Apr 15 11:50:37 1997 Ian Lance Taylor <ian@cygnus.com> 2209 2210 * aout-target.h (MY(callback)): If entry_is_text_address, adjust 2211 whenever entry is larger than text address, but only by whole 2212 pages. From Gordon W. Ross <gwr@mc.com>. 2213 2214 * Makefile.in (install): Depend upon installdirs. Use 2215 mkinstalldirs to build $(oldincludedir). 2216 (installdirs): New target. 2217 2218 * elflink.h (elf_link_add_object_symbols): Don't call check_relocs 2219 if this is a debugging section which we are stripping. 2220 2221Mon Apr 14 12:39:30 1997 Richard Henderson <rth@tamu.edu> 2222 2223 * elf64-alpha.c (elf64_alpha_object_p): Allocate the 2224 alpha-specific target data struct. 2225 2226Mon Apr 14 11:45:46 1997 Ian Lance Taylor <ian@cygnus.com> 2227 2228 From Thomas Graichen <graichen@rzpd.de>: 2229 * Makefile.in: Always use $(SHELL) when running move-if-change. 2230 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub. 2231 * configure: Rebuild. 2232 2233Fri Apr 11 15:43:24 1997 Ian Lance Taylor <ian@cygnus.com> 2234 2235 * elfcode.h (elf_slurp_symbol_table): Only subtract the section 2236 VMA if this is an executable file or a shared object. 2237 2238 * targets.c (netbsd_core_vec): Declare. From Gordon W. Ross 2239 <gwr@mc.com>. 2240 2241 * libaout.h (struct aout_backend_data): Add entry_is_text_address 2242 field. 2243 * aout-target.h (SEGMENT_SIZE): Define to TARGET_PAGE_SIZE at the 2244 start of the file. Remove uses later on which switch using 2245 ifdef. 2246 (MY(callback)): Handle entry_is_text_address. 2247 (MY_entry_is_text_address): Define if not defined. 2248 (MY(backend_data)): Initialize new field. 2249 * aoutf1.h (sunos4_aout_backend): Likewise. 2250 * i386aout.c (MY(backend_data)): Likewise. 2251 * i386mach3.c (MY(backend_data)): Likewise. 2252 * mipsbsd.c (MY(backend_data)): Likewise. 2253 * sparclynx.c (sparclynx_aout_backend): Likewise. 2254 * netbsd.h (SEGMENT_SIZE): Define if not defined. 2255 (MY_entry_is_text_address): Define. 2256 * m68knetbsd.c (SEGMENT_SIZE): Define as 0x20000. 2257 2258 * xcofflink.c (bfd_xcoff_import_symbol): Handle importing a symbol 2259 whose name starts with `.'. 2260 2261Fri Apr 11 11:57:15 1997 Niklas Hallqvist <niklas@appli.se> 2262 2263 * config.bfd: (i[3456]86-*-openbsd*, m68*-*-openbsd*, 2264 mips*el*-*-openbsd*, mips*-*-openbsd*, ns32k-*-openbsd*, 2265 powerpc-*-*bsd*, sparc-*-openbsd*): New targets. 2266 * configure.in (i[3456]86-*-openbsd*, mips*-*-openbsd*, 2267 m68*-*-openbsd*, ns32k-*-openbsd*, powerpc-*-*bsd*, 2268 sparc-*-openbsd*): New targets. 2269 * configure: Rebuild. 2270 2271Tue Apr 8 18:09:29 1997 Jamie Lokier <jamie@rebellion.co.uk> 2272 2273 * stabs.c (struct stab_section_info): New field 2274 `cumulative_skips'. 2275 (_bfd_link_section_stabs): Fill the above array. 2276 (_bfd_stab_section_offset): Use `cumulative_skips' to 2277 speed up offset calculation. 2278 2279Tue Apr 8 00:01:31 1997 Jeffrey A Law (law@cygnus.com) 2280 2281 * elf-mn10300.c (mn10300_elf_relax_section): Don't forget the 2282 addend for non pc-relative relocations. 2283 2284 * elf-m10300.c (bfd_elf32_mn10300_reloc): Remove prototype 2285 for non-existent function. 2286 2287 * elf-m10300.c (mn10300_elf_relax_section): New function. 2288 (mn10300_elf_relax_delete_bytes): Likewise. 2289 (mn10300_elf_symbol_address_p): Likewise. 2290 (mn10300_elf_get_relocated_section_contents): Likewise. 2291 (bfd_elf32_bfd_relax_section): Define. 2292 (bfd_elf32_bfd_get_relocated_section_contents): Likewise. 2293 2294Mon Apr 7 16:47:09 1997 Ian Lance Taylor <ian@cygnus.com> 2295 2296 * configure.host: Set SHLIB_LIBS. 2297 * configure.in: Substitute SHLIB_LIBS. 2298 * configure: Rebuild. 2299 * Makefile.in (SHLIB_LIBS): New variable. 2300 ($(SHLIB)): Use $(SHLIB_LIBS). 2301 2302Mon Apr 7 10:53:52 1997 Michael Snyder <msnyder@cleaver.cygnus.com> 2303 2304 * bfd-in.h bfd-in2.h: add bfd_section_lma macro to correspond 2305 with bfd_section_vma. 2306 2307Fri Apr 4 11:37:15 1997 Ian Lance Taylor <ian@cygnus.com> 2308 2309 * configure.in: Update file names for bfd_elf32_mn10[23]00_vec. 2310 Correct CPU file names for mn10[23]00. 2311 * configure: Rebuild. 2312 2313 * bfd.c (bfd_record_phdr): Cast count to size_t before 2314 subtraction. 2315 2316 * coff-ppc.c (dump_toc): Add cast to avoid warning from SunOS cc. 2317 * coff-rs6000.c (xcoff_read_ar_hdr): Likewise. 2318 (xcoff_write_archive_contents): LIkewise. 2319 * elf32-mips.c (_bfd_mips_elf_set_section_contents): Likewise. 2320 (mips_elf_create_procedure_table): Likewise. 2321 * peicode.h (pe_print_idata): Likewise. 2322 (pe_print_edata, pe_print_pdata, pe_print_reloc): Likewise. 2323 * xcofflink.c (xcoff_get_section_contents): Likewise. 2324 (_bfd_xcoff_canonicalize_dynamic_symtab): Likewise. 2325 (xcoff_link_add_symbols): Likewise. 2326 (xcoff_link_add_symbols): Likewise. 2327 2328 * ppcboot.c (ppcboot_set_arch_mach): Make static. 2329 (ppcboot_bfd_print_private_bfd_data): Likewise. 2330 2331 * elf32-mips.c (elf_mips_ctor64_howto): Set complain_on_overflow 2332 to complain_overflow_signed. 2333 2334Thu Apr 3 11:51:54 1997 Ian Lance Taylor <ian@cygnus.com> 2335 2336 * VERSION: Set to 2.8.1. 2337 2338 * Branched binutils 2.8. 2339 2340 * elf32-ppc.c (ppc_elf_check_relocs): Don't check SEC_ALLOC when 2341 deciding whether to copy a reloc into a shared object. 2342 (ppc_elf_relocate_section): Likewise. Relocate R_PPC_RELATIVE 2343 relocs in unallocated sections. 2344 * elf32-sparc.c (elf32_sparc_relocate_section): Relocate 2345 R_SPARC_RELATIVE relocs in unallocated sections. 2346 2347Wed Apr 2 16:19:41 1997 Mike Meissner <meissner@cygnus.com> 2348 2349 * elf32-ppc.c (ppc_elf_check_relocs): Undo March 26 change and 2350 always create got section so that the _GLOBAL_OFFSET_TABLE_ label 2351 is always created. 2352 2353Wed Apr 2 10:49:07 1997 Ian Lance Taylor <ian@cygnus.com> 2354 2355 * elflink.h (elf_link_add_object_symbols): Let a common symbol 2356 override an uninitialized symbol from a shared library with a 2357 smaller size. 2358 2359 * elf-m10200.c: Rename from elf32-mn10200.c. 2360 * elf-m10300.c: Rename from elf32-mn10300.c. 2361 * cpu-m10200.c: Rename from cpu-mn10200.c 2362 * cpu-m10300.c: Rename from cpu-mn10300.c 2363 * Makefile.in: Update accordingly. 2364 2365 * elf32-mips.c (elf_mips_ctor64_howto): New static variable. 2366 (elf_mips_isa): Move to earlier in file. 2367 (mips_reloc_map): Remove BFD_RELOC_CTOR entry. 2368 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR 2369 specially. 2370 2371 * elf32-mips.c (mips16_jump_reloc): Print a warning rather than 2372 calling abort. 2373 2374Tue Apr 1 16:18:05 1997 Klaus Kaempf <kkaempf@progis.de> 2375 2376 * configure.com: New file. 2377 * config.h-vms: Remove file. 2378 * makefile.vms: Update for new configure scheme. 2379 2380Mon Mar 31 23:28:39 1997 H.J. Lu <hjl@gnu.ai.mit.edu> 2381 2382 * libcoff-in.h (ppc_allocate_toc_section): Declare. 2383 (ppc_process_before_allocation): Declare. 2384 * libcoff.h: Rebuild. 2385 2386 * coffcode.h (coff_mkobject_hook): Declare if not a macro. 2387 2388Mon Mar 31 16:29:50 1997 Joel Sherrill <joel@oarcorp.com> 2389 2390 * config.bfd (hppa*-*-rtems*): New target, like hppa-*-*elf*. 2391 2392Mon Mar 31 16:11:35 1997 Ian Lance Taylor <ian@cygnus.com> 2393 2394 * coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a 2395 symbol index for a R_IHCONST reloc. 2396 2397Mon Mar 31 15:40:59 1997 Philippe De Muyter <phdm@info.ucl.ac.be> 2398 2399 * targmatch.sed: Do not use \(\) recursively. 2400 2401Fri Mar 28 14:44:08 1997 H.J. Lu <hjl@gnu.ai.mit.edu> 2402 2403 * m68klinux.c (MACHTYPE_OK): Define. 2404 * i386linux.c (MACHTYPE_OK): Define. 2405 2406Fri Mar 28 11:56:15 1997 Ian Lance Taylor <ian@cygnus.com> 2407 2408 From David S. Miller <davem@caip.rutgers.edu> and H.J. Lu 2409 <hjl@gnu.ai.mit.edu>: 2410 * sparclinux.c: New file. 2411 * bfd-in.h (bfd_sparclinux_size_dynamic_sections): Declare. 2412 * bfd-in2.h: Rebuild. 2413 * config.bfd (sparc-*-linuxaout*, sparc-*-linux*): New targets. 2414 * configure.in (sparclinux_vec): Add to list of vectors. 2415 * configure: Rebuild. 2416 * targets.c (sparclinux_vec): Declare. 2417 (bfd_target_vector): Add sparclinux_vec. 2418 * Makefile.in: Rebuild dependencies. 2419 (BFD32_BACKENDS): Add sparclinux.o. 2420 (BFD32_BACKENDS_CFILES): Add sparclinux.c. 2421 2422 * coff-mips.c (mips_ecoff_backend_data): Initialize new 2423 bfd_coff_backend_data field. 2424 * coff-alpha.c (alpha_ecoff_backend_data): Likewise. 2425 2426 * config.bfd: Add bfd_elf64_{big,little}mips_vec to targ_selvecs 2427 for mips*el*-*-linux* and mips*-*-linux*. From H.J. Lu 2428 <hjl@lucon.org> and Ralf Baechle <ralf@gnu.ai.mit.edu>. 2429 2430 * bfd.c: Include "libiberty.h". 2431 (strerror): Don't declare. 2432 (bfd_errmsg): Call xstrerror rather than strerror. 2433 2434Thu Mar 27 12:55:42 1997 Ian Lance Taylor <ian@cygnus.com> 2435 2436 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Generate a COPY 2437 reloc even if the symbol is in the .bss section. 2438 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise. 2439 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. 2440 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise. 2441 2442 * coffcode.h (bfd_coff_backend_data): Add new field 2443 _bfd_coff_default_section_alignment_power. 2444 (bfd_coff_default_section_alignment_power): Define. 2445 (bfd_coff_std_swap_table): Initialize new field. 2446 * libcoff.h: Rebuild. 2447 * cofflink.c (coff_link_add_symbols): Limit alignment of a common 2448 symbol to the default section alignment. 2449 2450 * COPYING: Update FSF address. 2451 2452Wed Mar 26 14:50:20 1997 Ian Lance Taylor <ian@cygnus.com> 2453 2454 * elflink.c (_bfd_elf_create_linker_section): Don't set 2455 bss_section and rel_section from existing sections. 2456 2457 * elf32-ppc.c (ppc_elf_check_relocs): Only create the got section 2458 if it is needed. 2459 2460Tue Mar 25 22:26:56 1997 Stu Grossman (grossman@critters.cygnus.com) 2461 2462 * aoutx.h (some_aout_object_p): Change executable test to fix 2463 problems with embedded a.out systems. 2464 2465Tue Mar 25 14:35:37 1997 Ian Lance Taylor <ian@cygnus.com> 2466 2467 * stabs.c (_bfd_stab_section_offset): New function. 2468 * libbfd-in.h (_bfd_stab_section_offset): Declare. 2469 * libbfd.h: Rebuild. 2470 * elf32-i386.c (elf_i386_relocate_section): Adjust the offset of a 2471 stab reloc. 2472 * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 2473 * elf32-mips.c (mips_elf_relocate_section): Likewise. 2474 * elf32-ppc.c (ppc_elf_relocate_section): Likewise. 2475 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 2476 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. 2477 2478 * stabs.c (_bfd_link_section_stabs): Copy over the first header 2479 symbol. Check for memory allocation failure of *psinfo. 2480 (_bfd_write_section_stabs): Add psinfo parameter. Change all 2481 callers. Set the value of the header symbol. 2482 * libbfd-in.h (_bfd_write_section_stabs): Update declaration. 2483 * libbfd.h: Rebuild. 2484 2485Mon Mar 24 13:41:00 1997 Ian Lance Taylor <ian@cygnus.com> 2486 2487 * targmatch.sed: Use the hold space to put the #ifdef around the 2488 the string constant. 2489 * targets.c (UNSUPPORTED_TARGET): Don't define. 2490 (find_target): Don't check for UNSUPPORTED_TARGET. 2491 (bfd_set_default_target): Don't try to optimize by checking for 2492 default. 2493 2494 * Makefile.in: Rebuild dependencies. 2495 (ALL_MACHINES_CFILES): Add cpu-m32r.c. 2496 (BFD32_BACKENDS_CFILES): Add elf32-m32r.c. 2497 (elf32-m32r.o): Remove explicit target. 2498 2499 * config.bfd: Don't set targ_underscore for i[3456]86-*-gnu* or 2500 i[3456]86-*-linux*. 2501 2502 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Don't 2503 count section symbols for sections that were created by the 2504 linker, or are not allocatable or not loadable. 2505 (elf32_sparc_finish_dynamic_sections): Output output section 2506 symbols for section for which we made space for them. 2507 2508Fri Mar 21 13:08:26 1997 Ian Lance Taylor <ian@cygnus.com> 2509 2510 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): If there is 2511 no .rela.plt section, don't output a DT_PLTGOT dynamic entry. 2512 2513Fri Mar 21 12:36:46 1997 Doug Evans <dje@canuck.cygnus.com> 2514 2515 * elf32-m32r.c (m32r_elf_howto_table): Use special function for LO16. 2516 (m32r_hi16_list): New static local. 2517 (m32r_elf_hi16_reloc): Don't perform reloc, just queue it up. 2518 (m32r_elf_do_hi16_reloc): Delete. 2519 (m32r_elf_relocate_hi16): New function. 2520 (m32r_elf_lo16_reloc): New function. 2521 (m32r_elf_relocate_section): For HI16 relocs, scan for corresponding 2522 LO16 reloc. 2523 2524 Mon Mar 10 16:03:31 1997 Doug Evans <dje@seba.cygnus.com> 2525 2526 * elf32-m32r.c (m32r_elf_create_linker_section): Delete. 2527 (m32r_elf_add_symbol_hook): Rewrite _SDA_BASE_ support. 2528 (m32r_elf_final_sda_base): New function. 2529 (m32r_elf_relocate_section): Rewrite sdata support. 2530 (m32r_elf_finish_dynamic_sections): Delete. 2531 2532Thu Mar 20 12:39:02 1997 Ian Lance Taylor <ian@cygnus.com> 2533 2534 Based on patches from Philippe De Muyter <phdm@info.ucl.ac.be>. 2535 * coff-svm68k.c: New file. Just defines some macros and includes 2536 coff-m68k.c. 2537 * coff-m68k.c: Add functions to handle common addends, moved in 2538 from cf-m68klynx.c. Control them using COFF_COMMON_ADDEND macro. 2539 Control whether relocs are visible using STATIC_RELOCS. 2540 * cf-m68klynx.c: Simplify greatly: just define macros to control 2541 coff-m68k.c. 2542 * coff-aux.c: Likewise. Just leave add_one_symbol routine. 2543 * targets. (m68ksysvcoff_vec): Declare. 2544 (bfd_target_vector): Add m68ksysvcoff_vec. 2545 * config.bfd (m68*-motorola-sysv*): New target. 2546 * configure.in (m68ksysvcoff_vec): New vector. 2547 * configure: Rebuild. 2548 * Makefile.in: Rebuild dependencies. 2549 (BFD32_BACKENDS): Add coff-svm68k.o. 2550 (BFD32_BACKENDS_CFILES): Add coff-svm68k.c. 2551 2552 * binary.c (binary_set_section_contents): Don't get misled if the 2553 first section is not loadable. From Matthew L. Martin 2554 <mlm@xedia.com>. 2555 2556 * elflink.h (elf_bfd_final_link): Set the value of a section 2557 symbol to the section address unless doing a relocateable link. 2558 2559Tue Mar 18 23:03:17 1997 Richard Henderson <rth@tamu.edu> 2560 2561 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't create 2562 .plt entry if we've taken the function's address. 2563 (elf64_alpha_merge_gots): Merge collected flags info as well. 2564 2565Tue Mar 18 22:40:09 1997 H.J. Lu <hjl@lucon.org> 2566 2567 * Many files: Add function prototypes. 2568 * cpu-m68k.c (bfd_default_scan_num_mach): Don't declare. 2569 * ecofflink.c: Include "libcoff.h" and "libecoff.h". 2570 * elf32-ppc.c (ppc_elf_fake_sections): Make static. 2571 * opncls.c (bfd_openstreamr): Change stream parameter to PTR. 2572 * peicode.h: Change several void * parameters to PTR. 2573 * srec.c (srec_get_symbol_info): Make static. 2574 * syms.c (bfd_symbol_is_absolute): Remove. 2575 * Makefile.in: Rebuild dependencies. 2576 2577Tue Mar 18 12:58:08 1997 Ian Lance Taylor <ian@cygnus.com> 2578 2579 * elf32-m32r.c (m32r_elf_is_local_label_name): Remove. 2580 (bfd_elf32_bfd_is_local_label): Don't define. 2581 2582 * xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc rather 2583 than malloc. 2584 2585Mon Mar 17 11:32:53 1997 Ian Lance Taylor <ian@cygnus.com> 2586 2587 * bfd-in.h: Don't include obstack.h. 2588 (struct bfd_hash_table): Change memory field to PTR. 2589 * bfd.c (struct _bfd): Change memory field to PTR. 2590 * bfd-in2.h: Rebuild. 2591 * libbfd-in.h (bfd_release): Declare as function, don't define as 2592 macro. 2593 * libbfd.h: Rebuild. 2594 * opncls.c: Include "objalloc.h" rather than "obstack.h". Use 2595 objalloc routines rather than obstack routines. 2596 (obstack_chunk_alloc, obstack_chunk_free): Don't define. 2597 (getpagesize): Don't define. 2598 (_bfd_new_bfd): Don't set _bfd_chunksize. 2599 (bfd_openr): Free new bfd and objalloc on failure. 2600 (bfd_fdopenr, bfd_openstreamr, bfd_openw): Likewise. 2601 (bfd_alloc_size): Remove. 2602 (bfd_release): New function. 2603 * hash.c: Include "objalloc.h" rather than "obstack.h". Use 2604 objalloc routines rather than obstack routines. 2605 (obstack_chunk_alloc, obstack_chunk_free): Don't define. 2606 * ecofflink.c: Include "objalloc.h" rather than "obstack.h". Use 2607 objalloc routines rather than obstack routines. 2608 (obstack_chunk_alloc, obstack_chunk_free): Don't define. 2609 (struct accumulate): Change memory to struct objalloc *. 2610 * liboasys.h (oasys_data_type): Remove oasys_obstack field. 2611 * dep-in.sed: Don't remove obstack.h from dependency list. 2612 * Makefile.in: Rebuild dependencies. 2613 (BFD_H_DEPS): Remove obstack.h. 2614 (install): Don't install obstack.h. 2615 * Many files: Don't include "obstack.h". 2616 * VERSION: Bump. 2617 2618 * opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove. 2619 * libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare. 2620 * libbfd.h: Rebuild. 2621 * ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow. 2622 * sunos.c (sunos_add_dynamic_symbols): Likewise. 2623 * srec.c (srec_scan): Rewrite to not use obstack_1grow. 2624 2625 * opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t. Remove 2626 old version of bfd_alloc. 2627 * libbfd-in.h (bfd_alloc_by_size_t): Don't declare. 2628 * libbfd.h: Rebuild. 2629 * Several files: Call bfd_alloc rather than bfd_alloc_by_size_t. 2630 2631Sat Mar 15 15:24:18 1997 Ian Lance Taylor <ian@cygnus.com> 2632 2633 * elf32-mips.c (mips_elf_is_local_label_name): Accept the generic 2634 ELF local label syntax as well. 2635 2636Sat Mar 15 10:16:42 1997 Fred Fish <fnf@cygnus.com> 2637 2638 * config.bfd (powerpc-*-beos*): New target. 2639 * configure.in (powerpc-*-beos*): Add case that explicitly 2640 does not set COREFILE for now. A future BeOS version is 2641 expected to support core files. 2642 * configure: Regenerate with autoconf. 2643 2644Fri Mar 14 16:43:22 1997 Ian Lance Taylor <ian@cygnus.com> 2645 2646 * elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is 2647 seen with a local symbol, rather than crashing. 2648 2649 * elfcode.h (elf_slurp_symbol_table): Don't try to read the 2650 version symbols if there aren't any. 2651 2652Thu Mar 13 14:08:53 1997 Ian Lance Taylor <ian@cygnus.com> 2653 2654 * elflink.h (elf_link_add_object_symbols): Don't warn about type 2655 or size changes because of a weak symbol. 2656 2657 * cisco-core.c (SIGEMT): Define if not defined. 2658 2659Wed Mar 12 21:36:05 1997 Ian Lance Taylor <ian@cygnus.com> 2660 2661 * elflink.h (elf_link_add_object_symbols): Use extsymoff when 2662 setting ever. Sanity check the version number. Sort out copying 2663 flags and other information when adding an indirect symbol. 2664 (NAME(bfd_elf,size_dynamic_sections)): Preserve any dynamic 2665 symbols added by the backend. Clear the entire contents of the 2666 versym section. 2667 (elf_export_symbol): Ignore indirect symbols. 2668 (elf_link_output_extsym): Accept a section without an owner in an 2669 assert. 2670 * elfcode.h (elf_slurp_symbol_table): Add a sanity check on the 2671 version count. Correct the allocation of x_versymp. 2672 2673 * elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of 2674 the magic sections used for SHN_MIPS_TEXT and SHN_MIPS_DATA. 2675 Don't return bfd_und_section_ptr when info->shared. 2676 (mips_elf_final_link): Set the alignment of .rtproc to 4, not 12. 2677 (mips_elf_create_dynamic_sections): Correct type: ^= for &=. 2678 (mips_elf_check_relocs): Resolve an indirect symbol in 2679 sym_hashes. 2680 (mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into 2681 SHN_MIPS_TEXT or SHN_MIPS_DATA. 2682 2683 * elf.c (bfd_elf_print_symbol): Tweak version output slightly. 2684 2685Tue Mar 11 01:38:36 1997 Ian Lance Taylor <ian@cygnus.com> 2686 2687 From Eric Youngdale <eric@andante.jic.com>: 2688 * elf-bfd.h (ELF_LINK_FORCED_LOCAL): Define. 2689 * elf.c (bfd_elf_print_symbol): Correct errors in last change. 2690 * elflink.h (elf_link_add_object_symbols): Handle cases in which a 2691 versioned symbol appears in both a regular and a shared object. 2692 (elf_link_assign_sym_version): Set ELF_LINK_FORCED_LOCAL when 2693 appropriate. Improve error message. 2694 (struct elf_outext_info): Rename from elf_finfo_failed. Change 2695 all uses. Add localsyms field. 2696 (elf_bfd_final_link): When generating a shared library, call 2697 elf_link_output_extsym to output all local symbols. 2698 (elf_link_output_extsym): Handle symbols which were forced to 2699 become local. 2700 2701Sun Mar 9 23:08:49 1997 Ian Lance Taylor <ian@cygnus.com> 2702 2703 From Eric Youngdale <eric@andante.jic.com>: 2704 * elf-bfd.h (elf_symbol_type): Add version field. 2705 * elfcode.h (elf_slurp_symbol_table): Set version field. 2706 * elflink.h (elf_link_add_object_symbols): When creating an 2707 indirect symbol for a default version symbol, set DEF_DYNAMIC if 2708 appropriate. Set up an indirection from the nondefault version of 2709 the symbol as well. 2710 (NAME(bfd_elf,size_dynamic_sections)): Call 2711 elf_link_assign_sym_version before checking whether there are any 2712 versions. Always record the version name as a dynamic symbol. 2713 Initialize counters. 2714 (elf_link_assign_sym_version): After finding a version, see if a 2715 symbol should be forced to local scope. Create a new version 2716 definition if appropriate. 2717 (elf_link_output_extsym): Correct indirect symbol handling. 2718 * elf.c (bfd_elf_print_symbol): Print version information. 2719 (bfd_section_from_shdr): Turn version sections into BFD sections. 2720 (elf_fake_sections): Only copy cverdefs and cverrefs into sh_info 2721 if sh_info is not already set. 2722 (_bfd_elf_copy_private_section_data): Copy sh_info for version 2723 sections. 2724 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell 2725 _bfd_stringtab_add to copy the name into permanent memory if 2726 appropriate. 2727 2728Fri Mar 7 11:55:31 1997 H.J. Lu <hjl@gnu.ai.mit.edu> 2729 2730 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize. 2731 2732Fri Mar 7 10:37:30 1997 Ian Lance Taylor <ian@cygnus.com> 2733 2734 * coffcode.h (bfd_coff_backend_data): Change 2735 _bfd_coff_compute_section_file_positions to return a boolean 2736 value. Change all callers. 2737 (coff_compute_section_file_positions): Change return type to 2738 boolean. If the size of the last section changed, then output a 2739 zero byte at the end of the file. 2740 * libcoff.h: Rebuild. 2741 2742 * xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate space 2743 for at least 6 output symbols. 2744 (xcoff_write_global_symbol): When emitting TOC entry relocs, also 2745 emit a TC csect to represent the space they take up. For an XO 2746 symbol, just emit a reference, not a csect. 2747 2748 * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since 2749 Solaris doesn't like the combined options, and the -f is 2750 unnecessary. 2751 (stamp-tshlink, install): Likewise. 2752 2753 * elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26 2754 handling when little endian. 2755 2756Thu Mar 6 13:51:51 1997 Jeffrey A Law (law@cygnus.com) 2757 2758 * elf32-mn10300.c (mn10300_elf_final_link_relocate): New function. 2759 (mn10300_elf_relocate_section): Likewise. 2760 (elf_backend_relocate_section): Define. 2761 2762 * elf32-mn10300.c (reloc_type): Remove PCREL{8,16,32}_{1,2}BYTE 2763 relocs. Replace them with generic PCREL_{8,16,32} relocs. 2764 (elf32_mn10300_howto_table): Likewise. 2765 (elf32_mn10300_reloc_map): Likewise. 2766 (bfd_elf32_mn10300_reloc): Delete unused function. 2767 2768Thu Mar 6 12:19:59 1997 Fred Fish <fnf@cygnus.com> 2769 2770 * coffcode.h (coff_slurp_reloc_table): Pull duplicate declarations and 2771 code fragment out of both legs of #ifdef RELOC_PROCESSING ... #endif 2772 block. Use NULL for initializations of "ptr" rather than bare 0. 2773 * coff-h8300.c: Fix typo in comment. 2774 * coff-h8500.c: Ditto. 2775 * coff-w65.c: Ditto 2776 * coff-z8k.c: Ditto. 2777 2778Wed Mar 5 13:59:09 1997 Doug Evans <dje@seba.cygnus.com> 2779 2780 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc): Fix overflow calc. 2781 (m32r_elf_relax_section, m32r_elf_relax_delete_bytes, 2782 m32r_elf_get_relocated_section_contents): First pass at relax support. 2783 2784Mon Mar 3 13:27:09 1997 Ulrich Drepper <drepper@rtl.cygnus.com> 2785 2786 * elflink.h (elf_link_add_object_symbols): Use correct sh_size 2787 entry for reading verdef records. 2788 Use correct braces for computing increments of extverdaux and 2789 exteverdef record pointers. 2790 2791Sun Mar 2 16:25:35 1997 Ian Lance Taylor <ian@cygnus.com> 2792 2793 * elflink.h (elf_link_find_version_dependencies): Check that 2794 DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is 2795 set. 2796 2797Fri Feb 28 15:06:45 1997 Ian Lance Taylor <ian@cygnus.com> 2798 2799 * targets.c (bfd_default_vector): Make non-const. 2800 (find_target): New static function, broken out of 2801 bfd_find_target. 2802 (bfd_set_default_target): New function. 2803 (bfd_find_target): Call find_target. When defaulting, use 2804 bfd_default_vector[0] if it is not NULL. 2805 * libbfd-in.h (bfd_default_vector): Adjust declaration. 2806 * bfd-in2.h, libbfd.h: Rebuild. 2807 2808 * syms.c (bfd_is_local_label): Return false if the symbol has no 2809 name. 2810 * coff-i960.c (coff_i960_is_local_label_name): New function. 2811 (coff_bfd_is_local_label_name): Define. 2812 * coff-m68k.c (m68k_coff_is_local_label_name): New function. 2813 (coff_bfd_is_local_label_name): Define. 2814 * coff-rs6000.c (xcoff_is_local_label_name): New function. 2815 (coff_bfd_is_local_label_name): Define. 2816 * elf.c (_bfd_elf_is_local_label_name): Treat symbols beginning 2817 with .. or _.L_ as local. 2818 * elf32-i386.c (elf_i386_is_local_label_name): New function. 2819 (bfd_elf32_bfd_is_local_label_name): Define. 2820 * evax-alpha.c (evax_bfd_is_local_label_name): Treat symbols 2821 beginning with $ as local. 2822 2823Thu Feb 27 18:36:23 1997 Ian Lance Taylor <ian@cygnus.com> 2824 2825 * aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name 2826 rather than comparing against info->lprefix. 2827 * cofflink.c (_bfd_coff_link_input_bfd): Likewise. 2828 * elflink.h (elf_link_input_bfd): Likewise. 2829 * linker.c (_bfd_generic_link_output_symbols): Likewise. 2830 * xcofflink.c (xcoff_link_input_bfd): Likewise. 2831 2832 * elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define as 2833 _bfd_elf_is_local_label_name if not already defined. 2834 * elf.c (_bfd_elf_is_local_label_name): New function. 2835 * elf-bfd.h (_bfd_elf_is_local_label_name): Declare. 2836 2837 * coff-m88k.c (coff_bfd_is_local_label_name): Define. 2838 (m88k_is_local_label_name): New static function. 2839 2840 * coffcode.h (coff_bfd_is_local_label_name): Define as 2841 _bfd_coff_is_local_label_name if not already defined. 2842 * coffgen.c (_bfd_coff_is_local_label_name): New function. 2843 * libcoff-in.h (_bfd_coff_is_local_label_name): Declare. 2844 * libcoff.h: Rebuild. 2845 2846 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label 2847 to _bfd_is_local_label_name. 2848 (bfd_target): Likewise. 2849 * syms.c (bfd_is_local_label): Define as function, not macro. 2850 (bfd_is_local_name): Define. 2851 * libbfd.c (bfd_generic_is_local_label_name): Rename from 2852 bfd_generic_is_local_label, and take a string rather than a 2853 symbol. 2854 * libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define. 2855 (_bfd_nosymbols_bfd_is_local_label_name): Define. 2856 (bfd_generic_is_local_label): Don't declare. 2857 (bfd_generic_is_local_label_name): Declare. 2858 * bfd-in2.h, libbfd.h: Rebuild. 2859 * All backends: Change local_label to local_label_name. 2860 2861 * elf32-mips.c (struct mips_got_info): Add assigned_gotno field. 2862 (mips_elf_relocate_got_local): Change return type to boolean. 2863 Don't assume that the first zero entry is unassigned; instead, use 2864 assigned_gotno. 2865 (mips_elf_relocate_section): Check return value of 2866 mips_elf_relocate_got_local. 2867 (mips_elf_create_got_section): Initialize assigned_gotno field. 2868 2869Wed Feb 26 13:33:03 1997 Ian Lance Taylor <ian@cygnus.com> 2870 2871 * elflink.h (elf_link_input_bfd): Don't skip symbols from sections 2872 that have no contents merely because linker_mark is not set. 2873 2874Tue Feb 25 18:51:35 1997 Stan Shebs <shebs@andros.cygnus.com> 2875 2876 * config.bfd (mips*-*-lnews*): New target. 2877 * coff-mips.c (mips_relocate_section): Make assert compare 2878 content byteorder instead of header byteorder. 2879 (ecoff_biglittle_vec): New BFD, big-endian headers, little-endian 2880 data. 2881 * targets.c (bfd_target_vector): Add ecoff_biglittle_vec. 2882 * configure.in (ecoff_biglittle_vec): Add case. 2883 * configure: Update. 2884 2885Tue Feb 25 00:32:49 1997 Ian Lance Taylor <ian@cygnus.com> 2886 2887 * elf.c (elf_fake_sections): Use SHT_NOTE for any section whose 2888 name begins with ".note". 2889 (map_sections_to_segments): Add a PT_NOTE segment for any loadable 2890 section whose name begins with ".note". 2891 (get_program_header_size): Corresponding change. 2892 2893 * elf32-mips.c (mips_elf_relocate_section): Check for misaligned 2894 jal and for jal overflow. 2895 2896Mon Feb 24 17:53:14 1997 Ian Lance Taylor <ian@cygnus.com> 2897 2898 From Eric Youngdale <eric@andante.jic.com>: 2899 * elflink.h (elf_link_add_archive_symbols): If a default symbol is 2900 not found, try looking it up again without the version name. 2901 (elf_link_add_object_symbols): Always link against the dynamic 2902 symbol table of a dynamic object. When linking against a dynamic 2903 object, include version strings in symbol names, and set up 2904 version information. Add indirect symbols for default versions. 2905 (elf_link_create_dynamic_sections): Add special version sections. 2906 (struct elf_assign_sym_version_info): Define. 2907 (struct elf_find_verdep_info): Define. 2908 (NAME(bfd_elf,size_dynamic_sections)): Add verdefs parameter. Set 2909 up version sections. 2910 (elf_adjust_dynamic_symbol): Ignore indirect symbols. 2911 (elf_link_find_version_dependencies): New static function. 2912 (elf_link_assign_sym_version): New static function. 2913 (elf_link_renumber_dynsyms): New static function. 2914 (struct elf_final_link_info): Add symver_sec field. 2915 (elf_bfd_final_link): Initialize finfo.symver_sec. Don't count 2916 local symbols of a dynamic object. Handle DT_VER* constants. 2917 (elf_link_output_extsym): Simplify BFD_ASSERT checking for a 2918 dynamic object. Skip indirect symbols from ELF objects. Remove 2919 the version name before choosing a hash bucket. Write out the 2920 version information if appropriate. 2921 (elf_link_input_bfd): Check for DYNAMIC, not ET_DYN. 2922 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. 2923 (bfd_elf64_size_dynamic_sections): Likewise. 2924 * bfd-in2.h: Rebuild. 2925 * elf-bfd.h (struct elf_link_hash_entry): Add verinfo field. 2926 Change elf_link_hash_flags to unsigned short. 2927 (ELF_LINK_HIDDEN): Define. 2928 (struct elf_obj_tdata): Add fields dynversym_hdr, dynverref_hdr, 2929 dynverdef_hdr, dynversym_section, dynverdef_section, 2930 dynverref_section, cverdefs, cverrefs, verdef, verref. 2931 (elf_dynversym, elf_dynverdef, elf_dynverref): Define. 2932 (_bfd_elf_swap_verdef_in, _bfd_elf_swap_verdef_out): Declare. 2933 (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Declare. 2934 (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Declare. 2935 (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Declare. 2936 (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Declare. 2937 (_bfd_elf_slurp_version_tables): Declare. 2938 * elf.c (_bfd_elf_swap_verdef_in): New function. 2939 (_bfd_elf_swap_verdef_out): Likewise. 2940 (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Likewise. 2941 (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Likewise. 2942 (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Likewise. 2943 (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Likewise. 2944 (_bfd_elf_print_private_bfd_data): Add DT_VER* constants. Print 2945 version information if there is any. 2946 (_bfd_elf_link_hash_newfunc): Initialize verinfo field. 2947 (bfd_section_from_shdr): Handle SHT_GNU_ver* section types. 2948 (elf_fake_sections): Handle .gnu.version* section names. 2949 (assign_section_numbers): Handle SHT_GNU_ver* section types. 2950 (_bfd_elf_slurp_version_tables): New function. 2951 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't include 2952 version name in string entered in dynamic hash table. 2953 * elfcode.h: Include fnmatch.h. 2954 * elf32-i386.c (elf_i386_relocate_section): Handle a dynamic 2955 symbol which was forced to become local. 2956 * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 2957 * elf32-ppc.c (ppc_elf_relocate_section): Likewise. 2958 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 2959 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise. 2960 2961Fri Feb 21 16:15:18 1997 Jeffrey A Law (law@cygnus.com) 2962 2963 * elf32-mn10200.c (mn10200_elf_final_link_relocate): Simplify 2964 somewhat. 2965 (mn10200_elf_relax_section): Correctly compute a symbol's value 2966 when the symbol is local, but not in the same section as we are 2967 relaxing. Implement abs24 -> abs16, imm24 -> imm16 and d24 -> d16 2968 relaxing. 2969 2970Fri Feb 21 13:55:14 1997 Doug Evans <dje@seba.cygnus.com> 2971 2972 * elf32-m32r.c: Rewrite to use ELF backend linker. 2973 Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns. 2974 Add small data area support (R_M32R_SDA16). 2975 * reloc.c: Document BFD_RELOC_M32R_SDA16. 2976 * bfd-in2.h,libbfd.h: Regenerated. 2977 2978Thu Feb 20 23:50:31 1997 Jeffrey A Law (law@cygnus.com) 2979 2980 * elf32-mn10200.c (mn10200_elf_relax_section): New function. 2981 (mn10200_elf_relax_delete_bytes): Likewise. 2982 (mn10200_elf_symbol_address_p): Likewise. 2983 (mn10200_elf_get_relocated_section_contents): Likewise. 2984 (bfd_elf32_bfd_relax_section): Define. 2985 (bfd_elf32_bfd_get_relocated_section_contents): Likewise. 2986 2987 * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function. 2988 (mn10200_elf_relocate_section): Likewise. 2989 (elf_backend_relocate_section): Define. 2990 2991Tue Feb 18 15:31:48 1997 Fred Fish <fnf@cygnus.com> 2992 2993 * reloc.c (struct reloc_howto_struct): Fix typo in comment. 2994 * bfd-in2.h: Regenerated. 2995 2996Tue Feb 18 11:41:00 1996 Dawn Perchik <dawn@cygnus.com> 2997 2998 * sysdep.h: Don't define errno in MSVC if error.h is included. 2999 3000Tue Feb 18 10:04:13 1997 Jeffrey A Law (law@cygnus.com) 3001 3002 * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx 3003 is initialized before it is used. 3004 3005Mon Feb 17 11:28:40 1997 Ian Lance Taylor <ian@cygnus.com> 3006 3007 * hp300hpux.c (convert_sym_type): Don't convert a secondary common 3008 symbol into a weak undefined symbol; leave it as a common symbol. 3009 3010Fri Feb 14 19:08:03 1997 Ian Lance Taylor <ian@cygnus.com> 3011 3012 * elflink.h (elf_link_add_object_symbols): Don't issue a warning 3013 about a symbol defined in a dynamic object if it has already been 3014 defined in a regular object. 3015 3016Thu Feb 13 20:53:22 1997 Klaus Kaempf (kkaempf@progis.de) 3017 3018 * makefile.vms: Add gcc flags to allow compiling with current gcc 3019 snapshot 3020 (targmatch.h): New dependency. 3021 3022 * reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for 3023 openVMS/Alpha. 3024 * evax.h (ALPHA_R_CODEADDR): New relocation. 3025 * evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for 3026 openVMS/Alpha. 3027 * evax-etir.c (ALPHA_R_CODEADDR): Output object code for this 3028 relocation. 3029 * bfd-in2.h, libbfd.h: Rebuild. 3030 3031 Restrict symbol length to 64 bytes, case preserving: 3032 * evax-emh.c (_bfd_evax_write_emh): Remove case hacking. 3033 * evax-misc.c (_bfd_evax_case_hack_symbol): Remove. 3034 (_bfd_evax_length_hash_symbol): Added. 3035 * evax-etir.c (_bfd_evax_write_etir): Call 3036 _bfd_evax_length_hash_symbol before output of symbol. 3037 * evax-egsd.c (_bfd_evax_write_egsd): Likewise. 3038 * evax.h (flag_hash_long_names, flag_show_after_trunc): Remove. 3039 3040 * evax-emh.c: Output filename to object file without path. 3041 3042 * evax-egsd.c: New sections for local and global commons. 3043 3044 * evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c, 3045 evax-misc.c, evax.h: Remove 8 bit characters from copyright 3046 notices. Replace AXP with Alpha. 3047 3048Wed Feb 12 18:10:30 1997 Ian Lance Taylor <ian@cygnus.com> 3049 3050 * sunos.c (sunos_create_dynamic_sections): We need the dynamic 3051 sections if we are creating a shared library. 3052 3053Tue Feb 11 15:45:43 1997 Doug Evans <dje@canuck.cygnus.com> 3054 3055 * configure.host (i386-windows): Don't set host64=true. 3056 3057Tue Feb 11 15:27:32 1997 Ian Lance Taylor <ian@cygnus.com> 3058 3059 * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL. 3060 (elf_mips16_gprel_howto): New static variable. 3061 (mips16_gprel_reloc): New static function. 3062 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL. 3063 (mips_info_to_howto_rel): Handle R_MIPS16_GPREL. 3064 (mips_elf_relocate_section): Handle R_MIPS16_GPREL. 3065 * reloc.c (BFD_RELOC_MIPS16_GPREL): Define. 3066 * bfd-in2.h, libbfd.h: Rebuild. 3067 3068Mon Feb 10 23:25:00 1997 Doug Evans <dje@seba.cygnus.com> 3069 3070 * elf32-m32r.c (elf_m32r_howto_table): Change partial_inplace to true 3071 for R_M32R_{16,32,24,HI16_ULO,HI16_SLO,LO16}. 3072 3073Fri Feb 7 12:39:11 1997 Ian Lance Taylor <ian@cygnus.com> 3074 3075 * elflink.h (elf_link_input_bfd): If we've discarded a section, 3076 the output section will be the absolute section; don't print an 3077 assertion message for that case when doing a relocateable link. 3078 3079Thu Feb 6 16:55:43 1997 Ian Lance Taylor <ian@cygnus.com> 3080 3081 * elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define. 3082 (struct mips_elf_link_hash_entry): Add new fields fn_stub, 3083 need_fn_sub, call_stub, and call_fp_stub. 3084 (struct mips_elf_link_hash_table): Add field mips16_stubs_seen. 3085 (mips_elf_link_hash_newfunc): Initialize new fields. 3086 (mips_elf_link_hash_table_create): Likewise. 3087 (mips_elf_relocate_section): Redirect relocations to use mips16 3088 stubs when appropriate. 3089 (mips_elf_check_relocs): Attach stub sections to the appropriate 3090 symbol. Set need_fn_stub when appropriate. 3091 (mips_elf_always_size_sections): New static function. 3092 (mips_elf_check_mips16_stubs): New static function. 3093 (elf_backend_always_size_sections): Define. 3094 * elf-bfd.h (struct elf_obj_tdata): Add local_stubs field. 3095 3096 * elflink.h (elf_link_input_bfd): Discard local symbols that are 3097 attached to sections which are not being included in the link. 3098 3099Wed Feb 5 13:20:17 1997 Ian Lance Taylor <ian@cygnus.com> 3100 3101 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore the 3102 symbol value when computing the addend for a pc_relative 3103 pcrel_offset reloc. 3104 3105Mon Feb 3 11:54:06 1997 Ian Lance Taylor <ian@cygnus.com> 3106 3107 * cofflink.c (_bfd_coff_generic_relocate_section): If doing a 3108 relocateable link, just skip pc_relative pcrel_offset relocs. 3109 * coff-arm.c (coff_arm_rtype_to_howto): Return a different howto 3110 structure for an ARM26 reloc which can be resolved. 3111 (coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the 3112 reloc can be resolved. 3113 3114 * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one 3115 error in overflow check for R_RELBYTE. 3116 3117Fri Jan 31 14:07:27 1997 Ian Lance Taylor <ian@cygnus.com> 3118 3119 * ieee.c (ieee_slurp_section_data): Pick up the start address. 3120 From Mark Rasin <mark.rasin@telrad.co.il>. 3121 3122 * aoutx.h (aout_link_write_symbols): Don't apply discard_l to 3123 debugging symbols. 3124 3125Wed Jan 29 00:00:49 1997 Jeffrey A Law (law@cygnus.com) 3126 3127 * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc. 3128 (elf_mn10200_howto_table): Likewise. 3129 (mn10200_reloc_map): Likewise. 3130 3131Mon Jan 27 12:07:35 1997 Doug Evans <dje@seba.cygnus.com> 3132 3133 * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}. 3134 * bfd-in2.h, libbfd.h: Regenerated. 3135 * elf32-m32r.c: Add support for them. 3136 3137Mon Jan 27 12:25:02 1997 Ian Lance Taylor <ian@cygnus.com> 3138 3139 * aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length. 3140 * elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt. 3141 * elf32-v850.c (v850_elf_final_link_relocate): Remove used 3142 r_format and r_pcrel. Always return a value. 3143 * riscix.c (MY_final_link_callback): Define to dummy value. 3144 3145 * elf32-i386.c (elf_i386_size_dynamic_sections): When checking for 3146 relocations against the text segment, look up the output name of 3147 the reloc section. 3148 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. 3149 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise. 3150 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. 3151 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. 3152 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise. 3153 3154Thu Jan 16 17:45:57 1997 Ian Lance Taylor <ian@cygnus.com> 3155 3156 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of 3157 auxiliary_filters parameter to be const char * const *. Accept a 3158 NULL terminated array. 3159 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. 3160 (bfd_elf32_size_dynamic_sections): Update declaration. 3161 * bfd-in2.h: Rebuild. 3162 3163Wed Jan 15 11:21:32 1997 Ian Lance Taylor <ian@cygnus.com> 3164 3165 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Treat a 3166 NOTYPE symbol in a text section as a FUNC symbol. 3167 3168 * coffcode.h (coff_compute_section_file_positions): Force 3169 relocbase to be aligned to COFF_DEFAULT_SECTION_ALIGNMENT_POWER. 3170 3171Tue Jan 14 08:46:33 1997 Doug Evans <dje@canuck.cygnus.com> 3172 3173 * libaout.h (machine_type): Reserve several values for sparclet. 3174 3175Mon Jan 13 19:36:25 1997 Michael Meissner <meissner@tiktok.cygnus.com> 3176 3177 * elf32-v850.c (v850_elf_howto_table): Set the special_function 3178 table to v850_elf_reloc for all non-standard relocations. 3179 (v850_elf_check_relocs): Add check for h being non-null. 3180 (v850_elf_reloc): Add R_V850_ZDA_OFFSET support. Use switch 3181 statement instead of multiple ifs. 3182 (v850_elf_relocate_section): Fix up error message, don't just call 3183 abort. 3184 3185Mon Jan 6 13:28:35 1997 Jeffrey A Law (law@cygnus.com) 3186 3187 * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace. 3188 Use bfd_elf_generic_reloc as special function for all relocs. 3189 (bfd_elf32_mn10200_reloc): Remove unnecessary function. 3190 3191 * elf32-mn10200.c (elf_mn10200_howto): Set pcrel_offset for 3192 24bit pc-relative reloc. 3193 3194Fri Jan 3 16:54:08 1997 Jeffrey A Law (law@cygnus.com) 3195 3196 * reloc.c: Add BFD_RELOC_24. 3197 * elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs. 3198 (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes. 3199 * bfd-in2.h, libbfd.h: Rebuilt. 3200 3201Fri Jan 3 16:58:31 1997 Richard Henderson <rth@tamu.edu> 3202 3203 elf64-alpha multiple .got rewrite: 3204 3205 * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry. 3206 (bfd_elf*_mkobject): Don't define here ... 3207 * elfxx-target.h: ... but rather here. Default always_size_sections 3208 hook to NULL. 3209 * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was 3210 what the #defines in elf-bfd.h transmuted it to anyway. 3211 3212 * section.c: Add SEC_LINKER_CREATED flag. 3213 * bfd-in2.h: Rebuild. 3214 * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to 3215 relocation section flags. 3216 (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of 3217 SEC_IN_MEMORY to recognize generated bits. 3218 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections): 3219 Likewise. 3220 * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections, 3221 mips_elf_create_compact_rel_section, mips_elf_create_got_section, 3222 mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise. 3223 * elf32-ppc.c (ppc_elf_create_linker_section, 3224 ppc_elf_size_dynamic_sections): Likewise. 3225 * elf32-sparc.c (elf32_sparc_check_relocs, 3226 elf32_sparc_size_dynamic_sections): Likewise. 3227 * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to 3228 section flags. 3229 (_bfd_elf_create_dynamic_sections): Likewise. 3230 (_bfd_elf_make_linker_section_rela): Likewise. 3231 * elflink.h (elf_link_create_dynamic_sections): Likewise. 3232 (bfd_elf,size_dynamic_sections): Call the always_size_sections hook. 3233 (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY 3234 to identify generated bits. 3235 (elf_link_input_bfd): Likewise. 3236 3237 * elf64-alpha.c: Rewrite everything touching relocations. 3238 3239Fri Jan 3 11:42:53 1997 Michael Meissner <meissner@tiktok.cygnus.com> 3240 3241 * elf32-v850.c (all functions and static variables): Go through 3242 and regularize names to be of the form v850_elf_<xxx>. 3243 (toplevel): Include <elf/v850.h>. 3244 (enum reloc_type): Move to include/elf/v850.h. 3245 (v850_elf_check_relocs): For common variables, if the variable is 3246 referenced by a R_V850_{SDA,ZDA,TDA} relocation, put the variable 3247 into the appropriate section. 3248 (elf_backend_check_relocs): Define. 3249 3250Tue Dec 31 15:15:28 1996 Michael Meissner <meissner@tiktok.cygnus.com> 3251 3252 * elf32-v850.c (elf_v850_howto_table): Fix some spacing. 3253 3254Tue Dec 31 14:44:50 1996 Ian Lance Taylor <ian@cygnus.com> 3255 3256 * config.bfd (mips*el-*-linux*): New target. 3257 (mips*-*-linux*): New target. 3258 3259 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up. 3260 Return a useful value. 3261 3262 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE. 3263 3264 * configure.in: Check ac_cv_func_mmap_fixed_mapped, not 3265 ac_cv_func_mmap. 3266 * configure: Rebuild. 3267 * configure.host: Use ac_cv_func_mmap_fixed_mapped instead of 3268 ac_cv_func_mmap in bfd/configure.host. 3269 3270 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add 3271 filter_shlib and auxiliary_filter_shlib parameters. 3272 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and 3273 DT_FILTER. 3274 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. 3275 (bfd_elf64_size_dynamic_sections): Likewise. 3276 * bfd-in2.h: Rebuild. 3277 3278Mon Dec 30 18:48:52 1996 Ian Lance Taylor <ian@cygnus.com> 3279 3280 * xcofflink.c (xcoff_build_ldsyms): When exporting all defined 3281 symbols, don't export a symbol which is defined by an object in an 3282 archive which contains shared objects. 3283 3284Mon Dec 30 11:54:56 1996 Ian Lance Taylor <ian@cygnus.com> 3285 3286 * libbfd.c: Patch up the mmap code so that it is only built if BFD 3287 is configured with --with-mmap. 3288 3289Fri Dec 27 20:56:41 1996 Fred Fish <fnf@cygnus.com> 3290 3291 * TODO: Correct a misspelling. 3292 3293Fri Dec 27 11:48:12 1996 H.J. Lu <hjl@lucon.org> 3294 3295 * elflink.h (elf_buckets): Add some more values for larger 3296 binaries. 3297 3298Thu Dec 26 18:36:54 1996 Ian Lance Taylor <ian@cygnus.com> 3299 3300 * Makefile.in (install): Move subdir_do out of conditional. From 3301 Fred Fish <fnf@cygnus.com>. 3302 3303Wed Dec 18 10:04:30 1996 Jeffrey A Law (law@cygnus.com) 3304 3305 * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and 3306 32 bit relocs. 3307 (elf_mn10200_howto_table): Likewise. 3308 (mn10200_reloc_map): Likewise. 3309 3310Tue Dec 17 11:09:36 1996 Ian Lance Taylor <ian@cygnus.com> 3311 3312 * elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a 3313 mips16 symbol during the link. 3314 (mips_elf_finish_dynamic_symbol): Subtract 1 from the value of a 3315 mips16 symbol. 3316 (mips_elf_link_output_symbol_hook): New static function. 3317 (elf_backend_link_output_symbol_hook): Define. 3318 3319 * elf.c (bfd_elf_print_symbol): Print the st_other field if it is 3320 not zero. 3321 3322Mon Dec 16 14:38:39 1996 Ian Lance Taylor <ian@cygnus.com> 3323 3324 * elf.c (bfd_section_from_shdr): Don't check for reloc sections 3325 against SEC_DEBUGGING sections here (revert patch of December 5). 3326 * elfcode.h (elf_object_p): Check for them here, instead. 3327 3328Sun Dec 15 14:46:06 1996 Ian Lance Taylor <ian@cygnus.com> 3329 3330 * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter. 3331 * elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to 3332 slurp_reloc_table. 3333 (_bfd_elf_get_dynamic_reloc_upper_bound): New function. 3334 (_bfd_elf_canonicalize_dynamic_reloc): New function. 3335 * elf-bfd.h (struct elf_size_info): Update declaration of 3336 slurp_reloc_table. 3337 (_bfd_elf_get_dynamic_reloc_upper_bound): Declare. 3338 (_bfd_elf_canonicalize_dynamic_reloc): Declare. 3339 * elfxx-target.h: Use new dynamic reloc routines by default. 3340 * elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic 3341 parameter. 3342 3343Fri Dec 13 13:18:49 1996 Dan Wilder <dan@gasboy.com> 3344 3345 * coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k 3346 if NAMES_HAVE_UNDERSCORE is defined. 3347 3348Fri Dec 13 11:13:23 1996 Doug Evans <dje@canuck.cygnus.com> 3349 3350 * libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131. 3351 3352Thu Dec 12 15:07:20 1996 Michael Meissner <meissner@tiktok.cygnus.com> 3353 3354 * elf32-ppc.c (ppc_elf_check_relocs): Move R_PPC_PLTREL24 into the 3355 supported relocs. 3356 3357Thu Dec 12 14:55:41 1996 Ian Lance Taylor <ian@cygnus.com> 3358 3359 * elflink.h (elf_link_add_object_symbols): Only add a weak 3360 symbol if the real definition is in the dynamic symbol table. 3361 After finding the real definition, then, if it is dynamic, add the 3362 weak symbol to the dynamic symbol table. 3363 3364 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static. 3365 3366 * ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a 3367 function. 3368 (ppcboot_bfd_print_private_bfd_data): Don't take the address of an 3369 array. 3370 3371Tue Dec 10 23:23:52 1996 Jeffrey A Law (law@cygnus.com) 3372 3373 * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc 3374 variants. 3375 (elf32_mn10300_howto_table, mn10300_reloc_map): Likewise. 3376 (bfd_elf32_mn10300_reloc): Write data in little endian format. 3377 * reloc.c: Remove mn10300 big endian relocs. 3378 * bfd-in2.h, libbfd.h: Rebuilt. 3379 3380 * elf32-mn10200.c: Update from elf32-mn10300.c. 3381 3382Fri Dec 6 15:18:05 1996 Jeffrey A Law (law@cygnus.com) 3383 3384 * elf32-mn10300.c (elf_symbol_leading_char): Define. 3385 3386 * elf32-mn10300.c: Add some comments. 3387 3388Fri Dec 6 17:16:43 1996 Ian Lance Taylor <ian@cygnus.com> 3389 3390 * ihex.c (ihex_scan): Always initialize buf before jumping to 3391 error_return. 3392 (ihex_read_section): Likewise. 3393 3394Thu Dec 5 22:29:18 1996 Jeffrey A Law (law@cygnus.com) 3395 3396 * elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial- 3397 inplace for most relocs. 3398 3399Thu Dec 5 13:24:46 1996 Ian Lance Taylor <ian@cygnus.com> 3400 3401 * elflink.h (elf_link_add_object_symbols): Calling check_relocs 3402 even if SEC_ALLOC is not set. 3403 * elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC 3404 when deciding whether to copy a reloc into a shared object. 3405 (elf_i386_relocate_section): Likewise. 3406 * elf32-sparc.c (elf32_sparc_check_relocs): Likewise. 3407 (elf32_sparc_relocate_section): Likewise. 3408 * elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a 3409 reloc section if it is not set in the source section. 3410 * elf32-sparc.c (elf32_sparc_check_relocs): Likewise. 3411 * elf.c (bfd_section_from_shdr): Mark a reloc section associated 3412 with a SEC_DEBUGGING section as SEC_DEBUGGING. 3413 3414Wed Dec 4 14:18:13 1996 Michael Meissner <meissner@tiktok.cygnus.com> 3415 3416 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): #if 0 code that 3417 expects a .got.plt until we actually create it. 3418 3419Mon Dec 2 12:13:51 1996 Ian Lance Taylor <ian@cygnus.com> 3420 3421 * cofflink.c (_bfd_coff_generic_relocate_section): Print an error 3422 message for bfd_reloc_outofrange, rather than aborting. From 3423 Philippe De Muyter <phdm@info.ucl.ac.be>. 3424 3425 * cofflink.c (_bfd_coff_final_link): If there aren't any relocs in 3426 a relocateable link, don't try to process them. From Heinz Wrobel 3427 <wrobel@lpr.e-technik.tu-muenchen.de>. 3428 3429Mon Dec 2 00:39:24 1996 Jeffrey A Law (law@cygnus.com) 3430 3431 * elf32-mn10300.c (mn10300_info_howto): Renamed from 3432 mn10300_info_howto_rel. Tweak reloc argument to be an 3433 Elf32_Internal_Rela. 3434 (USE_RELA): Define instead of USE_REL. 3435 (elf_info_to_howto, elf_info_howto_rel): Corresponding changes. 3436 3437Sun Dec 1 00:18:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 3438 3439 * configure.in, configure: Handle mips*-sgi-irix6*. 3440 * irix-core.c (irix_core_core_file_p): Accept CORE_MAGICN32 3441 core files. 3442 3443Wed Nov 27 12:10:25 1996 Ian Lance Taylor <ian@cygnus.com> 3444 3445 * elf32-i386.c (elf_i386_relocate_section): Warn about a 3446 relocation against a symbol defined in a section with no output 3447 section. 3448 3449Tue Nov 26 11:07:31 1996 Ian Lance Taylor <ian@cygnus.com> 3450 3451 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS. 3452 * configure, config.in: Rebuild with autoconf 2.12. 3453 3454 * elf-bfd.h (struct elf_link_hash_entry): Add other field. 3455 * elf.c (_bfd_elf_link_hash_newfunc): Initialize other field. 3456 (swap_out_syms): Set st_other from existing st_other field. 3457 * elflink.h (elf_link_add_object_symbols): Store st_other in hash 3458 table other field. 3459 (elf_link_output_extsym): Set the other field from the global hash 3460 table entry. 3461 * elf32-mips.c (enum reloc_type): Add R_MIPS16_26. 3462 (elf_mips16_jump_howto): New static variable. 3463 (mips16_jump_reloc): New static function. 3464 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_JMP. 3465 (mips_info_to_howto_rel): Handle R_MIPS16_26. 3466 (mips_elf_relocate_section): Handle R_MIPS16_26. Handle R_MIPS_26 3467 to a mips16 symbol. 3468 * reloc.c (BFD_RELOC_MIPS16_JMP): Add to list of relocs. 3469 * bfd-in2.h, libbfd.h: Rebuild. 3470 * cpu-mips.c (arch_info_struct): Add mips:16 entry. 3471 3472Mon Nov 25 11:23:32 1996 Ian Lance Taylor <ian@cygnus.com> 3473 3474 * configure.host: Use long long for mips-sgi-irix6*. 3475 3476 * coffswap.h (coff_swap_scnhdr_out): Make line number overflow 3477 only a warning. From Philippe De Muyter <phdemuyt@ulb.ac.be>. 3478 3479Mon Nov 25 08:52:29 1996 Jeffrey A Law (law@cygnus.com) 3480 3481 * elf32-mn10300.c (bfd_elf32_mn10300_reloc): New function. 3482 (enum reloc_type): Add more reloc types. 3483 (elf32_mn10300_howto_table): Update for new reloc types. 3484 (elf32_mn10300_reloc_map): Update for new reloc types. 3485 * reloc.c: Add some new relocs for the mn10300 series. 3486 * bfd-in2.h, libbfd.h: Rebuilt. 3487 3488Sat Nov 23 13:26:18 1996 Jeffrey A Law (law@cygnus.com) 3489 3490 * som.c (setup_sections): Don't lose for a space which has 3491 no data, but some symbols. 3492 3493Fri Nov 22 11:32:13 1996 Ian Lance Taylor <ian@cygnus.com> 3494 3495 * sunos.c (struct sunos_link_hash_table): Add got_needed field. 3496 (sunos_link_hash_table_create): Initialize got_needed. 3497 (sunos_create_dynamic_sections): Only set .got section size if it 3498 is not already set. Set got_needed. 3499 (bfd_sunos_size_dynamic_sections): Check got_needed. Only set 3500 sdynptr, and only handle dynamic sections, if dynamic sections are 3501 needed. 3502 (sunos_scan_std_relocs): Pass false to create_dynamic_sections. 3503 Initialize .got section. 3504 (sunos_scan_ext_relocs): Likewise. 3505 (sunos_write_dynamic_symbol): Set up PLT entry even if this is not 3506 a dynamic symbol. 3507 (sunos_finish_dynamic_link): Check got_needed. Only set up 3508 dynamic linking information if needed. 3509 3510Thu Nov 21 10:31:31 1996 Rob Savoye (rob@cygnus.com) 3511 3512 * config.bfd: Added VersaDOS format to the Ericsson configuration. 3513 3514Wed Nov 20 16:31:31 1996 Jeffrey A Law (law@cygnus.com) 3515 3516 * elf32-mn10300.c: Rough cut at relocs for the mn10300. 3517 3518Wed Nov 13 08:12:38 1996 Jeffrey A Law (law@cygnus.com) 3519 3520 * Makefile.in (elf32-d10v.o): Don't depend on elf/d10v.h 3521 anymore. 3522 3523Tue Nov 12 13:30:00 1996 Dawn Perchik <dawn@cygnus.com> 3524 3525 * filemode.c: Include sysdep.h. 3526 * ihex.c: Add casts to eliminate compiler warnings. 3527 * sunos.c: Add casts to eliminate compiler warnings. 3528 3529Mon Nov 11 10:37:02 1996 Michael Meissner <meissner@tiktok.cygnus.com> 3530 3531 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Create .got.plt 3532 section. 3533 (ppc_elf_check_relocs): Add support for R_PPC_LOCAL24PC. Make 3534 appropriate relocations in the .so file if shared. 3535 (ppc_elf_relocate_section): Ditto. 3536 3537Tue Oct 29 15:03:02 1996 Doug Evans <dje@canuck.cygnus.com> 3538 3539 * elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use 3540 complain_overflow_unsigned. 3541 3542Tue Oct 29 12:53:46 1996 Martin M. Hunt <hunt@pizza.cygnus.com> 3543 3544 * elf32-d10v.c (elf_d10v_howto_table): Don't complain on 3545 overflows for R_D10V_16 and R_D10V_18. 3546 3547Tue Oct 29 13:23:53 1996 Ian Lance Taylor <ian@cygnus.com> 3548 3549 * ieee.c (ieee_write_section_part): Use LMA rather than VMA. 3550 (do_with_relocs): Likewise. 3551 (do_as_repeat): Likewise. 3552 (copy_expression): Likewise. 3553 3554Fri Oct 25 16:56:40 1996 Ian Lance Taylor <ian@cygnus.com> 3555 3556 * ieee.c (ieee_write_external_part): Correctly record whether 3557 there is an external part. 3558 3559Thu Oct 24 14:32:52 1996 Jeffrey A Law (law@cygnus.com) 3560 3561 * elf32-v850.c (elf32_v850_bfd_final_link_relocate): Correctly 3562 handle tda offsets for sld.w and sst.w instructions. 3563 Fix alignment check in sld.w and sst.w tda reloc handling. 3564 3565Thu Oct 24 09:08:47 1996 Stu Grossman (grossman@critters.cygnus.com) 3566 3567 * aclocal.m4, configure: Set USE_BINARY_FOPEN for *-*-windows. 3568 3569Wed Oct 23 00:53:16 1996 Jeffrey A Law (law@cygnus.com) 3570 3571 * elf32-v850.c: Add comments about assumptions about 3572 char, short & long sizes. 3573 (elf32_v850_bfd_final_link_relocate): Fix sign extension 3574 problems for several relocs. 3575 3576 * elf32-v850.c (elf32_v850_howto_table): Fix typo in 3577 R_V850_SDA_OFFSET entry. 3578 3579Wed Oct 23 00:20:34 1996 Ian Lance Taylor <ian@cygnus.com> 3580 3581 * xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym. 3582 Store import file index in ldindx. 3583 (xcoff_build_ldsyms): Assume that ldsym was not previously 3584 allocated. For an imported symbol, copy ldindx into l_ifile. 3585 3586Tue Oct 22 19:20:38 1996 Jeffrey A Law (law@cygnus.com) 3587 3588 * elf32-v850.c (elf_v850_howto_table): Fix ordering of 3589 R_V850_ZDA_OFFSET and R_V850_TDA_OFFSET. Fix various 3590 fields in R_V850_TDA_OFFSET. 3591 (elf32_v850_bfd_final_link_relocate): Tweak pc-relative 3592 relocs to work more like other relocs. Handle R_V850_TDA_OFFSET 3593 relocations. 3594 3595 * elf32-v850.c: Include bfdlink.h. 3596 (bfd_elf32_v850_reloc): Return an error if we get a reloc 3597 we can't handle. 3598 (elf32_v850_bfd_final_link_relocate): New function. 3599 (v850_elf_relocation_section): Likewise. 3600 (elf_backend_relocate_section): Define. 3601 3602Tue Oct 22 17:22:43 1996 Ian Lance Taylor <ian@cygnus.com> 3603 3604 * binary.c (binary_set_section_contents): Ignore sections which 3605 don't have SEC_LOAD and SEC_ALLOC set. 3606 3607Mon Oct 21 12:13:05 1996 Jeffrey A Law (law@cygnus.com) 3608 3609 * linker.c (_bfd_generic_final_link): Avoid losing static 3610 symbols in the .bss section. 3611 3612Mon Oct 21 10:54:58 1996 Ian Lance Taylor <ian@cygnus.com> 3613 3614 * elf32-mips.c (elf_mips_howto_table): Describe R_MIPS_64. 3615 (mips32_64bit_reloc): New static function. 3616 (mips_reloc_map): Add entry for BFD_RELOC_64. 3617 (mips_elf_relocate_section): Handle R_MIPS_64. 3618 3619 * linker.c (default_indirect_link_order): Print an error message 3620 when attempting to do a relocateable link with different object 3621 file formats, rather than calling abort. 3622 3623Thu Oct 17 10:43:29 1996 Doug Evans <dje@canuck.cygnus.com> 3624 3625 * reloc.c (m32r relocs): Rename them. 3626 * bfd-in2.h, libbfd.h: Regenerated. 3627 * elf32-m32r.c: Update. 3628 (m32r_elf_10_pcrel_reloc): New function. 3629 (elf_m32r_howto_table, R_M32R_10_PCREL entry): Use it. 3630 (elf_m32r_howto_table, R_M32R_24 entry): Fix {src,dst}_masks. 3631 3632Wed Oct 16 11:24:35 1996 Jeffrey A Law (law@cygnus.com) 3633 3634 * linker.c (_bfd_generic_final_link): Set "linker_mark" for 3635 all sections that will be included in the output file. 3636 (_bfd_generic_link_output_symbols): Discard symbols in sections 3637 which are being discarded. 3638 * elf32-v850.c (enum reloc_type): Add R_V850_SDA_OFFSET, 3639 R_V850_TDA_OFFSET and R_V850_ZDA_OFFSET. 3640 (elf_v850_howto_table): Corresponding changes. 3641 (elf_v850_reloc_map): Corresponding changes. 3642 * reloc.c: Add additional V850 relocations. 3643 * bfd-in2.h, libbfd.h: Rebuilt. 3644 3645 * elf32-v850.c (bfd_elf32_v850_reloc): Mask out bits we 3646 no longer want in pc-relative relocs. 3647 3648Tue Oct 15 22:17:37 1996 Jeffrey A Law (law@cygnus.com) 3649 3650 * elf32-v850.c (bfd_elf32_v850_reloc): Don't silently 3651 accept a reloc against an undefined sybmol! 3652 3653Tue Oct 15 16:17:28 1996 Stu Grossman (grossman@critters.cygnus.com) 3654 3655 * elf32-v850.c: Define elf_symbol_leading_char to be '_'. 3656 3657Tue Oct 15 12:40:41 1996 Ian Lance Taylor <ian@cygnus.com> 3658 3659 * VERSION: Bump for new relocation. 3660 3661 * hosts/i386bsd.h: If NBPG is not defined, define it as 3662 PAGE_SIZE, for recent versions of FreeBSD. 3663 3664Mon Oct 14 12:37:26 1996 Ian Lance Taylor <ian@cygnus.com> 3665 3666 * configure.host: Use `long long' as the 64 bit type on a Solaris 3667 host, since both gcc and the SunPRO compilers support it. 3668 3669Mon Oct 14 11:17:24 1996 Richard Henderson <rth@tamu.edu> 3670 3671 * reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL. It was a 3672 mistake to have reused the ECOFF LITERAL for ELF since they have 3673 different semantics. 3674 * elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL. 3675 * bfd-in2.h, libbfd.h: Rebuild. 3676 3677 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got 3678 section overflow. 3679 3680 * elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a 3681 dynamic relocation for an undefweak symbol when we are building 3682 a static executable. 3683 3684Thu Oct 10 11:15:06 1996 Stan Shebs <shebs@andros.cygnus.com> 3685 3686 * mpw-make.sed (config.bfd, targmatch.sed): Edit references to 3687 point explicitly to srcdir. 3688 (targmatch.h): Edit references to point explicitly to objdir. 3689 3690Thu Oct 10 14:14:23 1996 Ian Lance Taylor <ian@cygnus.com> 3691 3692 * config.bfd: When setting targ_cpu, don't get confused by 3693 linux-gnu. 3694 3695Tue Oct 8 08:51:19 1996 Stu Grossman (grossman@critters.cygnus.com) 3696 3697 * configure.host: Add support for windows host (a build done 3698 under the Microsoft build environment). 3699 3700Tue Oct 8 11:40:16 1996 Ian Lance Taylor <ian@cygnus.com> 3701 3702 * elflink.h (elf_link_add_object_symbols): If a symbol is a weak 3703 definition in a dynamic object, add it to the dynamic symbol table 3704 if any dynamic object mentions it. Reverts part of last patch. 3705 3706 * sunos.c (struct sunos_link_hash_table): Add got_base field. 3707 (sunos_link_hash_table_create): Initialize got_base. 3708 (bfd_sunos_size_dynamic_sections): If the .got section is more 3709 than 0x1000 bytes, set __GLOBAL_OFFSET_TABLE_ and got_base to 3710 0x1000. 3711 (sunos_check_dynamic_reloc): Subtract got_base from a base 3712 relative relocation. 3713 3714 * elf32-mips.c (elf_mips_isa): New static function. 3715 (_bfd_mips_elf_merge_private_bfd_data): Don't warn about linking 3716 -mips1 and -mips2 code together, or -mips3 and -mips4 code. 3717 3718Mon Oct 7 11:44:17 1996 Ian Lance Taylor <ian@cygnus.com> 3719 3720 * archive.c (do_slurp_coff_armap): Only treat archive as little 3721 endian for i960 COFF. 3722 3723Fri Oct 4 13:49:01 1996 Ian Lance Taylor <ian@cygnus.com> 3724 3725 * coffcode.h (coff_compute_section_file_positions): Adjust sofar 3726 by the change in size of the section when EXEC_P is not set. 3727 3728 * coff-m68k.c (coff_rtype_to_howto): Define if not defined. 3729 (m68kcoff_rtype_to_howto): New static function. 3730 * cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section 3731 VMA to the addend for a PC relative reloc. 3732 3733 * dep-in.sed: Rework backslash loop a bit to avoid bug in sed on 3734 HP/UX 10.20. 3735 * Makefile.in: Rebuild dependencies. 3736 3737 * dep-in.sed: Remove ../bfd/sysdep.h, since it will appear when 3738 som.h is included. 3739 3740Fri Oct 4 11:41:39 1996 Jeffrey A Law (law@cygnus.com) 3741 3742 * Makefile.in: Remove explicit dependencies for mn10200 and 3743 mn10300 files. 3744 (ALL_MACHINE_CFILES): Add cpu-mn10200.c and cpu-mn10300.c. 3745 (BFD32_BACKENDS_CFILES): Add elf32-mn10200.c and elf32-mn10300.c 3746 (dependencies): Rebuilt. 3747 3748Thu Oct 3 16:57:51 1996 Ian Lance Taylor <ian@cygnus.com> 3749 3750 * cofflink.c (coff_link_add_symbols): Set obj_coff_keep_syms 3751 during this function. 3752 3753 * elflink.c (_bfd_elf_create_linker_section): Only use an existing 3754 section if the flags are compatible. 3755 3756 * configure.in: Add havevecs, and put it in tdefaults. 3757 * mpw-config.in: Likewise. 3758 * configure: Rebuild. 3759 * targmatch.sed: New file; a sed script to build targmatch.h from 3760 config.bfd. 3761 * config.bfd: Add #if, #endif, and comments for targmatch.h. 3762 * targets.c: Include "fnmatch.h". 3763 (struct targmatch): Define. 3764 (bfd_target_match): Define by including targmatch.h. 3765 (bfd_find_target): If the target is not found by name, search for 3766 it as a configuration triplet. 3767 * Makefile.in: Rebuild dependencies. 3768 (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o, 3769 i386dynix.o, m68k4knetbsd.o, and riscix.o. 3770 (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c, 3771 hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c. 3772 (HFILES): Add targmatch.h. Also, alphabetize and reindent. 3773 (CFILES): Remove i386dynix.c and hp300bsd.c. 3774 (targmatch.h): New target. 3775 (do_clean): Remove targmatch.h. 3776 3777 * configure.in: Add BFD_NEED_DECLARATION(getenv). 3778 * acconfig.h: Add NEED_DECLARATION_GETENV. 3779 * configure, config.in: Rebuild. 3780 * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv. 3781 * aout-adobe.c (aout_adobe_object_p): Don't declare getenv. 3782 3783Thu Oct 3 09:29:09 1996 Jeffrey A Law (law@cygnus.com) 3784 3785 * cpu-mn10x00.c, elf32-mn10x00: Removed. 3786 * cpu-mn10200.c, cpu-mn10300.c: New files. 3787 * elf32-mn10200.c, elf32-mn10300.c: New files. 3788 * Makefile.in: Break mn10x00 support into two separate 3789 configurations, mn10200 and mn10300. 3790 * archures.c, config.bfd, configure.in, elf.c, targets.c: Likewise. 3791 * bfd-in2.h, configure: Rebuilt. 3792 3793Thu Oct 3 15:38:19 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) 3794 3795 * Makefile.in (do_clean): Move config.log to do_distclean. 3796 3797Wed Oct 2 21:40:55 1996 Jeffrey A Law (law@cygnus.com) 3798 3799 * cpu-mn10x00.c, elf32-mn10x00.c: New files. 3800 * Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o. 3801 (BFD32_BACKENDS): Similarly for elf32-mn10x00.o. 3802 (elf32-mn10x00.o): Add dependencies. 3803 * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00. 3804 (bfd_mn10x00_arch): Declare. 3805 (bfd_archures_list): Add bfd_mn10x00_arch. 3806 * config.bfd: Add mn10x00-*-*. 3807 * configure.in: Add bfd_elf32_mn10x00_vec. 3808 * elf.c (prep_headers): Handle bfd_arch_mn10x00. 3809 * targets.c (bfd_elf32_mn10x00_vec): Declare. 3810 (bfd_target_vector): Add bfd_elf32_mn10x00_vec. 3811 * bfd-in2.h, configure: Rebuilt. 3812 3813Wed Oct 2 15:46:45 1996 Klaus Kaempf <kkaempf@progis.de> 3814 3815 openVMS/Alpha: Provide filename and case_hack flags via 3816 symbol table from gas. 3817 Add case_hack code for symbol output from vax/vms. 3818 * evax-alpha.c (evax_initialize): Remove filename handling, 3819 filename is provided via symbol table. 3820 (evax_get_symtab): Use local symbol count when setting up table. 3821 * evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when 3822 debugging. 3823 (_bfd_evax_write_egsd): Skip file name symbol. 3824 * evax-emh.c (get_vms_time_string): Local function now. 3825 (_bfd_evax_write_emh): Extract source filename and case_hack flags 3826 from symbol table. 3827 * evax_write_etir (_bfd_evax_write_etir): Pass all symbol names 3828 through _bfd_evax_case_hack_symbol. 3829 * evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New 3830 functions. 3831 (_bfd_evax_basename): Removed. 3832 (_bfd_get_vms_time_string): Moved to evax-emh.c. 3833 * evax.h (evax_private_data_struct): Remove filename. 3834 (flag_hash_long_names, flag_show_after_trunc, 3835 flag_no_hash_mixed_case, vms_name_mapping): New flags for 3836 vms_case_hack. 3837 3838Wed Oct 2 12:02:02 1996 Ian Lance Taylor <ian@cygnus.com> 3839 3840 * freebsd.h (N_GET_MAGIC_NET): Don't use ntohl. 3841 (N_GETMID_NET, N_GETFLAG_NET): Likewise. 3842 (NO_SWAP_MAGIC): Don't define. 3843 (SWAP_MAGIC): Define. 3844 3845 * cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is 3846 no hash table entry for a global symbol. 3847 3848Tue Oct 1 16:14:22 1996 Joel Sherrill <joel@oarcorp.com> 3849 3850 * config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*. 3851 3852Tue Oct 1 12:31:39 1996 Ian Lance Taylor <ian@cygnus.com> 3853 3854 * cofflink.c (coff_link_add_symbols): Don't override a meaningful 3855 symbol type with T_NULL. Warn if symbol type changes. Based on 3856 patch from Philippe De Muyter <phdm@info.ucl.ac.be>. 3857 3858 * elflink.h (elf_link_add_object_symbols): Only put a symbol from 3859 a dynamic object in the dynamic symbol table if it is referenced 3860 or defined by a regular object. 3861 3862Fri Sep 27 18:41:07 1996 Stu Grossman (grossman@critters.cygnus.com) 3863 3864 * elf32-v850.c (bfd_elf32_v850_is_local_label): New function to 3865 remove dwarf local labels. Shrinks binaries by a factor of 3! 3866 3867Mon Sep 23 13:33:00 1996 Ian Lance Taylor <ian@cygnus.com> 3868 3869 * elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section 3870 by hand, rather than by calling bfd_make_section. 3871 3872Mon Sep 23 09:23:41 1996 Doug Evans <dje@seba.cygnus.com> 3873 3874 * reloc.c: Rename m32r relocs. 3875 * bfd-in2.h, libbfd.h: Rebuilt. 3876 * elf32-m32r.c: Update. 3877 3878Fri Sep 20 11:43:43 1996 Ian Lance Taylor <ian@cygnus.com> 3879 3880 * aoutx.h (aout_link_input_section_ext): When doing a relocateable 3881 link, adjust the symbol index of a base relative reloc. Don't 3882 change the addend of a PC relative reloc if pcrel_offset is set. 3883 * sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for 3884 a relocateable link. 3885 3886 * reloc.c (bfd_perform_relocation): Apply the relocation even if 3887 it is zero, in case src_mask matters. 3888 (bfd_install_relocation): Likewise. 3889 3890Thu Sep 19 11:03:06 1996 Ian Lance Taylor <ian@cygnus.com> 3891 3892 * xcofflink.c (xcoff_link_add_symbols): Always initialize 3893 keep_syms. 3894 (_bfd_xcoff_bfd_final_link): Don't set target_index 3895 to an uninitialized value. 3896 3897Tue Sep 17 14:18:31 1996 Ian Lance Taylor <ian@cygnus.com> 3898 3899 * coffcode.h (coff_slurp_line_table): Warn about illegal symbol 3900 indices, rather than crashing. 3901 (coff_slurp_reloc_table): Likewise. Check whether the howto field 3902 is NULL. 3903 * coff-sh.c (sh_relocate_section): Check for an illegal symbol 3904 index. 3905 3906Mon Sep 16 12:39:36 1996 Ian Lance Taylor <ian@cygnus.com> 3907 3908 * coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26D 3909 reloc to 0. 3910 (coff_arm_adjust_symndx): New static function. 3911 (coff_adjust_symndx): Define. 3912 3913 * srec.c (srec_scan): Accept multiple symbols on a single line. 3914 From Pascal Martin <pmartin@alsys.com>. 3915 3916 * README: New file. 3917 3918Fri Sep 13 14:32:42 1996 Doug Evans <dje@canuck.cygnus.com> 3919 3920 * aoutf1.h (MY_bfd_merge_private_bfd_data): Define. 3921 (sunos_merge_private_bfd_data): New function. 3922 3923Fri Sep 13 15:50:57 1996 Ian Lance Taylor <ian@cygnus.com> 3924 3925 * bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather 3926 than input BFD. 3927 (bfd_merge_private_bfd_data): Likewise. 3928 * section.c (bfd_copy_private_section_data): Likewise. 3929 * syms.c (bfd_copy_private_symbol_data): Likewise. 3930 * bfd-in2.h: Rebuild. 3931 * aout-target.h (MY_bfd_copy_private_section_data): Check that 3932 both BFD's are the right flavour. 3933 * ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise. 3934 * elf.c (_bfd_elf_copy_private_symbol_data): Likewise. 3935 * elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise. 3936 (_bfd_mips_elf_merge_private_bfd_data): Likewise. 3937 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise. 3938 (ppc_elf_merge_private_bfd_data): Likewise. 3939 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise. 3940 * peicode.h (pe_bfd_copy_private_section_data): Likewise. 3941 3942 * elf32-hppa.c (elf_hppa_howto_table): Fill in some fields for 3943 R_PARISC_DIR32, so that _bfd_stab_section_find_nearest_line passes 3944 its sanity check. 3945 3946Thu Sep 12 11:45:57 1996 Doug Evans <dje@seba.cygnus.com> 3947 3948 * reloc.c: Add m32r relocs. 3949 * bfd-in2.h, libbfd.h: Rebuilt. 3950 * cpu-m32r.c,elf32-m32r.c: New files. 3951 3952Thu Sep 12 11:10:05 1996 Ian Lance Taylor <ian@cygnus.com> 3953 3954 * ieee.c (ieee_vec): Set symbol_leading_char field to '_'. 3955 3956Wed Sep 11 11:57:56 1996 Ian Lance Taylor <ian@cygnus.com> 3957 3958 * tekhex.c (first_phase): Change type parameter from char to int. 3959 (out): Likewise. 3960 (pass_over): Change func to expect int, not char. 3961 3962 * elf.c (assign_file_positions_for_segments): Test SEC_ALLOC 3963 rather than SEC_LOAD when aligning the file offset for the first 3964 section in a segment. 3965 3966Tue Sep 10 16:18:30 1996 Fred Fish <fnf@cygnus.com> 3967 3968 * syms.c (coff_section_type): Make arg const. 3969 * irix-core.c (irix_core_core_file_p): Remove extraneous extra arg 3970 to make_bfd_asection(). 3971 * elf-bfd.h (bfd_section_from_phdr): Add prototype. 3972 * elfcode.h (bfd_section_from_phdr): Remove prototype. 3973 (_bfd_elf_stringtab_init): Remove prototype. 3974 3975 * netbsd-core.c (swap_abort): Add prototype. 3976 * aix386-core.c (swap_abort): Ditto & make static 3977 * hpux-core.c (swap_abort): Ditto & make static. 3978 * irix-core.c (swap_abort): Ditto & make static. 3979 * ptrace-core.c (swap_abort): Ditto & make static. 3980 * trad-core.c (swap_abort): Ditto & make static. 3981 * coffswap.h (coff_swap_reloc_in): Ditto. 3982 (coff_swap_reloc_out): Ditto. 3983 (coff_swap_filehdr_in): Ditto. 3984 (coff_swap_filehdr_out): Ditto. 3985 (coff_swap_sym_in): Ditto. 3986 (coff_swap_sym_out): Ditto. 3987 (coff_swap_aux_in): Ditto. 3988 (coff_swap_aux_out): Ditto. 3989 (coff_swap_lineno_in): Ditto. 3990 (coff_swap_lineno_out): Ditto. 3991 (coff_swap_aouthdr_in): Ditto. 3992 (coff_swap_aouthdr_out): Ditto. 3993 (coff_swap_scnhdr_in): Ditto. 3994 (coff_swap_scnhdr_out): Ditto. 3995 * ihex.c (ihex_sizeof_headers): Ditto. 3996 * tekhex.c (getsym): Ditto. 3997 (find_chunk): Ditto & make static. 3998 (insert_byte): Ditto. 3999 (first_phase): Ditto. 4000 (pass_over): Ditto. 4001 (tekhex_get_symtab): Ditto & make static. 4002 (tekhex_get_symtab_upper_bound): Ditto & make static. 4003 (tekhex_mkobject): Ditto. 4004 (tekhex_object_p): Ditto. 4005 (move_section_contents): Ditto. 4006 (tekhex_get_section_contents): Ditto. 4007 (tekhex_set_arch_mach): Ditto & make static. 4008 (tekhex_set_section_contents): Ditto. 4009 (writevalue): Ditto. 4010 (writesym): Ditto. 4011 (out): Ditto. 4012 (tekhex_write_object_contents): Ditto. 4013 (tekhex_sizeof_headers): Ditto. 4014 (tekhex_make_empty_symbol): Ditto. 4015 (tekhex_get_symbol_info): Ditto. 4016 (tekhex_print_symbol): Ditto. 4017 * irix-core.c (make_bfd_asection): Ditto. 4018 (irix_core_core_file_p): Ditto. 4019 (irix_core_core_file_failing_command): Ditto. 4020 (irix_core_core_file_failing_signal): Ditto. 4021 (irix_core_core_file_matches_executable_p): Ditto. 4022 (irix_core_make_empty_symbol): Ditto. 4023 * coff-mips.c (mips_bfd_reloc_type_lookup): Ditto. 4024 * srec.c (srec_new_symbol): Ditto. 4025 (srec_get_section_contents): Ditto. 4026 (srec_set_arch_mach): Ditto. 4027 (srec_set_section_contents): Ditto. 4028 (internal_srec_write_object_contents): Ditto. 4029 (srec_write_object_contents): Ditto. 4030 (symbolsrec_write_object_contents): Ditto. 4031 (srec_sizeof_headers): Ditto. 4032 (srec_make_empty_symbol): Ditto. 4033 (srec_get_symtab_upper_bound): Ditto. 4034 (srec_get_symtab): Ditto. 4035 (srec_print_symbol): Ditto and make static. 4036 * elf.c (elf_read): Ditto 4037 (assign_section_numbers): Ditto. 4038 (elf_fake_sections): Ditto. 4039 (sym_is_global): Ditto. 4040 (elf_map_symbols): Ditto. 4041 (get_program_header_size): Ditto. 4042 * coffgen.c (make_a_section_from_file): Ditto. 4043 (coff_real_object_p): Ditto. 4044 (fixup_symbol_value): Ditto. 4045 (build_debug_section): Ditto. 4046 (copy_name): Ditto. 4047 * syms.c (coff_section_type): Ditto. 4048 4049Mon Sep 9 22:36:01 1996 Jeffrey A Law (law@cygnus.com) 4050 4051 * bfd-in2.h: Rebuilt after m32r changes. 4052 4053Mon Sep 9 12:31:22 1996 Doug Evans <dje@canuck.cygnus.com> 4054 4055 * config.bfd,configure.in,configure: Add m32r support. 4056 * Makefile.in,archures.c,elf.c,targets.c: Likewise. 4057 * config.bfd: Keep target list alphabetically sorted. 4058 4059Mon Sep 9 11:48:41 1996 Jeffrey A Law (law@cygnus.com) 4060 4061 * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget 4062 to add in the constant part found in the instruction itself. 4063 (case R_V850_HI16_S): Likewise. 4064 4065Fri Sep 6 17:04:39 1996 Martin M. Hunt <hunt@pizza.cygnus.com> 4066 4067 * elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16 4068 and R_D10V_18 to be 1 (word). 4069 4070Thu Sep 5 15:23:08 1996 Ian Lance Taylor <ian@cygnus.com> 4071 4072 * stabs.c (_bfd_link_section_stabs): If the output_section field 4073 of either section is bfd_abs_section, then the linker is 4074 discarding the section and we should not optimize it. 4075 4076Tue Sep 3 12:16:20 1996 Doug Evans <dje@canuck.cygnus.com> 4077 4078 * Makefile.in (aout-sparcle.o): New target. 4079 * aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian. 4080 * config.bfd (sparclet-*-aout*): Add case. 4081 * configure.in (sparcle_aout_vec): Add case. 4082 * configure: Regenerated. 4083 * targets.c (sparcle_aout_vec): Declare. 4084 (bfd_target_vector): Add sparcle_aout_vec. 4085 * aout-sparcle.c: New file. 4086 4087Tue Sep 3 00:57:02 1996 Jeffrey A Law (law@cygnus.com) 4088 4089 * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of 4090 low order sign bit propogation for R_V850_HI16_S. 4091 4092 * elf32-v850.c (bfd_elf32_v850_reloc): New function for 4093 handling V850 specific relocs. 4094 (elf_v850_howto_table): Use the new function for some 4095 relocations. Twiddle masks & shifts for some relocs. 4096 Set partial_inplace where needed. 4097 4098Mon Sep 2 12:12:34 1996 Ian Lance Taylor <ian@cygnus.com> 4099 4100 * cpu-mips.c: Add an explicit mips:3000 entry, and change the 4101 default architecture to a machine number of 0. 4102 * elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number 4103 for E_MIPS_ARCH_1. 4104 (_bfd_mips_elf_merge_private_bfd_data): If the machine number of 4105 the output BFD is the default, set it from the first input BFD. 4106 4107Sun Sep 1 18:38:01 1996 Jeffrey A Law (law@cygnus.com) 4108 4109 * elf32-v850.c (elf_v850_howto_table): All the 16bit relocs 4110 insert at bitpos zero. The HI16 relocs are shifted right 4111 by 16 bits. Fix src_mask for all relocs. 4112 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define. The V850 is 4113 little endian! 4114 (TARGET_BIG_SYM, TARGET_BIG_NAME): Remove. The V850 is little 4115 endian! 4116 4117Sun Sep 1 15:41:08 1996 Ian Lance Taylor <ian@cygnus.com> 4118 4119 * rs6000-core.c (rs6000coff_core_file_matches_executable_p): 4120 Rewrite to use BFD file read routines and to avoid using a fixed 4121 length for the file name. 4122 4123Sat Aug 31 10:22:25 1996 Jeffrey A Law (law@cygnus.com) 4124 4125 * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}. 4126 (elf_v850_howto_table): Add support for R_V850_{32,16,8}. 4127 (v850_reloc_map): Add translation from BFD_RELOC_{32,16,8} 4128 to R_V850_{32,16,8}. 4129 4130Fri Aug 30 18:06:04 1996 J.T. Conklin <jtc@hippo.cygnus.com> 4131 4132 * elf32-v850.c (reloc_type): Add R_V850_HI16_S. 4133 (elf_v850_howto_table): Add info for HI16_S reloc. 4134 (v850_reloc_map): Add HI_16_S reloc. 4135 * reloc.c: Define BFD_RELOC_V850_* relocs. 4136 4137Fri Aug 30 11:49:19 1996 Ian Lance Taylor <ian@cygnus.com> 4138 4139 Add SH ELF support. 4140 * elf32-sh.c: New file. 4141 * elf.c (prep_headers): Handle bfd_arch_sh. 4142 * elfcode.h (write_relocs): Handle absolute symbol. 4143 * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare. 4144 (_bfd_elf64_link_read_relocs): Declare. 4145 * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from 4146 elf_link_read_relocs. Make globally visible. Change all 4147 callers. 4148 (elf_link_input_bfd): Get external symbols from cache in 4149 symtab_hdr->contents. Get contents from cache in 4150 elf_section_data. 4151 * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not 4152 already defined. 4153 * reloc.c: Define BFD_RELOC_SH_* relocs. 4154 * libbfd-in.h (_bfd_sh_align_load_span): Declare. 4155 * coff-sh.c (sh_insns_conflict): Fix a return value. 4156 (_bfd_sh_align_load_span): New globally visible function, broken 4157 out of sh_align_load. 4158 (sh_align_load): Call _bfd_sh_align_load_span. 4159 (sh_swap_insns): Change relocs parameter to PTR. 4160 * bfd-in2.h, libbfd.h: Rebuild. 4161 * targets.c (bfd_elf32_sh_vec): Declare. 4162 (bfd_elf32_shl_vec): Declare. 4163 * config.bfd (sh-*-elf*): New target. 4164 * configure.in (bfd_elf32_sh_vec): New target vector. 4165 (bfd_elf32_shl_vec): New target vector. 4166 * configure: Rebuild. 4167 * Makefile.in: Rebuild dependencies. 4168 (BFD32_BACKENDS): Add elf32-sh.o. 4169 (BFD32_BACKENDS_CFILES): Add elf32-sh.c. 4170 4171 * elf.c (map_sections_to_segments): Check that LMA does not skip a 4172 page before checking D_PAGED. 4173 4174 * ihex.c (ihex_scan): Removed unnecessary extbase variable. 4175 (ihex_write_object_contents): Remove extbase; always use segbase 4176 instead. 4177 4178Thu Aug 29 16:52:17 1996 Michael Meissner <meissner@tiktok.cygnus.com> 4179 4180 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro. 4181 * configure.host (i[345]86-*-*): Ditto. 4182 * config.bfd (i[345]86-*-*): Ditto. 4183 * configure: Regenerate. 4184 4185 * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86 4186 elf. 4187 4188Tue Aug 27 09:18:18 1996 Jeffrey A Law (law@cygnus.com) 4189 4190 * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument. 4191 * elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype. 4192 * som.c (hppa_som_gen_reloc_type): Add new argument. If 4193 we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that 4194 will have an ST_CODE type, change the symbol's type to ST_DATA. 4195 * som.c (hppa_som_gen_reloc_type): Update prototype. 4196 4197Tue Aug 27 00:12:22 1996 Ian Lance Taylor <ian@cygnus.com> 4198 4199 * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for 4200 R_MIPS_32 and R_MIPS_REL32. Set sgot and g as soon as possible. 4201 (mips_elf_size_dynamic_sections): Don't require .got to exist. 4202 (mips_elf_finish_dynamic_sections): Likewise. 4203 4204Thu Aug 22 10:54:38 1996 Ian Lance Taylor <ian@cygnus.com> 4205 4206 * configure.host (HLDENV): New variable to set. Set it for 4207 *-*-sysv4*, since those linkers may not support -R but they always 4208 support LD_RUN_PATH. 4209 4210 * libieee.h (NSECTIONS): Don't define. 4211 (ieee_data_struct): Change section_table to asection **. Add 4212 section_table_size. 4213 * ieee.c (get_section_entry): If the table isn't big enough, make 4214 it bigger. 4215 (ieee_slurp_sections): Remove assertion about number of sections. 4216 (ieee_object_p): Adjust initialization of ieee to match changes to 4217 the structure. 4218 4219 * xcofflink.c (xcoff_mark): Don't copy relocs for undefined 4220 symbols merely because we are generating a shared library. 4221 (xcoff_build_ldsyms): Don't set up global linkage code for an 4222 undefined symbol merely because we are generating a shared 4223 library. 4224 4225Tue Aug 20 15:06:05 1996 J.T. Conklin <jtc@hippo.cygnus.com> 4226 4227 * Makefile.in (ALL_MACHINES): Add cpu-v850.o. 4228 (BFD32_BACKENDS) Add elf32-v850.o. 4229 * archures.c: Add bfd_v850_arch. 4230 * bfd-in2.h: Add bfd_v850_arch. 4231 * config.bfd (v850-*-*): New target. 4232 * configure: (bfd_elf32_v850_vec) New vector. 4233 * configure.in: (bfd_elf32_v850_vec) New vector. 4234 * cpu-v850.c: New file. 4235 * elf.c (prep_headers): Added case bfd_arch_v850. 4236 * elf32-v850.c: New file. 4237 * targets.c (bfd_elf32_v850_vec): New vector. 4238 4239Fri Aug 16 16:25:35 1996 Ian Lance Taylor <ian@cygnus.com> 4240 4241 * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define 4242 a function code symbol for an XMC_XO symbol. 4243 4244Thu Aug 15 12:33:29 1996 Stan Shebs <shebs@andros.cygnus.com> 4245 4246 * mpw-config.in: Update editing of autoconf vars to reflect 4247 Jul 18 configure.in change. 4248 * mpw-make.sed: Update editing of include pathnames to be 4249 more general, add @DASH_C_FLAG@ to explicit compile rule edit. 4250 4251Thu Aug 15 10:35:13 1996 Richard Henderson <rth@tamu.edu> 4252 4253 * elf64-alpha.c (elf64_alpha_output_extsym): The section from 4254 which to offset to get the .plt entry address is ".plt". 4255 4256Thu Aug 15 16:40:30 1996 James G. Smith <jsmith@cygnus.co.uk> 4257 4258 * reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM, 4259 BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET): 4260 Added, for internal use by the ARM gas. 4261 * libbfd.h: Rebuilt 4262 * bfd-in2.h: Rebuilt 4263 4264Wed Aug 14 17:02:09 1996 Richard Henderson <rth@tamu.edu> 4265 4266 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo 4267 in section dynidx start. 4268 4269Tue Aug 13 14:35:38 1996 Ian Lance Taylor <ian@cygnus.com> 4270 4271 * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose 4272 name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an 4273 optimization for g++. 4274 4275Tue Aug 13 17:04:40 1996 Michael Meissner <meissner@tiktok.cygnus.com> 4276 4277 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has 4278 the -mrelocatable-lib bit set and the other doesn't, clear the 4279 -mrelocatable-lib bit in the header. 4280 4281Sat Aug 10 22:59:17 1996 Ian Lance Taylor <ian@cygnus.com> 4282 4283 * elflink.h (elf_link_add_object_symbols): Do not resolve a common 4284 symbol against a STT_FUNC symbol in a shared library. 4285 4286Fri Aug 9 12:44:57 1996 Ian Lance Taylor <ian@cygnus.com> 4287 4288 * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor 4289 symbol is found, automatically define the corresponding function 4290 code. 4291 4292 * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux 4293 if sym.n_numaux is not zero. 4294 (_bfd_coff_link_input_bfd): Permit the symbol and the hash table 4295 entry to disagree about the number of aux entries if the symbol 4296 has zero. 4297 4298 * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn 4299 section if it might be needed, not just if info->shared. 4300 (mips_elf_adjust_dynamic_symbol): Make room for a null element at 4301 the start of .rel.dyn if we are going to use it. 4302 (mips_elf_finish_dynamic_sections): Only clear the first element 4303 of .rel.dyn if the size is greater than zero. 4304 4305Thu Aug 8 16:24:55 1996 Ian Lance Taylor <ian@cygnus.com> 4306 4307 * xcofflink.c (xcoff_link_input_bfd): If we already called the 4308 undefined_symbol callback for a symbol, then don't issue any more 4309 warnings about loader relocs. 4310 (_bfd_ppc_xcoff_relocate_section): Don't do any further processing 4311 after calling the undefined_symbol callback. 4312 4313 * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define. 4314 (xcoff_link_add_symbols): Permit multiple definitions of a symbol 4315 as the AIX linker seems to do. 4316 4317Thu Aug 8 12:21:56 1996 Klaus Kaempf <kkaempf@progis.de> 4318 4319 * evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup. 4320 (evax_initialize): Remove evax_reloc_table. 4321 (evax_close_and_cleanup): Ditto. 4322 (reloc_nil): Ditto. 4323 (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64 4324 entries. 4325 (evax_bfd_reloc_type_lookup): Ditto. 4326 * evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set 4327 cooked_size == raw_size. 4328 * evax-emh.c (_bfd_evax_register_filename): Remove. 4329 * evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands. 4330 * evax-misc.c (add_new_contents): Malloc section at full size. 4331 (_bfd_save_evax_section): Memcpy section contents directly. 4332 * evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove. 4333 (evax_reloc_table): Remove. 4334 4335 * hosts/alphavms.h (O_ACCMODE): Define if needed. 4336 4337 * makefile.vms: Add better support for DEC C compilation 4338 Add evax.h dependencies 4339 4340 * reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc. 4341 (BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove. 4342 (BFD_RELOC_ALPHA_BASEREG): Remove. 4343 * bfd-in2.h, libbfd.h: Rebuild. 4344 4345Thu Aug 8 08:17:32 1996 Stu Grossman (grossman@critters.cygnus.com) 4346 4347 * archive.c (bsd_write_armap): Ifdef around calls to getuid and 4348 getgid if _WIN32 is defined. 4349 * opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef. 4350 4351Wed Aug 7 23:19:00 1996 Stu Grossman (grossman@critters.cygnus.com) 4352 4353 * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c: 4354 Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX 4355 include file. 4356 * libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE 4357 isn't defined. 4358 4359Wed Aug 7 14:11:44 1996 Philippe De Muyter <phdm@info.ucl.ac.be> 4360 4361 * configure.in: Call BFD_NEEDED_DECLARATION on strstr and 4362 realloc. 4363 * acconfig.h (NEED_DECLARATION_STRSTR): New macro. 4364 (NEED_DECLARATION_REALLOC): New macro. 4365 * configure, config.in: Rebuild. 4366 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR. 4367 (realloc): Declare if NEED_DECLARATION_REALLOC. 4368 4369 * aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or 4370 <strings.h> if they exist. 4371 4372 * ieee.c (ieee_set_section_contents): Cast bfd_alloc return. 4373 4374Wed Aug 7 12:12:03 1996 Ian Lance Taylor <ian@cygnus.com> 4375 4376 * cpu-i386.c (i8086_arch): Architecture info for the i8086. 4377 4378 Based on patches from Eric Valette <valette@crf.canon.fr>: 4379 * elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC, 4380 LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8. 4381 (elf_howto_table): Add entries for new relocs. 4382 (elf_i386_reloc_type_lookup): Handle new relocs. 4383 (elf_i386_info_to_howto): Just call abort. 4384 (elf_i386_info_to_howto_rel): Check that the reloc type is valid. 4385 (elf_i386_relocate_section): Likewise. 4386 4387Tue Aug 6 12:54:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com> 4388 4389 * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32. 4390 4391Mon Aug 5 13:42:41 1996 Ian Lance Taylor <ian@cygnus.com> 4392 4393 * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section, 4394 only get the LMA from the phdr if they are in the same part of the 4395 file. 4396 4397 * elf.c (map_sections_to_segments): Rewrite tests for starting a 4398 new segment to make them more comprehensible. If the relationship 4399 between the LMA and the VMA changed, start a new segment. Don't 4400 check dynsec when deciding whether to start a new segment for a 4401 writeable section; -N will now handle this. 4402 4403Thu Aug 1 22:43:08 1996 Jeffrey A Law (law@cygnus.com) 4404 4405 * libhppa.h: Remove "esel" changes. Not the right approach. 4406 * som.c: Corresponding changes. 4407 (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols 4408 which don't have a SOM symbol type associated with them. 4409 Reverses a 1994 change. 4410 4411Wed Jul 31 15:50:55 1996 Ian Lance Taylor <ian@cygnus.com> 4412 4413 Make ld -N more reasonable for ELF: 4414 * elf.c (map_sections_to_segments): If D_PAGED is not set, set 4415 phdr_in_section to false, and always use a single load segment. 4416 (elf_sort_sections): Sort sections by LMA after VMA. 4417 (assign_file_positions_for_segments): If D_PAGED is not set, don't 4418 align to maxpagesize. 4419 (assign_file_positions_except_relocs): Likewise. 4420 * elfcode.h (elf_object_p): If a section is loaded but not page 4421 aligned, clear D_PAGED. 4422 4423Wed Jul 31 15:00:12 1996 James G. Smith <jsmith@cygnus.co.uk> 4424 4425 * reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL): 4426 Added, for internal use by the ARM gas. 4427 * libbfd.h: Rebuilt 4428 * bfd-in2.h: Rebuilt 4429 4430Tue Jul 30 14:14:57 1996 Jeffrey A Law (law@cygnus.com) 4431 4432 * libhppa.h (R_HPPA_ESEL): New field selector. 4433 (e_esel): Similarly. 4434 * som.c (hppa_som_gen_reloc_type): If we encounter an e_esel, 4435 then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream. 4436 (som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR. 4437 4438Tue Jul 30 13:31:27 1996 Ian Lance Taylor <ian@cygnus.com> 4439 4440 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular 4441 archive search before looking for stripped dynamic objects. 4442 4443Fri Jul 26 17:51:39 1996 Ian Lance Taylor <ian@cygnus.com> 4444 4445 * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined 4446 symbol a warning rather than an error. 4447 4448Wed Jul 24 12:02:53 1996 Ian Lance Taylor <ian@cygnus.com> 4449 4450 * elf.c (assign_file_positions_for_segments): Track the virtual 4451 memory position separately from the file position, and use it to 4452 compute the alignment adjustment. 4453 4454Tue Jul 23 10:43:31 1996 Martin M. Hunt <hunt@pizza.cygnus.com> 4455 4456 * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long" 4457 and fixed mask on R_D10V_10_PCREL_L. 4458 4459Mon Jul 22 15:30:30 1996 Ian Lance Taylor <ian@cygnus.com> 4460 4461 * elf64-mips.c: Include "aout/ar.h". 4462 (mips_elf64_slurp_armap): New static function. 4463 (mips_elf64_write_armap): New static function. 4464 (bfd_elf64_archive_*): Define. 4465 * elfxx-target.h (bfd_elfNN_archive_p): Define if not defined. 4466 Use instead of bfd_generic_archive_p. 4467 (bfd_elfNN_write_archive_contents): Define if not defined. Use 4468 instead of _bfd_write_archive_contents. 4469 (bfd_elfNN_mkdarchive): Define if not defined. Use instead of 4470 _bfd_generic_mkarchive. 4471 (TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use 4472 bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than 4473 _bfd_archive_coff. 4474 (TARGET_LITTLE_SYM): Likewise. 4475 * archive.c (bfd_slurp_armap): Check for and reject an archive map 4476 name of /SYM64/. 4477 * Makefile.in: Rebuild dependencies. 4478 4479 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle 4480 SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and 4481 SHT_MIPS_EVENTS sections. 4482 (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE, 4483 SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS 4484 sections. 4485 (_bfd_mips_elf_fake_sections): Likewise. 4486 4487 * libecoff.h (ecoff_data_type): Add rdata_in_text field. 4488 * ecoff.c (ecoff_compute_section_file_positions): Copy 4489 rdata_in_text from backend info to tdata. Clear it if any data 4490 section comes before .rdata. 4491 (_bfd_ecoff_write_object_contents): Use rdata_in_text field in 4492 tdata rather than backend info. 4493 4494Fri Jul 19 18:15:51 1996 Ian Lance Taylor <ian@cygnus.com> 4495 4496 * configure.in: Fix test for whether a compiler has a 64 bit 4497 type. From Jim Wilson <wilson@cygnus.com>. 4498 4499Thu Jul 18 15:39:10 1996 Ian Lance Taylor <ian@cygnus.com> 4500 4501 * configure.host (mips-sgi-irix6*): New host. 4502 4503 * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG 4504 (replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED, 4505 BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h 4506 to AC_OUTPUT call. 4507 * configure: Rebuild. 4508 * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@. 4509 (BFD_HOST_64_BIT): Define conditionally. 4510 (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined. 4511 (bfd_vma): Typedef as BFD_HOST_U_64_BIT. 4512 (symvalue, bfd_size_type): Likewise. 4513 * bfd-in2.h: Rebuild. 4514 * Makefile.in (do_clean): Remove bfd-tmp.h. 4515 (do_distclean): Remove bfd-in3.h. 4516 (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h. 4517 (bfd-in3.h): New target. 4518 4519 * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From 4520 Andrew Gierth <ANDREWG@microlise.co.uk>. 4521 4522 * configure.host: Set INSTALL_SHLIB. 4523 * configure.in: Call AC_SUBST (INSTALL_SHLIB). 4524 * configure: Rebuild. 4525 * Makefile.in (install): Use @INSTALL_SHLIB@. 4526 4527 * config.bfd (mips*-*-irix6*): New target. 4528 * configure.host: Handle Irix 6 shared library like Irix 5. 4529 4530 * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD 4531 symbol for a magic name. 4532 (xcoff_link_input_bfd): Don't change the reloc symbol for an 4533 XMC_TD symbol. 4534 (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an 4535 XMC_TD symbol. 4536 4537Thu Jul 18 11:36:31 1996 Stan Shebs <shebs@andros.cygnus.com> 4538 4539 * mpw-config.in: Add ELF support to mips config, create the 4540 elf32-target.h file in the object dir. 4541 * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines. 4542 4543Wed Jul 17 18:02:32 1996 Kim Knuttila <krk@cygnus.com> 4544 4545 * coff-ppc.c: Redid debug scheme - numerous fprintf's gone. 4546 Also removed most abort calls, in favor of using bfd reporting. 4547 4548Wed Jul 17 14:51:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com> 4549 4550 * Makefile.in (ALL_MACHINES): Add cpu-d10v.o. 4551 (BFD32_BACKENDS) Add elf32-d10v.o. 4552 * archures.c: Add bfd_d10v_arch. 4553 * bfd-in2.h: Add bfd_d10v_arch. 4554 * config.bfd (d10v-*-*): New target. 4555 * configure: (bfd_elf32_d10v_vec) New vector. 4556 * configure.in: (bfd_elf32_d10v_vec) New vector. 4557 * cpu-d10v.c: New file. 4558 * elf.c (prep_headers): Added case bfd_arch_d10v. 4559 * elf32-d10v.c: New file. 4560 * libbfd.h: Rebuild. 4561 * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L, 4562 BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define. 4563 * targets.c (bfd_elf32_d10v_vec): New vector. 4564 4565Wed Jul 17 10:58:55 1996 Kim Knuttila <krk@cygnus.com> 4566 4567 * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf 4568 4569Tue Jul 16 23:49:02 1996 Stu Grossman (grossman@critters.cygnus.com) 4570 4571 * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and 4572 bfd_mach_i386_i8086 machine types. 4573 4574Wed Jul 10 12:42:56 1996 Ian Lance Taylor <ian@cygnus.com> 4575 4576 * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT 4577 and _FINI sections. 4578 4579Wed Jul 10 11:18:21 1996 Richard Henderson <rth@tamu.edu> 4580 4581 * coffcode.h (coff_set_section_contents): A/UX does not require 4582 special handling of the _LIB section. 4583 4584Tue Jul 9 15:52:20 1996 Jeffrey A Law (law@cygnus.com) 4585 4586 * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct 4587 value for R_RELBYTE. 4588 4589 * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks" 4590 array if one was allocated. 4591 4592Tue Jul 9 12:21:54 1996 Ian Lance Taylor <ian@cygnus.com> 4593 4594 From Kazumoto Kojima <kkojima@kk.info.kanagawa-u.ac.jp>: 4595 * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields 4596 use_rld_obj_head and rld_value. 4597 (mips_elf_link_hash_table_create): Initialize new fields. 4598 (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as 4599 dynamic. 4600 (mips_elf_create_dynamic_sections): Create .rld_map section. If 4601 __rld_obj_head symbol not seen, create an __rld_map symbol. 4602 (mips_elf_size_dynamic_sections): Make space in .rld_map section. 4603 Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry. 4604 (mips_elf_finish_dynamic_symbol): Save value of __rld_map or 4605 __rld_obj_head symbol. 4606 (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP. 4607 4608Mon Jul 8 16:18:03 1996 Ian Lance Taylor <ian@cygnus.com> 4609 4610 * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry. 4611 4612 * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use 4613 ppc_elf_addr16_ha_reloc. 4614 (ppc_elf_addr16_ha_reloc): New static function. 4615 4616 * coff-mips.c (struct mips_hi): Define. 4617 (mips_refhi_list): New static variable. 4618 (mips_refhi_addr, mips_refhi_addend): Remove. 4619 (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs. 4620 (mips_reflo_reloc): Process mips_refhi_list. 4621 (mips_relhi_list): New static variable. 4622 (mips_relhi_addr, mips_relhi_addend): Remove. 4623 (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs. 4624 (mips_rello_reloc): Process mips_relhi_list. 4625 (mips_relocate_section): Permit an arbitrary number of REFHI or 4626 RELHI relocs before the associated REFLO or RELLO reloc. 4627 4628Fri Jul 5 19:27:49 1996 Ian Lance Taylor <ian@cygnus.com> 4629 4630 * aout-target.h (MY(callback)): Set reloc_count fields. 4631 4632Thu Jul 4 12:00:37 1996 Ian Lance Taylor <ian@cygnus.com> 4633 4634 * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic 4635 sections unless this is a SunOS link. 4636 4637 * VERSION: Set to 2.7.1. 4638 4639 * Released binutils 2.7. 4640 4641Wed Jul 3 14:59:47 1996 Ian Lance Taylor <ian@cygnus.com> 4642 4643 * i386aout.c: Include "aout/aout64.h". 4644 (i386aout_write_object_contents): New static function. 4645 (MY_write_object_contents): Define. 4646 4647 * netbsd.h (MY(write_object_contents)): Make sure that 4648 adjust_sizes_and_vmas is called before fiddling with the magic 4649 number. 4650 4651Tue Jul 2 23:30:39 1996 Ian Lance Taylor <ian@cygnus.com> 4652 4653 * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo. 4654 4655Sun Jun 30 13:34:33 1996 Ian Lance Taylor <ian@cygnus.com> 4656 4657 * libbfd-in.h (itos, stoi): Don't define. 4658 * libbfd.h: Rebuild. 4659 * i386lynx.c (KEEPIT): Define as udata.i. 4660 (NAME(lynx,swap_std_reloc_out)): Don't use stoi. 4661 (NAME(lynx,swap_ext_reloc_out)): Likewise. 4662 * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than 4663 flags. Don't use stoi. 4664 4665 * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000. 4666 4667 * elf.c (map_sections_to_segments): Don't start a new segment for 4668 a writable section if it's on the same page as the previous 4669 segment. Reset the writable variable for a readonly section. 4670 4671Sat Jun 29 16:18:51 1996 Kim Knuttila <krk@cygnus.com> 4672 4673 * peicode.h (coff_swap_aouthdr_in): Missing initializations of 4674 first_thunk_address, thunk_size, and import_table_size. 4675 * peicode.h: Improved some diagnostics regarding edata sections. 4676 4677 * coff-ppc.c (coff_ppc_relocate_section): Earlier error check 4678 on IMGLUE relocs. 4679 (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's. 4680 (TARGET_LITTLE_SYM): Added missing D_PAGED. 4681 4682Fri Jun 28 13:48:45 1996 Ian Lance Taylor <ian@cygnus.com> 4683 4684 * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol 4685 with XCOFF_DEF_DYNAMIC set is really defined. 4686 (xcoff_link_check_dynamic_ar_symbols): Likewise. 4687 (xcoff_link_add_symbols): Only create special sections if using an 4688 XCOFF hash table. 4689 4690 * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like 4691 aixcoff-rs6000. 4692 (bfd_install_relocation): Likewise. 4693 4694Fri Jun 28 11:17:00 1996 Richard Henderson <rth@tamu.edu> 4695 4696 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags 4697 field. 4698 (ALPHA_ELF_LINK_HASH_LU_ADDR): Define. 4699 (ALPHA_ELF_LINK_HASH_LU_MEM): Define. 4700 (ALPHA_ELF_LINK_HASH_LU_FUNC): Define. 4701 (elf64_alpha_link_hash_newfunc): Initialize flags field. 4702 (elf64_alpha_check_relocs): Record types of LITUSE entries that 4703 are found for LITERAL relocs. 4704 (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address 4705 taken, we cannot generate a .plt entry for the symbol. 4706 4707Thu Jun 27 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com> 4708 4709 * configure.in: Add AC_ISC_POSIX, and check for setitimer and 4710 sysconf functions (for gprof). 4711 * configure, config.in: Rebuild. 4712 4713Wed Jun 26 16:29:02 1996 Ian Lance Taylor <ian@cygnus.com> 4714 4715 * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in 4716 an archive if it has a map. If the object file has the wrong 4717 xvec, reject it. 4718 4719 * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a 4720 BRADDR, SREL16, SREL32, or SREL64 reloc against an external 4721 symbol. 4722 (alpha_relocate_section): Likewise. 4723 4724 * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof. 4725 (coff_swap_filehdr_out): Use FILHSZ, not sizeof. 4726 (coff_swap_sym_out): Use SYMESZ, not sizeof. 4727 (coff_swap_aux_out): Use AUXESZ, not sizeof. 4728 (coff_swap_lineno_out): Use LINESZ, not sizeof. 4729 (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof. 4730 (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof. 4731 * peicode.h: Corresponding changes. 4732 4733Tue Jun 25 15:28:34 1996 Michael Meissner <meissner@tiktok.cygnus.com> 4734 4735 * elflink.h (elf_create_pointer_linker_section): Comment out code 4736 dealing with making GOT pointers negative of the GOT symbol for 4737 now. 4738 4739Tue Jun 25 11:41:24 1996 Richard Henderson <rth@tamu.edu> 4740 4741 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't 4742 increment the .rela.plt size until after we're done creating the 4743 .plt entry. 4744 (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the 4745 .rela.plt offset directly rather than calculating it. 4746 4747Mon Jun 24 17:15:10 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) 4748 4749 * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir): 4750 Use autoconf-set values. 4751 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir, 4752 includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set 4753 values. 4754 (docdir): Deleted. 4755 * configure.in (AC_PREREQ): autoconf v2.5 or higher. 4756 * configure: Rebuilt. 4757 4758Mon Jun 24 22:50:35 1996 Jeffrey A Law (law@cygnus.com) 4759 4760 * som.c (som_write_fixups): Fix typo in R_END_TRY for exception 4761 handling code > 1k away. 4762 4763Mon Jun 24 18:41:06 1996 Michael Meissner <meissner@tiktok.cygnus.com> 4764 4765 * elflink.h (elf_create_pointer_linker_section): If DEBUG is 4766 defined, output whenever the symbol is updated. 4767 4768Mon Jun 24 17:58:12 1996 Jouke Numan <jnuman@bazis.nl> 4769 4770 * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC 4771 section to 0 if user_set_vma is set. 4772 * elflink.h (elf_bfd_final_link): Likewise. 4773 4774Sun Jun 23 20:42:51 1996 Doug Evans <dje@canuck.cygnus.com> 4775 4776 Partially undo patch of Jun 20. 4777 * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE. 4778 (coff_compute_section_file_positions): Likewise. 4779 (coff_write_object_contents): Likewise. Re-add deleted code, but 4780 use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE. 4781 * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef. 4782 4783Fri Jun 21 17:38:15 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil> 4784 4785 * config.bfd: Add support for *-*-rtems* configurations. 4786 4787Fri Jun 21 15:19:59 1996 Ian Lance Taylor <ian@cygnus.com> 4788 4789 * elf.c (prep_headers): Add bfd_arch_alpha case. 4790 4791Fri Jun 21 12:35:27 1996 Richard Henderson <rth@tamu.edu> 4792 4793 * elf64-alpha.c: New file. 4794 * config.bfd (alpha-*-linuxecoff*): New target. 4795 (alpha-*-linux*, alpha-*-elf*): New targets. 4796 * configure.in (bfd_elf64_alpha_vec): New vector. 4797 * configure: Rebuild. 4798 * targets.c (bfd_elf64_alpha_vec): Declare. 4799 (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64. 4800 * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define. 4801 * bfd-in2.h, libbfd.h: Rebuild. 4802 * Makefile.in: Rebuild dependencies. 4803 (BFD64_BACKENDS): Add elf64-alpha.o. 4804 (BFD64_BACKENDS_CFILES): Add elf64-alpha.c. 4805 4806Thu Jun 20 18:14:25 1996 Ian Lance Taylor <ian@cygnus.com> 4807 4808 * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather 4809 than relying on a right shift of 32. 4810 4811Thu Jun 20 11:00:57 1996 Doug Evans <dje@canuck.cygnus.com> 4812 4813 * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE 4814 ifdef to COFF_WITH_PE. 4815 (coff_compute_section_file_positions): Likewise. 4816 (coff_write_object_contents): Likewise. Delete COFF_OBJ_WITH_PE. 4817 * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete. 4818 * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef 4819 COFF_IMAGE_WITH_PE, always include. 4820 4821 * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0. 4822 4823Wed Jun 19 11:37:52 1996 Ian Lance Taylor <ian@cygnus.com> 4824 4825 * elf.c (map_sections_to_segments): Fix up the test for -Ttext to 4826 approximate the correct answer if SIZEOF_HEADERS was not used. 4827 4828 * binary.c (binary_set_section_contents): Set section file 4829 position based on LMA rather than VMA. 4830 4831Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 <manfred@lts.sel.alcatel.de> 4832 4833 * linker.c (_bfd_generic_link_output_symbols): Don't output any 4834 symbols if info->strip == strip_all. 4835 4836Tue Jun 18 15:17:36 1996 Jeffrey A. Law <law@rtl.cygnus.com> 4837 4838 * coff-h8300.c: Remove #if 0 code. 4839 (compatable): Don't allow mixing/matching of different architectures. 4840 4841 * archures.c (bfd_mach_h8300s): Add. 4842 * bfd-in2.h: Rebuilt. 4843 * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too. 4844 (BADMAG): Likewise. 4845 (h8300_reloc16_estimate): Likewise. 4846 (h8300_reloc16_extra_cases): Likewise. 4847 (h8300_bfd_link_add_symbols): Likewise. 4848 * coffcode.h (coff_set_arch_mach_hook): Likewise. 4849 (coff_set_flags): Likewise. 4850 * cpu-h8300.c (h8300_scan): Likewise. 4851 Add H8/S to bfd_h8300_arch list. 4852 4853Tue Jun 18 14:42:58 1996 Klaus Kaempf <kkaempf@progis.de> 4854 4855 Added support for Alpha OpenVMS: 4856 * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files. 4857 * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files. 4858 * config.h-vms, makefile.vms: New files. 4859 * config.bfd (alpha-*-*vms*): New target. 4860 * configure.in (evax_alpha_vec): New target vector. 4861 * configure: Rebuild. 4862 * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define. 4863 (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define. 4864 * targets.c (bfd_target_evax_flavour): Define. 4865 (evax_alpha_vec): Declare. 4866 (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec 4867 if BFD64 is defined. 4868 * bfd-in2.h, libbfd.h: Rebuild. 4869 * Makefile.in: Rebuild dependencies. 4870 (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o, 4871 evax-emh.o, and evax-misc.o. 4872 (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c, 4873 evax-etir.c, evax-emh.c, and evax-misc.c. 4874 (HFILES): Add evax.h. 4875 4876Tue Jun 18 13:54:18 1996 Ian Lance Taylor <ian@cygnus.com> 4877 4878 * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const 4879 pointer. 4880 (h8300_bfd_link_add_symbols): Likewise. 4881 4882Mon Jun 17 10:06:50 1996 Jeffrey A. Law <law@rtl.cygnus.com> 4883 4884 * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define. 4885 * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY. 4886 4887Mon Jun 17 12:49:11 1996 Ian Lance Taylor <ian@cygnus.com> 4888 4889 * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc 4890 for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were 4891 created. 4892 (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and 4893 R_MIPS_32 relocs if creating a shared library. 4894 4895Thu Jun 13 20:14:51 1996 Doug Evans <dje@canuck.cygnus.com> 4896 4897 * peicode.h (add_data_entry): Use pei_section_data rather than 4898 _cooked_size. Corresponds to May 13 change in coffcode.h. 4899 4900Thu Jun 13 10:23:40 1996 Ian Lance Taylor <ian@cygnus.com> 4901 4902 * cofflink.c (_bfd_coff_final_link): Handle long section names. 4903 * coffcode.h (coff_write_object_contents): If there are long 4904 section names, always set the f_symptr field, even if there are no 4905 symbols. 4906 * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field 4907 if there are no symbols. 4908 4909 * coffgen.c (make_a_section_from_file): Check return value of 4910 _bfd_coff_read_string_table. 4911 (coff_real_object_p): Check return value of 4912 make_a_section_from_file. 4913 (_bfd_coff_read_string_table): Check that there are some symbols 4914 before trying to read the string table size. 4915 4916Wed Jun 12 11:16:37 1996 Ian Lance Taylor <ian@cygnus.com> 4917 4918 * xcofflink.c (xcoff_link_add_symbols): When considering whether 4919 to replace a symbol in a dynamic object with a symbol from another 4920 dynamic object, do the replacement if the existing symbol is 4921 global linkage code. 4922 4923 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly 4924 for _ptrgl, and treat it as global linkage code. 4925 4926 * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a 4927 filename or N_SO symbol past the offset, and use it to indicate 4928 that there is no line number or function when appropriate. 4929 4930Tue Jun 11 15:24:48 1996 Ian Lance Taylor <ian@cygnus.com> 4931 4932 * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a 4933 common symbol defined by the linker. Don't export function code 4934 even if export_defineds is set. 4935 4936Mon Jun 10 11:57:27 1996 Jeffrey A Law (law@cygnus.com) 4937 4938 * coff-h8300.c (howto_table): Add new entries for R_BCC_INV 4939 and R_JMP_DEL. 4940 (rtype2howto): Handle R_BCC_INV and R_JMP_DEL. 4941 (h8300_symbol_address_p): New function. 4942 (h8300_reloc16_estimate): Eliminate jumps made unnecessary by 4943 relaxing. 4944 4945Sun Jun 9 16:30:20 1996 Jeffrey A Law (law@cygnus.com) 4946 4947 * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing 4948 problems. 4949 (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot" 4950 correctly for the two variants. Allow relaxing if the target 4951 is 128 bytes away since after relaxation it'll be 126 bytes away. 4952 (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust 4953 "dot" and "value". Allow relaxing if the target is 128 bytes 4954 away since after relaxation it'll be 126 bytes away. 4955 * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing 4956 the given section until nothing changes. 4957 4958Thu Jun 6 15:24:45 1996 Richard Henderson <rth@tamu.edu> 4959 4960 * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA 4961 alignment hack--we can get the lnnoptr info another way without 4962 suddenly increasing the alignment requirements. Set the flags for 4963 the _PDATA section. 4964 (ecoff_compute_section_file_positions): Do so. 4965 4966Thu Jun 6 11:24:37 1996 Ian Lance Taylor <ian@cygnus.com> 4967 4968 * ieee.c (ieee_write_object_contents): Put a timestamp in the file 4969 to keep the HP emulator database happy. 4970 4971 * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*. 4972 From Kevin Buettner <kev@primenet.com>. 4973 4974Wed Jun 5 15:16:04 1996 Ian Lance Taylor <ian@cygnus.com> 4975 4976 * aoutx.h (translate_to_native_sym_flags): Don't try to print the 4977 name of a NULL section. 4978 4979Tue Jun 4 18:53:58 1996 Ian Lance Taylor <ian@cygnus.com> 4980 4981 * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is 4982 set, always call the notice callback. 4983 4984 * VERSION: Increment for bfdlink.h change. 4985 4986Mon Jun 3 11:01:53 1996 Ian Lance Taylor <ian@cygnus.com> 4987 4988 * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4. 4989 (sh_relax_delete_bytes): Correct handling of differently sized 4990 trailing alignment reloc. 4991 4992 * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined. 4993 * bfd-in2.h: Rebuild. 4994 * configure.in: Warn if there is no known 64 bit type. 4995 * configure: Rebuild. 4996 4997 * Makefile.in: Rebuild dependencies. 4998 (BFD32_BACKENDS): Add ppcboot.o. 4999 (BFD32_BACKENDS_CFILES): Add ppcboot.c. 5000 5001 * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c. 5002 From Per Fogelstrom <per.fogelstrom@mailbox200.swipnet.se>. 5003 5004Sat Jun 1 21:49:58 1996 Ian Lance Taylor <ian@cygnus.com> 5005 5006 * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in) 5007 (bfd_mips_elf64_swap_reginfo_out): Move from here... 5008 * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in) 5009 (bfd_mips_elf64_swap_reginfo_out): ...to here. 5010 5011Fri May 31 13:51:28 1996 Ian Lance Taylor <ian@cygnus.com> 5012 5013 * elf64-mips.c: Improve reloc special_functions and handling of 5014 SHT_MIPS_OPTIONS section. 5015 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from 5016 mips_elf_hi16_reloc and make globally visible. 5017 (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and 5018 make globally visible. 5019 (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and 5020 make globally visible. 5021 (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc 5022 and make globally visible. 5023 (gprel16_with_gp): Check howto->src_mask before using value in 5024 insn. 5025 (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc 5026 and make globally visible. 5027 (gprel32_with_gp): Check howto->src_mask before fetching value. 5028 (bfd_mips_elf_swap_options_in): New function. 5029 (bfd_mips_elf_swap_options_out): New function. 5030 (_bfd_mips_elf_set_private_flags): Rename from 5031 mips_elf_set_private_flags and make globally visible. 5032 (_bfd_mips_elf_copy_private_bfd_data): Rename from 5033 mips_elf_copy_private_bfd_data and make globally visible. 5034 (_bfd_mips_elf_merge_private_bfd_data): Rename from 5035 mips_elf_merge_private_bfd_data and make globally visible. 5036 (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name 5037 for a SHT_MIPS_OPTIONS section. 5038 (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section. 5039 (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the 5040 name of a SHT_MIPS_OPTIONS section. 5041 (_bfd_mips_elf_set_section_contents): New function. 5042 (mips_elf32_section_processing): Set the GP value in a 5043 SHT_MIPS_OPTIONS section. 5044 (_bfd_mips_elf_find_nearest_line): Rename from 5045 mips_elf_find_nearest_line and make globally visible. 5046 (bfd_elf32_set_section_contents): Define. 5047 * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare. 5048 (_bfd_mips_elf_lo16_reloc): Declare. 5049 (_bfd_mips_elf_gprel16_reloc): Declare. 5050 (_bfd_mips_elf_got16_reloc): Declare. 5051 (_bfd_mips_elf_gprel32_reloc): Declare. 5052 (_bfd_mips_elf_set_private_flags): Declare. 5053 (_bfd_mips_elf_copy_private_bfd_data): Declare. 5054 (_bfd_mips_elf_merge_private_bfd_data): Declare. 5055 (_bfd_mips_elf_find_nearest_line): Declare. 5056 (_bfd_mips_elf_set_section_contents): Declare. 5057 5058 * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from 5059 elf_info_to_howto. 5060 (elf_info_to_howto): Define. 5061 * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from 5062 elf_info_to_howto. 5063 (elf_info_to_howto): Define. 5064 * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from 5065 elf_info_to_howto. 5066 (elf_info_to_howto): Define. 5067 5068 * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to 5069 R_MOV16B[12], to match change in coff/internal.h. 5070 5071Thu May 30 12:38:49 1996 Ian Lance Taylor <ian@cygnus.com> 5072 5073 * elf64-mips.c: Extensive additions to provide better support for 5074 writing files and for gas. 5075 * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out 5076 of mips_elf_object_p. 5077 (mips_elf32_object_p): Rename from mips_elf_object_p; call 5078 _bfd_mips_elf_object_p. 5079 (_bfd_mips_elf_final_write_processing): Rename from 5080 mips_elf_final_write_processing and make globally visible. 5081 (_bfd_mips_elf_fake_sections): Rename from 5082 mips_elf_fake_sections and make globally visible. 5083 (_bfd_mips_elf_section_from_bfd_section): Rename from 5084 mips_elf_section_from_bfd_section and make globally visible. 5085 (_bfd_mips_elf_section_processing): New function, broken out of 5086 mips_elf_section_processing. 5087 (mips_elf32_section_processing): Rename from 5088 mips_elf_section_processing; call 5089 _bfd_mips_elf_section_processing. 5090 (_bfd_mips_elf_symbol_processing): Rename from 5091 mips_elf_symbol_processing and make globally visible. 5092 (_bfd_mips_elf_read_ecoff_info): Rename from 5093 mips_elf_read_ecoff_info and make globally visible. 5094 (mips_elf32_ecoff_debug_swap): Rename from 5095 mips_elf_ecoff_debug_swap. 5096 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than 5097 struct symbol_cache_entry. 5098 (_bfd_elf_validate_reloc): New function, moved in from 5099 elfcode.h:validate_reloc. 5100 * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed 5101 to _bfd_elf_validate_reloc. Change all callers. 5102 * elf-bfd.h (bfd_section_from_shdr): Declare. 5103 (_bfd_elf_symbol_from_bfd_symbol): Declare. 5104 (_bfd_elf_validate_reloc): Declare. 5105 (_bfd_mips_elf_object_p): Declare. 5106 (_bfd_mips_elf_fake_sections): Declare. 5107 (_bfd_mips_elf_section_from_bfd_section): Declare. 5108 (_bfd_mips_elf_section_processing): Declare. 5109 (_bfd_mips_elf_symbol_processing): Declare. 5110 (_bfd_mips_elf_read_ecoff_info): Declare. 5111 (_bfd_mips_elf_final_write_processing): Declare. 5112 * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define 5113 if already defined. 5114 5115 * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4. 5116 (mips_elf_final_write_processing): Likewise. 5117 5118Wed May 29 16:15:29 1996 Ian Lance Taylor <ian@cygnus.com> 5119 5120 64-bit MIPS ELF ABI objdump support: 5121 * elf64-mips.c: New file. 5122 * Makefile.in: Rebuild dependencies. 5123 (BFD64_BACKENDS): Add elf64-mips.o. 5124 (BFD64_BACKENDS_CFILES): Add elf64-mips.c. 5125 * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and 5126 bfd_elf64_littlemips_vec to targ_selvecs. 5127 (mips*-*-elf*): Likewise. 5128 * confingure.in: Add bfd_elf64_bigmips_vec and 5129 bfd_elf64_littlemips_vec to vector switch. 5130 * configure: Rebuild. 5131 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function, 5132 broken out of mips_elf_section_from_shdr. 5133 (mips_elf32_section_from_shdr): Rename from 5134 mips_elf_section_from_shdr. Call new function. 5135 (elf_backend_section_from_shdr): Update name of renamed function. 5136 * elf-bfd.h (struct elf_size_info): Change second parameter of 5137 write_out_phdrs to be const. Likewise for second parameter of 5138 swap_symbol_out. 5139 (struct bfd_elf_section_data): Add rel_hdr2 field. 5140 (bfd_elf32_swap_symbol_in): Change second parameter to be const. 5141 (bfd_elf32_swap_symbol_out): Likewise. 5142 (bfd_elf32_swap_reloc_in): Likewise. 5143 (bfd_elf32_swap_reloc_out): Likewise. 5144 (bfd_elf32_swap_reloca_in): Likewise. 5145 (bfd_elf32_swap_reloca_out): Likewise. 5146 (bfd_elf32_swap_phdr_in): Likewise. 5147 (bfd_elf32_swap_phdr_out): Likewise. 5148 (bfd_elf32_swap_dyn_in): Likewise. 5149 (bfd_elf32_swap_dyn_out): Likewise. 5150 (bfd_elf32_slurp_symbol_table): Declare. 5151 (bfd_elf32_write_shdrs_and_ehdr): Declare. 5152 (bfd_elf32_write_out_phdrs): Declare. 5153 (bfd_elf64_swap_symbol_in): Change second parameter to be const. 5154 (bfd_elf64_swap_symbol_out): Likewise. 5155 (bfd_elf64_swap_reloc_in): Likewise. 5156 (bfd_elf64_swap_reloc_out): Likewise. 5157 (bfd_elf64_swap_reloca_in): Likewise. 5158 (bfd_elf64_swap_reloca_out): Likewise. 5159 (bfd_elf64_swap_phdr_in): Likewise. 5160 (bfd_elf64_swap_phdr_out): Likewise. 5161 (bfd_elf64_swap_dyn_in): Likewise. 5162 (bfd_elf64_swap_dyn_out): Likewise. 5163 (bfd_elf64_slurp_symbol_table): Declare. 5164 (bfd_elf64_write_shdrs_and_ehdr): Declare. 5165 (bfd_elf64_write_out_phdrs): Declare. 5166 (_bfd_mips_elf_section_from_shdr): Declare. 5167 * elf.c (bfd_section_from_shdr): Remove assertion requiring 5168 SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc 5169 section for the section, add the new one to rel_hdr2. Increment 5170 reloc_count rather than setting it. 5171 * elfcode.h (elf_slurp_symbol_table): Define name as macro. 5172 Remove static declaration. 5173 (elf_write_shdrs_and_ehdr): Define name as macro. 5174 (elf_write_out_phdrs): Likewise. 5175 (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare. 5176 (elf_swap_shdr_in, elf_swap_shdr_out): Declare. 5177 (elf_swap_symbol_in): Change second parameter to be const. 5178 (elf_swap_symbol_out): Likewise. 5179 (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise. 5180 (elf_swap_shdr_in, elf_swap_shdr_out): Likewise. 5181 (elf_swap_phdr_in, elf_swap_phdr_out): Likewise. 5182 (elf_swap_reloc_in, elf_swap_reloc_out): Likewise. 5183 (elf_swap_reloca_in, elf_swap_reloca_out): Likewise. 5184 (elf_write_out_phdrs): Rename from write_out_phdrs. Change second 5185 parameter to be const. Make non-static. 5186 (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr. 5187 Make non-static. 5188 (elf_slurp_symbol_table): Make non-static. 5189 (NAME(_bfd_elf,size_info)): Update names of renamed functions. 5190 * elfxx-target.h (elf_info_to_howto): Define if not defined. 5191 (elf_backend_size_info): Likewise. 5192 (elfNN_bed): Use elf_backend_size_info. 5193 * targets.c (bfd_elf64_bigmips_vec): Declare. 5194 (bfd_elf64_littlemips_vec): Declare. 5195 (bfd_target_vector): Add bfd_elf64_bigmips_vec and 5196 bfd_elf64_littlemips_vec if BFD64 is defined. 5197 5198 * libbfd.c (bfd_get_file_window): Add cast to fprintf argument. 5199 5200Tue May 28 11:42:08 1996 Ian Lance Taylor <ian@cygnus.com> 5201 5202 * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not 5203 zeroes, in alignment holes. 5204 5205 * configure: Rebuild with autoconf 2.10. 5206 5207 * aoutx.h (NAME(aout,find_nearest_line)): Make room for the 5208 potential leading underscore in the allocated buffer. 5209 5210Fri May 24 14:28:38 1996 Michael Meissner <meissner@tiktok.cygnus.com> 5211 5212 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common 5213 symbols into .sbss if this is a relocatable link. 5214 5215Thu May 23 12:26:24 1996 Ian Lance Taylor <ian@cygnus.com> 5216 5217 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about 5218 undefined symbols when creating a shared library. 5219 5220Fri May 17 13:54:15 1996 Ian Lance Taylor <ian@cygnus.com> 5221 5222 * coff-sh.c: Add a bunch of new code and static const arrays to 5223 support aligning loads and stores on four byte memory boundaries. 5224 Also: 5225 (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and 5226 R_SH_LABEL. 5227 (sh_relax_section): Look for R_SH_CODE relocs. If we find one, 5228 call sh_align_loads. 5229 (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs 5230 as unused. 5231 5232Thu May 16 16:34:13 1996 Ian Lance Taylor <ian@cygnus.com> 5233 5234 * cache.c (bfd_open_file): Unlink the file before opening it for 5235 write. From Marty Leisner <leisner@sdsp.mc.xerox.com>. 5236 5237 * opncls.c (bfd_fdopenr): Set opened_once. 5238 5239Tue May 14 12:35:32 1996 Ian Lance Taylor <ian@cygnus.com> 5240 5241 * som.c (som_slurp_reloc_table): Clear external_relocs cache after 5242 freeing it. 5243 5244 * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile 5245 the code unconditionally. 5246 5247Mon May 13 19:51:37 1996 Ian Lance Taylor <ian@cygnus.com> 5248 5249 * libcoff-in.h (struct pei_section_tdata): Define structure. 5250 (pei_section_data): Define macro. 5251 * libcoff.h: Rebuild. 5252 * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE, 5253 store s_paddr field in pei_section_data. 5254 (coff_compute_section_file_positions): Use pei_section_data rather 5255 than _cooked_size, and don't overwrite an existing value. 5256 (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to 5257 0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data. 5258 * peicode.h (coff_bfd_copy_private_section_data): Define if 5259 COFF_IMAGE_WITH_PE. 5260 (pe_bfd_copy_private_section_data): New static function if 5261 COFF_IMAGE_WITH_PE. 5262 5263Wed May 8 16:10:38 1996 Ian Lance Taylor <ian@cygnus.com> 5264 5265 * srec.c (srec_set_arch_mach): Write as a function rather than a 5266 macro definition. 5267 5268 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has 5269 no map, just check each member in turn to see whether it is 5270 required. 5271 5272Wed May 8 09:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com> 5273 5274 * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition 5275 table. Call BFD_ASSERT to validate header size, instead of 5276 calling fatal. 5277 (ppcboot_bfd_print_private_bfd_data): Put quotes around partition 5278 name. 5279 5280Tue May 7 16:10:19 1996 Michael Meissner <meissner@tiktok.cygnus.com> 5281 5282 * ppcboot.c: New target for looking at PPCbug boot records. 5283 5284 * config{ure.in,.bfd}: Add support for ppcboot target. 5285 * targets.c: Ditto. 5286 * configure: Regenerate. 5287 5288Tue May 7 11:15:19 1996 Jeffrey A Law (law@cygnus.com) 5289 5290 * coff-h8300.c (howto_table): Update names to match recent 5291 changes to include/coff/internal.h. Fix minor errors in the 5292 existing relocs. Add R_MOVL1 and R_MOVL2. 5293 (rtype2howto): Similarly. 5294 (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the 5295 existing relaxing code and peform more relaxing. 5296 (h8300_reloc16_extra_cases): Likewise. 5297 5298Mon May 6 18:24:09 1996 Jeffrey A Law (law@cygnus.com) 5299 5300 * reloc16.c (bfd_coff_reloc16_get_value): Handle common 5301 symbols correctly. 5302 5303Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 5304 5305 * elfcode.h (elf_object_p): Reject generic ELF target if 5306 e_machine matches an alternate machine code in a specific backend. 5307 5308 * netbsd-core.c (netbsd_core_vec): Remove initializer for 5309 obsolete align_power_min field. 5310 5311Fri May 3 13:07:35 1996 Jeffrey A Law (law@cygnus.com) 5312 5313 * coff-h8300.c (reloc_howto_type): Add howto entry for 5314 R_PCRWORD_B. 5315 (rtype2howto): Handle R_PCRWORD_B. 5316 (h8300_reloc16_extra_cases): Handle R_PCRWORD_B. 5317 (h8300_reloc_16_estimate): Likewise. Try to turn a 16bit 5318 pc-relative branch (R_PCRWORD) into an 8bit pc-relative 5319 branch (R_PCWORD_B). 5320 5321Fri May 3 10:47:41 1996 Ian Lance Taylor <ian@cygnus.com> 5322 5323 * aoutx.h (translate_from_native_sym_flags): Set the section for 5324 BSF_CONSTRUCTOR symbols. 5325 5326 * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of 5327 last_bf_index. 5328 5329Wed May 1 18:39:32 1996 Doug Evans <dje@canuck.cygnus.com> 5330 5331 * coffcode.h (coff_write_object_contents): In comdat section lookup, 5332 stop looking when section is found. 5333 5334Wed May 1 14:17:57 1996 Ian Lance Taylor <ian@cygnus.com> 5335 5336 * coffcode.h (STRING_SIZE_SIZE): Define. 5337 (styp_to_sec_flags): Handle long symbol names when looking for the 5338 section symbol. 5339 (bfd_coff_backend_data): Add _bfd_coff_long_section_names field. 5340 (bfd_coff_long_section_names): Define. 5341 (coff_write_object_contents): Handle long section names. 5342 (bfd_coff_std_swap_table): Initialize new field. 5343 * libcoff.h: Rebuild. 5344 * coffgen.c (make_a_section_from_file): Handle long section 5345 names. 5346 (coff_write_symbols): Handle long section names. 5347 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field. 5348 * coff-mips.c (mips_ecoff_backend_data): Likewise. 5349 * pe-arm.c (COFF_LONG_SECTION_NAMES): Define. 5350 * pei-arm.c (COFF_LONG_SECTION_NAMES): Define. 5351 * pe-i386.c (COFF_LONG_SECTION_NAMES): Define. 5352 * pei-i386.c (COFF_LONG_SECTION_NAMES): Define. 5353 * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define. 5354 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define. 5355 5356 * bout.c (b_out_callback): Set lma of sections. 5357 (b_out_bfd_get_relocated_section_contents): Rename in_abfd 5358 parameter to output_bfd. Used input_bfd instead of output_bfd in 5359 several places. 5360 5361Tue Apr 30 17:56:39 1996 Ian Lance Taylor <ian@cygnus.com> 5362 5363 * aoutx.h (translate_from_native_sym_flags): Don't create 5364 SEC_CONSTRUCTOR sections. 5365 * ecoff.c (ecoff_set_symbol_info): Likewise. 5366 5367 * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp. 5368 From Don Bowman <bowman@waterloo.hp.com>. 5369 5370Tue Apr 30 17:06:32 1996 Doug Evans <dje@canuck.cygnus.com> 5371 5372 * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add 5373 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags. 5374 5375Mon Apr 29 13:15:17 1996 Ian Lance Taylor <ian@cygnus.com> 5376 5377 * elf32-mips.c (struct mips_elf_link_hash_entry): Add 5378 mips_32_relocs field. 5379 (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field. 5380 (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32 5381 relocs against a global symbol which is not defined in a regular 5382 file. 5383 (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc 5384 against a global symbol, increment mips_32_relocs. 5385 (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and 5386 the symbol is not defined in a regular file, make room in the 5387 .rel.dyn section. 5388 5389Fri Apr 26 18:00:37 1996 Ian Lance Taylor <ian@cygnus.com> 5390 5391 * ecoff.c (ecoff_compute_section_file_positions): Track the real 5392 file position and the virtual file position separately. Set 5393 filepos information bsaed on the real file position. 5394 (_bfd_ecoff_set_section_contents): Handle .lib sections like the 5395 Jan 23 change to coffcode.h. 5396 5397 * som.c (som_slurp_symbol_table): Set the symbol count to the 5398 number of BFD symbols created. 5399 5400Fri Apr 26 12:34:29 1996 Michael Meissner <meissner@tiktok.cygnus.com> 5401 5402 * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the 5403 output file if linking shared objects. Loop to check all relocs, 5404 rather than returning false on first error. 5405 5406Thu Apr 25 13:25:12 1996 Michael Meissner <meissner@tiktok.cygnus.com> 5407 5408 * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case. 5409 (ppc_elf_additional_program_headers): If .interp section, bump # 5410 of program headers by 1. 5411 (ppc_elf_adjust_dynamic_symbol): Flesh out support. 5412 (ppc_elf_size_dynamic_sections): Add support for .plt section. 5413 (ppc_elf_check_relocs): Print out filename in debug code. Enable 5414 PLT support. 5415 (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up 5416 debug output. 5417 (ppc_elf_relocate_section): If the output section isn't defined, 5418 don't abort, just give an error message. 5419 5420 * elflink.c (_bfd_elf_create_dynamic_sections): If the section 5421 being created is .sdata or .sdata2, don't make the symbol dynamic. 5422 5423Wed Apr 24 14:04:07 1996 Ian Lance Taylor <ian@cygnus.com> 5424 5425 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the 5426 members of an archive for dynamic objects with no symbols, and 5427 pass them directly to check_archive_element. 5428 (xcoff_link_check_ar_symbols): Pass dynamic objects to 5429 xcoff_link_check_dynamic_ar_symbols. 5430 (xcoff_link_check_dynamic_ar_symbols): New static function. 5431 5432 * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC 5433 from _bfd_nodynamic to _bfd_xcoff. 5434 * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound): 5435 Declare. 5436 (_bfd_xcoff_canonicalize_dynamic_symtab): Declare. 5437 (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare. 5438 (_bfd_xcoff_canonicalize_dynamic_reloc): Declare. 5439 * libcoff.h: Rebuild. 5440 * xcofflink.c (xcoff_swap_ldrel_in): New static function. 5441 (xcoff_get_section_contents): New static function. 5442 (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function. 5443 (_bfd_xcoff_canonicalize_dynamic_symtab): New function. 5444 (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function. 5445 (xcoff_dynamic_reloc): New static variable. 5446 (_bfd_xcoff_canonicalize_dynamic_reloc): New function. 5447 (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents. 5448 5449Tue Apr 23 12:48:42 1996 Ian Lance Taylor <ian@cygnus.com> 5450 5451 * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even 5452 if reloc_entry->addend is not 0. 5453 (CALC_ADDEND): Just set the addend to reloc.r_offset. 5454 5455Mon Apr 22 18:29:01 1996 Doug Evans <dje@canuck.cygnus.com> 5456 5457 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of 5458 R_SPARC_GLOB_JMP. 5459 * elf64-sparc.c (sparc64_elf_howto_table): Likewise. 5460 Add entries for R_SPARC_[56]. 5461 (sparc_reloc_map): Add entries for R_SPARC_[56]. 5462 5463Mon Apr 22 15:07:24 1996 Ian Lance Taylor <ian@cygnus.com> 5464 5465 Optimize linking of stabs in sections as used in ELF and COFF. 5466 * stabs.c: New file. 5467 * libbfd-in.h (_bfd_link_section_stabs): Declare. 5468 (_bfd_write_section_stabs): Declare. 5469 (_bfd_write_stab_strings): Declare. 5470 * libbfd.h: Rebuild. 5471 * libcoff-in.h (struct coff_section_tdata): Add stab_info field. 5472 (struct coff_link_hash_table): Add stab_info field. 5473 * libcoff.h: Rebuild. 5474 * cofflink.c (_bfd_coff_link_hash_table_init): Initialize 5475 stab_info field. 5476 (coff_link_add_symbols): Call _bfd_link_section_stabs if 5477 appropriate. 5478 (_bfd_coff_final_link): Write out stab strings hash table. 5479 (_bfd_coff_link_input_bfd): Handle optimized stabs sections. 5480 * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings 5481 hash table. 5482 * elf-bfd.h (struct elf_link_hash_table): Add stab_info field. 5483 (struct bfd_elf_section_data): Add stab_info field. 5484 * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info 5485 field. 5486 * elflink.h (elf_link_add_object_symbols): If appropriate, call 5487 _bfd_link_section_stabs. 5488 (elf_bfd_final_link): Write out stab strings hash table. 5489 (elf_link_input_bfd): Handle optimized stabs sections. 5490 * reloc.c (_bfd_final_link_relocate): Check address against 5491 _raw_size rather than _cooked_size. 5492 * Makefile.in: Rebuild dependencies. 5493 (BFD_LIBS): Add stabs.o 5494 (BFD_LIBS_CFILES): Add stabs.c. 5495 5496 * VERSION: Increment for bfdlink.h change. 5497 5498 * coffgen.c (coff_renumber_symbols): Correct handling of 5499 BSF_NOT_AT_END common symbols. 5500 5501Fri Apr 19 19:21:56 1996 Ian Lance Taylor <ian@cygnus.com> 5502 5503 * coff-ppc.c (record_toc): Add cast to avoid warning. 5504 (ppc_allocate_toc_section): Likewise. 5505 (coff_ppc_relocate_section): Remove ANSI C string concatenation. 5506 (ppc_coff_reloc_type_lookup): Remove unreached code. 5507 * coffcode.h (coff_write_object_contents): Don't take the address 5508 of an array. 5509 * peicode.h (pe_print_idata): Add casts to avoid warning. 5510 (pe_print_edata): Likewise. 5511 (pe_print_reloc): Remove ANSI C string concatenation. 5512 5513Thu Apr 18 18:51:18 1996 Ian Lance Taylor <ian@cygnus.com> 5514 5515 * libcoff-in.h (struct coff_final_link_info): Add last_bf_index 5516 and last_bf fields. 5517 * libcoff.h: Rebuild. 5518 * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN 5519 symbols. 5520 (coff_swap_aux_out): Likewise. 5521 * peicode.h (coff_swap_aux_in): Likewise. 5522 (coff_swap_aux_out): Likewise. 5523 * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN 5524 symbols. 5525 * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index 5526 field. 5527 (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols. 5528 Fix up .bf endndx link fields. 5529 * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index 5530 field. 5531 * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN 5532 symbols. 5533 5534Wed Apr 17 12:08:24 1996 Michael Meissner <meissner@tiktok.cygnus.com> 5535 5536 * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling 5537 on Solaris PowerPC systems doesn't get confused. 5538 5539 * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not 5540 #ifdef PPC. 5541 5542 * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument. 5543 (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't 5544 update did_reg and did_reg2. 5545 5546Wed Apr 17 13:07:37 1996 Ian Lance Taylor <ian@cygnus.com> 5547 5548 * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow. 5549 5550 * linker.c (_bfd_generic_link_add_one_symbol): When calling the 5551 callback routines, pass h->root.string rather than name, in case 5552 copy is true and name is transient. 5553 5554Tue Apr 16 16:36:38 1996 Stu Grossman (grossman@lisa.cygnus.com) 5555 5556 * elfcore.h: Add support for core files with multiple threads. 5557 (Primarily for Solaris.) 5558 5559Tue Apr 16 13:44:08 1996 Ian Lance Taylor <ian@cygnus.com> 5560 5561 * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if 5562 section->orelocation is NULL. 5563 5564 * coffgen.c (bfd_coff_get_syment): New function. 5565 (bfd_coff_get_auxent): New function. 5566 * bfd-in.h (bfd_coff_get_syment): Declare. 5567 (bfd_coff_get_auxent): Declare. 5568 * bfd-in2.h: Rebuild. 5569 5570Mon Apr 15 19:06:59 1996 Ian Lance Taylor <ian@cygnus.com> 5571 5572 * elf32-mips.c (struct mips_hi16): Define. 5573 (mips_hi16_addr, mips_hi16_addend): Remove. 5574 (mips_hi16_list): New static variable. 5575 (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs. 5576 (mips_elf_lo16_reloc): Process mips_hi16_list. 5577 (mips_elf_relocate_section): Permit an arbitrary number of HI16 5578 relocs before the associated LO16 reloc. 5579 5580Wed Apr 10 00:23:53 1996 Ian Lance Taylor <ian@cygnus.com> 5581 5582 * versados.c (versados_scan): Check bfd_alloc return value. 5583 (versados_object_p): Check all bfd_read return values. Require 5584 that lang field be less than 10, to avoid confusion with Intel Hex 5585 files. 5586 5587 * libaout.h (WRITE_HEADERS): Write out the relocs even if there 5588 aren't any symbols. 5589 * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS, 5590 not 0, for an absolute symbol. 5591 (NAME(aout,swap_ext_reloc_out)): Likewise. 5592 5593 * ihex.c (ihex_scan): Accept a length of 4 for record type 5. 5594 (ihex_write_object_contents): For a large start address, output 5595 the full 32 bit address in record type 5. 5596 5597 * ieee.c (ieee_write_byte): Change second parameter from bfd_byte 5598 to int to avoid promotion problems in prototype. 5599 5600Tue Apr 9 11:44:21 1996 Ian Lance Taylor <ian@cygnus.com> 5601 5602 * configure.host: Use ${srcdir} when looking for picfrag. 5603 5604 * configure.host: Switch on ${libdir}, not $(libdir). From 5605 alan@spri.levels.unisa.edu.au (Alan Modra). 5606 5607 * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols 5608 entry point, not just for DYNAMIC objects. 5609 * sunos.c (sunos_add_dynamic_symbols): Always call 5610 sunos_create_dynamic_sections. If called with a non DYNAMIC 5611 object, don't do anything else. 5612 (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections. 5613 5614Mon Apr 8 12:09:36 1996 Ian Lance Taylor <ian@cygnus.com> 5615 5616 * configure.in: Permit --enable-shared to specify a list of 5617 directories. 5618 * configure: Rebuild. 5619 5620 * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf* 5621 host when configuring with --enable-shard. 5622 5623Fri Apr 5 12:24:13 1996 Ian Lance Taylor <ian@cygnus.com> 5624 5625 * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra 5626 <jdp@polstra.com>. 5627 5628 * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE, 5629 to avoid crashing in bfd_hash_replace. 5630 5631 * sysdep.h: Use #ifdef, not #if. 5632 5633Thu Apr 4 23:32:23 1996 Ian Lance Taylor <ian@cygnus.com> 5634 5635 * config.in: Rebuild. 5636 5637Thu Apr 4 18:49:09 1996 Fred Fish <fnf@cygnus.com> 5638 5639 * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE. 5640 (AC_CHECK_HEADERS): Check for sys/time.h 5641 (AC_HEADER_TIME): Add macro. 5642 * configure: Rebuild. 5643 * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H 5644 to control what combination of <time> and <sys/time.h> 5645 get included. 5646 5647Tue Apr 2 13:11:53 1996 Doug Evans <dje@canuck.cygnus.com> 5648 5649 * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET. 5650 (aout_32_sunos4_write_object_contents): Likewise. 5651 * aoutx.h (NAME(aout,machine_type)): Handle 5652 bfd_mach_sparc_{sparclet,sparclite}. 5653 * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define. 5654 (bfd_mach_sparc_v9_p): Update. 5655 * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite. 5656 * libaout.h (enum machine_type): Add M_SPARCLET. 5657 * sunos.c (MACHTYPE_OK): Define. 5658 * bfd-in2.h: Regenerated. 5659 5660Tue Apr 2 00:33:18 1996 Ian Lance Taylor <ian@cygnus.com> 5661 5662 * elf-bfd.h (struct elf_link_hash_table): Add hgot field. 5663 * elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field. 5664 * elflink.c (_bfd_elf_create_got_section): Store the 5665 _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field. 5666 * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the 5667 global offset table goes over 0x1000, set the value of 5668 _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section. 5669 (elf32_sparc_relocate_section): Subtract the offset of 5670 _GLOBAL_OFFSET_TABLE_ when handling GOT relocations. 5671 5672 * elfcode.h: Don't include <string.h>. 5673 5674Mon Apr 1 10:39:24 1996 Jeffrey A Law (law@cygnus.com) 5675 5676 * linker.c (_bfd_generic_link_hash_newfunc): Renamed from 5677 generic_link_hash_newfunc. All references changed. 5678 * genlink.h (_bfd_generic_link_hash_newfunc): Declaration 5679 moved here from libbfd-in.h. 5680 * libbfd-in.h: Corresponding changes. 5681 * libbfd.h: Regenerated. 5682 5683Mon Apr 1 12:35:36 1996 Ian Lance Taylor <ian@cygnus.com> 5684 5685 * aoutx.h (aout_link_input_section_std): When reporting an 5686 overflow error, use the name of the symbol in the hash table if 5687 available. 5688 (aout_link_input_section_ext): Likewise. 5689 5690 * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got 5691 defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR. 5692 5693Sun Mar 31 01:58:41 1996 steve chamberlain <sac@slash.cygnus.com> 5694 5695 * peicode.h (coff_swap_aouthdr_out): Delete test for .junk. 5696 * coffcode.h (coff_compute_section_file_positions): Likewise. 5697 (coff_write_object_contents): Likewise. 5698 5699Fri Mar 29 12:44:36 1996 Ian Lance Taylor <ian@cygnus.com> 5700 5701 * section.c (SEC_LINK_ONCE): Define. 5702 (SEC_LINK_DUPLICATES): Define. 5703 (SEC_LINK_DUPLICATES_DISCARD): Define. 5704 (SEC_LINK_DUPLICATES_ONE_ONLY): Define. 5705 (SEC_LINK_DUPLICATES_SAME_SIZE): Define. 5706 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define. 5707 * bfd-in2.h: Rebuild. 5708 * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn 5709 SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT. 5710 (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE 5711 into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set 5712 SEC_LINK_ONCE, and look through the symbol table for the setting 5713 for SEC_LINK_DUPLICATES. 5714 (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is 5715 set for a section, find the section symbol in the symbol table, 5716 and set the aux entry based on SEC_LINK_DUPLICATES. 5717 * coffgen.c (coff_print_symbol): Add a space before "checksum". 5718 * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add 5719 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags. 5720 * coff-i386.c (i386coff_vec): Likewise. 5721 * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise. 5722 5723 * VERSION: Bump to 2.6.1. 5724 * Makefile.in (stamp-h): Depend upon VERSION. 5725 5726Thu Mar 28 23:48:49 1996 Jeffrey A Law (law@cygnus.com) 5727 5728 * libbfd-in.h (generic_link_hash_newfunc): Add declaration. 5729 * libbfd.h: Rebuilt. 5730 * linker.c (generic_link_hash_newfunc): No longer static. 5731 * coffcode.h (coff_bfd_link_hash_create): Allow specific targets 5732 to override. 5733 * coff-h8300.c: Add two derived hash tables and their associated 5734 funtions and #defines for use by the h8300 linker. 5735 (h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in 5736 the function vector as needed. Place the address of the function 5737 vector entry in the location specified by the R_MEM_INDIRECT reloc. 5738 Rewrite the vectors section contents as necessary. 5739 (h8300_bfd_link_add_symbols): New function for the h8300 linker. 5740 (coff_bfd_link_add_symbols): Define to use h8300 specific version. 5741 (coff_bfd_link_hash_table_create): Likewise. 5742 5743Thu Mar 28 17:44:08 1996 Ian Lance Taylor <ian@cygnus.com> 5744 5745 * libhppa.h: If gcc 2.7 or higher, declare all the functions with 5746 __attribute__ ((__unused__)) so that -Wall doesn't warn about 5747 them. 5748 (hppa_rebuild_insn): Pass pointer to correct type to 5749 low_sign_unext and dis_assemble_21. 5750 5751Thu Mar 28 11:00:36 1996 Doug Evans <dje@canuck.cygnus.com> 5752 5753 * config.bfd (sparc64-{sysv4*,solaris2*}): Delete. 5754 Stick with sparc-*-{sysv4*,solaris2*}. 5755 5756Wed Mar 27 10:43:34 1996 Ian Lance Taylor <ian@cygnus.com> 5757 5758 * peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields. 5759 (coff_swap_aux_out): Swap out extra PE x_scn fields. 5760 * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields. 5761 * coffgen.c (coff_print_symbol): If any of the extra PE x_scn 5762 fields is non-zero, print them. 5763 5764 * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE 5765 ifdef. Remove unused variables. 5766 (ppc_record_data_in_toc_entry): Ifdef out. Removed unused 5767 variables. 5768 (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef. 5769 (get_symbol_value): Ifdef out. 5770 (pe_ppc_reloc): Ifdef out. Remove unused variables. 5771 (coff_ppc_relocate_section): Remove unused variables. Make 5772 fprintf strings and argument types correspond. Put before_addr in 5773 DEBUG_RELOC ifdef. 5774 (dump_toc): Make fprintf strings and argument types correspond. 5775 (ppc_process_before_allocation): Remove unused variables. Always 5776 return a value. 5777 (ppc_reflo_reloc): Ifdef out. 5778 (ppc_addr32nb_reloc): Ifdef out. 5779 (ppc_coff_rtype2howto): Make fprintf strings and argument types 5780 correspond. 5781 (coff_ppc_rtype_to_howto): Likewise. 5782 (ppc_coff_swap_sym_in_hook): Remove unused variables. 5783 5784 * peicode.h (pe_print_idata): Move otherwise unused variables into 5785 the #ifdef where they are used. Always return a value. 5786 (pe_print_edata): Make fprintf strings and argument types 5787 correspond. Always return a value. 5788 (pe_print_pdata): Removed unused variable addr_value. Always 5789 return a value. 5790 (pe_print_reloc): Remove unused variable onaline. Make fprintf 5791 strings and argument types correspond. Always return a value. 5792 5793 * elf32-ppc.c (ppc_elf_fake_sections): Return true. 5794 (ppc_elf_finish_dynamic_symbol): Move definition of unused 5795 variable rela inside #if 0 section where it is used. 5796 5797 * ns32k.h: New file. 5798 * cpu-ns32k.h: Include ns32k.h. Rename externally visible 5799 functions to start with _bfd_. 5800 * aout-ns32k.c: Include ns32k.h. Change references to renamed 5801 functions in cpu-ns32k.h. 5802 * Makefile.in: Rebuild dependencies. 5803 (HFILES): Add ns32k.h. 5804 5805 * section.c (struct sec): Add linker_mark field. Change 5806 user_set_vma and reloc_done to be single bit fields. 5807 (STD_SECTION): Update accordingly. 5808 * bfd-in2.h: Rebuild. 5809 * aoutx.h (NAME(aout,final_link)): Mark sections included in the 5810 link. 5811 (aout_link_input_bfd): Don't link unmarked sections. 5812 * cofflink.c (_bfd_coff_final_link): Mark sections included in the 5813 link. 5814 (_bfd_coff_link_input_bfd): Don't link unmarked sections. 5815 * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in 5816 the link. 5817 * elflink.h (elf_bfd_final_link): Mark sections included in the 5818 link. 5819 (elf_link_input_bfd): Don't link unmarked sections. 5820 * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included 5821 in the link. 5822 (xcoff_link_input_bfd): Don't link unmarked sections. 5823 5824 * coffswap.h (coff_swap_scnhdr_out): Include section name in 5825 overflow error messages. 5826 5827Tue Mar 26 15:46:18 1996 Ian Lance Taylor <ian@cygnus.com> 5828 5829 * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name 5830 is not set, print "BFD: " before the error message. 5831 5832 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From 5833 Miles Bader <miles@gnu.ai.mit.edu>. 5834 * configure: Rebuild. 5835 5836Fri Mar 22 12:17:00 1996 Ian Lance Taylor <ian@cygnus.com> 5837 5838 * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL 5839 symbols. 5840 5841 * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and 5842 m68k-aout, m68k-coff, and m68k-elf targets. 5843 5844Fri Mar 22 11:33:44 1996 Martin Anantharaman <martin@goofy.imech.uni-duisburg.de> 5845 5846 * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST. 5847 (ieee_generic_stat_arch_elt): Restructured to prevent 5848 ieee_object_p from being called repeatedly. 5849 5850Thu Mar 21 11:00:47 1996 steve chamberlain <sac@slash.cygnus.com> 5851 5852 * coffcode.h (coff_write_object_contents): Allocate 5853 buffers large enough for any FILEHDR or AOUTHDR. 5854 5855Thu Mar 21 16:28:17 1996 David Mosberger-Tang <davidm@azstarnet.com> 5856 5857 * ecofflink.c (lookup_line): New static function, renamed and 5858 slighly changed from old _bfd_ecoff_locate_line. 5859 (_bfd_ecoff_locate_line): Cache line number information. Use 5860 lookup_line for actual lookup. 5861 5862Thu Mar 21 14:59:11 1996 Michael Meissner <meissner@tiktok.cygnus.com> 5863 5864 * peicode.h (pe_print_pdata): Warn if the .pdata section is not a 5865 multiple of 20 bytes. 5866 5867Thu Mar 21 13:54:40 1996 Ian Lance Taylor <ian@cygnus.com> 5868 5869 * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to 5870 allocate ecoff_find_line, and don't initialize by hand. 5871 * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for 5872 mips_elf_find_line, and don't call memset. 5873 5874 * coffcode.h (coff_compute_section_file_positions): If not 5875 producing a final executable, don't consider sofar when aligning 5876 the section to the correct size. 5877 5878Wed Mar 20 16:53:12 1996 Ian Lance Taylor <ian@cygnus.com> 5879 5880 * coffcode.h (coff_add_missing_symbols): Ifdef out. 5881 (coff_write_object_contents): Don't call coff_add_missing_symbols. 5882 * coffgen.c (coff_section_symbol): Ifdef out. 5883 5884Mon Mar 18 12:54:41 1996 Ian Lance Taylor <ian@cygnus.com> 5885 5886 * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if 5887 output_bfd is not NULL. 5888 5889Thu Mar 14 17:12:06 1996 Doug Evans <dje@charmed.cygnus.com> 5890 5891 * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead 5892 of bfd_alloc (fixes fix_line not being initialized). 5893 Delete zeroing of fix_{value,tag,end,scnlen} fields. 5894 5895Thu Mar 14 16:06:06 1996 Jeffrey A Law (law@cygnus.com) 5896 5897 * coffcode.h: Allow specific backends to override the 5898 bfd_link_add_symbols routine. 5899 5900 * coff-h8300.c: Include genlink.h. 5901 (howto_table): Add R_MEM_INDIRECT. 5902 (rtype2howto): Support R_MEM_INDIRECT. 5903 (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE 5904 for now. 5905 5906Tue Mar 12 12:41:17 1996 David Mosberger-Tang <davidm@koala.azstarnet.com> 5907 5908 * coff-alpha.c (alpha_relocate_section): Use 5909 info->callbacks_warning, rather than _bfd_error_handler, for 5910 "multiple gp" warning. 5911 5912Tue Mar 12 12:10:55 1996 Ian Lance Taylor <ian@cygnus.com> 5913 5914 * linker.c (bfd_wrapped_link_hash_lookup): New function. 5915 (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash 5916 table string. Use bfd_wrapped_link_hash_lookup. 5917 (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash 5918 table string. 5919 * aoutx.h (aout_link_write_symbols): Use the name from the hash 5920 table, if any, when writing out symbols. 5921 (aout_link_input_section_std): Use the name from the hash table, 5922 if any, when reporting undefined symbols. 5923 (aout_link_input_section_ext): Likewise. 5924 (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup. 5925 * bout.c (get_value): Likewise. 5926 * cofflink.c (_bfd_coff_reloc_link_order): Likewise. 5927 * ecoff.c (ecoff_reloc_link_order): Likewise. 5928 * elflink.h (elf_link_add_object_symbols): Likewise. 5929 (elf_reloc_link_order): Likewise. 5930 * linker.c (_bfd_generic_link_output_symbols): Likewise. 5931 (_bfd_generic_reloc_link_order): Likewise. 5932 (default_indirect_link_order): Likewise. 5933 * reloc16.c (bfd_coff_reloc16_get_value): Likewise. 5934 * sunos.c (sunos_add_one_symbol): Likewise. 5935 * xcofflink.c (xcoff_link_add_symbols): Likewise. 5936 (bfd_xcoff_link_count_reloc): Likewise. 5937 (xcoff_reloc_link_order): Likewise. 5938 5939 * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff 5940 into -1 for intern->rss. 5941 5942 * configure: Rebuild with autoconf 2.8. 5943 5944Mon Mar 11 12:28:31 1996 Ian Lance Taylor <ian@cygnus.com> 5945 5946 * stab-syms.c (__define_stab_duplicate): Define. 5947 (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a 5948 switch. 5949 * bfd-in.h (bfd_get_stab_name): Declare. 5950 * bfd-in2.h: Rebuild. 5951 * Makefile.in: Rebuild dependencies. 5952 (BFD_LIBS): Add stab-syms.o. 5953 (BFD_LIBS_CFILES): Add stab-syms.c. 5954 (BFD32_BACKENDS): Remove stab-syms.o. 5955 (BFD32_BACKENDS_CFILES): Remove stab-syms.c. 5956 * configure.in: Don't list stab-syms.o in bfd_backends. 5957 * configure: Rebuild. 5958 * libaout.h (aout_stab_name): Don't declare. 5959 * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name, 5960 not aout_stab_name. 5961 5962Fri Mar 8 11:26:20 1996 Ian Lance Taylor <ian@cygnus.com> 5963 5964 * elf.c (assign_file_positions_for_segments): Adjust file offset 5965 for section alignment even if SEC_LOAD is not set. 5966 5967Tue Mar 5 12:02:23 1996 Ian Lance Taylor <ian@cygnus.com> 5968 5969 * configure.in: Don't set SHLIB or SHLINK to an empty string, 5970 since they appear as targets in Makefile.in. 5971 * configure: Rebuild. 5972 5973 * sunos.c (sunos_scan_ext_relocs): If not making a shared library, 5974 don't fiddle with a symbol which is not defined anywhere. 5975 5976Mon Mar 4 12:49:16 1996 Ian Lance Taylor <ian@cygnus.com> 5977 5978 * xcofflink.c (xcoff_mark): Treat undefined imported symbols as 5979 though they are defined in a shared library. 5980 (xcoff_build_ldsyms): Likewise. 5981 5982 * coffgen.c (coff_find_nearest_line): Don't look at the line 5983 numbers for the section if section->lineno is NULL. 5984 5985 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error 5986 message rather than calling BFD_ASSERT. 5987 * elfcode.h (write_relocs): Check return value of 5988 _bfd_elf_symbol_from_bfd_symbol. 5989 5990Fri Mar 1 09:42:59 1996 Michael Meissner <meissner@tiktok.cygnus.com> 5991 5992 * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag 5993 for .sbss section. 5994 5995Wed Feb 28 11:25:47 1996 Jeffrey A Law (law@cygnus.com) 5996 5997 * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL 5998 and R_HPPA_NLRSEL. 5999 (e_nsel, e_nlsel, e_nlrsel): Undefine. Add to 6000 hppa_reloc_field_selector_type_alt. 6001 (hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling. 6002 * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field 6003 selectors. 6004 (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL. 6005 6006Wed Feb 28 11:00:24 1996 Ian Lance Taylor <ian@cygnus.com> 6007 6008 * elf.c (assign_file_positions_for_segments): Adjust the segment 6009 memory size for the alignment of a SEC_ALLOC section, not just a 6010 SEC_LOAD section. 6011 6012Tue Feb 27 14:17:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 6013 6014 * m68klinux.c: New file. 6015 * hosts/m68klinux.h: New file. 6016 * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets. 6017 * configure.in (m68*-*-linux*): New native host. 6018 (m68klinux_vec): New vector. 6019 * configure: Rebuild. 6020 * targets.c (m68klinux_vec): Declare. 6021 * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from 6022 bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c. 6023 * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename 6024 declaration from bfd_linux_size_dynamic_sections. 6025 (bfd_m68klinux_size_dynamic_sections): Declare. 6026 * bfd-in2.h: Rebuild. 6027 * Makefile.in: Rebuild dependencies. 6028 (BFD32_BACKENDS): Add m68klinux.o. 6029 (BFD32_BACKENDS_CFILES): Add m68klinux.c. 6030 6031Tue Feb 27 11:31:34 1996 Jeffrey A Law (law@cygnus.com) 6032 6033 * libhppa.h (pa_arch): Add pa20. 6034 (hppa_reloc_field_selector_type): Add R_HPPA_NSEL. 6035 (e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt. 6036 (hppa_field_adjust): Handle e_nsel. 6037 * som.c: Provide default definitions for many new relocs found only 6038 in hpux10 include files. 6039 (som_fixup_formats): Add several new relocs from hpux10. 6040 (som_hppa_howto_table): Add hpux10 relocs. 6041 (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs. 6042 6043Mon Feb 26 12:52:48 1996 Stan Shebs <shebs@andros.cygnus.com> 6044 6045 * mpw-make.sed: Edit out recent shared library support, and 6046 rules to rebuild .h files using doc/chew. 6047 6048Mon Feb 26 14:48:39 1996 David Mosberger-Tang <davidm@AZStarNet.com> 6049 6050 * ecoff.c (ecoff_compute_section_file_positions): Adjust the file 6051 size even of sections with no contents. 6052 6053Mon Feb 26 14:01:13 1996 Ian Lance Taylor <ian@cygnus.com> 6054 6055 * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names 6056 starting with '$' the way we skip names starting with '.'. When 6057 updating x_endndx, don't be fooled by an index which has been 6058 merged. 6059 6060 * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a 6061 struct/union/enum type with no elements. 6062 6063Sat Feb 24 11:38:58 1996 Ian Lance Taylor <ian@cygnus.com> 6064 6065 * bfd.c (bfd_errmsg): Handle a NULL return from strerror. 6066 6067 * archive.c (bfd_generic_archive_p): If the first file in the 6068 archive can not be recognized as an object, don't assume that this 6069 is the wrong format. 6070 6071 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the 6072 format is not bfd_object. 6073 (bfd_elf_get_dt_soname): Likewise. 6074 6075Wed Feb 21 13:58:04 1996 Ian Lance Taylor <ian@cygnus.com> 6076 6077 * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES 6078 reloc. 6079 6080Tue Feb 20 16:22:44 1996 J.T. Conklin <jtc@rtl.cygnus.com> 6081 6082 * bfd.c (tdata): Add netbsd_core_data. 6083 * bfd-in2.h: Regenerated. 6084 6085Tue Feb 20 16:50:02 1996 Ian Lance Taylor <ian@cygnus.com> 6086 6087 * sunos.c (SUNOS_CONSTRUCTOR): Define. 6088 (sunos_add_one_symbol): Don't let a symbol from a dynamic object 6089 override a constructor symbol. Set SUNOS_CONSTRUCTOR when 6090 appropriate. 6091 6092 * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags 6093 to get the symbol index, matching 14 Jul 95 change. 6094 6095Tue Feb 20 08:26:27 1996 Fred Fish <fnf@phydeaux.cygnus.com> 6096 6097 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): 6098 Remove duplicate definition of gp. 6099 6100Mon Feb 19 12:37:41 1996 Ian Lance Taylor <ian@cygnus.com> 6101 6102 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't 6103 assume that we can set the GP value and then get the same value, 6104 since it won't be true if the output file is neither ELF nor 6105 ECOFF. 6106 * coff-mips.c (mips_adjust_reloc_in): Don't bother to use 6107 _bfd_get_gp_value here. 6108 (mips_gprel_reloc): Don't assume we can set and get the GP value. 6109 * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from 6110 mips_elf_final_gp. 6111 (mips_elf_lo16_reloc): Likewise. 6112 (mips_elf_final_gp): Add pgp parameter. Set it to the GP value. 6113 Don't require that the BFD be ELF. 6114 (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp. 6115 (mips_elf_gprel32_reloc): Likewise. 6116 (mips_elf_relocate_section): Don't assume we can set and get the 6117 GP value. 6118 (mips_elf_finish_dynamic_symbol): Don't bother to use 6119 _bfd_get_gp_value here. 6120 6121 * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv. 6122 Don't change epdr between malloc and free. Be careful not to free 6123 NULL pointers. Zero out the first RPDR. 6124 6125 * configure.host: On Linux, only pass -rpath option if $(libdir) 6126 is neither /lib nor /usr/lib. From Alan Modra 6127 <alan@mullet.Levels.UniSA.Edu.Au>. 6128 6129 * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to 6130 dt_name. 6131 (elf_dt_name): Rename from elf_dt_needed_name. 6132 * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not 6133 elf_dt_needed_name. 6134 (bfd_elf_get_dt_soname): New function. 6135 * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not 6136 elf_dt_needed_name. Save the SONAME back in elf_dt_name. 6137 * bfd-in.h (bfd_elf_get_dt_soname): Declare. 6138 * bfd-in2.h: Rebuild. 6139 6140Mon Feb 19 02:50:23 1996 Doug Evans <dje@charmed.cygnus.com> 6141 6142 * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from 6143 _bfd_sparc_elf_reloc_type_lookup. 6144 (bfd_elf32_bfd_reloc_type_lookup): Update. 6145 * elf64-sparc.c (SPARC64_OLD_RELOCS): Define. 6146 (sparc64_elf_howto_table): Define. 6147 (sparc_reloc_map): Define. 6148 (sparc64_elf_reloc_type_lookup): New function. 6149 (sparc_elf_wdisp16_reloc): New function. 6150 (elf_info_to_howto): Use sparc64_elf_howto_table. 6151 (sparc64_elf_relocate_section): Likewise. 6152 (bfd_elf64_bfd_reloc_type_lookup): Update. 6153 6154Sun Feb 18 15:02:25 1996 Ian Lance Taylor <ian@cygnus.com> 6155 6156 * configure.host: Check for 'do not mix' from native linker before 6157 trying to use -rpath. 6158 6159Fri Feb 16 12:46:18 1996 Ian Lance Taylor <ian@cygnus.com> 6160 6161 * bfd.c (_bfd_get_gp_value): New function. 6162 (_bfd_set_gp_value): New function. 6163 * libbfd-in.h (_bfd_get_gp_value): Declare. 6164 (_bfd_set_gp_value): Declare. 6165 * libbfd.h: Rebuild. 6166 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use 6167 _bfd_get_gp_value and _bfd_set_gp_value rather than referring 6168 directly to the fields in the tdata information. 6169 (alpha_relocate_section): Likewise. 6170 * coff-mips.c (mips_adjust_reloc_in): Likewise. 6171 (mips_gprel_reloc): Likewise. 6172 (mips_relocate_section): Likewise. 6173 * elf32-mips.c (mips_elf_hi16_reloc): Likewise. 6174 (mips_elf_lo16_reloc): Likewise. 6175 (mips_elf_final_gp): Likewise. 6176 (mips_elf_gprel16_reloc): Likewise. 6177 (mips_elf_gprel32_reloc): Likewise. 6178 (mips_elf_relocate_section): Likewise. 6179 (mips_elf_finish_dynamic_symbol): Likewise. 6180 6181 * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx. 6182 6183Thu Feb 15 11:29:13 1996 Ian Lance Taylor <ian@cygnus.com> 6184 6185 * configure.in: Call AC_PROG_CC before configure.host. 6186 * configure: Rebuild. 6187 * configure.host: Don't set information which autoconf should 6188 figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB. 6189 6190 * configure.host: Remove go32 and win32 host information, since it 6191 should no longer be needed. 6192 6193 * elf.c (map_sections_to_segments): If we have a .dynamic section, 6194 then start a new segment rather than put a writable section in a 6195 readonly segment. 6196 6197 * configure.host: Set RPATH_ENVVAR. 6198 6199 * Makefile.in: Rebuild dependencies. 6200 6201 * elflink.c (_bfd_elf_create_linker_section): Remove unused 6202 zero_section variable. 6203 6204Thu Feb 15 10:39:17 1996 H.J. Lu <hjl@zoom.com> 6205 6206 * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h. 6207 ($(srcdir)/libbfd.h): Rename from libbfd.h. 6208 ($(srcdir)/libcoff.h): Rename from libcoff.h. 6209 6210Wed Feb 14 16:29:07 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de> 6211 6212 * ieee.c (ieee_write_expression): Only use an R variable for a 6213 local symbol. Don't output a zero offset. Handle a zero address. 6214 (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST. 6215 (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and 6216 PCREL_OFFSET. 6217 (parse_expression): Don't try to handle multiple occurrences of a 6218 P variable. Handle I variables differently from X variables. Fix 6219 the order of minus expressions. 6220 (ieee_slurp_external_symbols): Generate an I variable for an NN 6221 record. Fix handling of ATI and ATX records. 6222 (ieee_slurp_sections): Only set minimal section attributes. 6223 Adjust them later, based on the section contents. 6224 (ieee_object_p): Read in the file until just after the ME record. 6225 Call ieee_slurp_section_data to set the section flags. 6226 (do_one): Add iterations parameter. Only repeat the first load 6227 item. Set the section and file reloc flags. 6228 (ieee_slurp_section_data): Set section flags. Pass iterations to 6229 do_one. 6230 (ieee_canonicalize_reloc): Handle I variables. 6231 (do_with_relocs): Only emit relocation size when necessary. 6232 Increase MAXRUN to 127. Change ov to be assigned, and take 6233 src_mask and pcrel_offset into account. 6234 (ieee_write_data_part): Skip sections that are not loaded. 6235 (ieee_write_external_part): Don't output optional last entry of WX 6236 records. 6237 (ieee_write_me_part): Make setting of me_record neater. 6238 (ieee_generic_stat_arch_elt): Get the size of an archive element. 6239 6240 * syms.c (stt): Add entries for zerovars, vars, and code. 6241 6242 * elfcode.h (validate_reloc): New static function. 6243 (write_relocs): Call validate_reloc for non ELF relocs. 6244 6245 * elfxx-target.h (elf_symbol_leading_char): Define if not defined. 6246 (TARGET_BIG_SYM): Use elf_symbol_leading_char. 6247 (TARGET_LITTLE_SYM): Likewise. 6248 6249 * config.bfd (m68*-*-psos*): New target. 6250 6251Tue Feb 13 15:56:22 1996 Bryan Ford <baford@snake.cs.utah.edu> 6252 6253 * i386msdos.c: Remove some #if 0 code. 6254 (msdos_write_object_contents): Don't include empty sections in the 6255 size computation, regardless of their address. 6256 6257Tue Feb 13 15:36:37 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6258 6259 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj 6260 is NULL, ie, the -r switch is used. 6261 6262Tue Feb 13 14:35:15 1996 Ian Lance Taylor <ian@cygnus.com> 6263 6264 * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define. 6265 (BFD_RELOC_MIPS_GOT_LO16): Define. 6266 (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define. 6267 * bfd-in2.h, libbfd.h: Rebuild. 6268 * elf32-mips.c (mips_reloc_map): Map new relocs. 6269 6270 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared. 6271 6272 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not 6273 $(SHLINK). 6274 6275 * ieee.c (get_symbol): Set the section to bfd_abs_section. 6276 (do_with_relocs): If EXEC_P is set and there are no relocs, use a 6277 simple number for the section address, rather than an expression. 6278 Limit the number of bytes between relocs to MAXRUN. 6279 (ieee_write_me_part): Set me_record to the file offset after the 6280 start address. 6281 (ieee_write_processor): New static function. 6282 (ieee_write_object_contents): Use ieee_write_processor. 6283 6284Fri Feb 9 10:53:00 1996 Ian Lance Taylor <ian@cygnus.com> 6285 6286 * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS. 6287 6288 * coff-aux.c: Change include of aux.h to aux-coff.h. 6289 6290Thu Feb 8 14:01:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 6291 6292 * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE 6293 relocation put the addend both in the reloc entry and the data. 6294 (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in 6295 GOT offset value. 6296 6297 * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve 6298 a R_68K_PCxx reloc against a defined global symbol directly. 6299 (elf_m68k_check_relocs): Don't count such a reloc. 6300 6301 * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with 6302 a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local 6303 symbol for now, otherwise always record the symbol as dynamic. 6304 (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc 6305 is not referenced by a dynamic object, and we are not making a 6306 shared object, then don't make a PLT entry. If we do make a PLT 6307 entry, make sure the symbol has been recorded as dynamic. 6308 6309Wed Feb 7 13:56:06 1996 Ian Lance Taylor <ian@cygnus.com> 6310 6311 * configure.host: When making a shared library, set HLDFLAGS to 6312 pass an appropriate -rpath option. Use the make variable SONAME 6313 as the shared library soname, rather than computing it here. On 6314 SunOS, build stamp-tshlink in place of $(SHLINK). 6315 * Makefile.in (SONAME): New variable. 6316 ($(SHLINK)): Make a link to the transformed name, as well. 6317 (stamp-tshlink): New target. 6318 (install): Skip stamp-tshlink during install. 6319 6320Wed Feb 7 13:37:39 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6321 6322 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the 6323 linker sections have been set up yet. 6324 6325 * elf.c (make_mapping): Add an additional argument to suppress 6326 making the first section include the program headers. 6327 (map_sections_to_segments): If the user used -Ttext such that the 6328 program headers are on a different page, do not set the flags 6329 saying that this section includes the program headers. 6330 6331Tue Feb 6 14:04:49 1996 J.T. Conklin <jtc@rtl.cygnus.com> 6332 6333 * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c. 6334 don't define TRAD_HEADER. 6335 * configure: Rebuild. 6336 6337 * netbsd-core.c: New file, support for NetBSD core files. 6338 * hosts/*nbsd.h: Removed. 6339 6340Tue Feb 6 11:47:49 1996 Doug Evans <dje@charmed.cygnus.com> 6341 6342 * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types. 6343 (BFD_RELOC_SPARC_LO7 reloc type): Deleted. 6344 * libbfd.h, bfd-in2.h: Regenerated. 6345 * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from 6346 bfd_elf32_bfd_reloc_type_lookup. 6347 (reloc_type{,_names}): Deleted. 6348 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table. 6349 Add sparc64 relocs. 6350 (sparc_reloc_map): Add sparc64 relocs. 6351 (sparc_elf_notsupported_reloc): New static function. 6352 (sparc_elf_wdisp16_reloc): New static function. 6353 (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}. 6354 (elf32_sparc_relocate_section): Likewise. 6355 (bfd_elf32_bfd_reloc_type_lookup): Define. 6356 * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted. 6357 (reloc_type{,_names}): Deleted. 6358 (elf_sparc_howto_table): Deleted. 6359 (sparc_reloc_map): Deleted. 6360 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table. 6361 (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define. 6362 6363Tue Feb 6 12:12:22 1996 Ian Lance Taylor <ian@cygnus.com> 6364 6365 * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a 6366 *-*-hpux* host. 6367 6368 * Makefile.in (program_transform_name): New variable. 6369 (install): Transform library name before installing it. 6370 6371Mon Feb 5 10:38:27 1996 Ian Lance Taylor <ian@cygnus.com> 6372 6373 * archures.c (bfd_mach_i960_hx): Define. 6374 * bfd-in2.h: Rebuild. 6375 * cpu-i960.c (scan_960_mach): Accept machine "hx". 6376 (MATRIX): Expand entries for HX. 6377 (arch_info_struct): Add i960:hx entry. 6378 * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx. 6379 * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX. 6380 (coff_set_flags): Handle bfd_mach_i960_hx. 6381 6382 Support for building as a shared library, based on patches from 6383 Alan Modra <alan@spri.levels.unisa.edu.au>: 6384 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib. 6385 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC, 6386 SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK. 6387 * configure: Rebuild. 6388 * configure.host: If --enable-shared, adjust shared library stuff 6389 based on the host. If the host is SunOS, and the linker supports 6390 -rpath, set HLDFLAGS to use it. 6391 * Makefile.in (ALLLIBS): New variable. 6392 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables. 6393 (COMMON_SHLIB, SHLINK): New variables. 6394 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal. 6395 (STAGESTUFF): Remove variable. 6396 (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than 6397 $(TARGETLIB). 6398 (stamp-ofiles): New target, like old ofiles target, but build 6399 using a temporary file and move-if-change, and touch stamp-ofiles 6400 when done. 6401 (ofiles): Just depend upon stamp-ofiles. 6402 (stamp-piclist, piclist): New targets. 6403 ($(SHLIB), $(SHLINK)): New targets. 6404 (targets.o, archures.o): Build twice if PICFLAG is set. 6405 (do_mostlyclean): Remove pic/*.o. 6406 (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and 6407 stamp-piclist. 6408 (do_distclean): Remove pic and stamp-picdir. 6409 (install): Install shared libraries. 6410 ($(OFILES)): Depend upon stamp-picdir. 6411 (stamp-picdir): New target. 6412 6413 * libcoff-in.h: Add comment reminding people that libcoff.h is a 6414 generated file. 6415 * libcoff.h: Rebuild. 6416 6417 * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the 6418 flavour of a section with no owner. 6419 6420 * elf32-mips.c (mips_elf_create_dynamic_sections): Clear 6421 ELF_LINK_NON_ELF flag. 6422 (mips_elf_create_got_section): Likewise. 6423 6424 * elf.c: Revert last change, since it breaks dynamic linking. 6425 * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg 6426 field. 6427 * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define. 6428 * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define. 6429 (elfNN_bed): Don't initialize want_hdr_in_seg field. 6430 6431Sun Feb 4 20:45:13 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6432 6433 * elf.c (assign_file_positions_for_segments): If the backend does 6434 not want the elf header or the program headers in the address 6435 space, do not include them in the calculations. 6436 6437 * elf32-ppc.c (ppc_elf_additional_program_headers): New hook 6438 function to determine if we need additional program headers. 6439 (ppc_elf_modify_segment_map): Define as a NOP function for now. 6440 (ppc_elf_create_linker_section): .sdata2 is a read-only section. 6441 6442Sat Feb 3 23:00:03 1996 Ian Lance Taylor <ian@cygnus.com> 6443 6444 * coffcode.h: Move today's libcoff.h change into coffcode.h. 6445 6446Sat Feb 3 15:43:44 1996 Fred Fish <fnf@cygnus.com> 6447 6448 * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args 6449 back into one line. Some compilers (sunos 4.1.3 for example) 6450 won't accept args split across more than one line. 6451 6452Fri Feb 2 11:42:15 1996 Steve Chamberlain <sac@slash.cygnus.com> 6453 6454 * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32. 6455 * configure: Regenerate. 6456 6457Fri Feb 2 12:12:16 1996 Jeffrey A Law (law@cygnus.com) 6458 6459 * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't 6460 try to do arithmetic on a void *, cast it to a unsigned char * first. 6461 6462Thu Feb 1 16:04:06 1996 Ian Lance Taylor <ian@cygnus.com> 6463 6464 * elf-bfd.h (ELF_LINK_NON_ELF): Define. 6465 * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to 6466 ELF_LINK_NON_ELF. 6467 * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF 6468 flag for a newly defined symbol. 6469 (NAME(bfd_elf,record_link_assignment)): Likewise. 6470 (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to 6471 set the DEF or REF_REGULAR flags correctly. 6472 6473 * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir. 6474 (libbfd.h, libcoff.h): Corresponding change. 6475 6476 * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with 6477 a PLT32 reloc as dynamic. 6478 (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc 6479 is not referenced by a dynamic object, and we are not making a 6480 shared object, then don't make a PLT entry. If we do make a PLT 6481 entry, make sure the symbol has been recorded as dynamic. 6482 6483Wed Jan 31 17:23:32 1996 Steve Chamberlain <sac@slash.cygnus.com> 6484 6485 * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL. 6486 * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32. 6487 (powerpcle-*-cygwin32): New. 6488 * peicode.h (add_data_entry): Get address from vma. 6489 6490Wed Jan 31 16:23:57 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6491 6492 * elflink.c (_bfd_elf_create_linker_section): If the symbol 6493 attached to the section has already been created as an undefined 6494 symbol, treat it as if it hasn't been created yet. 6495 6496Wed Jan 31 16:16:53 1996 Ian Lance Taylor <ian@cygnus.com> 6497 6498 * elflink.h (elf_bfd_final_link): Don't output initial dummy 6499 symbol or section symbols if stripping all symbols and this is not 6500 a relocateable link. Don't output the symbol string table if 6501 there are no symbols. 6502 (elf_link_flush_output_syms): Don't do anything if there are no 6503 symbols to flush. 6504 6505Wed Jan 31 12:55:49 1996 Richard Henderson <rth@tamu.edu> 6506 6507 * coff-aux.c: New file. 6508 * hosts/m68kaux.h: New file. 6509 * config.bfd (m68*-apple-aux*): New target. 6510 * configure.in (m68*-apple-aux*): New native host. 6511 (m68kaux_coff_vec): New vector. 6512 * configure: Rebuild. 6513 * targets.c (m68kaux_coff_vec): Declare. 6514 * coffcode.h (bfd_coff_backend_data): Add field 6515 _bfd_coff_link_add_one_symbol. 6516 (bfd_coff_link_add_one_symbol): Define. 6517 (compare_arelent_ptr): New static function if TARG_AUX. 6518 (coff_write_relocs): If TARG_AUX, sort the relocs. 6519 (coff_write_object_contents): Set A/UX aouthdr magic number. 6520 (coff_link_add_one_symbol): Define if not defined. 6521 (bfd_coff_std_swap_table): Initialize new field. 6522 * libcoff.h: Rebuild. 6523 * cofflink.c (coff_link_add_symbols): Call 6524 bfd_coff_link_add_one_symbol rather than 6525 _bfd_generic_link_add_one_symbol. 6526 * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined. 6527 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field. 6528 * coff-mips.c (mips_ecoff_backend_data): Likewise. 6529 * Makefile.in: Rebuild dependencies. 6530 (BFD32_BACKENDS): Add coff-aux.o. 6531 (BFD32_BACKENDS_CFILES): Add coff-aux.c. 6532 6533Wed Jan 31 11:37:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 6534 6535 * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT* 6536 relocation; ignore addend with R_68K_{GOT,PLT}*O relocation. 6537 6538Tue Jan 30 12:09:04 1996 Ian Lance Taylor <ian@cygnus.com> 6539 6540 * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h, 6541 $(srcdir)/libbfd.h and $(srcdir)/libcoff.h. 6542 (maintainer-clean): Warn about deleting special files. 6543 (bfd-in2.h, libbfd.h, libcoff.h): New targets. 6544 6545 * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and 6546 warning symbols correctly. 6547 * elf32-i386.c (elf_i386_relocate_section): Likewise. 6548 * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 6549 * elf32-mips.c (mips_elf_relocate_section): Likewise. 6550 * elf32-ppc.c (ppc_elf_relocate_section): Likewise. 6551 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 6552 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. 6553 6554 * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid 6555 warnings. 6556 6557Mon Jan 29 14:27:24 1996 Kim Knuttila <krk@cygnus.com> 6558 6559 * libcoff-in.h: aligned newly exported names with bfd naming 6560 conventions. Removed an erroneous define of POWERPC_LE_PE. 6561 * libcoff.h: Rebuild. 6562 * cofflink.c, coff-ppc.c: the above function name changes 6563 6564Mon Jan 29 13:06:28 1996 Ian Lance Taylor <ian@cygnus.com> 6565 6566 From Basim Kadhim <kadhim@spock.cs.colorado.edu>: 6567 * ecoff.c (struct extsym_info): Define. 6568 (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info 6569 to ecoff_link_write_external. 6570 (ecoff_link_write_external): Accept a struct extsym_info pointer. 6571 Strip symbols when appropriate. 6572 6573 Based on patches from Ronald F. Guilmette <rfg@monkeys.com>: 6574 * syms.c (BSF_OBJECT): Define. 6575 (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT. 6576 * bfd-in2.h: Rebuild. 6577 * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an 6578 STT_OBJECT symbol. 6579 * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT 6580 is set. 6581 6582 * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when 6583 copying relocs into a shared object, treat a defined global symbol 6584 as a local symbol. 6585 * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 6586 * elf32-mips.c (mips_elf_relocate_section): Likewise. 6587 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 6588 6589 * elflink.h (elf_link_add_object_symbols): Only set weakdef to a 6590 real defined symbol, not to a weak defined symbol. 6591 6592Mon Jan 29 11:34:36 1996 Kim Knuttila <krk@cygnus.com> 6593 6594 * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types 6595 and made a few static functions externs. 6596 6597 * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the 6598 POWERPC_LE_PE hack in cofflink. 6599 6600 * libcoff-in.h: promoted the following from cofflink.c to allow 6601 _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE, 6602 coff_debug_merge_element, struct coff_debug_merge_type, 6603 coff_debug_merge_hash_entry, coff_debug_merge_hash_table, 6604 coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free, 6605 coff_debug_merge_hash_lookup, coff_link_section_info, 6606 coff_final_link_info, coff_debug_merge_hash_newfunc, 6607 coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order. 6608 6609 * libcoff.h: re-gen'd 6610 6611Fri Jan 26 18:33:35 1996 Ian Lance Taylor <ian@cygnus.com> 6612 6613 * syms.c: Include "bfdlink.h". 6614 (struct stab_find_info): Define. 6615 (_bfd_stab_section_find_nearest_line): New function. 6616 * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare. 6617 * libbfd.h: Rebuild. 6618 * elf-bfd.h (struct elf_obj_tdata): Add line_info field. 6619 * elf.c (_bfd_elf_find_nearest_line): Try calling 6620 _bfd_stab_section_find_nearest_line before searching the ELF 6621 symbol table. Find the closest STT_FUNC symbol, not the last one. 6622 * libcoff-in.h (coff_data_type): Add line_info field. 6623 * libcoff.h: Rebuild. 6624 * coffgen.c (coff_find_nearest_line): Try calling 6625 _bfd_stab_section_find_nearest_line before searching the COFF 6626 symbol table. 6627 * Makefile.in: Rebuild dependencies. 6628 6629Fri Jan 26 16:11:19 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6630 6631 * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size 6632 4 bytes, so we get the correct value when updating the register 6633 field in little endian mode. 6634 6635Thu Jan 25 12:14:16 1996 Ian Lance Taylor <ian@cygnus.com> 6636 6637 * libcoff-in.h (struct xcoff_tdata): Remove toc_section and 6638 entry_section fields. Add sntoc and snentry fields. 6639 * libcoff.h: Rebuild. 6640 * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry, 6641 not toc_section and entry_section (the COFF file does not have any 6642 sections at this point). 6643 (coff_write_object_contents): Set o_snentry and o_sntoc from 6644 snentry and sntoc rather than entry_section and toc_section. 6645 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and 6646 snentry, not toc_section and entry_section. 6647 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set 6648 entry_section from hentry. 6649 (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set, 6650 set snenty. 6651 (xcoff_link_input_bfd): Set sntoc, not toc_section. 6652 (xcoff_write_global_symbol): Get toc_section from sntoc, rather 6653 than using toc_section directly. 6654 6655 * archures.c: Add missing `.' in enum bfd_architecture. 6656 * bfd-in2.h: Rebuild. 6657 6658 * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From 6659 Robert Lipe <robertl@arnet.com>. 6660 6661Thu Jan 25 12:08:51 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6662 6663 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2} 6664 to sections we allocate. Use bfd_zalloc to allocate initialial 6665 sections, not bfd_alloc. 6666 (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from 6667 SDA{,2}I16 relocations. 6668 (ppc_elf_add_symbol_hook): Use the value of -G nn to determine 6669 whether to put something in .sbss or not. 6670 (ppc_elf_relocate_section): Add support for more relocations. Add 6671 in sec->output_offset where appropriate. Make error messages 6672 include the symbol name. 6673 6674 * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before 6675 trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_ 6676 doesn't get redefined messages if -shared. 6677 6678 * elflink.h (elf_create_pointer_linker_section) Only bump RELA 6679 section if the rel_section field has been set up. 6680 6681Wed Jan 24 20:40:26 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6682 6683 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi 6684 relocations. 6685 6686Wed Jan 24 10:38:34 1996 Doug Evans <dje@charmed.cygnus.com> 6687 6688 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking 6689 of flags, only flags used are controlled by mach number. Bump up 6690 output file mach number to highest of input file mach numbers. 6691 (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1. 6692 (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa. 6693 6694 * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out 6695 bfd_elf64_sparc_vec support. 6696 6697Tue Jan 23 14:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6698 6699 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if 6700 the embedded bit is set on some objects and not on others. Just 6701 or it together. 6702 (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA} 6703 relocations. 6704 6705Tue Jan 23 14:22:45 1996 Ian Lance Taylor <ian@cygnus.com> 6706 6707 * coffcode.h (coff_new_section_hook): Don't try to align the 6708 .stabstr section. 6709 6710 * coffcode.h (coff_set_section_contents): Fix the handling of the 6711 .lib section to work even if the entire section contents are 6712 written at once. From Gvran Uddeborg <gvran@uddeborg.pp.se> and 6713 Robert Lipe <robertl@arnet.com>. 6714 6715Mon Jan 22 18:45:51 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6716 6717 * elflink.h (elf_finish_pointer_linker_section): Don't allocate 6718 memory here for contents. 6719 6720 * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and 6721 _SDA2_BASE_ by 32768. 6722 (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't 6723 started using. Allocate contents for .sdata and .sdata2 sections 6724 also. 6725 (ppc_elf_check_relocs): Use bfd_get_section_name in debug message, 6726 rather than _name. 6727 (ppc_elf_finish_dynamic_symbol): Remove code that attempted to 6728 size _SDA{,2}_BASE_. 6729 (ppc_elf_relocate_section): Change how sdata{,2} relocations are 6730 done. 6731 6732Mon Jan 22 08:52:04 1996 Doug Evans <dje@charmed.cygnus.com> 6733 6734 * elflink.h (elf_finish_pointer_linker_section): Fix typo. 6735 6736 * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64. 6737 (bfd_mach_sparc_{v8plus,v8plusa}): Define. 6738 (bfd_mach_sparc_v9a): Define. 6739 (bfd_mach_sparc_v9_p): Define. 6740 * bfd-in2.h: Regenerated. 6741 * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to 6742 bfd_mach_sparc_v9. 6743 * elf64-sparc.c (sparc64_elf_object_p): Likewise. 6744 * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec 6745 to bfd_elf32_sparc_vec. 6746 * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info. 6747 Add v8plus{,a} support. 6748 Add v9a support. 6749 (sparc_compatible): New function. 6750 * elf32-sparc.h: #include "elf/sparc.h". 6751 (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p, 6752 elf32_sparc_final_write_processing): New functions. 6753 (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p, 6754 elf_backend_final_write_processing): Define. 6755 6756Mon Jan 22 11:21:51 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6757 6758 * elf-bfd.h (struct elf_link_hash_entry): Add 6759 linker_section_pointer field. 6760 (enum elf_linker_section_enum): Enumeration for new way of 6761 creating linker dynamic sections and symbols. 6762 (elf_linker_section{,_pointers}): New structures for creating 6763 dynamic sections and symbols. 6764 (elf_obj_tdata): Add linker_section_pointers and linker_section 6765 fields. 6766 (elf_local_ptr_offsets,elf_linker_section): New accessor macros. 6767 (_bfd_elf_create_linker_section): New declarations. 6768 (_bfd_elf_find_pointer_linker_section): Ditto. 6769 (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto. 6770 (_bfd_elf_make_linker_section_rela): Ditto. 6771 6772 * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields. 6773 6774 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete. 6775 (ppc_elf_create_linker_section): New function to create the 6776 sections .got, .sdata, and .sdata2. 6777 (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if 6778 needed. 6779 (ppc_elf_check_relocs): Support more of the eabi relocations. 6780 (ppc_elf_relocate_section): Ditto. 6781 (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768 6782 if the .sdata{,2} + .sbss{,2} section size is > 32k. 6783 6784 * elflink.h (elf_create_pointer_linker_section): New function to 6785 create initialized pointers in dynamic linker sections. 6786 (elf_finish_pointer_linker_section): Actually intialize the 6787 pointers created above. 6788 6789 * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New 6790 macros to provide both 32 and 64 bit versions of 6791 elf_create_pointer_linker_section. 6792 (bfd_elf{32,64}_finish_pointer_linker_section): New macros to 6793 provide both 32 and 64 bit versions of 6794 elf_finish_pointer_linker_section. 6795 6796 * elflink.c (_bfd_elf_create_linker_section): New function to 6797 create a linker section. 6798 (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a 6799 given address in the linker pointer offsets created for a given 6800 symbol. 6801 (_bfd_elf_make_linker_section_rela): Make a RELA section 6802 corresponding to the generated linker section. 6803 6804Sat Jan 20 08:36:10 1996 Doug Evans <dje@canuck.cygnus.com> 6805 6806 * elf32-sparc.c (ELF_MACHINE_ALT1): Define. 6807 6808Thu Jan 18 18:25:34 1996 Kim Knuttila <krk@cygnus.com> 6809 6810 * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs. 6811 (coff_ppc_relocate_section): Handle special values for gcc built dlls. 6812 (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries. 6813 Also begin the toc at 4 as an eye catcher ('31313131' marks the first 6814 toc entry in an objdump) for now. 6815 (ppc_do_last, ppc_get_last): New function - needed to save processing 6816 the toc owner to the end. 6817 (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the 6818 toc owner last. 6819 6820 * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the 6821 toc owner from being done till last. Must define POWERPC_LE_PC 6822 to enable it. 6823 6824 * coffcode.h (coff_set_alignment_hook): alignment setting for .stab 6825 6826 * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str 6827 to INFO. 6828 (coff_swap_aouthdr_out): Removed a non-working hack for computing the 6829 SizeOfImage for PowerPC. Ignore the size of the .junk section. 6830 6831Thu Jan 18 17:42:12 1996 Ian Lance Taylor <ian@cygnus.com> 6832 6833 * elfcore.h: Include <signal.h> before <sys/procfs.h>. 6834 6835Wed Jan 17 12:40:14 1996 Ian Lance Taylor <ian@cygnus.com> 6836 6837 * cpu-powerpc.c (arch_info_struct): Change last entry to not point 6838 back to first. 6839 (bfd_powerpc_arch): Point at first entry in arch_info_struct. 6840 6841Tue Jan 16 15:10:49 1996 Ian Lance Taylor <ian@cygnus.com> 6842 6843 * elf.c (assign_file_positions_for_segments): Don't increment file 6844 offset for a segment which contains no loadable sections. 6845 6846Mon Jan 15 17:46:27 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6847 6848 * reloc.c: Add new PowerPC relocations. 6849 * {bfd-in2,libbfd}.h: Regenerate. 6850 6851 * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations. 6852 (ppc_elf_reloc_type_lookup): Lookup new relocations. 6853 6854Mon Jan 15 14:29:44 1996 Ian Lance Taylor <ian@cygnus.com> 6855 6856 * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22 6857 entries. 6858 6859 * sunos.c (sunos_scan_ext_relocs): Don't fail assert if 6860 info->shared. 6861 6862 * coffgen.c (coff_find_nearest_line): Don't try to cache 6863 information in sections that are not owned by a BFD. From Richard 6864 Henderson <richard@atheist.tamu.edu>. 6865 6866 * elf32-mips.c: Numerous changes to dynamic linking code, mostly 6867 from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>. 6868 * elflink.h (elf_link_output_extsym): Remove special check for 6869 _rld_new_interface. 6870 6871 * ecoffswap.h: Add prototypes for static functions. 6872 6873Sun Jan 14 21:36:08 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6874 6875 * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions. 6876 (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc 6877 references. 6878 (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections 6879 to satisfy a TOC16 relocation. Rewrite unsupported relocation 6880 support. Begin support for R_PPC_SDA{2,}REL. 6881 6882Sat Jan 13 09:36:52 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6883 6884 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to 6885 create the .got and .got.neg sections. 6886 (ppc_elf_size_dynamic_sections): Call it. 6887 (ppc_elf_check_relocs): Call it. 6888 (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got. 6889 (ppc_elf_check_relocs): Add error messages for relocations we 6890 don't yet support. Do not include R_PPC_SDAREL16 like a GOT 6891 relocation. 6892 6893Fri Jan 12 15:27:59 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6894 6895 * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new 6896 section flags for V.4 and eabi. 6897 6898Fri Jan 12 13:59:16 1996 Ian Lance Taylor <ian@cygnus.com> 6899 6900 * elf.c (assign_file_positions_for_segments): If a segment 6901 contains no sections, don't mark it as readable. 6902 6903 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare. 6904 * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare. 6905 6906 * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of 6907 dynamic section, if there is one. 6908 * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field. 6909 (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR. 6910 (bfd_elf64_swap_dyn_in): Likewise. 6911 * elfcode.h (elf_swap_dyn_in): Change type of second parameter to 6912 PTR. 6913 (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field. 6914 6915 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a 6916 DT_TEXTREL entry because of .rel.plt. From Martin Pirker 6917 <pirker@eiunix.tuwien.ac.at>. 6918 6919Thu Jan 11 17:06:14 1996 Michael Meissner <meissner@tiktok.cygnus.com> 6920 6921 * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for 6922 PowerPC V.4 and eabi. 6923 * bfd-in2.h: Regenerate. 6924 * libfd.h: Regenerate. 6925 6926 * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags. 6927 6928 * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED 6929 section type and SHF_EXCLUDE section flag, turning them into the 6930 appropriate bfd section flag. 6931 6932Thu Jan 11 11:23:30 1996 Ian Lance Taylor <ian@cygnus.com> 6933 6934 * xcofflink.c (xcoff_link_add_symbols): Create the special 6935 sections if we see a DYNAMIC object, in case that is the only 6936 XCOFF input object we see. 6937 6938 * elf32-mips.c: Extensive changes for a start at dynamic linking 6939 support, from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>. 6940 6941 * elf-bfd.h (struct elf_backend_data): Add type_change_ok field. 6942 (struct elf_backend_data): Remove 6943 elf_backend_create_program_headers field. Add 6944 elf_backend_additional_program_headers and 6945 elf_backend_modify_segment_map fields. 6946 * elfxx-target.h (elf_backend_type_change_ok): Define if not 6947 defined. 6948 (elf_backend_additional_program_headers): Likewise. 6949 (elf_backend_modify_segment_map): Likewise. 6950 (elf_backend_create_program_headers): Don't define. 6951 (elfNN_bed): Change to account for field changes. 6952 * elf.c (assign_file_positions_for_segments): Call new 6953 modify_segment_map backend function. Don't call old 6954 create_program_headers backend function. 6955 (get_program_header_size): Call additional_program_headers rather 6956 than create_program_headers. 6957 * elflink.h (elf_link_add_object_symbols): Initialize 6958 type_change_ok from new backend field. 6959 (elf_link_output_extsym): Don't warn if _rld_new_interface is 6960 defined. 6961 (elf_reloc_link_order): Treat a reloc against a defined symbol as 6962 a reloc against the appropriate section. 6963 6964 * elf-bfd.h (struct bfd_elf_section_data): Add tdata field. 6965 (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init. 6966 (elf_flags_init): Rename from elf_ppc_flags_init. 6967 * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not 6968 elf_ppc_flags_init. 6969 (ppc_elf_copy_private_bfd_data): Likewise. 6970 (ppc_elf_merge_private_bfd_data): Likewise. 6971 6972 * elf32-m68k.c (howto_table): Change src_mask to 0 for all 6973 relocation entries. 6974 6975Tue Jan 9 15:22:53 1996 David Mosberger-Tang <davidm@azstarnet.com> 6976 6977 * coff-alpha.c (alpha_relocate_section): During final link, allow 6978 output .lita section to be bigger than 64k by adjusting gp value 6979 on a per-input section basis. 6980 * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning 6981 field. 6982 (struct ecoff_section_tdata): Add gp field. 6983 6984Tue Jan 9 12:00:36 1996 Ian Lance Taylor <ian@cygnus.com> 6985 6986 Handle Alpha ECOFF changes in OSF/1 3.2. 6987 * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos 6988 field. 6989 * coff-alpha.c: Include "aout/ar.h". 6990 (alpha_ecoff_get_relocated_section_contents): Don't require an 6991 ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1 6992 3.2 doesn't generate one. 6993 (alpha_relocate_section): Likewise. 6994 (alpha_ecoff_slurp_armap): Define. 6995 (alpha_ecoff_slurp_extended_name_table): Define. 6996 (alpha_ecoff_construct_extended_name_table): Define. 6997 (alpha_ecoff_truncate_arname): Define. 6998 (alpha_ecoff_write_armap): Define. 6999 (alpha_ecoff_generic_stat_arch_elt): Define. 7000 (alpha_ecoff_update_armap_timestamp): Define. 7001 (ARFZMAG): Define. 7002 (alpha_ecoff_read_ar_hdr): New static function. 7003 (alpha_ecoff_get_elt_at_filepos): New static function. 7004 (alpha_ecoff_openr_next_archived_file): New static function. 7005 (alpha_ecoff_get_elt_at_index): New static function. 7006 (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field. 7007 (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from 7008 _bfd_ecoff to alpha_ecoff. 7009 * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos 7010 field from backend structure, rather than always calling 7011 _bfd_get_elt_at_filepos. 7012 * coff-mips.c (mips_ecoff_backend_data): Initialize 7013 get_elt_at_filepos field. 7014 * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied 7015 from _bfd_generic_read_ar_hdr with minor changes. 7016 (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag. 7017 * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare. 7018 * libbfd.h: Rebuild. 7019 7020 * bfd-in.h (BFD_IN_MEMORY): Define. 7021 * libbfd-in.h (struct bfd_in_memory): Define. 7022 * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag. 7023 (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file. 7024 (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set. 7025 (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag. 7026 * bfd.c (struct _bfd): Change iostream field from char * to PTR. 7027 (bfd_get_size): Handle BFD_IN_MEMORY flag. 7028 * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files. 7029 (bfd_open_file): Cast to PTR, not char *, when setting iostream. 7030 (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set. 7031 * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting 7032 iostream. 7033 (bfd_openstreamr): Likewise. 7034 * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if 7035 BFD_IN_MEMORY is not set. 7036 * riscix.c (riscix_some_aout_object_p): Likewise. 7037 * bfd-in2.h, libbfd.h: Rebuild. 7038 7039 * targets.c (bfd_target): Add _bfd_get_elt_at_index field. 7040 (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index. 7041 (bfd_get_elt_at_index): Define. 7042 * archive.c (_bfd_generic_get_elt_at_index): Rename from 7043 bfd_get_elt_at_index. Change index parameter from int to 7044 symindex. 7045 * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare. 7046 (_bfd_noarchive_get_elt_at_index): Define. 7047 (_bfd_archive_bsd_get_elt_at_index): Define. 7048 (_bfd_archive_coff_get_elt_at_index): Define. 7049 * bfd-in2.h, libbfd.h: Rebuild. 7050 * aout-target.h (MY_get_elt_at_index): Define if not defined. 7051 * coff-rs6000.c (xcoff_get_elt_at_index): Define. 7052 * ieee.c (ieee_get_elt_at_index): Define. 7053 * libecoff.h (_bfd_ecoff_get_elt_at_index): Define. 7054 * oasys.c (oasys_get_elt_at_index): Define. 7055 * som.c (som_get_elt_at_index): Define. 7056 7057 * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line 7058 numbers to the .text section. 7059 7060Mon Jan 8 17:00:57 1996 Ian Lance Taylor <ian@cygnus.com> 7061 7062 * ieee.c (ieee_write_debug_part): Change return type to boolean. 7063 If there is a SEC_DEBUGGING section, get the contents of the debug 7064 information part from it. 7065 (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING 7066 section in memory. 7067 (ieee_write_object_contents): Check ieee_write_debug_part return. 7068 7069Thu Jan 4 17:12:37 1996 Fred Fish <fnf@cygnus.com> 7070 7071 * config.bfd (i[345]86-*-freebsd*): Add target. 7072 * configure.in (i386freebsd_vec): Add vec. 7073 * configure: Regenerate. 7074 * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o. 7075 (BFD32_BACKENDS_CFILES): Add i386freebsd.c. 7076 Rebuild dependencies.. 7077 * freebsd.h: New file. 7078 * i386freebsd.c: New file. 7079 * targets.c (i386freebsd_vec): Declare. 7080 (bfd_target_vector): Add i386freebsd_vec. 7081 * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE 7082 * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE 7083 7084Thu Jan 4 16:27:46 1996 Ian Lance Taylor <ian@cygnus.com> 7085 7086 * ieee.c (ieee_slurp_debug): New static function. 7087 (ieee_object_p): Call it. 7088 (ieee_slurp_section_data): Skip debugging sections. 7089 (ieee_get_reloc_upper_bound): Likewise. 7090 (ieee_get_section_contents): Likewise. 7091 (ieee_canonicalize_reloc): Likewise. 7092 (ieee_write_section_part): Likewise. 7093 (ieee_write_debug_part): Likewise. 7094 (ieee_write_data_part): Likewise. 7095 (init_for_output): Likewise. 7096 7097Wed Jan 3 19:42:47 1996 Michael Meissner <meissner@wogglebug.tiac.net> 7098 7099 * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations 7100 work. 7101 (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto 7102 relocs, since ppc_elf_relocate_section handles the linker case. 7103 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer 7104 used. 7105 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into 7106 ppc_elf_relocate_section since that is now the only caller. 7107 (ppc_elf_relocate_section): Ditto. 7108 7109Wed Jan 3 15:11:30 1996 Ian Lance Taylor <ian@cygnus.com> 7110 7111 * coffcode.h (coff_write_object_contents): If we don't know the 7112 section of the entry point for an XCOFF executable, always set the 7113 entry address to -1. 7114 7115Tue Jan 2 14:17:15 1996 Michael Meissner <meissner@tiktok.cygnus.com> 7116 7117 * elf.c (bfd_section_from_shdr): Add support for note sections. 7118 7119Tue Jan 2 13:10:25 1996 Ian Lance Taylor <ian@cygnus.com> 7120 7121 * bfd-in.h (struct _symbol_info): Add stab_type field. 7122 * bfd-in2.h: Rebuild. 7123 * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type. 7124 7125 * elf32-ppc.c: Remove trailing newline from calls to 7126 _bfd_error_handler. 7127 (ppc_elf_merge_private_bfd_data): Only warn about endianness 7128 difference if target endianness is known. 7129 7130Thu Dec 21 12:43:49 1995 Michael Meissner <meissner@tiktok.cygnus.com> 7131 7132 * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the 7133 old style TOC16 references without using R_PPC_GOT. 7134 (ppc_reloc_type): Ditto. 7135 (ppc_elf_reloc_type_lookup): Add support for TOC16. 7136 (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner. 7137 (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc. 7138 (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support. 7139 (ppc_elf_check_relocs): New function for GOT/PLT support that is 7140 work in progress. 7141 (ppc_elf_adjust_dynamic_symbol): Ditto. 7142 (ppc_elf_adjust_dynindx): Ditto. 7143 (ppc_elf_size_dynamic_sections): Ditto. 7144 (ppc_elf_finish_dynamic_symbol): Ditto. 7145 (ppc_elf_finish_dynamic_sections): Ditto. 7146 (ELF_DYNAMIC_INTERPRETER): Define. 7147 7148Wed Dec 20 19:14:18 1995 Ken Raeburn <raeburn@cygnus.com> 7149 7150 * elf.c (copy_private_bfd_data): When attaching sections to 7151 segments ignore sections that won't be allocated. Patch from 7152 Andreas Schwab. 7153 7154Tue Dec 19 20:01:43 1995 Ken Raeburn <raeburn@cygnus.com> 7155 7156 * config.bfd: Match on m68k-cbm-* only if OS doesn't match 7157 anything else. 7158 7159Tue Dec 19 16:38:59 1995 Ian Lance Taylor <ian@cygnus.com> 7160 7161 * coff-i960.c (CALC_ADDEND): Define. 7162 (coff_i960_relocate_section): Add the input section VMA to the 7163 addend for PC relative relocs. 7164 7165Sun Dec 17 20:11:55 1995 Kim Knuttila <krk@cygnus.com> 7166 7167 * peicode.h (pe_print_pdata): Must test the entire entry for zero 7168 to correctly terminate. 7169 7170Fri Dec 15 12:05:57 1995 Ian Lance Taylor <ian@cygnus.com> 7171 7172 * targets.c (enum bfd_endian): Define. 7173 (bfd_target): Rename byteorder_big_p to byteorder, and change it 7174 from boolean to enum bfd_endian. Change header_byteorder_big_p 7175 correspondingly. 7176 * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros. 7177 (bfd_header_big_endian, bfd_header_little_endian): New macros. 7178 * bfd-in2.h: Rebuild. 7179 * All targets: Change initialization of byteorder and 7180 header_byteorder to use enum bfd_endian values rather than 7181 booleans. 7182 * All files: Change all references to byteorder_big_p and 7183 header_byteorder_big_p to use new bfd_*_endian macros. 7184 7185 * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not 7186 s_vaddr. 7187 * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not 7188 vma. 7189 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise. 7190 7191Fri Dec 15 07:32:09 1995 steve chamberlain <sac@slash.cygnus.com> 7192 7193 * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'. 7194 7195Thu Dec 14 13:45:37 1995 Ian Lance Taylor <ian@cygnus.com> 7196 7197 * ieee.c: Lots of minor cleanups. Make many functions return 7198 errors rather than calling abort. Also: 7199 (ieee_write_twobyte): Remove; change callers to call existing 7200 ieee_write_2bytes function. 7201 (ieee_write_expression): Don't output the section twice when 7202 outputting a local symbol. Don't emit an extraneous zero if there 7203 is only one term. 7204 (ieee_slurp_sections): Set the lma as well as the vma. 7205 (ieee_archive_p): Use bfd_alloc_grow rather than an obstack. 7206 7207 * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just 7208 a recognized one or bfd_arch_unknown. 7209 (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy 7210 to succeed. 7211 (ihex_get_symtab): Likewise. 7212 7213Wed Dec 13 15:44:06 1995 Ian Lance Taylor <ian@cygnus.com> 7214 7215 * aoutx.h: Include <ctype.h>. 7216 (struct aout_link_includes_table): Define. 7217 (struct aout_link_includes_totals): Define. 7218 (struct aout_link_includes_entry): Define. 7219 (aout_link_includes_lookup): Define macro. 7220 (struct aout_final_link_info): Add includes field. 7221 (aout_link_includes_newfunc): New static function. 7222 (NAME(aout,final_link)): Initialize includes hash table. 7223 (aout_link_write_symbols): Eliminate duplicate N_BINCL entries. 7224 7225Wed Dec 13 10:52:14 1995 Stan Shebs <shebs@andros.cygnus.com> 7226 7227 * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff. 7228 7229Wed Dec 13 11:07:45 1995 Kim Knuttila <krk@cygnus.com> 7230 7231 * coff-ppc.c (coff_ppc_relocate_section): removed debugging code. 7232 7233Tue Dec 12 17:42:06 1995 Kim Knuttila <krk@cygnus.com> 7234 7235 * peicode.h (pe_print_reloc): New function to dump the .reloc section. 7236 (pe_print_private_bfd_data): call pe_print_reloc. 7237 * coffcode.h (coff_set_alignment_hook): .reloc section alignment. 7238 * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed 7239 up some debugging as well. 7240 7241Tue Dec 12 11:34:23 1995 Ian Lance Taylor <ian@cygnus.com> 7242 7243 * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette 7244 <rfg@monkeys.com>. 7245 7246Fri Dec 8 17:47:07 1995 Ian Lance Taylor <ian@cygnus.com> 7247 7248 * elflink.h (elf_link_add_object_symbols): Set section_count to 0 7249 when setting sections to NULL. 7250 7251Wed Dec 6 17:05:37 1995 Ian Lance Taylor <ian@cygnus.com> 7252 7253 * xcofflink.c (struct xcoff_loader_info): Add export_defineds 7254 field. 7255 (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter. 7256 (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT 7257 for all symbols. 7258 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration. 7259 * bfd-in2.h: Rebuild. 7260 7261Mon Dec 4 16:40:47 1995 Kim Knuttila <krk@cygnus.com> 7262 7263 * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's 7264 7265Mon Dec 4 11:25:39 1995 Ian Lance Taylor <ian@cygnus.com> 7266 7267 * ihex.c (ihex_scan): Handle record types 4 and 5. 7268 (ihex_object_p): Permit types 4 and 5. 7269 (ihex_set_section_contents): Remove check for out of range 7270 addresses. 7271 (ihex_write_object_contents): Generate types 4 and 5. 7272 7273 * elflink.h (elf_link_output_extsym): Just ignore warning and 7274 indirect references to symbols which don't really exist. 7275 7276Sun Dec 3 19:00:27 1995 Kim Knuttila <krk@cygnus.com> 7277 7278 * peicode.h (pe_print_idata): Minor format fixes 7279 (pe_print_edata): New function. Under private printing, this formats 7280 the edata section of a PE file. 7281 (pe_print_private_bfd_data): Added call to pe_print_edata. 7282 7283Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk) 7284 7285 * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol 7286 index, don't call stoi. 7287 7288Fri Dec 1 14:46:51 1995 Ian Lance Taylor <ian@cygnus.com> 7289 7290 * srec.c (srec_scan): Set lma as well as vma. 7291 7292 * ihex.c: New file; support for Intel Hex format. 7293 * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour. 7294 (ihex_vec): Declare. 7295 (bfd_target_vector): Always include ihex_vec. 7296 * bfd.c (struct _bfd): Add ihex_data field to tdata union. 7297 * Makefile.in: Rebuild dependencies. 7298 (BFD_LIBS): Add ihex.o 7299 (BFD_LIBS_CFILES): Add ihex.c. 7300 * bfd-in2.h: Rebuild. 7301 7302 * elf.c (assign_file_positions_for_segments): Sort the sections in 7303 each segment. 7304 (get_program_header_size): Return the right size if segment_map is 7305 not NULL. 7306 (copy_private_bfd_data): Don't bother to sort the sections. 7307 7308 * bfd.c (bfd_record_phdr): New function. 7309 * bfd-in.h (bfd_record_phdr): Declare. 7310 * bfd_in2.h: Rebuild. 7311 7312 * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus 7313 BFD_ASSERT. 7314 7315 * libbfd.c (bfd_malloc, bfd_realloc): New functions. 7316 (bfd_zmalloc): Return PTR, not char *. Take size_t, not 7317 bfd_size_type. 7318 * libbfd-in.h (bfd_malloc, bfd_realloc): Declare. 7319 (bfd_zmalloc): Change declaration. 7320 * libbfd.h: Rebuild. 7321 * Many files: Use bfd_malloc and bfd_realloc rather than malloc 7322 and realloc. Don't set bfd_error_no_memory if they fail. 7323 7324Thu Nov 30 19:32:26 1995 Kim Knuttila <krk@cygnus.com> 7325 7326 * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous 7327 uses as well. Added a new howto to deal with TOCREL16 relocs that 7328 are TOCDEFN as well. 7329 (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs 7330 to handle RVA relocs from dlltool. 7331 (ppc_coff_rtype2howto): TOCDEFN reloc addition. 7332 (coff_ppc_rtype_to_howto): TOCDEFN reloc addition. 7333 (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition. 7334 7335 * coffcode.h (coff_set_alignment_hook): check idata$X sections 7336 to get the right section alignment. 7337 7338Thu Nov 30 16:48:18 1995 Ian Lance Taylor <ian@cygnus.com> 7339 7340 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on 7341 p_paddr if p_paddr is zero. 7342 (make_mapping): Set includes_filehdr and includes_phdrs for first 7343 PT_LOAD segment. 7344 (map_sections_to_segments): Set includes_phdrs for PT_PHDR 7345 segment. 7346 (assign_file_positions_for_segments): Handle includes_filehdr and 7347 includes_phdrs. Remove special handling of PT_PHDR and first 7348 PT_LOAD segments. 7349 (copy_private_bfd_data): Set includes_filehdr and includes_phdr 7350 when appropriate. Remove special handling of PT_PHDR segment. 7351 Use a more complex condition for when a section is included in a 7352 segment to handle Solaris linker oddities. 7353 7354Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de> 7355 7356 * coff-m88k.c (howto_table): Reformatted for easier reading; 7357 special_function now points to new function m88k_special_reloc. 7358 (howto_hvrt16): Function previously used for handling HVRT16 relocs 7359 removed. 7360 (rtype2howto): Do not add reloc's r_offset to the addend, this will 7361 be done correctly by m88k_special_reloc. 7362 (reloc_processing): New function to be used by RELOC_PROCESSING. 7363 (RELOC_PROCESSING): Define to call reloc_processing. 7364 7365Wed Nov 29 12:42:36 1995 Ian Lance Taylor <ian@cygnus.com> 7366 7367 * peicode.h (pe_print_idata): Call malloc rather than xmalloc. 7368 (pe_print_pdata): Likewise. 7369 7370 * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if 7371 obstack_alloc fails. 7372 (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish 7373 fails. 7374 * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails. 7375 * Many files: don't set bfd_error_no_memory if one of the above 7376 routines fails. 7377 7378 * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr 7379 if p_paddr_valid is set. 7380 (copy_private_bfd_data): New static function. 7381 (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data. 7382 7383 * elf.c (assign_file_positions_for_segments): Fix case where extra 7384 program headers were allocated. 7385 7386 * elf.c (_bfd_elf_print_private_bfd_data): New function. 7387 * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare. 7388 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to 7389 _bfd_elf_print_private_bfd_data. 7390 7391 * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if 7392 r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc. 7393 Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS. 7394 (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to 7395 RELOC_SECTION_LITA for ALPHA_R_IGNORE. 7396 (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change 7397 RELOC_SECTION_ABS to RELOC_SECTION_NONE. 7398 7399Tue Nov 28 16:59:50 1995 Ian Lance Taylor <ian@cygnus.com> 7400 7401 * elf-bfd.h (struct elf_obj_tdata): Add segment_map field. 7402 * elf.c (make_mapping): New static function. 7403 (map_sections_to_segments): New static function. 7404 (elf_sort_sections): New static function. 7405 (assign_file_positions_for_segments): New static function. 7406 (map_program_segments): Remove. 7407 (get_program_header_size): Remove sorted_hdrs, count, and 7408 maxpagesize parameters. Simplify. 7409 (assign_file_positions_except_relocs): When generating an 7410 executable, use assign_file_positions_for_segments. 7411 (elf_sort_hdrs): Remove. 7412 (_bfd_elf_sizeof_headers): Remove eliminated parameters from call 7413 to get_program_header_size. 7414 7415Mon Nov 27 12:27:46 1995 Ian Lance Taylor <ian@cygnus.com> 7416 7417 * hp300hpux.c (MY(callback)): Set lma as well as vma. 7418 7419 * configure, config.in: Regenerate with autoconf 2.7. 7420 7421 * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1. 7422 * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0. 7423 7424Wed Nov 22 12:02:09 1995 Ian Lance Taylor <ian@cygnus.com> 7425 7426 * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section. 7427 (ecoff_sec_to_styp_flags): Likewise. 7428 (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST. 7429 (ecoff_set_symbol_info): Handle scRConst. 7430 (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST. 7431 (ecoff_compute_section_file_positions): Handle .rconst section. 7432 (_bfd_ecoff_write_object_contents): Likewise. 7433 (ecoff_link_check_archive_element): Handle scRConst. 7434 (ecoff_link_add_externals): Likewise. 7435 (ecoff_link_write_external): Handle .rconst section. 7436 (ecoff_reloc_link_order): Likewise. 7437 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst. 7438 * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst 7439 section. 7440 (alpha_relocate_section): Handle RELOC_SECTION_RCONST. 7441 7442 * sunos.c (sunos_scan_dynamic_symbol): Only set written if the 7443 DEF_DYNAMIC flag is set. 7444 7445Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com> 7446 7447 * host-aout.c: If TRAD_HEADER is defined, include it. 7448 7449Tue Nov 21 13:03:57 1995 Ian Lance Taylor <ian@cygnus.com> 7450 7451 * aclocal.m4 (AC_PROG_CC): Remove local definition. 7452 (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM. 7453 (BFD_NEED_DECLARATION): New function. 7454 * configure.in: Use BFD_NEED_DECLARATION. 7455 * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section. 7456 * configure, config.in: Rebuild with autoconf 2.6. 7457 7458 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear 7459 special_sections before returning when called with a non XCOFF 7460 BFD. 7461 7462 * coffgen.c (coff_renumber_symbols): Sort common symbols with 7463 global symbols. 7464 7465 * coffcode.h (coff_compute_section_file_positions): Only pad the 7466 previous section to force file alignment when creating an 7467 executable. 7468 7469Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com> 7470 7471 * coffcode.h (coff_compute_section_file_positions): If 7472 RS6000COFF_C, set up the .debug section. 7473 7474 * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value 7475 if it is not large enough to accomodate the entire TOC area with 7476 signed 16 bit offsets. 7477 (xcoff_write_global_symbol): Handle negative TOC offsets in global 7478 linkage code. 7479 (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a 7480 TOC anchor to use the TOC value used in the output file. 7481 7482Sat Nov 18 18:01:41 1995 Ian Lance Taylor <ian@cygnus.com> 7483 7484 * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return. 7485 (_bfd_coff_read_string_table): Likewise. 7486 7487Sat Nov 18 19:43:04 1995 Richard Earnshaw (rearnsha@armltd.co.uk) 7488 7489 * pe-arm.c: Fix typos. 7490 * coff-arm.c: Likewise. 7491 7492Fri Nov 17 16:22:04 1995 Kim Knuttila <krk@cygnus.com> 7493 7494 * coff-ppc.c (list_ele): Added "cat"egory member. 7495 (record_toc): New category parameter (priv or pub). 7496 (ppc_record_toc_entry): Check to see if toc bounds exceeded. 7497 (ppc_process_before_allocation): Removed embrionic data-in-toc from 7498 the mainline. It addes extra toc cells in error. 7499 (ppc_coff_swap_sym_in_hook): Added some documentation. 7500 (dump_toc): Can now diagnose "virtual toc" chicanery. 7501 7502Fri Nov 17 10:41:25 1995 Philippe De Muyter <phdm@info.ucl.ac.be> 7503 7504 * elf-bfd.h (struct elf_link_hash_table): Change type of 7505 dynsymcount and bucketcount fields from size_t to bfd_size_type. 7506 7507Fri Nov 17 10:02:58 1995 Ian Lance Taylor <ian@cygnus.com> 7508 7509 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't 7510 pointerize C_LEAFSTAT or C_LEAFEXT entries. 7511 7512 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create 7513 DT_INIT and DT_FINI entries if the _init or _fini symbol is 7514 defined or mentioned in a regular file. 7515 7516Thu Nov 16 15:16:42 1995 Kim Knuttila <krk@cygnus.com> 7517 7518 * coff-ppc.c (ppc_record_data_in_toc_entry): new function 7519 (coff_ppc_relocate_section): Handle TOCDEFN attribute 7520 (coff_ppc_relocate_section): Correct REL24 handling 7521 (ppc_process_before_allocation): Correct TOCDEFN handling 7522 7523 * peicode.h (dir_names): Added name descriptions 7524 7525Thu Nov 16 03:38:03 1995 Ken Raeburn <raeburn@cygnus.com> 7526 7527 * VERSION: Updated to cygnus-2.6. 7528 7529Wed Nov 15 19:30:07 1995 Ken Raeburn <raeburn@cygnus.com> 7530 7531 * targets.c (m68k4knetbsd_vec): Declare. 7532 7533Wed Nov 15 18:05:52 1995 Ian Lance Taylor <ian@cygnus.com> 7534 7535 * targets.c (bfd_target): Change type of second argument to 7536 _bfd_print_private_bfd_data from void * to PTR. 7537 * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast 7538 using PTR rather than void *. 7539 * bfd-in2, libbfd.h: Rebuild. 7540 * peicode.h (pe_print_private_bfd_data): Change vfile from void * 7541 to PTR. 7542 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as 7543 _bfd_generic_bfd_print_private_bfd_data rather than casting 7544 bfd_true. 7545 7546Wed Nov 15 04:09:14 1995 Ken Raeburn <raeburn@cygnus.com> 7547 7548 * Makefile.in (.dep1): Fix stupid typo in last change. Remove any 7549 "DO NOT DELETE" lines or blank lines that mkdep writes on some 7550 systems. 7551 (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES, 7552 BFD64_BACKENDS_CFILES): New variables. 7553 (CFILES): Use them. 7554 7555Tue Nov 14 11:52:23 1995 Ian Lance Taylor <ian@cygnus.com> 7556 7557 * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0, 7558 not at the file position of the first section. 7559 * coffcode.h (coff_compute_section_file_positions): Avoid using 7560 unportable #elif. 7561 (coff_write_object_contents): When generating a PPC PE executable 7562 with no symbols, round up the file size to a COFF_PAGE_SIZE 7563 boundary. 7564 * cofflink.c (_bfd_coff_final_link): If there are no symbols, 7565 don't write out a string table. 7566 7567 * elf.c (bfd_section_from_shdr): When using a different section 7568 header, pass the new one to _bfd_elf_make_section_from_shdr. 7569 (elf_fake_sections): Don't set sh_info and sh_entsize fields. 7570 (elf_map_symbols): Add section VMA to symbol value when comparing 7571 against 0. 7572 (_bfd_elf_compute_section_file_positions): Only build symbol table 7573 if there are some symbols. Set file offset of symtab and strtab 7574 sections. 7575 (assign_file_positions_except_relocs): Remove dosyms parameter. 7576 Change all callers. Never set file offset of symtab and strtab 7577 sections. 7578 (_bfd_elf_copy_private_section_data): New function. 7579 (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define. 7580 (_bfd_elf_copy_private_symbol_data): New function. 7581 (swap_out_syms): Check for special mapping of st_shndx created by 7582 copy_private_symbol_data. 7583 * elfxx-target.h: Use new copy routines. 7584 * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare. 7585 (_bfd_elf_copy_private_section_data): Declare. 7586 7587 * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec. 7588 7589 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle 7590 C_NT_WEAK. 7591 7592 * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not 7593 _bfd_dummy_target, matching the recent change to archive 7594 recognition. 7595 7596Mon Nov 13 13:24:38 1995 Ian Lance Taylor <ian@cygnus.com> 7597 7598 * libbfd.c (bfd_get_file_window): Use casts to avoid doing 7599 arithmetic on PTR types. 7600 7601 * aout-target.h (MY(callback)): Set the lma of the sections. 7602 7603 * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined 7604 symbol into a reloc against the section. 7605 7606Mon Nov 13 07:31:35 1995 Kim Knuttila <krk@cygnus.com> 7607 7608 * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline 7609 glue for the relocs: IMGLUE and IFGLUE. 7610 (record_toc): new function - tracks toc contents 7611 (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc 7612 (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE 7613 (ppc_coff_rtype2howto): removed invalid IMGLUE hack 7614 (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack 7615 (ppc_record_toc_entry): Removed a debug define (duh) 7616 7617 * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata" 7618 (pe_print_idata): New function - formats the idata section data 7619 (pe_print_pdata): New function - formats the pdata section data 7620 (pe_print_private_bfd_data): calls to above 7621 7622Sun Nov 12 12:23:24 1995 Stan Shebs <shebs@andros.cygnus.com> 7623 7624 * Makefile.in (bfd_libs_here, etc): Provide empty definitions. 7625 * coff-rs6000.c (rs6000coff_vec): Add conditional defines 7626 TARGET_SYM and TARGET_NAME for vector and BFD name. 7627 * coff-pmac.c (pmac_xcoff_vec): Remove. 7628 (TARGET_SYM, TARGET_NAME): Define. 7629 * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the 7630 machine to 0, not all PowerMacs are 601s. 7631 7632Fri Nov 10 12:10:14 1995 Ian Lance Taylor <ian@cygnus.com> 7633 7634 * elfcode.h (elf_object_p): Read in any program headers. 7635 * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma 7636 based on the program headers, if any. 7637 (elf_fake_sections): Set sh_addr from the vma, not the lma. 7638 (map_program_segments): Set p_paddr of program headers based on 7639 the lma. 7640 7641Thu Nov 9 13:01:31 1995 Ian Lance Taylor <ian@cygnus.com> 7642 7643 * archive.c (bfd_generic_archive_p): Preserve tdata in case of 7644 failure. 7645 7646 * aoutx.h (NAME(aout,final_link)): Report a reasonable error when 7647 trying to do a relocateable link with a non-a.out object file. 7648 7649 * archive.c (bfd_generic_archive_p): Check the first object file 7650 in an archive even if target_defaulted is set. If the object file 7651 has the wrong xvec, reject it. 7652 7653 * aoutx.h (NAME(aout,set_section_contents)): If a section can not 7654 be represented, report the name via _bfd_error_handler. 7655 (translate_to_native_sym_flags): Likewise. 7656 * elf32-mips.c (mips_elf_final_link): Likewise. 7657 * oasys.c (oasys_write_sections): Likewise. 7658 7659 * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version 7660 which checks for STYP_OVRFLO sections. 7661 (coff_compute_section_file_positions): If RS6000COFF_C, handle 7662 reloc and lineno count overflows. 7663 (coff_write_object_contents): Call coff_count_linenumbers before 7664 coff_compute_section_file_positions. If RS6000COFF_C, handle 7665 reloc and lineno count overflows. 7666 * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and 7667 relocs before dealing with .pad sections. Count overflow section 7668 headers when handling .pad sections. 7669 7670 * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1 7671 if RS6000COFF_C. 7672 7673 * xcofflink.c (XCOFF_DESCRIPTOR): Define. 7674 (struct xcoff_link_hash_table): Add descriptor_section and 7675 special_sections fields. 7676 (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields. 7677 (xcoff_link_add_symbols): Set linkage section alignment. Create 7678 descriptor section. Check for magic symbol names (_text, etc.), 7679 and record them in special_sections if found. Set 7680 XCOFF_DESCRIPTOR flag for a function descriptor, and set its 7681 descriptor field to point back to the function code symbol. 7682 (xcoff_sweep): Always mark the special descriptor_section. 7683 (bfd_xcoff_export_symbol): Check whether the symbol might be a 7684 function descriptor, and mark it if it is. 7685 (bfd_xcoff_size_dynamic_sections): Add new special_sections 7686 parameter, and fill it in. Allocate space for the descriptor 7687 section. 7688 (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining 7689 global linkage code. If an undefined function descriptor is 7690 exported, arrange to define it. Warn about any other undefined 7691 exported symbol. 7692 (_bfd_xcoff_bfd_final_link): Write out the descriptor section. 7693 (xcoff_write_global_symbol): Create a function descriptor when 7694 necessary. 7695 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration. 7696 * bfd-in2.h: Rebuild. 7697 7698Thu Nov 9 08:40:23 1995 Kim Knuttila <krk@cygnus.com> 7699 7700 * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing 7701 (ppc_coff_link_hash_table): new types for hashing 7702 (ppc_coff_link_hash_newfunc): hash entry constructor 7703 (ppc_coff_link_hash_table_init): hash table initializer 7704 (ppc_coff_link_hash_table_create): hash table constructor 7705 (ppc_record_toc_entry): changed references to hash table 7706 (coff_ppc_relocate_section): changed references to hash table 7707 7708 * libcoff-in.h (coff_link_hash_entry): removed toc_offset 7709 * libcoff.h: Rebuild 7710 7711 * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init 7712 (coff_link_add_symbols): removed toc_offset init 7713 7714Thu Nov 9 04:00:38 1995 Ken Raeburn <raeburn@cygnus.com> 7715 7716 * Makefile.in (.dep1): Make sure the file mkdep is to write exists 7717 first. 7718 7719 * configure.in: Added new option --with[out]-mmap. Set USE_MMAP 7720 if it is given and mmep is available. 7721 * acconfig.h: Undef USE_MMAP. 7722 * configure, config.in: Regenerated. 7723 * aoutx.h: If USE_MMAP is not defined, do all symbol and string 7724 table handling the old way. 7725 (aout_get_external_symbols): Don't complain if last byte of string 7726 table is nonzero. 7727 * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h. 7728 (bfd_free_window) [! USE_MMAP]: Don't define. 7729 (bfd_get_file_window, 7730 _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort. 7731 7732Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu> 7733 7734 * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than 7735 0xffff0000. 7736 7737Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com> 7738 7739 * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be 7740 compatible with AMD generated COFF files. Try to support both AMD 7741 and GNU formats simultaneously. 7742 (coff_a29k_relocate_section): Likewise. 7743 7744 * libbfd.c (bfd_get_file_window): Change writable parameter from 7745 int to boolean; update all callers. Pass MAP_SHARED if not 7746 writable--it's required on Solaris. Cast fprintf argument to 7747 avoid warning. 7748 * bfd-in.h (bfd_get_file_window): Update declaration. 7749 * bfd-in2.h: Rebuild. 7750 * aoutx.h: Update calls to bfd_get_file_window. 7751 7752 * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC. 7753 Change all uses. 7754 (xcoff_swap_ldhdr_in): New static function. 7755 (xcoff_swap_ldsym_in): New static function. 7756 (xcoff_find_reloc): Handle the case of a single reloc correctly. 7757 (xcoff_link_add_symbols): If we just created a descriptor, pass it 7758 to _bfd_generic_link_add_one_symbol, to save a hash lookup. 7759 Handle XTY_ER/XMC_XO symbols correctly. 7760 (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols 7761 rather than normal symbol table. 7762 (bfd_xcoff_import_symbol): It's not an error if the symbol is 7763 already defined with the same absolute value. 7764 (xcoff_mark): When considering called symbols, check whether the 7765 descriptor is from a dynamic object, rather than the symbol 7766 itself. 7767 (xcoff_build_ldsyms): Likewise. 7768 7769 * libbfd.c (bfd_get_file_window): Change return type to boolean. 7770 Cast realloc and malloc return values. If malloc or realloc fail, 7771 set bfd_error_no_memory. 7772 * bfd-in.h (bfd_get_file_window): Change type to boolean. 7773 * bfd-in2.h: Rebuild. 7774 7775Tue Nov 7 11:53:48 1995 Kim Knuttila <krk@cygnus.com> 7776 7777 * coff-ppc.c (ppc_record_toc_entry): new function. 7778 (in_reloc_p): changed return value. 7779 (coff_ppc_relocate_section): much rework. 7780 (ppc_allocate_toc_section): new function. 7781 (ppc_process_before_allocation): new function. 7782 (ppc_coff_swap_sym_in_hook): new function. 7783 7784 * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset. 7785 (coff_link_add_symbols): initialize toc_offset. 7786 7787 * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook 7788 (coff_swap_aouthdr_out): Added more sections to the data 7789 dictionary for the pe file header. Also changed linker version 7790 number on the ppc side. 7791 (dir_names): small improvements to the dictionary printing. 7792 (pe_mkobject_hook): save the file level flags. 7793 7794 * libcoff-in.h (coff_link_hash_entry): added toc_offset field 7795 (pe_tdata): added real_flags field 7796 (coff_tdata): added local_toc_sym_map and access macro 7797 7798 * libcoff.h (coff_link_hash_entry): added toc_offset field 7799 (pe_tdata): added real_flags field 7800 (coff_tdata): added local_toc_sym_map and access macro 7801 7802 * coffcode.h (coff_set_alignment_hook): added hook for PE. 7803 (coff_mkobject): init for local_toc_sym_map 7804 (coff_write_object_contents): set the internal_a.magic to 7805 IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other 7806 ppc compilers use. 7807 7808Tue Nov 7 13:48:58 1995 Ian Lance Taylor <ian@cygnus.com> 7809 7810 * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs 7811 entries until both the line number address and the function name 7812 address are too large. 7813 7814 * configure.in: Call AC_CHECK_PROG to find and cache AR. 7815 * configure: Rebuilt. 7816 7817 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it 7818 is defined in the environment. 7819 7820Tue Nov 7 10:57:24 1995 Jeffrey A Law (law@cygnus.com) 7821 7822 * som.c (som_get_section_contents_in_window): Define to use 7823 generic version. 7824 7825Mon Nov 6 17:13:15 1995 Harry Dolan <dolan@ssd.intel.com> 7826 7827 * coff-i860.c: New file, based on coff-i386.c. 7828 * cpu-i860.c: New file, based on cpu-i386.c. 7829 * hosts/i860mach3.h: New file, based on hosts/i386mach3.h. 7830 * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New 7831 targets, using i860coff_vec. 7832 * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using 7833 trad-core.o and hosts/i860mach3.h. 7834 (i860coff_vec): Use coff-i860.o and cofflink.o. 7835 * configure: Rebuild. 7836 * Makefile.in: Rebuild dependencies. 7837 (ALL_MACHINES): Add cpu-i860.o. 7838 (BFD32_BACKENDS): Add coff-i860.o. 7839 (CFILES): Add cpu-i860.c and coff-i860.c. 7840 * targets.c (i860coff_vec): Declare. 7841 (bfd_target_vector): Add &i860coff_vec. 7842 * archures.c (bfd_i860_arch): Declare. 7843 (bfd_archures_list): Add &bfd_i860_arch. 7844 * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number. 7845 (coff_set_flags): Handle bfd_arch_i860. 7846 (coff_write_object_contents): Handle I860 a.out magic number. 7847 7848Mon Nov 6 14:34:07 1995 Ian Lance Taylor <ian@cygnus.com> 7849 7850 * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of 7851 the created .tc section to 2. 7852 (xcoff_mark): Don't keep a .loader reloc for a call to an 7853 undefined symbol when creating a shared library. 7854 (xcoff_build_ldsyms): When creating a shared library, generate 7855 global linkage code for a call to an undefined symbol. 7856 7857Sun Nov 5 21:44:13 1995 Ken Raeburn <raeburn@cygnus.com> 7858 7859 * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES, 7860 BFD32_BACKENDS, BFD64_BACKENDS. 7861 (.dep1): Put mkdep output in a separate file. 7862 Rebuilt dependencies. 7863 7864 * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return 7865 value. 7866 7867 Permit use of mmap when available: 7868 7869 * configure.in: Check for mmap, madvise, mprotect. 7870 * config.in, configure: Regenerated. 7871 7872 * libbfd.c (struct _bfd_window_internal): Define type. 7873 (bfd_init_window, bfd_free_window, bfd_get_file_window): New 7874 functions. 7875 (ok_to_map): New static variable for debugging. 7876 (_bfd_generic_get_section_contents_in_window): New function. 7877 * bfd-in.h (bfd_window_internal): Declare type. 7878 (bfd_window): Define type. 7879 (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare. 7880 * libbfd-in.h (_bfd_generic_get_section_contents_in_window): 7881 Declare. 7882 7883 * libaout.h (struct aoutdata): Add two window fields. 7884 (obj_aout_sym_window, obj_aout_string_window): New macros. 7885 * aoutx.h (some_aout_object_p): Initialize windows. 7886 (aout_get_external_symbols): Get symbol data and strings in 7887 windows instead of explicitly allocated buffers. 7888 (slurp_symbol_table): Free window instead of memory. 7889 (bfd_free_cached_info): Release windows instead of freeing storage 7890 directly. 7891 (aout_link_free_symbols): Ditto. 7892 7893 * targets.c (bfd_target): Add new field for 7894 get_section_contents_in_window. 7895 (BFD_JUMP_TABLE_GENERIC): Updated. 7896 * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c, 7897 coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c, 7898 libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new 7899 macros for get_section_contents_in_window field. 7900 7901Sat Nov 4 12:23:26 1995 Fred Fish <fnf@cygnus.com> 7902 7903 * core.c: Renamed to corefile.c 7904 * makefile.dos (OBJS): Change core.o to corefile.o 7905 * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c 7906 7907Fri Nov 3 15:54:59 1995 Ian Lance Taylor <ian@cygnus.com> 7908 7909 * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub 7910 to o. Clobber and restore the list of new csects around the call 7911 to _bfd_generic_link_add_one_symbol, in case it wants to report a 7912 linker error and the linker wants to read the symbol table. Reset 7913 the line number count of a real section even if it has no relocs. 7914 (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag. 7915 7916 * coffgen.c (_bfd_coff_read_string_table): Warn if the string size 7917 is too small. 7918 7919Thu Nov 2 23:16:39 1995 Ian Lance Taylor <ian@cygnus.com> 7920 7921 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about 7922 an undefined symbol in a shared link. 7923 7924 * linker.c (_bfd_generic_link_add_one_symbol): Correct type of 7925 oldtype from bfd_link_order_type to bfd_link_hash_type. From 7926 phdm@info.ucl.ac.be (Philippe De Muyter). 7927 7928Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de> 7929 7930 * coff-m88k.c (rtype2howto): New static function. 7931 (RTYPE2HOWTO): Use it rather than a macro definition. 7932 7933 * coffcode.h (coff_write_object_contents): set internal_a.magic 7934 to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS). 7935 7936 * configure.in: m68*-motorola-sysv* does not use ptrace-core.o; 7937 define TRAD_HEADER to new file hosts/delta68.h. 7938 m88*-motorola-sysv*, however, does use ptrace-core.o. 7939 * hosts/delta68.h: New file. 7940 7941 * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to 7942 bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc. 7943 7944Wed Nov 1 13:51:54 1995 Ken Raeburn <raeburn@cygnus.com> 7945 7946 * i386linux.c (MY(vec)): Declare before use. 7947 7948Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com> 7949 7950 * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents): 7951 Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases. 7952 7953 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the 7954 BFD is not of the right type. 7955 (bfd_elf_get_needed_list): Likewise. 7956 * i386linux.c (bfd_linux_size_dynamic_sections): Likewise. 7957 * sunos.c (bfd_sunos_get_needed_list): Likewise. 7958 * xcofflink.c (XCOFF_XVECP): Define. 7959 (bfd_xcoff_link_record_set): Don't do anything if the BFD is not 7960 of the right type. 7961 (bfd_xcoff_import_symbol): Likewise. 7962 (bfd_xcoff_export_symbol): Likewise. 7963 (bfd_xcoff_link_count_reloc): Likewise. 7964 (bfd_xcoff_record_link_assignment): Likewise. 7965 (bfd_xcoff_size_dynamic_sections): Likewise. 7966 7967 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol 7968 table index against the number of symbols for a base relative 7969 reloc. 7970 7971 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to 7972 static function. 7973 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set 7974 full_aouthdr flag here... 7975 (_bfd_xcoff_bfd_final_link): ...not here. 7976 7977Tue Oct 31 12:52:02 1995 Fred Fish <fnf@cygnus.com> 7978 7979 * libelf.h: Rename to elf-bfd.h to avoid conflict with 7980 systems that have a system <libelf.h>. 7981 * Makefile.in: Globally replace libelf.h with elf-bfd.h. 7982 * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c, 7983 elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c, 7984 elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c, 7985 elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c, 7986 elfxx-target.h: Include elf-bfd.h rather than libelf.h. 7987 * elfxx-target.h: Change libelf.h reference to elf-bfd.h. 7988 7989Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com> 7990 7991 * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If 7992 set, set BSF_WEAK in symbol. Change all callers. 7993 (ecoff_get_extr): Set weakext based on BSF_WEAK. 7994 (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to 7995 _bfd_generic_link_add_one_symbol. 7996 (ecoff_indirect_link_order): Check that the section tdata relocs 7997 are not NULL before using them. 7998 7999 * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and 8000 define TRAD_HEADER as hosts/alphalinux.h. 8001 * configure: Rebuild. 8002 * hosts/alphalinux.h: New file. 8003 * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma, 8004 not int. 8005 8006Tue Oct 31 12:34:11 1995 Ian Lance Taylor <ian@cygnus.com> 8007 8008 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and 8009 C_ECOMM storage classes. 8010 8011 * xcofflink.c (xcoff_mark_symbol): New static function, broken out 8012 of xcoff_mark. 8013 (xcoff_mark): Call xcoff_mark_symbol. 8014 (bfd_xcoff_export_symbol): Call xcoff_mark_symbol. 8015 (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than 8016 doing it by hand. 8017 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol. 8018 8019Mon Oct 30 14:53:48 1995 Ian Lance Taylor <ian@cygnus.com> 8020 8021 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos 8022 field. 8023 (xcoff_find_reloc): New static function. 8024 (xcoff_link_add_symbols): Use it. 8025 (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos. 8026 (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't 8027 relocate the value of C_DECL. 8028 8029 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT. 8030 8031Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com> 8032 8033 * cofflink.c (_bfd_coff_generic_relocate_section): Make 8034 callback decide what goes in .relocs. 8035 * pe[i]-i386.c (TARGET_UNDERSCORE): Define. 8036 * peicode.h (pe_mkobject_hook): Only copy aouthdr if 8037 there is one. 8038 8039Sat Oct 28 01:51:02 1995 Ian Lance Taylor <ian@cygnus.com> 8040 8041 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the 8042 absolute section. 8043 8044Fri Oct 27 18:14:39 1995 Ian Lance Taylor <ian@cygnus.com> 8045 8046 * xcofflink.c: More improvements, mostly to fix handling of 8047 constructors and a few other special cases. 8048 * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to 8049 zero, reverting yesterday's change. 8050 * bfd-in.h (bfd_xcoff_link_record_set): Declare. 8051 (bfd_xcoff_link_count_reloc): Declare. 8052 (bfd_xcoff_record_link_assignment): Declare. 8053 * bfd-in2.h: Rebuild. 8054 8055Fri Oct 27 14:42:15 1995 Niklas Hallqvist <niklas@appli.se> 8056 8057 * PORTING, aout-arm.c, aout-encap.c, aout-target.h, 8058 aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c 8059 i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c, 8060 i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c, 8061 ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c: 8062 Change PAGE_SIZE to TARGET_PAGE_SIZE. 8063 8064 * m68knetbsd.c: Ditto as well as add support for the m68k4k object 8065 format. 8066 8067 * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text 8068 segments includes the a.out header. See to that the magic number 8069 *always* is big-endian. 8070 8071 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and 8072 m68k4k NetBSD configurations. 8073 8074 * configure.in, configure: Separate i386 & mips NetBSD 8075 configurations from other BSD ones. Don't assume DEC is the only 8076 thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd* 8077 configurations. Add support for m68k4k NetBSD object format. 8078 8079 * libaout.h: Added M_68K4K_NETBSD magic. 8080 8081 * m68k4knetbsd.c: New file. 8082 8083 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P. 8084 8085 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to 8086 <machine/endian.h>. 8087 8088 * hosts/mipsnbsd.h: New file. 8089 8090Thu Oct 26 14:16:47 1995 Ian Lance Taylor <ian@cygnus.com> 8091 8092 * xcofflink.c: Numerous changes to get closer to a working XCOFF 8093 linker. 8094 * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr, 8095 toc_section, and entry_section fields. 8096 (struct xcoff_section_tdata): Remove ldrel_count field. 8097 * libcoff.h: Rebuild. 8098 * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data 8099 fields. 8100 (coff_compute_section_file_positions): If RS6000COFF_C, generate 8101 full a.out header if full_aouthdr is set in xcoff_data. 8102 (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc 8103 based on sections stored in xcoff_data. 8104 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data 8105 fields. 8106 (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR. 8107 (rs6000coff_vec): Set symbol_leading_char to '.'. 8108 * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the 8109 value stored in ret rather than returning a pointer value. 8110 8111Wed Oct 25 23:10:39 1995 Michael Meissner <meissner@tiktok.cygnus.com> 8112 8113 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC 8114 format for now. 8115 8116Wed Oct 25 16:19:27 1995 Jeffrey A Law (law@cygnus.com) 8117 8118 * som.c (som_slurp_string_table): Allocate the strings with malloc 8119 since they're free'd by free_cached_info. 8120 (som_slurp_symbol_table): Similarly for the symbol table. 8121 8122Wed Oct 25 14:59:22 1995 Per Bothner <bothner@kalessin.cygnus.com> 8123 8124 * Makefile.in (diststuff): Don't make headers. 8125 8126Wed Oct 25 11:32:54 1995 Ian Lance Taylor <ian@cygnus.com> 8127 8128 * Makefile.in: Rebuild dependencies. 8129 8130 * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if 8131 output_bfd is not SunOS. 8132 (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of 8133 non-SunOS input files. 8134 8135 * xcofflink.c: Extensive changes to support linking shared objects 8136 and generating a .loader section. 8137 * libcoff-in.h (struct xcoff_tdata): Add import_file_id field. 8138 (struct xcoff_section_tdata): Add lineno_count, first_symndx, 8139 last_symndx, and ldrel_count fields. 8140 * libcoff.h: Rebuild. 8141 * coff-rs6000.c (xcoff_howto_table): Correct reloc names. 8142 * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD 8143 is set. 8144 * bfd-in.h (bfd_xcoff_import_symbol): Declare. 8145 (bfd_xcoff_export_symbol): Declare. 8146 (bfd_xcoff_size_dynamic_sections): Declare. 8147 * bfd-in2.h: Rebuild. 8148 8149Tue Oct 24 17:44:20 1995 Stan Shebs <shebs@andros.cygnus.com> 8150 8151 * configure.in: Add xcofflink.o to pmac_xcoff_vec. 8152 * configure: Rebuild. 8153 * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos. 8154 * coff-pmac.c: Include coff-rs6000.c instead of duplicating its 8155 contents. 8156 (pmac_xcoff_vec): Update to use new xcoff support. 8157 * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static. 8158 (xcoff_write_armap): Declare buf as unsigned char. 8159 * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR. 8160 8161 * mpw-make.sed: Generalize subdir_do edit. 8162 8163Tue Oct 24 10:25:01 1995 Jeffrey A Law (law@cygnus.com) 8164 8165 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos 8166 correctly. Don't initialize asect->vma. 8167 8168Fri Oct 20 13:23:48 1995 Ken Raeburn <raeburn@cygnus.com> 8169 8170 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use 8171 something a little less than the page size. 8172 8173Thu Oct 19 13:06:09 1995 Ian Lance Taylor <ian@cygnus.com> 8174 8175 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp. 8176 8177Wed Oct 18 16:20:08 1995 steve chamberlain <sac@slash.cygnus.com> 8178 8179 * coff-i386.c (coff_i386_reloc_type_lookup): New. 8180 * coffcode.h (coff_write_object_contents): If .bss is before 8181 .data us that as data_start. 8182 * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc 8183 calc correct. 8184 * peicode.h (add_data_entry): Use _cooked_size of data directory. 8185 (coff_swap_outhdr_out): Hardwire in version number. 8186 8187Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com> 8188 8189 * sunos.c (sunos_add_dynamic_symbols): Rename local variables 8190 major and minor to *_vno, since the former are also macros in 8191 SunOS header files. Cast result of bfd_alloc to appropriate 8192 type. 8193 8194 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value 8195 before assigning to sec_data. 8196 8197Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com> 8198 8199 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is 8200 now relative to the section, not absolute. 8201 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to 8202 get the file name when there is a N_SO directory name. When 8203 handling stabs, remember that section->vma was added to the 8204 offset. 8205 8206Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com> 8207 8208 * sunos.c (struct sunos_link_hash_table): Add needed field. 8209 (sunos_link_hash_table_create): Call bfd_release, not free. 8210 (sunos_link_hash_table_create): Initialize needed field. 8211 (sunos_add_dynamic_symbols): Record needed objects. 8212 (bfd_sunos_get_needed_list): New function. 8213 * bfd-in.h (bfd_sunos_get_needed_list): Declare. 8214 * bfd-in2.h: Rebuild. 8215 8216Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com> 8217 8218 * libcoff-in.h (pe_data_type.in_reloc_p): New. 8219 8220Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com> 8221 8222 * bfd-in.h (struct bfd_link_needed_list): Rename from 8223 bfd_elf_link_needed_list. 8224 * bfd-in2.h: Rebuild. 8225 * elf.c, elflink.h, libelf.h: Corresponding changes. 8226 8227 Add start at AIX linker support; no shared libraries yet. 8228 * xcofflink.c: New file. 8229 * configure.in (rs600coff_vec): Use xcofflink.o. 8230 * configure: Rebuild. 8231 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices 8232 fields. 8233 (struct xcoff_section_tdata): Define. 8234 (xcoff_section_data): Define macro. 8235 (_bfd_xcoff_bfd_link_hash_table_create): Declare. 8236 (_bfd_xcoff_bfd_link_add_symbols): Declare. 8237 (_bfd_xcoff_bfd_final_link): Declare. 8238 (_bfd_ppc_xcoff_relocate_section): Declare. 8239 * libcoff.h: Rebuild. 8240 * coff-rs6000.c: Clean up a bit. 8241 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize 8242 cputype, csects, and debug_indices. 8243 (xcoff_copy_private_bfd_data): Copy cputype. 8244 (xcoff_howto_table): Rename from rs6000coff_howto_table. 8245 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto. 8246 (xcoff_reloc_type_lookup): Rename from 8247 rs6000coff_reloc_type_lookup. 8248 (coff_relocate_section): Define. 8249 (_bfd_xcoff_sizeof_headers): Define. 8250 (_bfd_xcoff_bfd_get_relocated_section_contents): Define. 8251 (_bfd_xcoff_bfd_relax_section): Define. 8252 (_bfd_xcoff_bfd_link_split_section): Define. 8253 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not 8254 coff. 8255 * coffcode.h (coff_compute_section_file_positions): If AIX, 8256 increment sofar by SMALL_AOUTSZ if not executable. 8257 (coff_write_object_contents): If AIX, always output an a.out 8258 header; if not executable, header size of SMALL_AOUTSZ. 8259 * hash.c (struct bfd_strtab_hash): Add xcoff field. 8260 (_bfd_stringtab_init): Initialize xcoff field. 8261 (_bfd_xcoff_stringtab_init): New function. 8262 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length. 8263 (_bfd_stringtab_emit): In XCOFF mode, write out length. 8264 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare. 8265 * libbfd.h: Rebuild. 8266 * Makefile.in: Rebuild dependencies. 8267 (BFD32_BACKENDS): Add xcofflink.o. 8268 (CFILES): Add xcofflink.c. 8269 8270 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not 8271 SEC_NO_FLAGS, for .acommon section. From Peter Schauer 8272 <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>. 8273 8274Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com> 8275 8276 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c. 8277 8278Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com> 8279 8280 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment. 8281 * config.in: Regenerated. 8282 8283 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048. 8284 (_bfd_chunksize): New variable. 8285 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it 8286 for obstack chunk size. 8287 * configure.in: Check for getpagesize. 8288 * configure: Regenerated. 8289 8290 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 8291 8292 * trad-core.c (rawptr): Make it a local variable of 8293 ptrace_unix_core_file_p. 8294 8295Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com> 8296 8297 * coff-arm.c (in_reloc_p): New. 8298 * coff-i386.c (in_reloc_p): New. 8299 * coffcode.h: Allways include peicode.h if COFF_WITH_PE. 8300 (coff_write_object_contents): Only set has_reloc_section 8301 if PE_IMAGE. 8302 * cofflink.c (_bfd_coff_generic_relocate_section): Call 8303 in_reloc_p to decide if reloc should be emitted. 8304 * libcoff.h (pe_data_type.in_reloc_p): New. 8305 * peicode.h (pe_mkobject): Initialize in_reloc_p. 8306 8307Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com> 8308 8309 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c. 8310 (_bfd_coff_read_internal_relocs): Likewise. 8311 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c. 8312 (_bfd_coff_read_internal_relocs): Likewise. 8313 8314 * elflink.h (elf_link_add_object_symbols): Correct conditions 8315 under which type and size change warnings are issued. 8316 8317Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com> 8318 8319 * coffgen.c (coff_count_linenumbers): Don't count line numbers for 8320 a symbol which is not in a real section. 8321 (coff_write_native_symbol): Corresponding change. 8322 8323 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from 8324 coff_link_hash_newfunc and make non-static. 8325 (_bfd_coff_link_hash_table_init): New function, broken out of 8326 _bfd_coff_link_hash_table_create. 8327 (_bfd_coff_link_hash_table_create): Use it. 8328 (process_embedded_commands): Make static. 8329 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare. 8330 (_bfd_coff_link_hash_table_init): Declare. 8331 * libcoff.h: Rebuild. 8332 8333 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype 8334 field in XCOFF tdata. 8335 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef 8336 U802ROMAGIC, for clarity. Try to set arch and machine correctly 8337 based on cputype stored in a.out header, or in n_type of initial 8338 .file symbol. 8339 (coff_write_object_contents): Set cputype correctly in a.out 8340 header. 8341 (coff_slurp_symbol_table): Add casts to file_ptr to avoid 8342 warnings. 8343 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field. 8344 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear 8345 old resv1 field. 8346 * libcoff-in.h (struct xcoff_tdata): Add cputype field. 8347 * libcoff.h: Rebuild. 8348 8349 * cpu-rs6000.c (rs6000_compatible): New static function. 8350 (bfd_rs6000_arch): Use it. 8351 * cpu-powerpc.c (powerpc_compatible): New static function. 8352 (arch_info_struct): Define various flavours of PowerPC. 8353 (bfd_powerpc_arch): Use powerpc_compatible. Point at 8354 arch_info_struct. 8355 8356Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com> 8357 8358 * Makefile.in (FLAGS_TO_PASS): Remove BISON. 8359 8360Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com> 8361 8362 * elflink.h (elf_link_add_object_symbols): Don't warn about 8363 changing the size or type if the old definition was weak. 8364 8365Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com> 8366 8367 * coffcode.h (combined_entry_type): Add fix_line field. 8368 (coff_slurp_line_table): Warn if we try to set the lineno field of 8369 a symbol twice. 8370 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and 8371 C_EINCL by setting fix_line. Fix C_BSTAT symbol value. 8372 * coffgen.c (coff_mangle_symbols): Handle fix_line. 8373 (coff_write_symbol): Only use N_DEBUG if the symbol is in the 8374 absolute section. 8375 (coff_print_symbol): Print fix_value symbols in a useful fashion. 8376 * libcoff.h: Rebuild. 8377 8378 * libcoff-in.h (struct xcoff_tdata): Define. 8379 (xcoff_data): Define. 8380 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union. 8381 * bfd-in2.h, libcoff.h: Rebuild. 8382 * coff-rs6000.c (xcoff_mkobject): New static function. 8383 (coff_mkobject): Define. 8384 (xcoff_copy_private_bfd_data): New static function. 8385 (coff_bfd_copy_private_bfd_data): Define. 8386 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from 8387 signed to bitfield. 8388 (rs6000coff_vec): Add DYNAMIC to object_flags. 8389 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and 8390 .loader sections specially. 8391 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data 8392 section alignment from the XCOFF tdata information. 8393 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on 8394 F_SHROBJ, and copy the extra a.out header information into the 8395 XCOFF tdata structure. 8396 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ, 8397 F_DYNLOAD and the extra a.out header information. 8398 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or 8399 C_HIDEXT symbol with attached csect information. 8400 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap 8401 in the o_maxdata field. 8402 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields. 8403 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the 8404 end if BSF_NOT_AT_END is set. 8405 8406 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to 8407 _bfd_read_ar_hdr_fn. 8408 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly. 8409 * bfd-in2.h, libbfd.h: Rebuild. 8410 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr 8411 return value. 8412 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise. 8413 (bfd_slurp_bsd_armap_f2): Likewise. 8414 (_bfd_slurp_extended_name_table): Likewise. 8415 8416Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com> 8417 8418 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 8419 8420 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS 8421 when the symbol table is empty. 8422 8423 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve 8424 space for section symbols, since we don't output them either. 8425 (elf_m68k_adjust_dynindx): Removed. 8426 8427 * ptrace-core.c (rawptr): Make it a local variable of 8428 ptrace_unix_core_file_p. 8429 8430Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com> 8431 8432 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not 8433 NULL. 8434 8435 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and 8436 Mac object file formats. 8437 8438Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com> 8439 8440 * coffgen.c (coff_fix_symbol_name): Don't try to set up file 8441 auxent if there isn't one. 8442 (coff_write_symbols): If there is no file auxent, use SYMNMLEN 8443 rather than FILNMLEN as the maximum name length. 8444 8445 * coffcode.h (bfd_coff_backend_data): Add new field 8446 _bfd_coff_print_aux. 8447 (bfd_coff_print_aux): New static function. 8448 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the 8449 scnlen field of an XTY_LD csect aux entry. 8450 (coff_print_aux): New static function. 8451 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done 8452 in coff_pointerize_aux_hook. 8453 (bfd_coff_std_swap_table): Initialize new field. 8454 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux. 8455 * libcoff.h: Rebuild. 8456 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field. 8457 * coff-mips.c (mips_ecoff_backend_data): Likewise. 8458 8459 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG 8460 if there are symbols, for native AIX ld compatibility. 8461 8462 * coffcode.h (bfd_coff_backend_data): Add new field 8463 _bfd_coff_pointerize_aux_hook. 8464 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C 8465 or I960, and as 0 otherwise. 8466 (bfd_coff_std_swap_table): Initialize new field. 8467 * libcoff.h: Rebuild. 8468 * coffgen.c (coff_pointerize_aux): Change parameters to take 8469 symbol pointer instead of type and class, and to take aux index. 8470 Call _bfd_coff_pointerize_aux_hook if it is defined. 8471 (coff_get_normalized_symtab): Always call coff_pointerize_aux. 8472 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields. 8473 * coff-mips.c (mips_ecoff_backend_data): Likewise. 8474 8475 * coff-rs6000.c: Add full support for AIX archives. Rewrite old 8476 read-only/host-only support. 8477 8478 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be 8479 BSF_LOCAL. 8480 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if 8481 RS6000COFF_C. 8482 8483 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify 8484 BFD_JUMP_TABLE_ARCHIVE accordingly. 8485 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare. 8486 (_bfd_compute_and_write_armap): Declare. 8487 (_bfd_generic_read_ar_hdr): Declare. 8488 (_bfd_read_ar_hdr): Define. 8489 (_bfd_noarchive_read_ar_hdr): Define. 8490 (_bfd_archive_bsd_read_ar_hdr): Define. 8491 (_bfd_archive_coff_read_ar_hdr): Define. 8492 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call 8493 _bfd_read_ar_hdr instead. 8494 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr. 8495 (_bfd_compute_and_write_armap): Rename from 8496 compute_and_write_armap. Make non-static. Change all callers. 8497 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather 8498 than _bfd_snarf_ar_hdr. 8499 * aout-target.h (MY_read_ar_hdr): Define if not defined. 8500 * ieee.c (ieee_read_ar_hdr): Define. 8501 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define. 8502 * oasys.c (oasys_read_ar_hdr): Define. 8503 * som.c (som_read_ar_hdr): Define. 8504 * bfd-in2.h, libbfd.h: Rebuild. 8505 8506Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com> 8507 8508 * peicode.c (coff_swap_filehdr_in): If symptr is 8509 zero, there aren't any symbols, even if nsyms is set. 8510 8511Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com> 8512 8513 * libecoff.h (struct ecoff_backend_data): Add adjust_headers 8514 field. 8515 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha 8516 sections, and set styp correctly for them: .got, .hash, .dynamic, 8517 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment. 8518 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section 8519 types. 8520 (ecoff_sort_hdrs): New static function. 8521 (ecoff_compute_section_file_positions): Return boolean, not void. 8522 Sort the sections by VMA before looking through them. Put the 8523 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC 8524 section on an appropriate boundary within the page. 8525 (ecoff_compute_reloc_file_positions): Check return value of 8526 ecoff_compute_section_file_positions. 8527 (_bfd_ecoff_set_section_contents): Likewise. 8528 (_bfd_ecoff_write_object_contents): Check for various Alpha 8529 section types when incrementing text_size and data_size. Call 8530 adjust_headers backend function if it exists. 8531 * coff-alpha.c (alpha_adjust_headers): New static function. 8532 (alpha_ecoff_backend_data): Initialize adjust_headers field. 8533 * coff-mips.c (mips_ecoff_backend_data): Likewise. 8534 8535 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6. 8536 8537Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com) 8538 8539 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead 8540 of ALTERNATE_AIX_CORE_FORMAT. 8541 * configure.in (aix4): No longer need CORE_FLAGS. 8542 * configure: Updated. 8543 8544Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com> 8545 8546 NS32k changes from Ian Dall: 8547 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New 8548 macros. 8549 (aout_link_input_section_std, aout_link_input_section_ext, 8550 aout_link_reloc_link_order): Call them instead of _bfd_* 8551 versions. 8552 * aout-target.h (MY_exec_header_not_counted): New macro, defaults 8553 to zero. 8554 (backend_data): Use it instead of hardcoded zero. 8555 8556 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro. 8557 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi. 8558 8559 * ns32knetbsd.c: Include bfd.h. 8560 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros. 8561 (MY_bfd_reloc_type_lookup): Declare function too. 8562 * pc532-mach.c (set_sizes): Don't declare. 8563 (MY_text_includes_header, MY_exec_header_not_counted): Define. 8564 (backend_data, MY_backend_data): Don't define. 8565 8566 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and 8567 ns32k-*-lites* like ns32k-*-netbsd*. 8568 8569 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to 8570 compile on lites. 8571 8572Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com> 8573 8574 * coffcode.h (coff_write_object_contents): Restore setting 8575 f_timdat to 0, deleted on August 22. 8576 8577Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com> 8578 8579 * coffcode.h (coff_bfd_copy_private_symbol_data, 8580 coff_bfd_copy_private_section_data, 8581 coff_bfd_copy_private_bfd_data): ifdef to allow overrides. 8582 * peicode.h (coff_bfd_copy_private_bfd_data): New 8583 (pe_bfd_copy_private_bfd_data): New. 8584 (coff_swap_scnhdr_in): Swap bss size into the right place. 8585 (pe_print_private_bfd_data): Add some newlines. 8586 8587Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com) 8588 8589 * som.c (setup_sections): Don't die if a space has no subspaces. 8590 8591Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com> 8592 8593 * elflink.h (elf_link_add_object_symbols): Don't let a weak 8594 dynamic symbol override a common symbol. Don't change the size or 8595 type if they have been set and the new symbol is not a definition. 8596 Warn if the size or type changes. 8597 8598Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com) 8599 8600 * som.c (som_begin_writing): Don't write the symbol table or 8601 symbol strings. 8602 (som_finish_writing): Write them here. Place them after the 8603 subspace data, but before the relocs. 8604 8605Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com> 8606 8607 * sunos.c (sunos_add_one_symbol): Just pass false, not 8608 info->shared_library, to sunos_create_dynamic_sections. 8609 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text 8610 section. 8611 (sunos_check_dynamic_reloc): Remove .text section assertion. 8612 8613Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com> 8614 8615 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*. 8616 * configure, configure.in: Add pmac_xcoff_vec case. 8617 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o. 8618 * coff-pmac.c: New file, PowerMac XCOFF support. 8619 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case. 8620 * targets.c (pmac_xcoff_vec): Declare. 8621 8622 * mpw-config.in: Various changes to be compatible with the 8623 autoconf-based configury. 8624 * mpw-make.sed: New file, sed commands to translate Unix 8625 makefile into MPW syntax. 8626 * mpw-make.in: Remove. 8627 * hosts/mpw.h: Remove. 8628 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines 8629 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED. 8630 8631Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com> 8632 8633 * binary.c (binary_get_symtab): Return an empty string on error. 8634 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB. 8635 8636Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie> 8637 8638 * coff-ppc.c: Reformatted according to gnu conventions 8639 Removed irrelevant "if 0" code 8640 8641Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com> 8642 8643 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak 8644 symbols rather than as indirect symbols. 8645 (MY(slurp_symbol_table)): Don't do anything special about 8646 secondary symbols. 8647 8648 * coffcode.h (coff_new_section_hook): Make sure that the alignment 8649 of .ctors and .dtors sections is no larger than 2. 8650 8651 * sunos.c (sunos_add_one_symbol): Don't change 8652 bfd_link_hash_common to bfd_link_hash_new, since it may be on the 8653 undef list. 8654 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the 8655 dynamic symbols when creating a shared library. 8656 (sunos_scan_ext_relocs): Handle relocs correctly when creating a 8657 shared library. 8658 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as 8659 written even if it is not defined in a regular object. 8660 (sunos_write_dynamic_symbol): Use plt_offset for the address of 8661 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT 8662 rather than the constant 22. 8663 (sunos_check_dynamic_reloc): Handle creating a shared library. 8664 (sunos_finish_dynamic_link): Set the first entry in the GOT to 8665 zero when creating a shared library. 8666 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC, 8667 write it out at the start of the symbol table. 8668 8669 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o. 8670 8671Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com> 8672 8673 * config.bfd: Add arm-*-coff. 8674 * configure.in, configure: Add armcoff_{little,big}_vec. 8675 * targets.c (armcoff_{little,big}_vec): Declare. 8676 (bfd_target_vector): Add armcoff_{little,big}_vec. 8677 * coff-arm.c (armcoff_{little,big}_vec): Always define. 8678 8679Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com> 8680 8681 * targets.c (bfd_find_target): Remove debugging code. 8682 8683Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie> 8684 8685 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE 8686 support on powerpc. 8687 * Makefile.in: added *-ppc files 8688 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to 8689 allow pe based .o's to be shared with other tools on ppc/NT 8690 * config.bfd: added powerpc[le]-[pe|winnt] config support 8691 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec 8692 * peicode.h: Added more section flags for PE on ppc 8693 Added coff_swap_filehdr_out to allow peicode.h to be 8694 used for non-image PE files on ppc. 8695 Check for image, or not, before copying pe_opthdr 8696 * targets.c: Added new bfd's 8697 * targets.c: Removed two inactive bfds that shouldn't have made it this 8698 far. 8699 8700Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com> 8701 8702 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use 8703 explicit values to initialize all relocs. Change all users. 8704 (ppc_elf_brtaken_inner): New function to handle branch predicition 8705 relocs. 8706 (ppc_elf_brtaken_reloc): Ditto. 8707 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported 8708 relocs use ppc_elf_unsupported_reloc. 8709 (ppc_elf_merge_private_bfd_data): Keep track of whether an error 8710 needs to be reported. 8711 (ppc_elf_relocate_section): Support branch prediction relocs. 8712 8713Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com> 8714 8715 * bfd.c (bfd_assert): Remove \n from string passed to 8716 _bfd_error_handler. 8717 8718 * coff-i386.c: (TWO_DATA_SECS): Don't define. 8719 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook. 8720 (bfd_coff_make_section_hook): Don't define. 8721 (coff_make_section_hook): Remove. 8722 (sec_to_styp_flags): Remove TWO_DATA_SECS case. 8723 (styp_to_sec_flags): Likewise. 8724 (coff_write_object_contents): Likewise. 8725 (bfd_coff_std_swap_table): Don't initialize make_section_hook 8726 field. 8727 * libcoff.h: Rebuild. 8728 * coffgen.c (make_a_section_from_file): Just call 8729 bfd_make_section_anyway, not bfd_make_section or 8730 bfd_coff_make_section_hook. 8731 * ecoff.c (_bfd_ecoff_make_section_hook): Remove. 8732 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare. 8733 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize 8734 make_section_hook field. 8735 * coff-mips.c (mips_ecoff_backend_data): Likewise. 8736 8737 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff 8738 pointers into value field for warning and indirect symbols; just 8739 leave the value field alone. 8740 * linker.c (generic_link_add_symbol_list): Use next symbol for 8741 warning and indirect symbols, rather than looking in symbol value. 8742 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr 8743 parameter. Change all callers. Remove support for indirect 8744 symbols; it didn't work anyhow. 8745 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable. 8746 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT. 8747 * bfd-in2.h: Rebuild. 8748 8749Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com> 8750 8751 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs, 8752 go back to telling the tools this reloc operates on 32 bits. 8753 8754Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com> 8755 8756 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler 8757 rather than a direct fprintf. 8758 * archive.c (_bfd_write_archive_contents): Likewise. 8759 * coffcode.h (coff_slurp_symbol_table): Likewise. 8760 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise. 8761 (ppc_elf_unsupported_reloc): Likewise. 8762 (ppc_elf_relocate_section): Likewise. 8763 * i386linux.c (linux_tally_symbols): Likewise. 8764 (linux_finish_dynamic_link): Likewise. 8765 * osf-core.c (osf_core_core_file_p): Likewise. 8766 * rs6000-core.c (rs6000coff_get_section_contents): Likewise. 8767 * som.c (som_sizeof_headers): Likewise. 8768 * srec.c (srec_bad_byte): Likewise. 8769 * bfd.c (bfd_assert): Likewise. Also change file to be const. 8770 * libbfd-in.h (bfd_assert): Declare first parameter const. 8771 * libbfd.h: Rebuild. 8772 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning 8773 bfd_reloc_overflow is enough. 8774 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort. 8775 * coff-h8500.c (rtype2howto): Likewise. 8776 * coff-z8k.c (rtype2howto): Likewise. 8777 * coffcode.h (dummy_reloc16_extra_cases): Likewise. 8778 * elf.c (_bfd_elf_get_lineno): Likewise. 8779 (_bfd_elf_no_info_to_howto): Likewise. 8780 (_bfd_elf_no_info_to_howto_rel): Likewise. 8781 * hp300hpux.c (convert_sym_type): Likewise. 8782 (MY(swap_std_reloc_in)): Likewise. 8783 * elf.c (bfd_section_from_shdr): Remove #if 0 sections. 8784 8785 * libaout.h (struct aoutdata): Add line_buf field. 8786 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer 8787 and filename_buffer. Instead, use a malloc buffer stored in the 8788 new line_buf field. Remove length restrictions. 8789 8790 * coffgen.c (string_size): Remove static variable. 8791 (debug_string_size, debug_string_section): Likewise. 8792 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p, 8793 and debug_string_size_p parameters. Use them instead of the 8794 global variables. Change all callers. 8795 (coff_write_symbol): Likewise. 8796 (coff_write_alien_symbol, coff_write_native_symbol): Likewise. 8797 (coff_write_symbols): Add local variables to replace removed 8798 global variables. 8799 8800 * libcoff-in.h (struct coff_section_tdata): Add offset, i, 8801 function, and line_base fields. 8802 * libcoff.h: Rebuild. 8803 * coffgen.c (coff_find_nearest_line): Use section tdata to cache 8804 information, rather than using static variables. 8805 8806 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC 8807 file. From Peter DeWolf <pld@amt.tay1.dec.com>. 8808 8809 * init.c (initialized): Remove static variable. 8810 (bfd_init): Don't bother setting initialized. 8811 (bfd_check_init): Remove. 8812 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init. 8813 * libbfd.h: Rebuild. 8814 8815Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8816 8817 * rs6000-core.c (rs6000coff_core_p): Don't check the core file 8818 size for full core dumps. Copy core file header to private data. 8819 (rs6000coff_core_file_failing_command, 8820 rs6000coff_core_file_failing_signal): New functions to extract 8821 the file name and terminating signal from the core file. 8822 * coff-rs6000.c: Use them. 8823 8824Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com> 8825 8826 Change arch info to be const, initialized at compile time. 8827 * archures.c: Reindent many functions. Change CONST to const. 8828 (bfd_arch_info_type): Make arch_name const. Remove disassemble; 8829 nothing set it anyhow. Make next const. 8830 (bfd_arch_info_list): Remove. 8831 (bfd_archures_list): Rename from archures_init_table. Change from 8832 a table of function pointers to a table of bfd_arch_info_type 8833 structure addresses. 8834 (bfd_scan_arch): Rewrite accordingly. Return a const pointer. 8835 (bfd_lookup_arch): Likewise. 8836 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a 8837 const pointer. 8838 (bfd_default_arch_struct): Make const. 8839 (bfd_arch_init, bfd_arch_linkin): Remove. 8840 (bfd_get_arch_info): Return a const pointer. 8841 * init.c (bfd_init): Don't call bfd_arch_init. 8842 * bfd.c (struct _bfd): Make arch_info const. 8843 * bfd-in2.h: Rebuild. 8844 * libbfd.h: Rebuild. 8845 * configure.in: Put & before everything in $selarchs. 8846 * configure: Rebuild. 8847 * cpu-*.c: Change bfd_*_arch from a function which calls 8848 bfd_arch_linkin to a const structure. 8849 * ieee.c (ieee_object_p): Make arch const. 8850 8851Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com> 8852 8853 * reloc.c (bfd_reloc_code_type): Add relocations to support all of 8854 PowerPC V.4. 8855 * bfd-in2.h: Regenerate. 8856 * libbfd.h: Regenerate. 8857 8858 * elf32-ppc.c (reloc_type): Update names to match current draft. 8859 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC 8860 relative. Update names to current V.4 draft. 8861 (ppc_elf_reloc_type_lookup): Add support for more relocations. 8862 (ppc_elf_relocate_section): Rename relocations to match draft. 8863 8864Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com> 8865 8866 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules 8867 compiled with -mrelocatable-lib to be linked with either normal 8868 modules or -mrelocatable modules. 8869 8870Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com> 8871 8872 * coffcode.h (coff_write_object_contents): Clear the vstamp field 8873 in the a.out header. 8874 8875 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for 8876 a reloc against a local symbol, even if it's not a section. 8877 8878Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com> 8879 8880 * targets.c (bfd_target): Remove unused align_power_min field. 8881 * bfd-in2.h: Rebuild. 8882 * All backends: Remove initialization of align_power_min. 8883 8884Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com> 8885 8886 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right. 8887 8888Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no> 8889 8890 * config.bfd (mips-dec-netbsd*): New target. 8891 * configure.host (mips-dec-netbsd*): New host. 8892 * configure.in (mips-dec-netbsd*): New native. 8893 * configure: Rebuild. 8894 8895Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com> 8896 8897 Make the COFF backend linker merge common types: 8898 * cofflink.c (struct coff_debug_merge_element): Define. 8899 (struct coff_debug_merge_type): Define. 8900 (struct coff_debug_merge_hash_entry): Define. 8901 (struct coff_debug_merge_hash_table): Define. 8902 (coff_debug_merge_hash_table_init): Define. 8903 (coff_debug_merge_hash_table_free): Define. 8904 (coff_debug_merge_hash_lookup): Define. 8905 (struct coff_final_link_info): Add debug_merge field. 8906 (coff_debug_merge_hash_newfunc): New static function. 8907 (_bfd_coff_final_link): Allocate and free debug_merge table. 8908 (coff_link_input_bfd): Merge identical enum, struct and union 8909 types. 8910 8911Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com> 8912 8913 Convert i960 COFF to use COFF backend linker. 8914 * coff-i960.c (coff_i960_relocate): Use a coff_section_data 8915 structure to store the symbol being used. 8916 (coff_i960_start_final_link): New static function. 8917 (coff_i960_relocate_section): New static function. 8918 (coff_i960_adjust_symndx): New static function. 8919 (coff_start_final_link): Define. 8920 (coff_relocate_section): Define. 8921 (coff_adjust_symndx): Define. 8922 * coffcode.h (bfd_coff_backend_data): Add new callback function 8923 _bfd_coff_start_final_link. 8924 (bfd_coff_start_final_link): Define. 8925 (coff_start_final_link): Define if not defined. 8926 (bfd_coff_std_swap_table): Add coff_start_final_link. 8927 * cofflink.c (_bfd_coff_internal_syment_name): Make globally 8928 visible. 8929 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the 8930 function callback is not NULL. 8931 * libcoff-in.h (struct coff_section_tdata): Add tdata field. 8932 (_bfd_coff_internal_syment_name): Declare. 8933 * libcoff.h: Rebuild. 8934 * configure.in (icoff_big_vec): Add cofflink.o. 8935 (icoff_little_vec): Likewise. 8936 * configure: Rebuild. 8937 8938Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com> 8939 8940 * Makefile.in (clean-info): Remove extraneous tab from line 8941 following action. 8942 8943Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com> 8944 8945 * cofflink.c (coff_link_input_bfd): Fail if a section with no 8946 contents has relocs. 8947 8948Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com> 8949 8950 * coffcode.h (coff_compute_section_file_positions): Keep the 8951 raw size safe. 8952 (coff_write_object_contents): Remember if it's a relocatable 8953 file. 8954 * libcoff-in.h (pe_data_type): New member 'has_reloc_section' 8955 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag 8956 if relocatable file. Swap out saved raw size. 8957 8958Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com> 8959 8960 * Makefile.in (do_maintainer_clean): Rename from do_realclean. 8961 (maintainer-clean): Rename from realclean, passing 8962 maintainer-clean down to subdirectories, but leave realclean as a 8963 synonym. 8964 8965 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to 8966 warning callback. 8967 8968 * dep-in.sed: Remove config.h from generated dependencies. 8969 8970 * sunos.c (sunos_slurp_dynamic_symtab): New static function, 8971 broken out of sunos_canonicalize_dynamic_symtab. 8972 (sunos_canonicalize_dynamic_symtab): Call new function 8973 sunos_slurp_dynamic_symtab. 8974 (sunos_add_dynamic_symbols): Add three new parameters. Return the 8975 dynamic symbol table to the caller. 8976 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols 8977 callback to override the symbols being read. 8978 * libaout.h (struct aout_backend_data): Add three new parameters 8979 to add_dynamic_symbols callback. 8980 8981 Extensive minor changes to avoid various gcc warnings. Also: 8982 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o. 8983 * archures.c (bfd_arch_info_type): Change mach field from long to 8984 unsigned long. 8985 (bfd_lookup_arch): Change machine parameter from long to unsigned 8986 long. 8987 8988Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com> 8989 8990 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find 8991 a symbol with a non-zero plt_offset. 8992 8993Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com> 8994 8995 * elfcode.h (align_file_position): Remove; not used. 8996 8997 * configure.in: Only check for <sys/procfs.h> on a native system, 8998 and make sure it defines prstatus_t. 8999 * configure: Rebuild. 9000 9001Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com> 9002 9003 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test. 9004 9005 * config.in: Rename from config.h.in. 9006 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in. 9007 Check for config.h:config.in when creating stamp-h. 9008 * configure: Rebuild. 9009 * Makefile.in (stamp-h): Depend upon config.in rather than 9010 config.h.in. Set CONFIG_HEADERS to config.h:config.in when 9011 calling config.status. 9012 9013 * Makefile.in (do_distclean): Remove config.h and stamp-h. 9014 (Makefile): Just rebuild Makefile. 9015 (config.h, stamp-h): New targets. 9016 * configure.in: Create stamp-h when rebuilding config.h. 9017 * configure: Rebuild. 9018 9019Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com> 9020 9021 * configure.in: Call AC_CONFIG_HEADER. Substitute 9022 HOST_64BIT_LONG. Check that various header files exist. Check 9023 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc 9024 and/or free need to be declared. Don't make a link to sysdep.h. 9025 Define TRAD_HEADER for various hosts. 9026 * configure: Rebuild. 9027 * configure.host: Don't set my_host. Add definitions taken from 9028 host header files for various entries. Remove entries which now 9029 do nothing. 9030 * acconfig.h: New file. 9031 * config.h.in: New file, built by autoheader. 9032 * sysdep.h: New file. 9033 * Makefile.in (do_distclean): Don't remove sysdep.h. 9034 (RECONFIG): Remove. 9035 (LOCAL_H_DEPS): New variable. 9036 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and 9037 $(RECONFIG). 9038 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise. 9039 ($(OPTIONAL_BACKENDS)): Likewise. 9040 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than 9041 looking through sysdep.h. 9042 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile. 9043 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG. 9044 (fprintf_vma, sprintf_vma): Likewise. 9045 (int64_type, uint64_type): Don't define. 9046 * bfd-in2.h: Rebuild. 9047 * archures.c, bfd.c, srec.c: Include <ctype.h>. 9048 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS. 9049 * lynx-core.c: Include stuff from old hosts/lynx.h. 9050 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL), 9051 rather than NO_FCNTL. 9052 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__ 9053 rather than NATIVE_HPPAHPUX_COMPILER. 9054 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it 9055 is defined. 9056 * hosts/*.h: Remove all header files which merely include, 9057 declare, and define things. Leave header files which define 9058 information needed by trad-core.c. 9059 9060 * aclocal.m4 (BFD_BINARY_FOPEN): Define. 9061 (BFD_CC_FOR_BUILD): Define. 9062 * configure.in: Use BFD_CC_FOR_BUILD. 9063 * configure: Rebuild. 9064 9065Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com> 9066 9067 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist. 9068 * configure: Rebuild. 9069 9070 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of 9071 a global symbol. 9072 9073Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com) 9074 9075 * config.bfd: i386pe_ve -> i386pe_vec. 9076 9077Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com> 9078 9079 * configure.host: Incorporate host Makefile fragments by setting 9080 shell variables. 9081 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and 9082 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a 9083 value based on whether the code is being compiled by a cross 9084 compiler. Don't substitute host_makefile_frag or frags. 9085 * aclocal.m4: New file to define local AC_PROG_CC. 9086 * configure: Rebuild. 9087 * Makefile.in (INSTALL): Set to @INSTALL@. 9088 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@. 9089 (INSTALL_DATA): Set to @INSTALL_DATA@. 9090 (AR): Set to @AR@. 9091 (CC): Define as @CC@. 9092 (CFLAGS): Set to @CFLAGS@. 9093 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@. 9094 (@host_makefile_frag@): Remove. 9095 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS) 9096 after other options. 9097 (config.status): Remove dependency upon @frags@. 9098 * config/*.mh, config/README: Remove. 9099 9100 * config.bfd: Rewrite to incorporate the contents of the Makefile 9101 fragments by setting shell variables, rather than merely returning 9102 the name of a Makefile fragment. 9103 * configure.in: Use shell variables set by config.bfd rather than 9104 looking at the target Makefile fragment files. Don't substitute 9105 target_makefile_frag. Do substitute TDEFINES. 9106 * configure: Rebuild. 9107 * Makefile.in (@target_makefile_frag@): Remove. 9108 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@. 9109 * config/*.mt: Remove. 9110 9111Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com> 9112 9113 * configure.in: Put changequote lines around "i[345]86" patterns 9114 section of core file support. 9115 9116Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu) 9117 9118 * som.c (som_bfd_print_private_bfd_data): Define to use the 9119 generic version. 9120 9121Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com> 9122 9123 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to 9124 entry, text_start and data_start. 9125 9126Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com> 9127 9128 * Makefile.in (OFILES): Remove $(TDEPFILES). 9129 * config/apollo.mt (TDEPFILES): Remove. 9130 * config/README: Update. 9131 9132 * configure.in: For a native configuration, set COREFILE and 9133 COREFLAG based on the canonical host name. 9134 * configure: Rebuild. 9135 * Makefile.in: Rebuild dependencies. 9136 (ALL_CFLAGS): Add @COREFLAG@. 9137 (OFILES): Replace $(HDEPFILES) with @COREFILE@. 9138 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file 9139 support routines. Check LYNX_CORE rather than HOST_LYNX. 9140 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX. 9141 * i386lynx.c: Likewise. 9142 * m68klynx.c: Likewise. 9143 * sparclynx.c: Likewise. 9144 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX. 9145 * *-core.c: Comment changes. 9146 * config/decstation.mh (HDEPFILES): Remove. 9147 (HDEFINES): Remove -DTRAD_CORE. 9148 * config/irix3.mh (RANLIB): Remove. 9149 * config/irix4.mh (HDEPFILES, RANLIB): Remove. 9150 (HDEFINES): Remove -DIRIX_CORE. 9151 * config/riscos.mh (RANLIB, HDEPFILES): Remove. 9152 (HDEFINES): Remove -DTRAD_CORE. 9153 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove. 9154 * config/ultra3.mh (RANLIB): Remove. 9155 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove. 9156 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove. 9157 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove. 9158 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove. 9159 * config/hppahpux.mh, config/hppaosf.mh: Remove. 9160 * config/i386aix.mh, config/i386bsd.mh: Remove. 9161 * config/i386linux.mh, config/i386mach3.mh: Remove. 9162 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove. 9163 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove. 9164 * config/mipsmach3.mh, config/news-mips.mh: Remove. 9165 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove. 9166 * config/rs600.mh, config/rs6000lynx.mh: Remove. 9167 * config/solaris2.mh, config/stratus.mh: Remove. 9168 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove. 9169 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove. 9170 9171Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp> 9172 9173 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or 9174 DT_FINI entry if the appropriate symbol is not in the hash table. 9175 9176 * libelf.h (struct elf_backend_data): Add create_program_headers 9177 and want_hdr_in_seg fields. 9178 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not 9179 defined. 9180 (elf_backend_create_program_headers): Likewise. 9181 (elfNN_bed): Initialize create_program_headers and 9182 want_hdr_in_seg. 9183 * elf.c (get_program_header_size): Call create_program_headers 9184 backend routine. 9185 (map_program_segments): Check want_hdr_in_seg backend field. Call 9186 create_program_headers backend routine. 9187 9188 * elf.c (assign_file_positions_except_relocs): Align non allocated 9189 sections when creating an executable. 9190 9191 * elfcode.h (elf_swap_phdr_in): Make non static. 9192 (elf_swap_phdr_out): Make non static. 9193 * libelf.h (bfd_elf32_swap_phdr_in): Declare. 9194 (bfd_elf32_swap_phdr_out): Declare. 9195 (bfd_elf64_swap_phdr_in): Declare. 9196 (bfd_elf64_swap_phdr_out): Declare. 9197 9198 * ecofflink.c (ecoff_collect_shuffle): New static function. 9199 (_bfd_ecoff_get_accumulated_pdr): New function. 9200 (_bfd_ecoff_get_accumulated_sym): New function. 9201 (_bfd_ecoff_get_accumulated_ss): New function. 9202 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare. 9203 (_bfd_ecoff_get_accumulated_sym): Declare. 9204 (_bfd_ecoff_get_accumulated_ss): Declare. 9205 * libbfd.h: Rebuild. 9206 9207Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com> 9208 9209 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo. 9210 9211 * elflink.h (elf_link_add_object_symbols): Handle indirect and 9212 warning symbols. If any section is named .gnu.warning.XXX, treat 9213 the contents as a warning to be issued if the symbol XXX is 9214 referenced. 9215 (elf_link_output_extsym): For an indirect or warning symbol, just 9216 output the symbol it points to. 9217 9218 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error 9219 if bfd_hash_allocate fails, since it will already be set. 9220 (generic_link_hash_newfunc): Likewise. 9221 (archive_hash_newfunc): Likewise. 9222 (hash_entry_bfd): New static function. 9223 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning 9224 callback. Allocate a new warning using the hash table newfunc. 9225 Use bfd_hash_replace to update the entry in the hash table, rather 9226 than assuming we can copy the fields with structure assignment. 9227 9228 * hash.c (bfd_hash_replace): New function. 9229 * bfd-in.h (bfd_hash_replace): Declare. 9230 * bfd-in2.h: Rebuild. 9231 9232Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com> 9233 9234 * config.bfd: Add mips*vr4300-*-elf* target. 9235 * config/mipsbvr4300.mt: Added. 9236 9237See file ChangeLog.2 9238 9239 9240Local Variables: 9241mode: change-log 9242left-margin: 8 9243fill-column: 74 9244version-control: never 9245End: 9246