ChangeLog revision 80016
12001-07-06 Philip Blundell <philb@gnu.org> 2 3 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Correct sense of 4 `interworking' warning message. 5 62001-07-05 Nick Clifton <nickc@cambridge.redhat.com> 7 8 * peicode.h (coff_swap_scnhdr_in): For sections containing 9 uninitialised data, only set their size to s_paddr if this does 10 not reset their size to zero. MS's latest compilers will set 11 s_paddr to zero. 12 132001-06-20 Bo Thorsen <bo@suse.co.uk> 14 15 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of 16 shared libraries. 17 182001-06-21 Alan Modra <amodra@bigpond.net.au> 19 20 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always 21 allocate local .got space. Use shortcuts from hash table for .got 22 and .plt rather than comparing section names. 23 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than 24 adjusting index into local_got_refcounts to document what we are 25 really doing. 26 (elf32_hppa_relocate_section): Similarly for local_plt_offsets. 27 Tidy .got and .plt error checking. 28 292001-06-19 Philip Blundell <philb@gnu.org> 30 31 * configure.in: Set version to 2.11.2. 32 * configure: Regenerate. 33 342001-06-19 Andreas Jaeger <aj@suse.de> 35 36 Merge from mainline sources: 37 2001-06-19 Andreas Jaeger <aj@suse.de> 38 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of 39 dynamic symbols. 40 2001-06-07 Andreas Jaeger <aj@suse.de> 41 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an 42 assertion. 43 (elf64_x86_64_check_relocs): Set an alignment of 8 for .rela 44 sections; handle further relocations. 45 2001-06-01 Andreas Jaeger <aj@suse.de> 46 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8 47 relocation, small reformatting. 48 492001-06-14 Nick Clifton <nickc@redhat.com> 50 51 Merge from mainline sources: 52 2001-04-27 Sean McNeil <sean@mcneil.com> 53 * config.bfd: Add arm-vxworks target. 54 * coff-arm (coff_arm_relocate_section): Add in symbol value to 55 addend (fro VXworks targets). 56 2001-03-06 Nick Clifton <nickc@redhat.com> 57 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero 58 of offset in BLX(1) instruction. 59 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of 60 offset in BLX(1) instruction. 61 Fix formatting. 62 2001-03-06 Nick Clifton <nickc@redhat.com> 63 * coff-arm.c (coff_arm_reloc_type_lookup): Add 64 BFD_RELOC_THUMB_PCREL_BLX. 65 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com> 66 * elf32-arm.h (elf32_arm_final_link_relocate): Set 67 EF_ARM_HASENTRY if the start address is set. 68 692001-06-11 Alan Modra <amodra@bigpond.net.au> 70 71 * configure.in (<COREFILE case stmt>): Move powerpc-*-*bsd* after 72 powerpc-*-freebsd*. 73 74 Merge from mainline. 75 2001-06-02 H.J. Lu <hjl@gnu.org> 76 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX 77 and ELFOSABI_HPUX. 78 * elf64-hppa.c (elf64_hppa_object_p): Likewise. 79 80 2001-06-02 Hans-Peter Nilsson <hp@axis.com> 81 * section.c (_bfd_strip_section_from_output): Handle NULL 82 output_section. 83 84 2001-05-30 Alan Modra <amodra@one.net.au> 85 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for 86 millicode. Don't allocate .got and .rela.got space here.. 87 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here.. 88 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and 89 .rela.plt here.. 90 (hppa_handle_PIC_calls): ..nor here.. 91 (allocate_plt_and_got): ..instead do it all here. New function. 92 (elf32_hppa_size_dynamic_sections): Allocate local .got space and 93 call allocate_plt_and_got. No need to zap .got if not dynamic. 94 (elf32_hppa_final_link): Call regular bfd_final_link instead of 95 gc_common_final_link. 96 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. 97 (elf32_hppa_relocate_section): Use it here. 98 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of 99 dynamic_sections_created. 100 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym. 101 102 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> 103 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of 104 a zeroing loop. 105 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly. 106 (elf_link_input_bfd): Likewise. 107 (elf_reloc_link_order): Likewise. 108 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64 109 relocations correctly. 110 111 2001-05-28 Alan Modra <amodra@one.net.au> 112 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries 113 for symbols forced local that need plabels. 114 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in 115 .plt.rela for local syms if non-shared. 116 (hppa_build_one_stub): Mask lsb of plt.offset. 117 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set. 118 (clobber_millicode_symbols): Correct comment. 119 (elf32_hppa_relocate_section): Likewise. 120 (elf32_hppa_finish_dynamic_symbol): Likewise. 121 122 2001-05-25 Alan Modra <amodra@one.net.au> 123 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow 124 undefined millicode syms in shared libs. 125 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts. 126 (elf32_hppa_check_relocs): Likewise. 127 (elf32_hppa_adjust_dynamic_symbol): Likewise. 128 (elf32_hppa_size_dynamic_sections): Likewise. 129 (elf32_hppa_relocate_section): Likewise. 130 (elf32_hppa_finish_dynamic_symbol): Likewise. 131 (elf32_hppa_finish_dynamic_sections): Likewise. 132 133 2001-05-23 Alexandre Oliva <aoliva@redhat.com> 134 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo 135 s/ENTIRES/ENTRIES/. 136 137 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> 138 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations. 139 * libbfd.h: Regenerate. 140 * bfd-in2.h: Regenerate. 141 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support. 142 * archures.c (bfd_mach_mips12000): Define. 143 * cpu-mips.c (arch_info_struct): Add MIPS r12k support. 144 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k 145 support. 146 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef. 147 * bfd-in2.h: Regenerate. 148 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol. 149 150 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com> 151 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number 152 of entries in a structured section. 153 * elf.c: Use new macro. 154 * elf32-i386.c: Use new macro. 155 * elf32-mips.c: Use new macro. 156 * elf64-alpha.c: Use new macro. 157 * elf64-sparc.c: Use new macro. 158 * elfcode.h: Use new macro. 159 * elflink.h: Use new macro. 160 161 2001-05-21 Andreas Jaeger <aj@suse.de> 162 * dwarf2.c (decode_line_info): Fix error message. 163 (read_abbrevs): Fix test for offset as suggested by Alan Modra and 164 adjust error message. 165 166 2001-05-17 H.J. Lu <hjl@gnu.org> 167 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the 168 version definition to basename of the output filename. 169 170 2001-05-15 Alexandre Oliva <aoliva@redhat.com> 171 * elf-m10300.c (mn10300_elf_relax_section): Don't relax 172 negative 32-bit operands to 16 operands when the operand is 173 going to be zero-extended by the modified opcode. 174 175 2001-05-11 Jakub Jelinek <jakub@redhat.com> 176 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind 177 sections as well. 178 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO 179 to .gnu.linkonce.t.FOO text section. 180 181 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com> 182 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr' 183 to be unsigned long, in order to match its use. 184 185 2001-05-10 H.J. Lu <hjl@gnu.org> 186 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on 187 indirect symbols. 188 189 2001-05-09 H.J. Lu <hjl@gnu.org> 190 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate 191 versymhdr->sh_size bytes for extversym instead of hdr->sh_size. 192 Remove the unused veriable `dynver'. 193 194 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> 195 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it 196 is always a positive integer. Cast away sign mismatch. 197 * elf32-mips.c: Fix misleading comment and typo. 198 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use 199 correct data type. 200 * elflink.c: Fix typo. 201 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization. 202 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch. 203 204 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com> 205 * targets.c (_bfd_target_vector_entries): Compute value based on 206 the size of the _bfd_target_vector and not bfd_target_vector. 207 208 2001-05-03 Andreas Jaeger <aj@suse.de> 209 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute. 210 (elf_generic_info_to_howto_rel): Likewise. 211 * coff-alpha.c (reloc_nil): Likewise. 212 (alpha_ecoff_bad_format_hook): Likewise. 213 (alpha_adjust_reloc_out): Likewise. 214 (alpha_bfd_reloc_type_lookup): Likewise. 215 (alpha_convert_external_reloc): Likewise. 216 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise. 217 (elf64_alpha_reloc_bad): Likewise. 218 (elf64_alpha_reloc_gpdisp): Likewise. 219 (elf64_alpha_bfd_reloc_type_lookup): Likewise. 220 (elf64_alpha_info_to_howto): Likewise. 221 (elf64_alpha_add_symbol_hook): Likewise. 222 (elf64_alpha_create_got_section): Likewise. 223 (elf64_alpha_is_local_label_name): Likewise. 224 (elf64_alpha_merge_ind_symbols): Likewise. 225 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise. 226 (mips_elf64_get_reloc_upper_bound): Likewise. 227 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise. 228 (nlm_alpha_get_public_offset): Likewise. 229 230 2001-04-30 H.J. Lu <hjl@gnu.org> 231 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1 232 only for ELF_LINK_FORCED_LOCAL. 233 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise. 234 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise. 235 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise. 236 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL 237 if the symbol has hidden or internal visibility. 238 239 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com> 240 * coffcode.h (coff_write_object_contents): Use 241 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out. 242 243 2001-04-09 Hans-Peter Nilsson <hp@axis.com> 244 * elflink.h (elf_fix_symbol_flags): For non-default visibilities, 245 only hide symbols marked STV_INTERNAL or STV_HIDDEN. 246 247 2001-04-05 Steven J. Hill <sjhill@cotw.com> 248 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little 249 endian MIPS ELF target. 250 (mips*-*-linux-gnu*): Use traditional big endian MIPS ELF target. 251 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional 252 64bit big endian MIPS ELF target. 253 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little 254 endian MIPS ELF target. 255 * configure: Regenerated. 256 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and 257 little endian targets. 258 (mips_elf_sym_is_global): Handle traditional targets. 259 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional 260 64bit big endian MIPS ELF target. 261 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little 262 endian MIPS ELF target. 263 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec 264 and bfd_elf64_tradlittlemips_vec. 265 266 2001-04-04 Alan Modra <alan@linuxcare.com.au> 267 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol 268 when -Bsymbolic causes a symbol to no longer need a .plt entry. 269 270 2001-04-03 David Mosberger <davidm@hpl.hp.com> 271 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted. 272 273 2001-03-30 H.J. Lu <hjl@gnu.org> 274 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ... 275 (PEI_DEFAULT_TARGET_SUBSYSTEM): This. 276 277 2001-03-23 Nick Clifton <nickc@redhat.com> 278 * Makefile.am (BUILD_CFILES): New variable: List of C source 279 files created in build directory. 280 (BUILD_HFILES): New variable: List of header files created in 281 build directory. 282 (POTFILES): Delete. 283 (po/POTFILES.in): Replace rule with empty entry. 284 (po/SRC-POTFILES.in): New rule: Create a list of source files 285 in the source directory. 286 (po/BLD-POTFILES.in): New rule: Create a list of source files 287 in the build directory. 288 (MOSTLYCLEAN): Do not delete source files created in build 289 directory. 290 * Makefile.in: Regenerate. 291 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in 292 into po/Makefile. 293 * configure: Regenerate. 294 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES 295 and BLD_POTFILES. 296 Add .. to the search path when building bfd.pot. 297 Delete POTFILES when performing distclean. 298 Add comment describing why distclean is broken in maintainer mode. 299 * po/POTFILES.in: Delete. 300 * po/SRC-POTFILES.in: New file. 301 * po/BLD-POTFILES.in: New file. 302 * po/bfd.pot: Regenerate. 303 304 2001-03-06 Igor Shevlyakov <igor@windriver.com> 305 * archures.c (bfd_default_scan): Add Coldfire CPUs. 306 * bfd-in2.h: Regenerate. 307 * cpu-m68k.c: Add Coldfire CPUs for arch table. 308 * ieee.c (ieee_write_processor): Set proper id for 309 Coldfire CPUs. 310 311 2001-02-27 H.J. Lu <hjl@gnu.org> 312 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if 313 abfd->tdata.aout_data == NULL. 314 315 2001-02-26 Nick Clifton <nickc@redhat.com> 316 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy 317 up, replacing multiple if statements with a switch. 318 (handle_COMDAT): New function. 319 320 2001-02-26 H.J. Lu <hjl@gnu.org> 321 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue 322 a warning for section flags we do not handle instead of 323 aborting. 324 325 2001-02-19 Jakub Jelinek <jakub@redhat.com> 326 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT 327 entries that could serve as a definition for a weak symbol. 328 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise. 329 330 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com> 331 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB 332 multiarch needs it). 333 334 2001-02-18 H.J. Lu <hjl@gnu.org> 335 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol 336 index. 337 338 2001-02-18 Kazu Hirata <kazu@hxi.com> 339 * vms-misc.c: Fix formatting. 340 341 2001-02-16 Kazu Hirata <kazu@hxi.com> 342 * vms.c: Fix formatting. 343 344 2001-02-14 H.J. Lu <hjl@gnu.org> 345 * elf.c (elf_find_function): New function. 346 (_bfd_elf_find_nearest_line): Call elf_find_function () to find 347 the file name and function name. 348 349 2001-02-14 Nick Clifton <nickc@redhat.com> 350 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c 351 (BFD64_BACKENDS): Add pepigen.c 352 Add rules to create peigen.c and pepigen.c from peXXigen.c. 353 354 2001-02-14 H.J. Lu <hjl@gnu.org> 355 * libcoff-in.h (pe_tdata): Add members target_subsystem and 356 force_minimum_alignment. 357 358 2001-02-13 Kazu Hirata <kazu@hxi.com> 359 * vms.c (vms_print_symbol): Remove unreachable code. 360 * rs6000-core.c: Fix formatting. 361 362 2001-02-13 David Mosberger <davidm@hpl.hp.com> 363 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define 364 as _bfd_XXi_only_swap_filehdr_out. 365 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set 366 pe->force_minimum_alignment to TRUE. 367 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to 368 PEI_TARGET_SUBSYSTEM. 369 (pe_print_private_bfd_data): Call 370 _bfd_XX_print_private_bfd_data_common() instead of 371 _bfd_pe_print_private_bfd_data_common(). 372 (pe_bfd_copy_private_bfd_data): Call 373 _bfd_XX_bfd_copy_private_bfd_data_common() instead of 374 _bfd_pe_bfd_copy_private_bfd_data_common(). 375 (coff_bfd_copy_private_section_data): Define as 376 _bfd_XX_bfd_copy_private_section_data instead of 377 _bfd_pe_bfd_copy_private_section_data. 378 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead 379 of a _bfd_pe_get_symbol_info. 380 * peigen.c: Delete. 381 * peXXigen.c: Renamed from peigen.c. 382 (COFF_WITH_XX): Define this macro (will get expanded into 383 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being 384 compiled as peigen.c or pepigen.c. 385 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to 386 define the canonical PEP structures and definitions. 387 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in 388 effect, enforce minimum file and section alignments. If 389 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to 390 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN, 391 so, by default, this is a no-op). 392 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep. 393 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map 394 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to 395 _bfd_pefoo if it's not defined. Use these macros to define 396 coff swap macros. 397 * libcoff.h (pe_tdata): Add members target_subsystem and 398 force_minimum_alignment. 399 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to 400 COFF_WITH_pep. 401 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM. 402 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of 403 peigen.lo. 404 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep. 405 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and 406 PEPAOUTHDR. 407 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo. 408 (BFD64_BACKENDS_CFILES): Mention pepigen.c 409 (peigen.c): Add rule to generate from peXXigen.c. 410 (pepigen.c): Ditto. 411 (pepigen.lo): List dependencies for pepigen.lo. 412 413 2001-02-11 H.J. Lu <hjl@gnu.org> 414 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB 415 alignment. 416 417 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl> 418 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch 419 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32 420 relocations against dynsym symbols. 421 * elf32-mips.c (elf_mips_howto_table): Fix the comment on 422 the R_MIPS_26 relocation. 423 (mips_elf_calculate_relocation): Use (p + 4) instead of p for 424 the R_MIPS_26 relocation. 425 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26 426 relocation. 427 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on 428 the R_MIPS_26 relocation. 429 (mips_elf64_howto_table_rela): Likewise. 430 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub 431 member to mark symbols that have non-CALL relocations against 432 them. 433 (mips_elf_link_hash_newfunc): Initialize no_fn_stub. 434 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like 435 R_MIPS_GOT16. 436 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a 437 non-CALL relocation against it is encountered. 438 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well. 439 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if 440 no_fn_stub is not set. 441 * elf32-mips.c (mips_elf_output_extsym): Get the output section 442 information from the real symbol for indirect ones. 443 Check no_fn_stub to find out if a symbol has a function stub 444 indeed. 445 446 2001-02-09 Jakub Jelinek <jakub@redhat.com> 447 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function. 448 449 2001-02-09 Mark Kettenis <kettenis@gnu.org> 450 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32 451 similar to R_SPARC_32. 452 * elf64-sparc.c (sparc64_elf_howto_table): Likewise. 453 454 2001-02-08 Richard Henderson <rth@redhat.com> 455 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness 456 before visibility. Locally defined protected symbols are not 457 dynamic. 458 459 2001-02-07 Jakub Jelinek <jakub@redhat.com> 460 * elflink.h (is_global_symbol_definition): Rename to 461 is_global_data_symbol_definition and have it reject function 462 symbols. 463 (elf_link_is_defined_archive_symbol): Use renamed function. 464 465 2001-02-07 Todd Vierling <tv@wasabisystems.com> 466 * libbfd-in.h (bfd_target_vector): Change extern array to pointer. 467 * libbfd.h (bfd_target_vector): Likewise. 468 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and 469 make static; create pointer reference named bfd_target_vector. 470 (_bfd_target_vector_entries): Calculate this based on the array 471 typed _bfd_target_vector. 472 473 2001-02-06 H.J. Lu <hjl@gnu.org> 474 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and 475 internal symbols are not dynamic. 476 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise. 477 478 2001-02-06 Kazu Hirata <kazu@hxi.com> 479 * elf-m10200.c: Fix formatting. 480 481 2001-02-01 Kazu Hirata <kazu@hxi.com> 482 * elf-m10300.c: Fix formatting. 483 4842001-06-10 Philip Blundell <philb@gnu.org> 485 486 * configure.in: Set version to 2.11.1. 487 * configure: Regenerate. 488 4892001-06-09 Philip Blundell <philb@gnu.org> 490 491 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last 492 change. 493 (elf32_arm_plt_entry): Likewise. 494 4952001-06-07 Alan Modra <amodra@bigpond.net.au> 496 497 * Most files: Update copyright notices. 498 4992001-05-29 Andreas Jaeger <aj@suse.de> 500 501 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64. 502 (elf64_x86_64_relocate_section): Likewise. 503 5042001-05-28 Andreas Jaeger <aj@suse.de> 505 506 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the 507 generic version since we want a hashsize of 4. 508 (elf_backend_size_info): Likewise. 509 5102001-05-28 Nicolas Pitre <nico@cam.org> 511 512 * elf32-arm.h: Fix PLT generation for big endian ARM. 513 5142001-05-28 Jeff Sturm <jsturm@one-point.com> 515 516 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64. 517 * bfd-in2.h: Regenerate. 518 * libbfd.h: Regenerate. 519 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32 520 and BFD_RELOC_SPARC_UA64 mapping 521 * elf64-sparc.c: Likewise. 522 5232001-05-23 Alan Modra <amodra@one.net.au> 524 525 Merge from mainline. 526 2001-05-17 Alan Modra <amodra@one.net.au> 527 * elf32-hppa.c (hppa_build_one_stub): Add an assert to check 528 plt.offset. 529 530 2001-05-16 Alan Modra <amodra@one.net.au> 531 * section.c (asection): Add linker_has_input field. 532 (STD_SECTION): Adjust initialization to suit. 533 * ecoff.c (bfd_debug_section): Likewise. 534 * bfd-in2.h: Regenerate. 535 536 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> 537 * ecoff.c (bfd_debug_section): Fix initialization. 538 539 2001-05-12 Peter Targett <peter.targett@arccores.com> 540 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old 541 name for 'arc5' core versions. 542 (bfd_arc_arch): Make bfd_mach_arc_6 default. 543 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default 544 architecture. 545 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default. 546 547 2001-05-08 Ian Lance Taylor <ian@zembu.com> 548 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is 549 NULL or is not COFF. 550 (coff_i386_rtype_to_howto): Don't dump core if output section 551 owner is not COFF. 552 553 2001-04-13 Roger Sayle <roger@metaphorics.com> 554 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section 555 flag on pe-i386 targets. 556 557 2001-04-26 H.J. Lu <hjl@gnu.org> 558 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is 559 valid. 560 561 2001-04-05 David Mosberger <davidm@hpl.hp.com> 562 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an 563 ordinary "progbits" section. 564 5652001-05-04 Richard Henderson <rth@redhat.com> 566 567 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true. 568 5692001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de> 570 571 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for 572 R_X86_64_GOTPCREL, don't use assignments instead of comparisons. 573 5742001-04-27 Andreas Jaeger <aj@suse.de> 575 576 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap 577 out handled entries. 578 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries. 579 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation. 580 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and 581 GOT32. 582 5832001-04-30 Alan Modra <amodra@one.net.au> 584 585 * elf32-hppa.c (final_link_relocate): Branch to .+8 for 586 calls to undefined weak symbols. 587 5882001-04-19 Andreas Jaeger <aj@suse.de> 589 590 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions. 591 (elf64_x86_64_plt_entry): Likewise. 592 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation. 593 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation. 594 5952001-03-31 Philip Blundell <philb@gnu.org> 596 597 From 2001-03-26 H.J. Lu <hjl@gnu.org> 598 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check 599 if there are any relocations for generic ELF. 600 (bfd_elf32_bfd_link_add_symbols): Defined to 601 elf32_generic_link_add_symbols. 602 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check 603 if there are any relocations for generic ELF. 604 (bfd_elf64_bfd_link_add_symbols): Defined to 605 elf64_generic_link_add_symbols. 606 6072001-03-21 Alan Modra <alan@linuxcare.com.au> 608 609 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section 610 non-NULL before attempting to dereference. 611 6122001-03-20 Andreas Schwab <schwab@suse.de> 613 614 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the 615 relocation value when resolving a reference from a debugging 616 section. 617 6182001-03-16 Philip Blundell <philb@gnu.org> 619 620 * configure: Regenerate. 621 6222001-03-16 Alan Modra <alan@linuxcare.com.au> 623 624 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call. 625 (hppa_link_hash_newfunc): Init it. 626 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller 627 section appears to be non-PIC. 628 (final_link_relocate): Likewise. 629 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any 630 possible candidate function, and set pic_call for those that will 631 only have a .plt entry for the PIC call stub. 632 (hppa_handle_PIC_calls): Set maybe_pic_call. 633 634 * elf32-hppa.c: Correct field selector in stub comments. 635 (clobber_millicode_symbols): Formatting fix. 636 6372001-03-11 Philip Blundell <philb@gnu.org> 638 639 * configure.in: Set version to 2.11. 640 641 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT 642 entries that could serve as a definition for a weak symbol. 643 6442001-03-07 Andreas Jaeger <aj@suse.de> 645 646 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of 647 some relocation values. 648 6492001-02-28 Andreas Jaeger <aj@suse.de> 650 651 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation 652 to addend. 653 6542001-02-26 Andreas Jaeger <aj@suse.de> 655 656 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries. 657 6582001-02-21 David Mosberger <davidm@hpl.hp.com> 659 660 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for 661 C8 said "1" instead of "8". Clarify error string for IMM22: 662 "signed integer" instead of just "integer". 663 6642001-02-20 Andreas Jaeger <aj@suse.de> 665 666 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make 667 PLT entries that could serve as a definition for a weak symbol. 668 6692001-02-18 David O'Brien <obrien@FreeBSD> 670 671 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat 672 FreeBSD/i386-CURRENT differently until I can figure out the needed 673 corefile changes. 674 * configure: Regenerate. 675 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm, 676 FreeBSD/PowerPC, and FreeBSD/sparc64. 677 6782001-02-14 Philip Blundell <pb@futuretv.com> 679 680 From 2001-02-06 H.J. Lu <hjl@gnu.org> 681 * bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic 682 checking. 683 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and 684 external_PEI_IMAGE_hdr. 685 6862001-02-14 Bo Thorsen <bo@suse.de> 687 688 * elf64-x86-64.c: Small formatting fixes and rearrangements of code. 689 (elf64_86_64_size_info): Struct added to fix a problem 690 with the hashtable string entries. 691 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt. 692 (elf64_x86_64_size_dynamic_sections): A FIXME removed. 693 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and 694 remove the FIXME for this. 695 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt 696 section. Also removed the FIXME for it. 697 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc. 698 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker. 699 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing. 700 7012001-02-14 Philip Blundell <pb@futuretv.com> 702 703 From 2001-02-08 H.J. Lu <hjl@gnu.org> 704 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_32 705 relocation entries for weak definitions when building DSO with 706 -Bsymbolic. 707 7082001-02-13 Richard Henderson <rth@redhat.com> 709 710 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required 711 and not user provided. 712 7132001-02-13 Alan Modra <alan@linuxcare.com.au> 714 715 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If 716 $global$ referenced but not defined, set its value here. 717 7182001-02-09 Bo Thorsen <bo@suse.de> 719 720 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section 721 alignment to 3. 722 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry 723 and relocation. 724 (elf64_x86_64_relocate_section): Fix formatting. 725 (elf64_x86_64_relocate_section): Fix addend for relocation of 726 R_X86_64_(8|16|32|PC8|PC16|PC32). 727 728Mon Feb 12 17:44:39 CET 2001 Jan Hubicka <jh@suse.cz> 729 730 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL. 731 7322001-02-10 Nick Clifton <nickc@redhat.com> 733 734 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC 735 rel, it will be handled later on. 736 7372001-02-09 David Mosberger <davidm@hpl.hp.com> 738 739 * elfxx-ia64.c (is_unwind_section_name): New function. Returns 740 true if section name is an unwind table section name. 741 (elfNN_ia64_additional_program_headers): Count each unwind section 742 separately. 743 (elfNN_ia64_modify_segment_map): Install one unwind program header 744 for each unwind separate section. Note: normally the linker 745 script merges the unwind sections that go into a single segment, 746 so this still generates at most one unwind program header per 747 segment. 748 749 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section 750 name for SHT_IA_64_UNWIND, not just .IA_64.unwind. 751 (elfNN_ia64_fake_sections): Mark sections with names that start 752 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64 753 unwind section. 754 755 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function. 756 Use it to make sh_info in unwind section point to the text section 757 it applies to. 758 7592001-02-07 Mark Elbrecht <snowball3@bigfoot.com> 760 761 * coffgen.c (coff_find_nearest_line): If stabs info is successfully 762 found, do not attempt to find dwarf2 info before returning. 763 7642001-01-30 Alan Modra <alan@linuxcare.com.au> 765 766 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function. 767 (elf_backend_get_symbol_type): Define. 768 (elf64_hppa_object_p): Set architecture and machine from elf 769 header flags. 770 7712001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov> 772 773 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2 774 before mdebug. 775 7762001-01-26 Richard Henderson <rth@redhat.com> 777 778 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false 779 for non-default visibility. 780 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but 781 delete ugly macro and replace with pretty function. 782 7832001-01-25 Mark Elbrecht <snowball3@bigfoot.com> 784 785 * coff-go32.c: Update copyright. 786 * coff-stgo32.c: Likewise. 787 * coff-go32.c (COFF_LONG_FILENAMES): Define. 788 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise. 789 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry. 790 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. 791 7922001-01-25 Kazu Hirata <kazu@hxi.com> 793 794 * bfd-in2.h: Rebuild. 795 * libbfd.h: Likewise. 796 7972001-01-23 H.J. Lu <hjl@gnu.org> 798 799 * bfd-in2.h: Rebuild. 800 8012001-01-23 H.J. Lu <hjl@gnu.org> 802 803 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf) 804 is NULL or PRIV(vms_rec) is outside of the buffer. 805 8062001-01-23 Kazu Hirata <kazu@hxi.com> 807 808 * coff64-rs6000.c: Fix formatting. 809 * coff-arm.c: Likewise. 810 * coffgen.c: Likewise. 811 * cofflink.c: Likewise. 812 * coff-mcore.c: Likewise. 813 * coff-mips.c: Likewise. 814 * coff-pmac.c: Likewise. 815 * coff-ppc.c: Likewise. 816 * coff-rs6000.c: Likewise. 817 * elf32.c: Likewise. 818 * elf32-fr30.c: Likewise. 819 * elf32-i370.c: Likewise. 820 * elf32-i860.c: Likewise. 821 * elf32-m32r.c: Likewise. 822 * elf32-m68k.c: Likewise. 823 * elf32-mcore.c: Likewise. 824 * elf32-ppc.c: Likewise. 825 * elf32-sh.c: Likewise. 826 * elf32-v850.c: Likewise. 827 * elf64-alpha.c: Likewise. 828 * elf64-sparc.c: Likewise. 829 * elflink.c: Likewise. 830 * elflink.h: Likewise. 831 * elf-m10200.c: Likewise. 832 * elf-m10300.c: Likewise. 833 * elfxx-ia64.c: Likewise. 834 835 * aoutx.h: Fix formatting. 836 * bfd.c: Likewise. 837 * bfd-in2.h: Likewise. 838 * bfd-in.h: Likewise. 839 * cpu-i386.c: Likewise. 840 * cpu-m68hc11.c: Likewise. 841 * dwarf2.c: Likewise. 842 * elf64-x86-64.c: Likewise. 843 * format.c: Likewise. 844 * freebsd.h: Likewise. 845 * hash.c: Likewise. 846 * hp300hpux.c: Likewise. 847 * hppabsd-core.c: Likewise. 848 * hpux-core.c: Likewise. 849 8502001-01-22 Bo Thorsen <bo@suse.de> 851 852 * elf64-x86-64.c: Added PIC support for X86-64. 853 (elf64_x86_64_link_hash_newfunc): Function added. 854 (elf64_x86_64_link_hash_table_create): Likewise. 855 (elf64_x86_64_check_relocs): Likewise. 856 (elf64_x86_64_gc_mark_hook): Likewise. 857 (elf64_x86_64_gc_sweep_hook): Likewise. 858 (elf64_x86_64_adjust_dynamic_symbol): Likewise. 859 (elf64_x86_64_size_dynamic_sections): Likewise. 860 (elf64_x86_64_discard_copies): Likewise. 861 (elf64_x86_64_finish_dynamic_symbol): Likewise. 862 (elf64_x86_64_finish_dynamic_sections): Likewise. 863 (elf64_x86_64_relocate_section): Add relocation of PIC sections. 864 8652001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl> 866 867 * Makefile.am (install-data-local): Make use of $(DESTDIR). 868 * Makefile.in: Regenerate. 869 8702001-01-21 Kazu Hirata <kazu@hxi.com> 871 872 * coff-a29k.c: Fix formatting. 873 8742001-01-19 H.J. Lu <hjl@gnu.org> 875 876 * elf32-i386.c (elf_i386_check_relocs): Report files with bad 877 relocation section names. 878 (elf_i386_relocate_section): Report files with bad relocation 879 section names and return false. 880 8812001-01-17 Bo Thorsen <bo@suse.de> 882 883 * targets.c: Alphabetize list of xvecs. 884 8852001-01-14 Alan Modra <alan@linuxcare.com.au> 886 887 * config.bfd: Add linux target variant for elfxx-hppa. 888 * configure.in: Recognize bfd_elf32_hppa_linux_vec and 889 bfd_elf64_hppa_linux_vec. 890 * configure: Regenerate. 891 * elf64-hppa.c: Include elf64-target.h again to support linux 892 target variant. 893 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux. 894 * elf32-hppa.c: Include elf32-target.h again to support linux 895 target variant. 896 (elf32_hppa_post_process_headers): New function. 897 (elf_backend_post_process_headers): Define. 898 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and 899 bfd_elf32_hppa_linux_vec. 900 901 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base, 902 and data_segment_base fields. 903 (elf32_hppa_link_hash_table_create ): Init them. 904 (elf32_hppa_check_relocs): Update comments. 905 (hppa_record_segment_addr): New function. 906 (elf32_hppa_relocate_section): Call it. 907 (final_link_relocate): Handle R_PARISC_SEGREL32. 908 (elf32_hppa_final_link): New function. 909 (bfd_elf32_bfd_final_link): Define to call it. 910 (hppa_unwind_entry_compare): New function. 911 * cache.c (bfd_open_file): Create files in write+read mode. 912 913 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for 914 SEGREL32 and numerous other relocs. Change duplicate 915 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED. 916 917 * opncls.c (bfd_fdopenr): Add parens like the comment says around 918 O_ACCMODE. 919 920 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create 921 .plt entries for DT_INIT and DT_FINI. 922 (elf32_hppa_finish_dynamic_sections): Remove special handling of 923 DT_INIT and DT_FINI. 924 925 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit 926 offsets for stub .plt access if wide mode. Check offset in range. 927 9282001-01-13 Nick Clifton <nickc@redhat.com> 929 930 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank 931 line. 932 933 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank 934 line. 935 9362001-01-12 Alan Modra <alan@linuxcare.com.au> 937 938 * configure.in ([bfd_elf64_x86_64_vec]): Set target64. 939 * configure: Regenerate. 940 9412001-01-11 Peter Targett <peter.targett@arccores.com> 942 943 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5, 944 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants. 945 * cpu-arc.c (arch_info_struct): Add entries for variants. 946 (bfd_arc_arch) Set default to bfd_mach_arc_5. 947 (arc_get_mach) Don't assume machine names prefixed arc- before 948 testing. 949 * elf32-arc.c (arc_elf_object_p): Set machine number based on new 950 selections. 951 (arc_elf_final_write_processing) Likewise. 952 (ELF_MACHINE_CODE) Use EM_ARC. 953 9542001-01-10 Nick Clifton <nickc@redhat.com> 955 956 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "". 957 9582001-01-07 Philip Blundell <philb@gnu.org> 959 960 * README: Replace `bug-gnu-utils@gnu.org' with 961 `bug-binutils@gnu.org'. 962 9632001-01-04 Kazu Hirata <kazu@hxi.com> 964 965 * som.c: Fix formatting. 966 9672001-01-03 Kazu Hirata <kazu@hxi.com> 968 969 * ecoffswap.h: Fix formatting. 970 * elf-bfd.h: Likewise. 971 * elfarm-nabi.c: Likewise. 972 * elfarm-oabi.c: Likewise. 973 * elfcode.h: Likewise. 974 * elfcore.h: Likewise. 975 * elflink.c: Likewise. 976 * elflink.h: Likewise. 977 * elfxx-ia64.c: Likewise. 978 * elfxx-target.h: Likewise. 979 * libbfd.c: Likewise 980 * linker.c: Likewise. 981 * lynx-core.c: Likewise. 982 9832001-01-02 Kazu Hirata <kazu@hxi.com> 984 985 * pc532-mach.c: Fix formatting. 986 * pe-arm.c: Likewise. 987 * pe-i386.c: Likewise. 988 * pe-mips.c: Likewise. 989 * pe-ppc.c: Likewise. 990 * pe-sh.c: Likewise. 991 * pei-mips.c: Likewise. 992 * pei-sh.c: Likewise. 993 * peicode.h: Likewise. 994 * ppcboot.c: Likewise. 995 * ptrace-core.c: Likewise. 996 9972001-01-01 Kazu Hirata <kazu@hxi.com> 998 999 * reloc.c: Fix formatting. 1000 * riscix.c: Likewise. 1001 * rs6000-core.c: Likewise. 1002 * xcoff-target.h: Likewise. 1003 10042000-12-29 Hans-Peter Nilsson <hp@bitrange.com> 1005 1006 * elfcode.h (elf_object_p): Also restore the bfd mach field on 1007 error, by calling bfd_default_set_arch_mach with incoming 1008 values. 1009 10102000-12-26 Kazu Hirata <kazu@hxi.com> 1011 1012 * vaxnetbsd.c: Fix formatting. 1013 * versados.c: Likewise. 1014 * vms-gsd.c: Likewise. 1015 * vms-hdr.c: Likewise. 1016 * vms-misc.c: Likewise. 1017 10182000-12-25 Alexandre Oliva <aoliva@redhat.com> 1019 1020 * archive.c (coff_write_armap): Don't write more than symbol_count 1021 `archive_member_file_ptr's. 1022 10232000-12-25 Kazu Hirata <kazu@hxi.com> 1024 1025 * vms-tir.c: Fix formatting. 1026 10272000-12-23 Kazu Hirata <kazu@hxi.com> 1028 1029 * vms.c: Fix formatting. 1030 * vms.h: Likewise. 1031 10322000-12-21 Santeri Paavolainen <santtu@ssh.com> 1033 1034 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined. 1035 1036 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM. 1037 1038 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *) 1039 arithmetic. 1040 1041 * elf32-fr30.c: Add casts to avoid (void *) arithmetic. 1042 1043 * coffcode.h (styp_to_sec_flags): Add empty statement after label. 1044 10452000-12-21 Richard Sandiford <rsandifo@redhat.com> 1046 1047 * libbfd.c (bfd_get_bits): Added 1048 (bfd_put_bits): Likewise 1049 * bfd-in.h: Declared the above. 1050 * bfd-in2.h: Regenerated. 1051 10522000-12-20 Kazu Hirata <kazu@hxi.com> 1053 1054 * targets.c: Fix formatting. 1055 * tekhex.c: Likewise. 1056 * trad-core.c: Likewise. 1057 10582000-12-19 Kazu Hirata <kazu@hxi.com> 1059 1060 * sco5-core.c: Fix formatting. 1061 * section.c: Likewise. 1062 * sparclinux.c: Likewise. 1063 * sparclynx.c: Likewise. 1064 * sparcnetbsd.c: Likewise. 1065 * srec.c: Likewise. 1066 * stabs.c: Likewise. 1067 * stab-syms.c: Likewise. 1068 * sunos.c: Likewise. 1069 * syms.c: Likewise. 1070 * sysdep.h: Likewise. 1071 10722000-12-18 Nick Clifton <nickc@redhat.com> 1073 1074 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already 1075 defined. 1076 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define. 1077 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define. 1078 10792000-12-18 Nick Clifton <nickc@redhat.com> 1080 1081 * vms-misc.c (_bfd_vms_get_record): Add default case to 1082 file_format switch. 1083 10842000-12-15 Miloslav Trmac <mitr@volny.cz> 1085 1086 * elfcore.h (elf_core_file_p): Move to the start of the program 1087 headers before attempting to read them. 1088 10892000-12-14 Kazu Hirata <kazu@hxi.com> 1090 1091 * peigen.c: Fix formatting. 1092 * som.c: Likewise. 1093 * som.h: Likewise. 1094 10952000-12-13 Kazu Hirata <kazu@hxi.com> 1096 1097 * peigen.c: Fix formatting. 1098 10992000-12-12 Jim Wilson <wilson@redhat.com> 1100 1101 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *. 1102 11032000-12-08 Mark Salter <msalter@redhat.com> 1104 1105 * binary.c (binary_set_section_contents): Ignore sections 1106 with zero size. 1107 11082000-12-12 Kazu Hirata <kazu@hxi.com> 1109 1110 * m68klinux.c: Fix formatting. 1111 * m68knetbsd.c: Likewise. 1112 * mipsbsd.c: Likewise. 1113 * netbsd-core.c: Likewise. 1114 * netbsd.h: Likewise. 1115 * newsos3.c: Likewise. 1116 * nlm32-alpha.c: Likewise. 1117 * nlm32-i386.c: Likewise. 1118 * nlm32-ppc.c: Likewise. 1119 * nlm32-sparc.c: Likewise. 1120 * nlmcode.h: Likewise. 1121 * nlmswap.h: Likewise. 1122 * nlm-target.h: Likewise. 1123 * ns32knetbsd.c: Likewise. 1124 11252000-12-10 Fred Fish <fnf@be.com> 1126 1127 * elflink.h (elf_link_output_extsym): Don't complain about undefined 1128 symbols in shared objects if allow_shlib_undefined is true. 1129 11302000-12-12 Nick Clifton <nickc@redhat.com> 1131 1132 * cpu-sh.c: Fix formattng. 1133 * elf.c: Fix formattng. 1134 * elf32-mips.c: Fix formattng. 1135 * elf32-sh.c: Fix formattng. 1136 * elf64-alpha.c: Fix formattng. 1137 11382000-12-09 Nick Clifton <nickc@redhat.com> 1139 1140 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass 1141 dwarf2_find_line_info as last parameter to invocation of 1142 _bfd_dwarf2_find_nearest_line. 1143 * elf32-arm.h (elf32_arm_find_nearest_line): Pass 1144 dwarf2_find_line_info as last parameter to invocation of 1145 _bfd_dwarf2_find_nearest_line. 1146 11472000-12-08 Mark Elbrecht <snowball3@bigfoot.com> 1148 1149 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here... 1150 (BFD_LIBS): ...to here. 1151 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here... 1152 (BFD_LIBS_CFILES): ...to here. 1153 * Makefile.in: Regenerate. 1154 * configure.in: Remove dwarf.lo from the elf shell variable. 1155 * configure: Regenerate. 1156 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info. 1157 * libcoff.h: Regenerate. 1158 * coffgen.c (coff_find_nearest_line): Call 1159 _bfd_dwarf2_find_nearest_line. 1160 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update 1161 accordingly. 1162 (read_abbrevs): Likewise 1163 (decode_line_info): Likewise. 1164 (parse_comp_unit): Likewise. 1165 (comp_unit_find_nearest_line): Likewise. 1166 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype. 1167 * libbfd.h: Regenerate. 1168 * elf.c (_bfd_elf_find_nearest_line): Update call. 1169 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR. 1170 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH. 1171 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros. 1172 (sec_to_styp_flags): Use them. Handle DWARF2 sections. 1173 (styp_to_sec_flags): Handle DWARF2 sections. 1174 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call 1175 to _bfd_find_nearest_line. 1176 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to 1177 call to _bfd_find_nearest_line. 1178 11792000-12-08 Kazu Hirata <kazu@hxi.com> 1180 1181 * coffgen.c: Fix formatting. 1182 * elf-m10300.c: Likewise. 1183 * elf32-i386.c: Likewise. 1184 * elf32-i960.c: Likewise. 1185 * elf32-m68k.c: Likewise. 1186 * elf32-mcore.c: Likewise. 1187 * elf32-ppc.c: Likewise. 1188 * elf32-sh.c: Likewise. 1189 * elf32-sparc.c: Likewise. 1190 * elf32-v850.c: Likewise. 1191 * elf64-alpha.c: Likewise. 1192 * elf64-hppa.c: Likewise. 1193 * elf64-mips.c: Likewise. 1194 * elf64-sparc.c: Likewise. 1195 11962000-12-07 Kazu Hirata <kazu@hxi.com> 1197 1198 * elf32-ppc.c: Fix formatting. 1199 * elf64-x86-64.c: Likewise. 1200 12012000-12-06 Ulf Carlsson <ulfc@engr.sgi.com> 1202 1203 From Ralf Baechle <ralf@gnu.org> 1204 1205 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit 1206 BFDs containing no sections or empty .text, .data or .bss sections 1207 to be merged, regardless of their flags. 1208 12092000-12-06 Kazu Hirata <kazu@hxi.com> 1210 1211 * elf32-m32r.c: Fix formatting. 1212 * elf32-m68hc11.c: Likewise. 1213 * elf32-m68hc12.c: Likewise. 1214 * elf32-m68k.c: Likewise. 1215 * elf32-mcore.c: Likewise. 1216 * elf32-pj.c: Likewise. 1217 * elf32-ppc.c: Likewise. 1218 12192000-12-05 Kazu Hirata <kazu@hxi.com> 1220 1221 * elf32-fr30.c: Fix formatting. 1222 * elf32-hppa.c: Likewise. 1223 * elf32-i370.c: Likewise. 1224 * elf32-i386.c: Likewise. 1225 * elf32-i860.c: Likewise. 1226 * elf32-i960.c: Likewise. 1227 12282000-12-03 Kazu Hirata <kazu@hxi.com> 1229 1230 * elf32-arm.h: Fix formatting. 1231 * elf32-avr.c: Likewise. 1232 * elf32-cris.c: Likewise. 1233 * elf32-d10v.c: Likewise. 1234 * elf32-d30v.c: Likewise. 1235 * elf-hppa.h: Likewise. 1236 * elf-m10200.c: Likewise. 1237 * elf-m10300.c: Likewise. 1238 12392000-12-01 Chris Demetriou <cgd@sibyte.com> 1240 1241 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and 1242 bfd_mach_mips32_4k. Update FIXME comment. 1243 * archures.c (bfd_mach_mips32): New constant. 1244 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to 1245 the latter, renumber it. 1246 * bfd-in2.h (bfd_mach_mips32): New constant. 1247 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to 1248 the latter, renumber it. 1249 * cpu-mips.c (I_mips32): New constant. 1250 (I_mips4K, I_mips32_4k): Rename the former to the latter. 1251 (arch_info_struct): Add bfd_mach_mips32 entry, replace 1252 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry. 1253 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case. 1254 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32 1255 with E_MIPS_MACH_MIPS32_4K. 1256 (_bfd_mips_elf_final_write_processing): Replace 1257 bfd_mach_mips4K with bfd_mach_mips32_4k case, add 1258 bfd_mach_mips32 case. 1259 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing 1260 comparison with support for MIPS32. 1261 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for 1262 MIPS32. 1263 1264 * aoutx.h (NAME(aout,machine_type)): Add cases for 1265 bfd_mach_mips5 and bfd_mach_mips64. 1266 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants. 1267 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise. 1268 * cpu_mips.c (I_mips5, I_mips64): New definitions. 1269 (arch_info_struct): Add entries for bfd_mach_mips5 and 1270 bfd_mach_mips64. 1271 * elf32-mips.c (elf_mips_isa, elf_mips_mach, 1272 _bfd_mips_elf_print_private_bfd_data): Add cases for 1273 E_MIPS_ARCH_5 and E_MIPS_ARCH_64. 1274 (_bfd_mips_elf_final_write_processing): Add cases for 1275 bfd_mach_mips5 and bfd_mach_mips64. 1276 1277 * bfd/aoutx.h (NAME(aout,machine_type)): Add a 1278 bfd_mach_mips_sb1 case. 1279 * bfd/archures.c (bfd_mach_mips_sb1): New constant. 1280 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant. 1281 * bfd/cpu-mips.c (I_sb1): New constant. 1282 (arch_info_struct): Add entry for bfd_mach_mips_sb1. 1283 * bfd/elf32-mips.c (elf_mips_mach): Add case for 1284 E_MIPS_MACH_SB1. 1285 (_bfd_mips_elf_final_write_processing): Add case for 1286 bfd_mach_mips_sb1. 1287 12882000-12-01 Joel Sherrill <joel@OARcorp.com> 1289 1290 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets. 1291 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets. 1292 (sparc*-*-rtems*): Switched from a.out to ELF. 1293 12942000-11-30 Jan Hubicka <jh@suse.cz> 1295 1296 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo 1297 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c 1298 (elf64-x86-64.lo): Add dependencies. 1299 * archures.c (DESCRIPTION): Add bfd_mach_x86_64, 1300 bfd_mach_x86_64_intel_syntax. 1301 * elf.c (prep_headers): Use EM_x86_64 for 64bit output. 1302 * config.bfd (x86_64): Add. 1303 * configure.in: Add support for bfd_elf64_x86_64_vec. 1304 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add. 1305 (bfd_i386_arch, i8086_ar): Link in. 1306 * elf64-x86-64.c: New file. 1307 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*. 1308 * targets.c (bfd_elf64_x86_64_vec): Add. 1309 (bfd_target_vect): Add bfd_elf64_x86_64_vec. 1310 13112000-11-30 Kazu Hirata <kazu@hxi.com> 1312 1313 * xcofflink.c: Fix formatting. 1314 13152000-11-28 Kazu Hirata <kazu@hxi.com> 1316 1317 * aoutx.h: Fix formatting. 1318 * bfd-in.h: Likewise. 1319 * bfd-in2.h: Likewise. 1320 * cache.c: Likewise. 1321 * cisco-core.c: Likewise. 1322 * coff64-rs6000.c: Likewise. 1323 * coffcode.h: Likewise. 1324 * coffswap.h: Likewise. 1325 * corefile.c: Likewise. 1326 * elf32-mips.c: Likewise. 1327 13282000-11-27 Kazu Hirata <kazu@hxi.com> 1329 1330 * aout-adobe.c: Fix formatting. 1331 * coff64-rs6000.c: Likewise. 1332 * coffgen.c: Likewise. 1333 * cofflink.c: Likewise. 1334 13352000-11-27 Philip Blundell <pb@futuretv.com> 1336 1337 * libcoff-in.h (coff_tdata): Add `strings_written' flag. 1338 (obj_coff_strings_written): New accessor macro for above. 1339 * libcoff.h: Regenerate. 1340 * cofflink.c (_bfd_coff_final_link): Say that we wrote the 1341 strings. 1342 * coffcode.h (coff_write_object_contents): No need to write out 1343 the string table if it's already been done. 1344 13452000-11-22 Philip Blundell <pb@futuretv.com> 1346 1347 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to 1348 weak undefined symbols. 1349 13502000-11-24 Nick Clifton <nickc@redhat.com> 1351 1352 * archures.c (bfd_mach_arm_5TE): Define. 1353 (bfd_mach_arm+XScale): Define. 1354 * bfd-in2.h: Regenerate. 1355 1356 * coff-arm.c (coff_arm_reloc_type_lookup): Accept 1357 BFD_RELOC_ARM_PCREL_BLX. 1358 1359 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and 1360 XScale machine numbers. 1361 1362 * config.bfd (xscale-elf): Add target. 1363 (xscale-coff): Add target. 1364 1365 * cpu-arm.c: Add xscale machine name. 1366 Add v5t, v5te and XScale machine numbers. 1367 13682000-11-23 Kazu Hirata <kazu@hxi.com> 1369 1370 * aix386-core.c: Fix formatting. 1371 13722000-11-22 Jim Wilson <wilson@redhat.com> 1373 1374 * coff-ia64.c (howto_table): Use EMPTY_HOWTO. 1375 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters. 1376 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise. 1377 (ins_imms_scaled): Initialize sign_bit at function entry. 1378 (elf64_ia64_operands): Add missing initializers. 1379 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup, 1380 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections, 1381 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name, 1382 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff, 1383 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused 1384 parameters. 1385 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents, 1386 and free_extsyms at function entry. 1387 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result. 1388 (elfNN_ia64_create_dynamic_sections): Delete unused local h. 1389 (get_got): Delete unused local srel. 1390 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared. 1391 (elfNN_ia64_relocate_section): Delete unused local dynindx. 1392 13932000-11-21 Kazu Hirata <kazu@hxi.com> 1394 1395 * coff-a29k.c: Fix formatting. 1396 * coff-h8500.c: Likewise. 1397 * coff-i960.c: Likewise. 1398 * coff-ppc.c: Likewise. 1399 * coff-rs6000.c: Likewise. 1400 * coff-stgo32.c: Likewise. 1401 * coff-tic54x.c: Likewise. 1402 * coff-w65.c: Likewise. 1403 * cpu-h8500.c: Likewise. 1404 * cpu-hppa.c: Likewise. 1405 * cpu-ns32k.c: Likewise. 1406 * ecoff.c: Likewise. 1407 * ecofflink.c: Likewise. 1408 14092000-11-21 Nick Clifton <nickc@redhat.com> 1410 1411 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and 1412 remove possibility of infinite loop. 1413 14142000-11-20 Kazu Hirata <kazu@hxi.com> 1415 1416 * aix386-core.c: Fix formatting. 1417 * aout-adobe.c: Likewise. 1418 * aout-arm.c: Likewise. 1419 * aout-encap.c: Likewise. 1420 * aout-ns32k.c: Likewise. 1421 * aout-target.h: Likewise. 1422 * aout-tic30.c: Likewise. 1423 * aoutf1.h: Likewise. 1424 * aoutx.h: Likewise. 1425 * archive.c: Likewise. 1426 * bfd-in.h: Likewise. 1427 * bfd-in2.h: Likewise. 1428 * bfd.c: Likewise. 1429 * bout.c: Likewise. 1430 14312000-11-17 H.J. Lu <hjl@gnu.org> 1432 1433 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create 1434 pltoff entries for DT_INIT and DT_FINI. 1435 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries. 1436 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI 1437 entries. 1438 14392000-11-16 Richard Henderson <rth@redhat.com> 1440 1441 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs. 1442 (allocate_dynrel_entries): Likewise. 1443 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly. 1444 (set_pltoff_entry): Likewise. 1445 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB 1446 (elfNN_ia64_reloc_type_lookup): Likewise. 1447 (elfNN_ia64_install_value): Likewise. 1448 (elfNN_ia64_relocate_section): Likewise. 1449 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove. 1450 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove. 1451 14522000-11-16 Kazu Hirata <kazu@hxi.com> 1453 1454 * cpu-a29k.c: Fix formatting. 1455 * cpu-alpha.c: Likewise. 1456 * cpu-arm.c: Likewise. 1457 * cpu-avr.c: Likewise. 1458 * cpu-d10v.c: Likewise. 1459 * cpu-h8500.c: Likewise. 1460 * cpu-hppa.c: Likewise. 1461 * cpu-i370.c: Likewise. 1462 * cpu-i386.c: Likewise. 1463 * cpu-i960.c: Likewise. 1464 * cpu-ia64-opc.c: Likewise. 1465 * cpu-ia64.c: Likewise. 1466 * cpu-m32r.c: Likewise. 1467 * cpu-m68hc11.c: Likewise. 1468 * cpu-m68hc12.c: Likewise. 1469 * cpu-m68k.c: Likewise. 1470 * cpu-m88k.c: Likewise. 1471 * cpu-mips.c: Likewise. 1472 * cpu-ns32k.c: Likewise. 1473 * cpu-pj.c: Likewise. 1474 * cpu-powerpc.c: Likewise. 1475 * cpu-sh.c: Likewise. 1476 * cpu-sparc.c: Likewise. 1477 * cpu-tic54x.c: Likewise. 1478 * cpu-v850.c: Likewise. 1479 * cpu-vax.c: Likewise. 1480 * cpu-w65.c: Likewise. 1481 * cpu-we32k.c: Likewise. 1482 * cpu-z8k.c: Likewise. 1483 * dwarf1.c: Likewise. 1484 * dwarf2.c: Likewise. 1485 14862000-11-15 Kazu Hirata <kazu@hxi.com> 1487 1488 * coff-arm.c: Fix formatting. 1489 * coff-ppc.c: Likewise. 1490 * coff-rs6000.c: Likewise. 1491 * coff-sh.c: Likewise. 1492 * coff-sparc.c: Likewise. 1493 * coff-tic30.c: Likewise. 1494 * coff-tic54x.c: Likewise. 1495 * coff-tic80.c: Likewise. 1496 * coff-w65.c: Likewise. 1497 * coff-we32k.c: Likewise. 1498 * coff-z8k.c: Likewise. 1499 15002000-11-15 Richard Henderson <rth@redhat.com> 1501 1502 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc 1503 section with the same ALLOC|LOAD flags as the source section. 1504 15052000-11-14 Jakub Jelinek <jakub@redhat.com> 1506 1507 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used 1508 by STO_ALPHA constants. 1509 15102000-11-14 Kazu Hirata <kazu@hxi.com> 1511 1512 * coff-pmac.c: Fix formatting. 1513 * coff-ppc.c: Likewise. 1514 15152000-11-13 H.J. Lu <hjl@gnu.org> 1516 1517 * elflink.h (elf_link_add_object_symbols): Also add indirect 1518 symbols for common symbols with the default version. 1519 15202000-11-09 Philip Blundell <pb@futuretv.com> 1521 1522 * section.c (STD_SECTION): Set gc_mark flag. 1523 15242000-11-11 Kazu Hirata <kazu@hxi.com> 1525 1526 * coff-i960.c: Likewise. 1527 * coff-m68k.c: Likewise. 1528 * coff-m88k.c: Likewise. 1529 * coff-mcore.c: Likewise. 1530 * coff-mips.c: Likewise. 1531 15322000-11-11 Bernd Schmidt <bernds@cygnus.co.uk> 1533 1534 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs. 1535 15362000-11-10 Kazu Hirata <kazu@hxi.com> 1537 1538 * coff-h8300.c: Fix formatting. 1539 * coff-h8500.c: Likewise. 1540 * coff-i386.c: Likewise. 1541 * coff-i860.c: Likewise. 1542 * coff-i960.c: Likewise. 1543 * coff-ia64.c: Likewise. 1544 15452000-11-09 Kazu Hirata <kazu@hxi.com> 1546 1547 * archive.c: Fix formatting. 1548 * archures.c: Likewise. 1549 15502000-11-07 Richard Henderson <rth@redhat.com> 1551 1552 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec. 1553 Set it before bfd_elf64_bfd_final_link call. Use it after the call. 1554 * section.c (bfd_set_section_contents): Call memcpy if 1555 section->contents set and location not equal to contents plus offset. 1556 15572000-11-08 Kazu Hirata <kazu@hxi.com> 1558 1559 * bfd-in.h: Fix formatting. 1560 * bfd-in2.h: Likewise. 1561 * bfd.c: Likewise. 1562 * binary.c: Likewise. 1563 * bout.c: Likewise. 1564 * coff-a29k.c: Likewise. 1565 * coff-alpha.c: Likewise. 1566 * coff-apollo.c: Likewise. 1567 * coff-aux.c: Likewise. 1568 15692000-11-07 Kazu Hirata <kazu@hxi.com> 1570 1571 * aix386-core.c: Fix formatting. 1572 * aoutf1.h: Likewise. 1573 * aoutx.h: Likewise. 1574 * archures.c: Likewise. 1575 * armnetbsd.c: Likewise. 1576 15772000-11-07 Alan Modra <alan@linuxcare.com.au> 1578 1579 * coff-h8300.c (special): Adjust reloc address. 1580 15812000-11-06 Steve Ellcey <sje@cup.hp.com> 1582 1583 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines 1584 to differentiate elf32 and elf64 on ia64. 1585 * bfd-in2.h: Regenerate. 1586 * config.bfd: Add target for "ia64*-*-hpux*". 1587 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch. 1588 * configure: Regenerate. 1589 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure. 1590 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec. 1591 1592 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects 1593 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo. 1594 * Makefile.in: Regnerate. 1595 * elf64-ia64.c: Deleted. 1596 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c. 1597 15982000-11-06 Kazu Hirata <kazu@hxi.com> 1599 1600 * aout-adobe.c: Fix formatting. 1601 * aout-arm.c: Likewise. 1602 * aout-cris.c: Likewise. 1603 * aout-encap.c: Likewise. 1604 * aout-ns32k.c: Likewise. 1605 * aout-target.h: Likewise. 1606 * aout-tic30.c: Likewise. 1607 16082000-11-05 Philip Blundell <philb@gnu.org> 1609 1610 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit 1611 BFDs containing no sections to be merged, regardless of their flags. 1612 16132000-11-04 Philip Blundell <philb@gnu.org> 1614 1615 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message 1616 if a relocation for an undefined symbol also results in an 1617 overflow. 1618 16192000-11-06 Christopher Faylor <cgf@cygnus.com> 1620 1621 * config.bfd: Add support for Sun Chorus. 1622 16232000-11-05 David O'Brien <obrien@FreeBSD.org> 1624 1625 * configure.in: Recognize alpha-*-freebsd*. 1626 * configure: Regenerate. 1627 16282000-11-02 Luciano Gemme <ishitawa@yahoo.com> 1629 1630 * srec.c (CHUNK): Rename to DEFAULT_CHUNK. 1631 (Chunk): New global variable set by a parameter in objcopy.c. 1632 (S3Forced): New global variable set by a parameter in 1633 objcopy.c. 1634 (srec_set_section_contents): If S3Forced is true, always generate 1635 S3 records. 1636 (srec_write_section): Use 'Chunk' to limit maximum length of S 1637 records. 1638 16392000-11-02 Per Lundberg <plundis@chaosdev.org> 1640 1641 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos. 1642 * Makefile.in: Regenerate. 1643 * bfd-in2.h: Regenerate. 1644 * po/bfd.pot: Regenerate. 1645 16462000-10-31 Philip Blundell <philb@gnu.org> 1647 1648 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle 1649 EF_SOFT_FLOAT if it is defined. 1650 16512000-10-27 Philip Blundell <philb@gnu.org> 1652 1653 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse 1654 attempts to mix PIC code with non-PIC, just mark the output as 1655 being position dependent. 1656 (elf32_arm_merge_private_bfd_data): Likewise. Print an error 1657 message for EF_SOFT_FLOAT mismatches. Display diagnostics for 1658 all mismatches, not just the first one. 1659 16602000-10-25 Chris Demetriou <cgd@sibyte.com> 1661 1662 * ieee.c (ieee_archive_p): Plug one of many possible 1663 memory leaks in error handling. 1664 16652000-10-20 Jakub Jelinek <jakub@redhat.com> 1666 1667 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data, 1668 elf32_sparc_object_p, elf32_sparc_final_write_processing): 1669 Support v8plusb. 1670 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data, 1671 sparc64_elf_object_p): Support v9b. 1672 * archures.c: Declare v8plusb and v9b machines. 1673 * bfd-in2.h: Ditto. 1674 * cpu-sparc.c: Ditto. 1675 16762000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com> 1677 1678 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location 1679 of a GOT reloc. 1680 1681 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro. 1682 (SYMBOL_CALLS_LOCAL): New macro. 1683 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL. 1684 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL. 1685 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL. 1686 (ppc_elf_relocate_section): Use flag variable to determine 1687 whether the relocation refers to a local symbol. 1688 Test whether a PLTREL24 reloc will produce a reloc by looking 1689 to see whether a PLT entry was made. 1690 16912000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com> 1692 1693 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT 1694 entries that could serve as a definition for a weak symbol. 1695 16962000-10-13 Ulf Carlsson <ulfc@engr.sgi.com> 1697 1698 From Ralf Baechle <ralf@gnu.org> 1699 1700 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument 1701 local_p. Add symbol value only for non-R_MIPS_REL32 relocations 1702 against local symbols. 1703 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01. 1704 17052000-10-12 Alan Modra <alan@linuxcare.com.au> 1706 1707 * section.c (struct sec): Add kept_section. 1708 (struct bfd_comdat_info): Remove sec, we can use above. 1709 (STD_SECTION): Add initializer. 1710 (bfd_make_section_anyway): Init here too. 1711 1712 * bfd-in2.h: Regenerate. 1713 1714 * elflink.h (elf_link_add_object_symbols): Remove unnecessary 1715 zeroing of `flags'. 1716 (elf_link_input_bfd): Set all asection->symbol->value's here, and 1717 fudge values for discarded link-once section symbols. 1718 1719 * elf64-hppa.c: Include alloca-conf.h 1720 17212000-10-11 Alan Modra <alan@linuxcare.com.au> 1722 1723 * elf.c (swap_out_syms): Revert 2000-10-07 changes. 1724 1725 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg. 1726 17272000-10-10 Alan Modra <alan@linuxcare.com.au> 1728 1729 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc. 1730 17312000-10-10 Tom Rix <trix@redhat.com> 1732 1733 * section.c (bfd_make_section_anyway): Release newsect ptr when 1734 newsect->symbol fails to alloc. Use bfd_release instead of free. 1735 17362000-10-09 Richard Henderson <rth@cygnus.com 1737 1738 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New. 1739 (elf64_ia64_unwind_entry_compare): New. 1740 (elf64_ia64_final_link): Sort the .IA_64.unwind section. 1741 17422000-10-07 Alan Modra <alan@linuxcare.com.au> 1743 1744 * elflink.h (size_dynamic_sections): Don't create various tags if 1745 .dynstr is excluded from the link. Don't set first dynsym entry 1746 if dynsymcount is zero. 1747 (elf_bfd_final_link): Don't try to swap out dynamic syms if 1748 .dynsym excluded from the link. Don't try to write any dynamic 1749 sections excluded from the link. 1750 1751 * elf.c (swap_out_syms): Handle global section symbols. 1752 17532000-10-05 DJ Delorie <dj@redhat.com> 1754 1755 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs 1756 * coffcode.h (coff_set_alignment_hook): read extended reloc count 1757 (coff_write_relocs): write extended reloc count 1758 (coff_write_object_contents): account for extended relocs 1759 17602000-10-05 Jim Wilson <wilson@cygnus.com> 1761 1762 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags 1763 field. 1764 * elf.c (_bfd_elf_make_section_from_shdr): Call the 1765 elf_backend_section_flags function. 1766 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion 1767 code. 1768 (elf64_ia64_section_flags): New function containing flag conversion 1769 code. 1770 (elf_backend_section_flags): Define to elf64_ia64_section_flags. 1771 * elfxx-target.h (elf_backend_section_flags): Define. 1772 (elfNN_bed): Initialize elf_backend_section_flags field. 1773 17742000-10-02 Alan Modra <alan@linuxcare.com.au> 1775 1776 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to 1777 _bfd_elf32_gc_record_vtable. Correct a comment. 1778 17792000-10-01 Ulf Carlsson <ulfc@engr.sgi.com> 1780 1781 From Ralf Baechle <ralf@gnu.org> 1782 1783 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld 1784 produces binaries with got[1] = 0x80000001 to differenciate them 1785 for the dynamic linker from the broken binaries produced by old 1786 versions. 1787 17882000-09-30 Petr Sorfa <petrs@sco.com> 1789 1790 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t. 1791 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t. 1792 * configure.in: Add check for pxstatus_t and lwpxstatus_t. 1793 * configure: Regenerate. 1794 17952000-09-27 Hans-Peter Nilsson <hp@axis.com> 1796 1797 Define two bfd_targets for absence and presence of leading 1798 underscore on symbols. Make sure to only link same kind. 1799 * elf32-cris.c (cris_elf_object_p, 1800 cris_elf_final_write_processing, cris_elf_print_private_bfd_data, 1801 cris_elf_merge_private_bfd_data): New. 1802 (elf_backend_object_p, elf_backend_final_write_processing, 1803 bfd_elf32_bfd_print_private_bfd_data, 1804 bfd_elf32_bfd_merge_private_bfd_data): Define. 1805 <Target vector definition>: Include elf32-target.h twice with 1806 different macro settings: 1807 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as 1808 bfd_elf32_us_cris_vec. 1809 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris". 1810 (elf_symbol_leading_char): First as 0, then '_'. 1811 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h. 1812 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs. 1813 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector. 1814 * configure: Regenerate. 1815 * targets.c: Declare bfd_elf32_us_cris_vec. 1816 * po/bfd.pot: Regenerate. 1817 18182000-09-29 Momchil Velikov <velco@fadata.bg> 1819 1820 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for 1821 R_ARM_THM_PC22 relocations. 1822 18232000-09-29 NIIBE Yutaka <gniibe@chroot.org> 1824 1825 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath. 1826 18272000-09-29 Momchil Velikov <velco@fadata.bg> 1828 1829 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if 1830 is has the SEC_HAS_CONTENTS flag set. 1831 18322000-09-28 �rjan Friberg <orjanf@axis.com> 1833 Hans-Peter Nilsson <hp@axis.com> 1834 1835 * aout-cris.c (N_TXTADDR): Define. 1836 18372000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca> 1838 1839 * som.c: Include alloca-conf.h. 1840 * Makefile.am: "make dep-am" 1841 * Makefile.in: Regenerate. 1842 18432000-09-27 Alan Modra <alan@linuxcare.com.au> 1844 1845 * elf32-hppa.c (plt_stub): New. 1846 (PLT_STUB_ENTRY): Define. 1847 (elf32_hppa_link_hash_table): Change multi_subspace to packed 1848 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch. 1849 (elf32_hppa_link_hash_table_create): Init to suit. 1850 (elf32_hppa_check_relocs): Set has_12bit_branch and 1851 has_17bit_branch as appropriate. 1852 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for 1853 non-local functions. 1854 (elf32_hppa_size_dynamic_sections): Correct setting of reltext. 1855 Add space for plt_stub as needed. 1856 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global 1857 functions at plt_stub. 1858 (elf32_hppa_finish_dynamic_sections): Write plt_stub. 1859 (elf32_hppa_create_dynamic_sections): Leave .plt executable. 1860 1861 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param. 1862 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead 1863 of fixed size, and if negative, disable handling of input sections 1864 before stub section. Set up default stub group size depending 1865 on detected branch relocs. 1866 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to 1867 ensure different offsets from sym_value aren't rounded to 1868 different 2k blocks. Use lrsel and rrsel for other stubs too for 1869 consistency rather than necessity. 1870 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F. 1871 (final_link_relocate): Likewise. 1872 (elf32_hppa_relocate_section): Likewise. 1873 1874 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc. 1875 (_bfd_elf_hppa_gen_reloc_type): Generate them. 1876 (elf_hppa_final_link_relocate): Handle them. 1877 (elf_hppa_relocate_insn): Likewise. 1878 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases. 1879 18802000-09-26 Hans-Peter Nilsson <hp@axis.com> 1881 1882 * elfcode.h (elf_object_p): Preserve and clear abfd section 1883 information. Restore at error. 1884 18852000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com> 1886 1887 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory 1888 is empty, make sure that its rva also 0. NT loader dislikes 1889 having otherwise. 1890 18912000-09-26 Steve Ellcey <sje@cup.hp.com> 1892 1893 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols 1894 global by default. 1895 18962000-09-21 Alan Modra <alan@linuxcare.com.au> 1897 1898 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in 1899 currently unused RELATIVE_DYNAMIC_RELOCS code. 1900 (hppa_discard_copies): Likewise. 1901 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct 1902 comments. Don't check non-code output sections for stub grouping. 1903 19042000-09-20 Alan Modra <alan@linuxcare.com.au> 1905 1906 * section.c (bfd_get_unique_section_name): Return NULL if 1907 bfd_malloc fails. 1908 19092000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG> 1910 1911 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0 1912 instruction sequence to actually work. 1913 (elf_m68k_finish_dynamic_sections): Change the patch-in offset 1914 accordingly. 1915 19162000-09-18 Alexandre Oliva <aoliva@redhat.com> 1917 1918 * elf32-sh.c (sh_elf_relocate_section): Use 1919 _bfd_final_link_relocate to apply the relocation against a section 1920 symbol, when doing relocatable links. 1921 19222000-09-18 Alan Modra <alan@linuxcare.com.au> 1923 1924 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section 1925 to id_sec. 1926 (stub_hash_newfunc): Here too. 1927 (hppa_add_stub): And here. 1928 (elf32_hppa_link_hash_table): Remove stub_section_created, 1929 reloc_section_created, first_init_sec and first_fini_sec. Add 1930 stub_group. 1931 (elf32_hppa_link_hash_table_create): Init to suit. 1932 (hppa_get_stub_entry): Add support for grouping stub sections. 1933 (hppa_add_stub): Likewise. Remove sec_count param and init/fini 1934 section code. Index stub vars by section->id. 1935 (elf32_hppa_size_stubs): Likewise. Remove duplicated function 1936 exit paths. Zap allocation of above removed vars. Refine 1937 link-once test. 1938 1939 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param. 1940 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. 1941 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table 1942 rather than pointer to bfd_link_info. 1943 (hppa_add_stub): Likewise. 1944 (final_link_relocate): Likewise. 1945 19462000-09-17 David Huggins-Daines <dhd@linuxcare.com> 1947 1948 (elf32_hppa_size_stubs): Don't try to build stubs for discarded 1949 link-once sections. 1950 19512000-09-16 Alexandre Oliva <aoliva@redhat.com> 1952 1953 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match 1954 ld/emulparams/shelf.sh. 1955 19562000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG> 1957 1958 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function. 1959 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration. 1960 * bfd-in2.h: Regenerate. 1961 19622000-09-15 Kenneth Block <Kenneth.Block@compaq.com> 1963 1964 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs 1965 LITUSE relocations incorrectly if -relax is specified on the ld 1966 command line and the displacement field of the load or store 1967 instruction is non-zero. (Patch by paul.winalski@compaq.com) 1968 19692000-09-15 Alan Modra <alan@linuxcare.com.au> 1970 1971 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and 1972 first_fini_sec here. 1973 (elf32_hppa_size_stubs): Instead correctly find the first .init 1974 and .fini section here. 1975 19762000-09-15 David Huggins-Daines <dhd@linuxcare.com> 1977 1978 * elf32-hppa.c (clobber_millicode_symbols): New function. 1979 (elf32_hppa_size_dynamic_sections): Call it. 1980 19812000-09-14 Alan Modra <alan@linuxcare.com.au> 1982 1983 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call 1984 packed. Add plabel, plt_abs packed booleans. 1985 (hppa_link_hash_newfunc): Init new fields. 1986 (PLABEL_PLT_ENTRY_SIZE): Define. 1987 (hppa_stub_name): Use size_t len vars. 1988 (hppa_add_stub): Likewise. 1989 (elf32_hppa_build_stubs): Likewise. 1990 (hppa_build_one_stub): Kill some compiler warnings. 1991 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs 1992 if dynamic linking. Munge the local plt offsets into 1993 local_got_refcounts. Set h->plabel for all global PLABELs. Use 1994 size_t len vars. Add assert for plabel addend. 1995 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too. 1996 (elf32_hppa_hide_symbol): New function. 1997 (elf_backend_hide_symbol): Define. 1998 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries 1999 with h->plabel set. Don't make plt entries to have dynamic syms 2000 when they have been forced local. If plt entry is used by a 2001 plabel, make it PLABEL_PLT_ENTRY_SIZE. 2002 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns. 2003 Set up .plt offsets for local syms. 2004 (elf32_hppa_relocate_section): Initialise plt entries for local 2005 syms. Leave weak undefined plabels zero. Make global plabel 2006 relocs against function symbol, and leave the addend zero. 2007 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs. 2008 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for 2009 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32 2010 relocs instead of SEGREL32 for dynamic got relocs. 2011 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry. 2012 (elf_backend_got_header_size): Adjust. 2013 (elf32_hppa_set_gp): Calculate an "ideal" LTP. 2014 2015 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define. 2016 (hppa_type_of_stub): Use it instead of #if 0 2017 (hppa_discard_copies): Use it here too. 2018 (elf32_hppa_size_dynamic_sections): And here. 2019 2020 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field. 2021 (elf32_hppa_link_hash_table_create): And here. 2022 (hppa_build_one_stub): And here. Instead keep track of stub 2023 offset using _raw_size. 2024 (elf32_hppa_size_stubs): Likewise. 2025 (elf32_hppa_build_stubs): Likewise. 2026 (hppa_size_one_stub): Likewise. Resize reloc section too. 2027 2028 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and 2029 first_fini_sec handling. Don't search for reloc section or set 2030 hplink->reloc_section_created here. 2031 (elf32_hppa_size_stubs): Instead search for reloc sections, and 2032 set reloc_section_created here. 2033 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT. 2034 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT 2035 and DT_FINI. 2036 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI. 2037 2038 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)' 2039 with `hplink->root.'. 2040 (elf32_hppa_check_relocs): Likewise. 2041 (elf32_hppa_gc_sweep_hook): Likewise. 2042 (elf32_hppa_adjust_dynamic_symbol): Likewise. 2043 (hppa_handle_PIC_calls): Likewise. 2044 (elf32_hppa_size_dynamic_sections): Likewise. 2045 (elf32_hppa_set_gp): Likewise. 2046 (elf32_hppa_relocate_section): Likewise. 2047 (elf32_hppa_finish_dynamic_symbol): Likewise. 2048 (elf32_hppa_finish_dynamic_sections): Likewise. 2049 2050 From David Huggins-Daines <dhd@linuxcare.com> 2051 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for 2052 defined weak symbols in shared links. 2053 (final_link_relocate): Calls to defined weak symbols in shared 2054 objects must go via import stubs, as the target might not be known 2055 at link time. 2056 20572000-09-14 Alexandre Oliva <aoliva@redhat.com> 2058 2059 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32, 2060 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE, 2061 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced 2062 the original entries with EMPTY_HOWTOs, and added new ones to fill 2063 in the gap. 2064 (sh_elf_info_to_howto): Make sure the new gap isn't used. 2065 (sh_elf_relocate_section): Likewise. 2066 20672000-09-13 Anders Norlander <anorland@acc.umu.se> 2068 2069 * cpu-mips.c (arch_info_struct): Add mips:4K 2070 * bfd-in2.h (bfd_mach_mips4K): New define. 2071 * archures.c: Add bfd_mach_mips4K to comment. 2072 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return 2073 E_MIPS_ARCH_2 for bfd_mach_mips4K. 2074 20752000-09-13 Marco Franzen <marcof@thyron.com> 2076 2077 * som.c (som_write_symbol_strings): Do not used fixed buffers, 2078 use size_t as a counter. 2079 (som_write_space_strings): Similarly. 2080 20812000-09-12 Jason Eckhardt <jle@cygnus.com> 2082 2083 * elf32-i860.c (elf32_i860_relocate_pc26): New function 2084 and prototype. 2085 (elf32_i860_relocate_section): Invoke new function from here. 2086 20872000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG> 2088 2089 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names 2090 static. 2091 20922000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG> 2093 2094 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for 2095 target section name instead of dumping core when the target symbol is 2096 undefined. 2097 20982000-09-09 Kazu Hirata <kazu@hxi.com> 2099 2100 * riscix.c: Remove DEFUN. 2101 21022000-09-08 Nick Clifton <nickc@redhat.com> 2103 2104 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not 2105 initialise flags in output bfd if the input bfd is the default 2106 architecture with the default flags. 2107 21082000-09-08 Kazu Hirata <kazu@hxi.com> 2109 2110 * archive.c: Fix formatting. 2111 * coff-arm.c: Likewise. 2112 * doc/chew.c: Likewise. 2113 21142000-09-08 Alan Modra <alan@linuxcare.com.au> 2115 2116 * section.c (bfd_get_unique_section_name): Put a dot before the 2117 numeric suffix. 2118 21192000-09-07 Kazu Hirata <kazu@hxi.com> 2120 2121 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID. 2122 * elf.c: Fix formatting. 2123 21242000-09-07 Alexandre Oliva <aoliva@redhat.com> 2125 2126 * config.bfd (sh-*-linux*): Added. 2127 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New. 2128 * targets.c: Declare them. 2129 * elf32-sh-lin.c: New file. 2130 * Makefile.am: Compile it. 2131 * elf32-sh.c: Don't override defines from elf32-sh-lin.c. 2132 * configure, Makefile.in: Rebuilt. 2133 21342000-09-06 Geoffrey Keating <geoffk@cygnus.com> 2135 2136 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss 2137 pseduo-section when determining where the TOC ends. 2138 2139 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to 2140 output x_tvndx as it is only two bytes wide. 2141 2142 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute 2143 reloc is 26 or 32 bits wide. 2144 2145 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant 2146 for relocs that don't change anything. Also look at the full 2147 6 bits of bitsize. 2148 21492000-09-06 Philip Blundell <philb@gnu.org> 2150 2151 * config.bfd (arm*-*-uclinux*): New target. 2152 21532000-09-06 Alexandre Oliva <aoliva@redhat.com> 2154 2155 * configure: Rebuilt with new libtool.m4. 2156 21572000-09-06 Alan Modra <alan@linuxcare.com.au> 2158 2159 * section.c (bfd_get_unique_section_name): Avoid c++ reserved 2160 word for variable name. 2161 * bfd-in2.h: Regenerate. 2162 21632000-09-05 Nick Clifton <nickc@redhat.com> 2164 2165 * config.in: Regenerate. 2166 * libbfd.h: Regenerate. 2167 * po/bfd.pot: Regenerate. 2168 * doc/bfdint.texi: Remove CVS date string - it foils compares with 2169 local versions. 2170 21712000-09-05 Steven Johnson <sbjohnson@ozemail.com.au> 2172 2173 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry. 2174 21752000-09-05 Alan Modra <alan@linuxcare.com.au> 2176 2177 Shared library and PIC support. 2178 * elf32-hppa.c (PLT_ENTRY_SIZE): New. 2179 (GOT_ENTRY_SIZE): New. 2180 (ELF_DYNAMIC_INTERPRETER): New. 2181 (STUB_SUFFIX): Define. 2182 (LONG_BRANCH_PIC_IN_SHLIB): Define. 2183 (RELATIVE_DYNAMIC_RELOCS): Define. 2184 (enum elf32_hppa_stub_type): New. 2185 (struct elf32_hppa_stub_hash_entry): Rename offset to 2186 stub_offset. Add a number of new fields. 2187 (struct elf32_hppa_link_hash_entry): New. 2188 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove 2189 global_value. 2190 (elf32_hppa_hash_table): Rename to hppa_link_hash_table. 2191 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup. 2192 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init 2193 new fields. 2194 (hppa_link_hash_newfunc): New function. 2195 (elf32_hppa_link_hash_table_create): Use above function. Init new 2196 fields. 2197 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc 2198 instead of addend, and remove sym_name from args. Don't use 2199 symbol name for local syms, instead use sym index. 2200 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return 2201 stub type rather than size. Pass in hash and handle import stub 2202 case. Also pass in reloc instead of offset so we can calculate 2203 PCREL22F and PCREL12F branches properly. 2204 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build 2205 import and export stubs too. 2206 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle 2207 import and export stub sizing. 2208 (elf32_hppa_check_relocs): New function. 2209 (elf32_hppa_adjust_dynamic_symbol): New function. 2210 (hppa_discard_copies): New function. 2211 (elf32_hppa_size_dynamic_sections): New function. 2212 (elf_backend_size_dynamic_sections): Define. 2213 (elf32_hppa_finish_dynamic_symbol): New function. 2214 (elf_backend_finish_dynamic_symbol): Define. 2215 (elf32_hppa_size_stubs): Stash params in link hash table, and move 2216 some local vars into the link hash table too. For shared links, 2217 trundle over function syms, generating export stubs. Handle 2218 PCREL22F branches. Break out stub creation code from here.. 2219 (hppa_add_stub): .. to here. New function. 2220 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't 2221 call the bfd linker. Use elf_gp to record global pointer. 2222 Calculate a value from sections if $global$ is missing. 2223 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link. 2224 (elf32_hppa_gc_mark_hook): New function. 2225 (elf_backend_gc_mark_hook): Define. 2226 (elf32_hppa_gc_sweep_hook): New function. 2227 (elf_backend_gc_sweep_hook): Define. 2228 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate. 2229 Add rel to args, and remove howto, input_bfd, offset, addend, 2230 sym_name as we can recalculate these locally. Handle calls to 2231 dynamic objects, extra PIC relocs, PCREL22F branches. Change 2232 handling of undefined weak syms. Check that stubs are in range. 2233 Only look for import stubs on PCREL17F and PCREL22F relocs. Add 2234 message on hitting a DPREL21L reloc that needs fixing. Subtract 2235 off PC for PCREL14F. Break out code that does a stub lookup from 2236 here.. 2237 (hppa_get_stub_entry): ..to here. New function. 2238 (elf32_hppa_relocate_insn): Merge into final_link_relocate. 2239 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic 2240 relocs, etc. etc. 2241 (elf32_hppa_finish_dynamic_sections): New function. 2242 (elf_backend_finish_dynamic_sections): Define. 2243 (elf_backend_final_write_processing) Define. 2244 (hppa_handle_PIC_calls): New function. 2245 (elf32_hppa_build_stubs): Call it. Pass link_info to 2246 hppa_build_one_stub. 2247 (elf32_hppa_create_dynamic_sections): New function 2248 to create .plt and .got then set .plt flags correctly. 2249 (elf_backend_create_dynamic_sections): Define. 2250 (elf32_hppa_object_p): New function. 2251 (elf_backend_object_p): Define. 2252 (elf32_hppa_elf_get_symbol_type): New function. 2253 (elf_backend_get_symbol_type): Define. 2254 (elf_backend_can_gc_sections): Define. 2255 (elf_backend_want_got_plt): Define. 2256 (elf_backend_plt_alignment): Set to 2. 2257 (elf_backend_plt_readonly): Define. 2258 (elf_backend_want_plt_sym): Define. 2259 (elf_backend_got_header_size): Reserve one entry. 2260 2261 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd. 2262 (elf32_hppa_size_stubs): Pass in multi_subspace. 2263 (elf32_hppa_set_gp): Declare. 2264 2265 * section.c (SEC_HAS_GOT_REF): Define new flag for asection. 2266 (bfd_get_unique_section_name): New function. 2267 * bfd_in2.h: Regenerate. 2268 2269 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F. 2270 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc 2271 comment. 2272 2273 From David Huggins-Daines <dhd@linuxcare.com> 2274 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning. 2275 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx. 2276 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has 2277 been updated in finish_dynamic_symbol before modifying function 2278 symbol. 2279 2280 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of 2281 eight entries. Replace NULL with bfd_elf_generic_reloc. Add 2282 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F. 2283 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some 2284 comments. Handle format == 12 for R_HPPA_PCREL_CALL. 2285 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F. 2286 (elf_hppa_relocate_insn): Likewise. Reformat some comments. 2287 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32. 2288 2289 From David Huggins-Daines <dhd@linuxcare.com> 2290 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF 2291 style of local labels as well. 2292 22932000-09-03 Philip Blundell <philb@gnu.org> 2294 2295 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate 2296 references to undefined symbols in debugging sections. 2297 22982000-09-02 H.J. Lu <hjl@gnu.org> 2299 2300 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT, 2301 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, 2302 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH 2303 section. 2304 23052000-09-02 Jason Eckhardt <jle@cygnus.com> 2306 2307 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro. 2308 (elf32_i860_is_local_label_name): New function and prototype. 2309 23102000-09-02 Nick Clifton <nickc@redhat.com> 2311 2312 * configure.in: Increase version number to 2.10.91. 2313 * configure: Regenerate. 2314 * aclocal.m4: Regenerate. 2315 * config.in: Regenerate. 2316 * po/bfd.pot: Regenerate. 2317 23182000-09-02 Daniel Berlin <dberlin@redhat.com> 2319 2320 * elf.c (_bfd_elf_make_section_from_shdr): Add 2321 .gnu.linkobce.wi. to the list of debug section names. 2322 23232000-09-02 Nick Clifton <nickc@redhat.com> 2324 2325 * dwarf2.c (find_debug_info): New function: Locate a section 2326 containing dwarf2 debug information. 2327 (bfd_dwarf2_find_nearest_line): Find all sections containing 2328 debug information and include them in the stash. 2329 23302000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com> 2331 2332 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT, 2333 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New. 2334 (sh_reloc_map): Add new relocs. 2335 (sh_elf_check_relocs, sh_elf_link_hash_newfunc, 2336 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol, 2337 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol, 2338 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New 2339 functions. 2340 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define. 2341 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le, 2342 elf_sh_plt_entry_be, elf_sh_plt_entry_le, 2343 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le): 2344 New array constants. 2345 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry): 2346 New variables. 2347 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset, 2348 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset, 2349 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset, 2350 elf_sh_plt_reloc_offset): Define. 2351 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry, 2352 elf_sh_link_hash_table): New structs. 2353 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros. 2354 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new 2355 relocation types. 2356 (elf_backend_create_dynamic_sections, 2357 bfd_elf32_bfd_link_hash_table_create, 2358 elf_backend_adjust_dynamic_symbol, 2359 elf_backend_size_dynamic_sections, 2360 elf_backend_finish_dynamic_symbol, 2361 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt, 2362 elf_backend_plt_readonly, elf_backend_want_plt_sym, 2363 elf_backend_got_header_size, elf_backend_plt_header_size): 2364 Define. 2365 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT, 2366 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC): 2367 New relocs. 2368 * bfd-in2.h, libbfd.h: Rebuilt. 2369 23702000-09-01 Alan Modra <alan@linuxcare.com.au> 2371 2372 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27 2373 change. 2374 23752000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk> 2376 2377 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags 2378 not initialized, set them to indicate the SH1 instruction set. 2379 23802000-08-31 Alexandre Oliva <aoliva@redhat.com> 2381 2382 * acinclude.m4: Include libtool and gettext macros from the 2383 top level. 2384 * aclocal.m4, configure: Rebuilt. 2385 23862000-08-29 Michael Snyder <msnyder@seadog.cygnus.com> 2387 2388 * elf.c: Eliminate references to __sparcv9 macro; replace with 2389 autoconf variables HAVE_PSINFO32_T etc. 2390 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T, 2391 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO. 2392 * config.in: Ditto. 2393 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can 2394 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto. 2395 * aclocal.m4: Ditto. 2396 * configure: Regenerate. 2397 23982000-08-27 Alan Modra <alan@linuxcare.com.au> 2399 2400 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied 2401 for any shared link, not just shared -Bsymbolic. 2402 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on 2403 any shared link, and pass link info to it. 2404 (elf_i386_size_dynamic_sections): Update comment. 2405 (elf_i386_discard_copies): Modify to discard relocs for symbols 2406 that have been forced local. 2407 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols 2408 that have been forced local. 2409 24102000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com> 2411 2412 * elflink.h (elf_link_add_object_symbols): Allow common 2413 symbols to have an alignment of 1 if explicitly requested, and 2414 not overridden by other definitions. 2415 24162000-08-22 Doug Kwan <dkwan@transmeta.com> 2417 2418 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo. 2419 * coffcode.h (coff_set_flags): Add detection of w65 architecture. 2420 24212000-08-22 H.J. Lu <hjl@gnu.org> 2422 2423 * elf-bfd.h (elf_link_hash_table): Add runpath. 2424 2425 * bfd-in.h (bfd_elf_get_runpath_list): New prototype. 2426 * bfd-in2.h: Rebuilt. 2427 2428 * elf.c (_bfd_elf_link_hash_table_init): Initialize the 2429 "runpath" field to NULL. 2430 (bfd_elf_get_runpath_list): New function. 2431 2432 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and 2433 DT_RUNPATH entries. 2434 24352000-08-22 Alexandre Oliva <aoliva@redhat.com> 2436 2437 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W, 2438 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them 2439 explicitly. Improve validation of r_type. 2440 24412000-08-21 H.J. Lu <hjl@gnu.org> 2442 2443 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the 2444 dynamic allocated content space. Add a comment to remind us that 2445 one day this ought to be fixed. 2446 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. 2447 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. 2448 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise. 2449 24502000-08-21 Jason Eckhardt <jle@cygnus.com> 2451 2452 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate 2453 field with the newly relocated value instead of adding it to the 2454 existing immediate field. 2455 (elf32_i860_relocate_splitn): Likewise. 2456 (elf32_i860_relocate_highadj): Likewise. 2457 24582000-08-16 Jason Eckhardt <jle@cygnus.com> 2459 2460 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it 2461 was previously just a stub). 2462 24632000-08-16 Alexandre Oliva <aoliva@redhat.com> 2464 2465 * elflink.c (_bfd_elf_create_got_section): Don't abort(). 2466 Formatting fixes. 2467 (_bfd_elf_create_dynamic_sections): Likewise. 2468 24692000-08-16 Andrew Macleod <amacleod@cygnus.com> 2470 2471 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address 2472 for undefined symbols to be the beginning of the section. 2473 2474 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate 2475 four extra entries at the beginning of the .rela.plt section. 2476 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt 2477 section to account for the four reserved entries in the .plt section. 2478 24792000-08-15 Geoffrey Keating <geoffk@cygnus.com> 2480 2481 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0 2482 to the list of NOPs we recognize after a branch-and-link. 2483 Use the ori NOP when one is needed. 2484 2485 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation 2486 for large archives. 2487 24882000-08-14 Jim Wilson <wilson@cygnus.com> 2489 2490 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle 2491 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP. 2492 (elf64_ia64_print_private_bfd_data): Likewise. Also handle 2493 EF_IA_64_ABSOLUTE. 2494 24952000-08-11 Alexandre Oliva <aoliva@redhat.com> 2496 2497 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static. 2498 24992000-08-10 Jason Eckhardt <jle@cygnus.com> 2500 2501 * elf32-i860.c (elf32_i860_relocate_section): New function. 2502 (i860_final_link_relocate): New function. 2503 (elf32_i860_relocate_splitn): New function. 2504 (elf32_i860_relocate_pc16): New function. 2505 (elf32_i860_relocate_highadj): New function. 2506 (elf32_i860_howto): Minor adjustments to some relocations. 2507 (elf_info_to_howto_rel): Define. 2508 (elf_backend_relocate_section): Define. 2509 25102000-08-10 Nick Clifton <nickc@cygnus.com> 2511 2512 * elf32-arm.h: Fix formatting. 2513 25142000-08-10 Bernd Schmidt <bernds@cygnus.co.uk> 2515 2516 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static. 2517 25182000-08-08 Jason Eckhardt <jle@cygnus.com> 2519 2520 * elf32-i860.c (elf32_i860_howto_table): Updated some fields. 2521 25222000-08-07 Kazu Hirata <kazu@hxi.com> 2523 2524 * ieee.c (ieee_write_debug_part): Rewrite a comment. 2525 * elf64-ia64.c: Fix a typo. 2526 25272000-08-05 Jason Eckhardt <jle@cygnus.com> 2528 2529 * elf32-i860 (elf32_i860_howto_table): New structure. 2530 (lookup_howto): New function. 2531 (elf32_i860_reloc_type_lookup): New function. 2532 (elf32_i860_info_to_howto_rela): New function. 2533 (elf_code_to_howto_index): New structure. 2534 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela. 2535 (bfd_elf32_bfd_reloc_type_lookup): Re-define as 2536 elf32_i860_reloc_type_lookup. 2537 25382000-08-04 Rodney Brown <RodneyBrown@pmsc.com> 2539 2540 * som.c (struct fixup_format): Constify `format'. 2541 (som_hppa_howto_table): Use SOM_HOWTO macro. 2542 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter. 2543 (som_bfd_reloc_type_lookup): Likewise. 2544 (compare_subspaces): Remove unused `count1', `count2'. 2545 (som_begin_writing): Remove unused `total_reloc_size'. 2546 (som_bfd_derive_misc_symbol_info): Decorate unused parameter. 2547 (som_print_symbol, som_bfd_is_local_label_name): Likewise. 2548 (som_set_reloc_info): Constify `cp'. Remove unused `addend'. 2549 (som_find_nearest_line): Decorate unused parameter(s). 2550 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise. 2551 (som_bfd_link_split_section): Likewise. 2552 25532000-08-03 Nick Clifton <nickc@cygnus.com> 2554 2555 * section.c: Restore backed out code. 2556 * elf.c: Restore backed out code. 2557 (copy_private_bfd_data): Fix bug preventing stipped dynamic 2558 binaries from working. 2559 * bfd-in2.h: Regenerate. 2560 25612000-08-03 H.J. Lu <hjl@gnu.org> 2562 2563 * section.c: Back out the change made by Nick Clifton 2564 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic 2565 binaries. 2566 * bfd-in2.h: Likewise. 2567 * elf.c: Likewise. 2568 25692000-08-03 Alexandre Oliva <aoliva@redhat.com> 2570 2571 * elf32-sh.c (sh_elf_reloc_loop): Warning removal. 2572 25732000-07-31 Jason Eckhardt <jle@cygnus.com> 2574 2575 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860. 2576 * bfd-in2.h, libbfd.h: Regenerate. 2577 25782000-07-31 Nick Clifton <nickc@cygnus.com> 2579 2580 * section.c (struct sec): Add new boolean field 'segment_mark'. 2581 (STD_SECTION): Initialise new field to zero. 2582 2583 * bfd-in2.h: Regenerate. 2584 2585 * elf.c (copy_private_bfd_data): Reorganise section to segment 2586 mapping to cope with moved sections requiring new segments, 2587 and overlapping segments. 2588 (SEGMENT_END): New macro: Return the end address of a segment. 2589 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment 2590 contains a section by comparing their VMA addresses. 2591 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment 2592 contains a section by comparing their LMA addresses. 2593 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a 2594 section should be included in a segment. 2595 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment 2596 follows another in memory. 2597 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two 2598 segments overlap. 2599 26002000-07-22 Jason Eckhardt <jle@cygnus.com> 2601 2602 * cpu-i860.c: Added comments. 2603 2604 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to 2605 bfd_elf32_i860_little_vec. 2606 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little". 2607 (ELF_MAXPAGESIZE): Changed to 4096. 2608 2609 * targets.c (bfd_elf32_i860_little_vec): Declaration of 2610 new target. 2611 (bfd_target_vector): Added bfd_elf32_i860_little_vec. 2612 2613 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added 2614 config for little endian elf32 i860. 2615 (targ_defvec): Define for the new config above 2616 as "bfd_elf32_i860_little_vec". 2617 (targ_selvecs): Define for the new config above 2618 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec" 2619 2620 * configure.in (bfd_elf32_i860_little_vec): Added recognition 2621 of new target vec. 2622 2623 * configure: Regenerated. 2624 26252000-07-27 H.J. Lu <hjl@gnu.org> 2626 2627 * elflink.h (elf_merge_symbol): Take one more argument, 2628 dt_needed, to indicate if the symbol comes from a DT_NEEDED 2629 entry. Don't overide the existing weak definition if dt_needed 2630 is true. 2631 (elf_link_add_object_symbols): Pass dt_needed to 2632 elf_merge_symbol (). 2633 26342000-07-27 Nick Clifton <nickc@cygnus.com> 2635 2636 * elflink.h (elf_link_size_reloc_section): Zeroes the section's 2637 allocated contents. 2638 26392000-07-25 Geoffrey Keating <geoffk@cygnus.com> 2640 2641 * configure.host (*-*-aix*): AIX has 'long long' always. 2642 2643 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure. 2644 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps. 2645 (xcoff_write_archive_contents_big): Don't update the offset 2646 of the symbol table, xcoff_write_armap will do it. 2647 26482000-07-23 Ulf Carlsson <ulfc@engr.sgi.com> 2649 2650 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead 2651 of dynobj for SGI_COMPAT checks. 2652 26532000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG> 2654 2655 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function. 2656 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration. 2657 * bfd-in2.h: Regenerate. 2658 26592000-07-21 Nick Clifton <nickc@cygnus.com> 2660 2661 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of 2662 range symbol indices in relocs and issue an error message. 2663 26642000-07-20 H.J. Lu <hjl@gnu.org> 2665 2666 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check 2667 info->new_dtags when setting DT_FLAGS_1. It will only be set 2668 by the new linker options. It shouldn't break anything. 2669 26702000-07-20 H.J. Lu <hjl@gnu.org> 2671 2672 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1 2673 only if info->new_dtags is true. 2674 26752000-07-20 H.J. Lu <hjl@gnu.org> 2676 2677 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set 2678 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true. 2679 26802000-07-20 Hans-Peter Nilsson <hp@axis.com> 2681 2682 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo. 2683 (ALL_MACHINES_CFILES): Add cpu-cris.c. 2684 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo. 2685 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c. 2686 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules. 2687 * Makefile.in: Rebuild. 2688 * aclocal.m4: Rebuild. 2689 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris. 2690 * archures.c (enum bfd_architecture): Add bfd_arch_cris. 2691 (bfd_cris_arch): Declare. 2692 (bfd_archures_list): Add bfd_cris_arch. 2693 * bfd-in2.h: Rebuild. 2694 * config.bfd: (cris-*-*): New target. 2695 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors. 2696 * configure: Rebuild. 2697 * elf.c (prep_headers): Add bfd_arch_cris. 2698 * libbfd.h: Rebuild. 2699 * libaout.h (enum machine_type): Add M_CRIS. 2700 * reloc.c: Add CRIS relocations. 2701 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare. 2702 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec. 2703 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files. 2704 * po/POTFILES.in, po/bfd.pot: Regenerate. 2705 27062000-07-19 H.J. Lu <hjl@gnu.org> 2707 2708 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set 2709 DF_TEXTREL if DT_TEXTREL is set. 2710 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise. 2711 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise. 2712 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. 2713 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise. 2714 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. 2715 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. 2716 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise. 2717 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise. 2718 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise. 2719 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise. 2720 2721 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also 2722 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if 2723 DT_RPATH is set. 2724 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary. 2725 27262000-07-19 H.J. Lu <hjl@gnu.org> 2727 2728 * bfd-in.h (bfd_elf_set_dt_needed_soname): New. 2729 * bfd-in2.h: Rebuild. 2730 2731 * elf-bfd.h (elf_obj_tdata): Add dt_soname. 2732 (elf_dt_soname): New. 2733 2734 * elf.c (bfd_elf_set_dt_needed_soname): New. 2735 2736 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED 2737 entry if the shared object loaded by DT_NEEDED is used to 2738 resolve the reference in a regular object. 2739 27402000-07-19 H.J. Lu <hjl@gnu.org> 2741 2742 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG, 2743 DT_DEPAUDIT and DT_AUDIT as strings. 2744 27452000-07-19 Nick Clifton <nickc@cygnus.com> 2746 2747 * format.c: Fix formatting. 2748 27492000-07-19 H.J. Lu <hjl@gnu.org> 2750 2751 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM. 2752 27532000-07-19 H.J. Lu <hjl@gnu.org> 2754 2755 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW, 2756 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ, 2757 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ, 2758 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1, 2759 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT, 2760 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT, 2761 DT_FLAGS_1, DT_USED and DT_CHECKSUM. 2762 27632000-07-18 Andrew Cagney <cagney@b1.cygnus.com> 2764 2765 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move 2766 renamed functions from here... 2767 (assign_section_numbers): Use renamed functions. 2768 (prep_headers): Use renamed functions. 2769 2770 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here. 2771 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update. 2772 * bfd-in2.h: Regenerate. 2773 27742000-07-18 Ulf Carlsson <ulfc@engr.sgi.com> 2775 2776 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add 2777 parenthesis in if statement. 2778 27792000-07-17 Koundinya K <kk@ddeorg.soft.net> 2780 2781 Enable the support for Traditional MIPS. 2782 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand 2783 return ict_none appropriately for traditional mips targets. 2784 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips. 2785 (STUB_MOVE): Conditionalize for traditonal mips. 2786 (STUB_LI16): Likewise. 2787 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making 2788 room for RTPROC header. 2789 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set 2790 the permission for the PT_DYNAMIC as read, write and execute. 2791 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING 2792 for traditonal mips. 2793 (_bfd_mips_elf_create_dynamic_sections): Add the symbol 2794 _DYNAMIC_LINKING for traditonal mips. 2795 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP 2796 in case of traditonal mips. 2797 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT 2798 entry is required. For a function if PLT is not required then set the 2799 corresponding hash table entry to 0. 2800 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for 2801 traditonal mips. 2802 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a 2803 shared object set the value to 0. 2804 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol 2805 _DYNAMIC_LINKING for traditonal mips. 2806 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP 2807 for traditonal mips. 2808 28092000-07-15 H.J. Lu <hjl@gnu.org> 2810 2811 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL. 2812 28132000-07-12 Charles Wilson <cwilson@ece.gatech.edu> 2814 2815 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing 2816 out a structure that is BFD_IN_MEMORY. 2817 28182000-07-11 Alan Modra <alan@linuxcare.com.au> 2819 2820 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of 2821 bfd pointer. Print section id instead of bfd pointer for local 2822 syms. Prefix addend with `+' for global syms as well as local. 2823 Correct calculation of name component lengths. 2824 (elf64_hppa_check_relocs): Update call to get_dyn_name. 2825 2826 From David Huggins-Daines <dhd@linuxcare.com> 2827 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too. 2828 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings. 2829 (elf64_hppa_modify_segment_map): Likewise. 2830 28312000-07-11 Andrew Cagney <cagney@b1.cygnus.com> 2832 2833 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA 2834 addresses to be "naturally" sign extended. Return -1 if unknown. 2835 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration. 2836 * bfd-in2.h: Regenerate. 2837 28382000-07-11 Andrew Cagney <cagney@b1.cygnus.com> 2839 2840 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32 2841 and ECOF_SIGNED_64 to list ways to extract an offset. 2842 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in, 2843 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out): 2844 Update. 2845 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64. 2846 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32. 2847 28482000-07-11 Andrew Cagney <cagney@b1.cygnus.com> 2849 2850 * elfcode.h (elf_object_p): Use bfd_set_start_address and not 2851 bfd_get_start_address. 2852 (elf_swap_ehdr_in): Sign extend e_entry when applicable. 2853 (elf_swap_ehdr_out): Ditto. 2854 28552000-07-10 Alexander Aganichev <AAganichev@hypercom.com> 2856 2857 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for 2858 compatibility with older binutils. 2859 28602000-07-10 Alan Modra <alan@linuxcare.com.au> 2861 2862 * section.c (bfd_make_section_anyway): Start section_id at 0x10. 2863 (STD_SECTION): Avoid negative ids, instead use 0 to 3. 2864 2865 From Ryan Bradetich <rbradetich@uswest.net> 2866 * dwarf1.c (parse_die): Cure signed/unsigned char warnings. 2867 (parse_line_table): Ditto. 2868 (_bfd_dwarf1_find_nearest_line): Ditto. 2869 * syms.c (cmpindexentry): Remove extra `*' from params. 2870 28712000-07-09 Koundinya K <kk@ddeorg.soft.net> 2872 2873 * elf32-mips.c (sort_dynamic_relocs): New Function. 2874 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs 2875 via qsort to sort the dynamic relocations in increasing r_symndx 2876 value. 2877 28782000-07-09 Alan Modra <alan@linuxcare.com.au> 2879 2880 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add 2881 ATTRIBUTE_UNUSED to unused args. 2882 (get_opd): Likewise. 2883 (get_plt): Likewise. 2884 (get_dlt): Likewise. 2885 (get_stub): Likewise. 2886 (elf64_hppa_adjust_dynamic_symbol): Likewise. 2887 (elf64_hppa_link_output_symbol_hook): Likewise. 2888 (elf64_hppa_check_relocs): Delete unused var. 2889 (elf64_hppa_size_dynamic_sections): Likewise. 2890 (elf64_hppa_finalize_opd): Likewise. 2891 (elf64_hppa_finalize_dynreloc): Likewise. 2892 (elf64_hppa_modify_segment_map): Likewise. 2893 (elf64_hppa_finish_dynamic_sections): Likewise. 2894 2895 * elf-hppa.h (elf_hppa_final_write_processing): Add 2896 ATTRIBUTE_UNUSED to unused args. 2897 (elf_hppa_final_link_relocate): Likewise. 2898 (elf_hppa_record_segment_addrs): Add paretheses. 2899 (elf_hppa_relocate_section): Constify dyn_name. 2900 2901 From David Huggins-Daines <dhd@linuxcare.com> 2902 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and 2903 rearrange case statement so that it gets preferred to 32-bit ones. 2904 2905 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use 2906 asection->id instead of address of asection structure. 2907 (elf32_hppa_size_stubs): Likewise. 2908 2909 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section 2910 for .init* and .fini*. 2911 2912 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers 2913 and addends used in stub names to 32 bits. 2914 (elf32_hppa_size_stubs): Likewise. 2915 2916 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend 2917 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32, 2918 not bfd_put_64. Fix minor comment typo and formatting. 2919 2920 Changes to create multiple linker stubs, positioned immediately 2921 before the section where they are required. 2922 * elf32-hppa.c: Don't include hppa_stubs.h. 2923 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section. 2924 (elf32_hppa_stub_hash_table): Delete. 2925 (elf32_hppa_link_hash_entry): Delete. 2926 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for 2927 stub_hash_table, and store the struct here rather than a pointer. 2928 Delete output_symbol_count. Add offset array. Change 2929 global_value to a bfd_vma. 2930 (elf32_hppa_stub_hash_lookup): Use table instead of table->root. 2931 (elf32_hppa_stub_hash_traverse): Delete. 2932 (elf32_hppa_name_of_stub): Delete. 2933 (elf32_hppa_link_hash_lookup): Delete. 2934 (elf32_hppa_link_hash_traverse): Delete. 2935 (elf32_hppa_stub_hash_table_init): Delete. 2936 (elf32_hppa_size_of_stub): Pass input section and offset rather 2937 than location and calculate location here. Don't pass name as all 2938 stubs are now the same size. 2939 (elf32_hppa_stub_hash_newfunc): Init new fields. 2940 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table 2941 too. 2942 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before 2943 comparing against ints. Rewrite stub handling code. 2944 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned. 2945 Case enums to int before comparing against ints. Remove 2946 bfd_reloc_dangerous case. 2947 (elf32_hppa_build_one_stub): Rewrite. 2948 (elf32_hppa_size_one_stub): New function. 2949 (elf32_hppa_build_stubs): Rewrite. 2950 (elf32_hppa_size_stubs): Pass in linker call-back functions. 2951 Rewrite stub-handling specific code. 2952 2953 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype. 2954 2955 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo. 2956 2957 * hppa_stubs.h: Delete. 2958 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h 2959 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies. 2960 * Makefile.in: Regenerate. 2961 2962 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and 2963 e_nlrsel. 2964 2965 * libhppa.h (hppa_field_adjust): Correct e_nsel case. 2966 2967 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset 2968 and section name for bfd_reloc_notsupported error message. 2969 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning 2970 bfd_reloc_notsupported. 2971 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd. 2972 2973 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle 2974 undefined weak symbols for all relocs. 2975 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch 2976 offsets are relative to one past the delay slot. 2977 (elf32_hppa_size_stubs): Account for reloc addend when calculating 2978 branch destination. Put addend into stub name too. 2979 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and 2980 adjust by 8 when deciding whether a linker stub is needed. Put 2981 addend into stub name as for above. 2982 2983 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on 2984 various args and vars. 2985 (elf32_hppa_bfd_final_link_relocate): Here too. 2986 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for 2987 inner block var to avoid shadowing. 2988 2989 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg 2990 unsigned. 2991 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto. 2992 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto. 2993 (elf_hppa_fake_sections): Rename local var to avoid shadowing. 2994 2995 * libhppa.h: Change practically all unsigned ints to plain ints. 2996 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for 2997 prototypes. 2998 2999 From Ryan Bradetich <rbradetich@uswest.net> 3000 * libhppa.h (hppa_opcode_type): New enum to replace #define's. 3001 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to 3002 suit above. 3003 From David Huggins-Daines <dhd@linuxcare.com> 3004 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants 3005 to the new OP_* ones. 3006 3007 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on 3008 error exit. Bail out earlier on plabel relocs that we aren't 3009 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy 3010 string, and then don't free our copy. 3011 (elf32_hppa_build_one_stub): Make insn unsigned int. 3012 3013 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only 3014 available with BL, not BE and BLE. 3015 3016 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example 3017 code for elf arg relocs. 3018 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local 3019 argument with elf_link_hash_entry h. Handle undefined weak 3020 symbols. Move $global$ lookup from here... 3021 (elf32_hppa_relocate_section): ...to here. Return correct error 3022 message for non-handled relocs. 3023 (elf32_hppa_size_of_stub): Correctly test branch range. Previous 3024 wrong test was -0x3ffff to +0x40000. 3025 3026 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R, 3027 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches; 3028 Handle them as such. 3029 (elf_hppa_relocate_insn): Fix a typo. 3030 3031 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete. 3032 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a, 3033 assemble_17, assemble_21): Delete. 3034 Supply defines for all 64 possible opcodes. 3035 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode 3036 formats. Handle COMICLR. 3037 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11, 3038 -10, -16, 16, 22. 3039 3040 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite. 3041 (elf32_hppa_bfd_final_link_relocate): Major rewrite. 3042 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls 3043 to suit. 3044 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all 3045 the local syms - did this code get deleted accidentally? Ignore 3046 undefined and undefweak syms. 3047 3048 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost 3049 block. Use it instead of elf64_hppa_hash_table (info). 3050 (elf_hppa_final_link_relocate): Use hppa_info instead of 3051 elf64_hppa_hash_table (info). 3052 3053 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16, 3054 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn. 3055 (hppa_rebuild_insn): Mask immediate bits here instead. 3056 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too. 3057 30582000-07-08 Alan Modra <alan@linuxcare.com.au> 3059 3060 * section.c (struct sec): Add id field. Tidy comment formatting. 3061 (bfd_make_section_anyway): Set id. 3062 (STD_SECTION): Init id too. 3063 Change CONST to const throughout. 3064 * archures.c (bfd_arch_info): Tidy comment. 3065 (bfd_arch_list): Change a CONST to const. 3066 * libbfd-in.h: Tidy comments and replace CONST with const. 3067 * elf-bfd.h: Likewise. 3068 * libbfd.h: Regenerate. 3069 * bfd-in2.h: Regenerate. 3070 * libcoff.h: Regenerate. 3071 30722000-07-07 DJ Delorie <dj@redhat.com> 3073 3074 * archive.c (_bfd_write_archive_contents): Add an informative 3075 comment. 3076 30772000-07-06 Kazu Hirata <kazu@hxi.com> 3078 3079 * srec.c: Fix formatting. 3080 30812000-06-05 DJ Delorie <dj@redhat.com> 3082 3083 * MAINTAINERS: new 3084 30852000-07-04 Alexandre Oliva <aoliva@redhat.com> 3086 3087 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol 3088 value of PC-relative offsets. 3089 30902000-07-03 Jim Wilson <wilson@cygnus.com> 3091 3092 * elf64-alpha.c (alpha_elf_size_info): New. 3093 (elf_backend_size_info): Define to alpha_elf_size_info. 3094 * elfcode.h (elf_size_info): Change hash bucket size to 4. 3095 30962000-07-03 Ulf Carlsson <ulfc@engr.sgi.com> 3097 3098 * elf32-mips.c: Include elf32-target.h again for the traditional 3099 MIPS targets. 3100 31012000-07-03 Marek Michalkiewicz <marekm@linux.org.pl> 3102 3103 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup): 3104 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings. 3105 (avr_info_to_howto_rela): Likewise. 3106 (elf32_avr_gc_mark_hook): Likewise. 3107 (elf32_avr_gc_sweep_hook): Likewise. 3108 (elf32_avr_relocate_section): Likewise. 3109 31102000-07-03 Mark Elbrecht <snowball3@bigfoot.com> 3111 3112 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into 3113 an external symbol for a non-shared, non-relocatable link. 3114 31152000-07-03 Nick Clifton <nickc@redhat.com> 3116 3117 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol 3118 is an external symbol. 3119 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak 3120 external symbol. 3121 31222000-07-03 Kazu Hirata <kazu@hxi.com> 3123 3124 * reloc16.c: Fix formatting. 3125 31262000-07-01 Koundinya K <kk@ddeorg.soft.net> 3127 3128 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4* 3129 to add a new target for traditional mips i.e 3130 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec. 3131 * configure.in: Likewise. 3132 * configure: Rebuild. 3133 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in 3134 bfd_target_vector. 3135 (bfd_elf32_tradlittlemips_vec): Likewise. 3136 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test 3137 to see that elfNN_bed does not get redefined even if the target file 3138 is included twice for a chip. See elf32-mips.c. 3139 31402000-07-01 Alan Modra <alan@linuxcare.com.au> 3141 3142 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed 3143 (CLEANFILES): Add DEPA. 3144 * Makefile.in: Regenerate. 3145 31462000-06-30 DJ Delorie <dj@cygnus.com> 3147 3148 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we 3149 can't assume the PE header is at 0x80. 3150 31512000-06-29 Mark Elbrecht <snowball3@bigfoot.com> 3152 3153 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH. 3154 31552000-06-28 Mark Elbrecht <snowball3@bigfoot.com> 3156 3157 * go32stub.h: Update stub. 3158 31592000-06-26 Marek Michalkiewicz <marekm@linux.org.pl> 3160 3161 * archures.c (bfd_mach_avr5): Define. 3162 * bfd-in2.h (bfd_mach_avr5): Define. 3163 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to 3164 bfd_mach_avr5, add bfd_mach_avr4. Update comments. 3165 (compatible): Update comment. Add missing test. 3166 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap 3167 for avr2 and avr4. Simplify 8K wrap code. 3168 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5. 3169 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5. 3170 31712000-06-26 Kazu Hirata <kazu@hxi.com> 3172 3173 * coff-h8300.c: Fix formatting. 3174 * cpu-h8300.c: Likewise. 3175 31762000-06-24 Alexandre Oliva <aoliva@redhat.com> 3177 3178 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)' 3179 for local symbols whose names are unknown. 3180 31812000-06-22 Alan Modra <alan@linuxcare.com.au> 3182 3183 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we 3184 find one. 3185 * Makefile.in: Regenerate. 3186 * doc/Makefile.in: Regenerate. 3187 31882000-06-20 H.J. Lu <hjl@gnu.org> 3189 3190 * Makefile.am: Rebuild dependency. 3191 * Makefile.in: Rebuild. 3192 31932000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl> 3194 3195 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function. 3196 (elf_backend_copy_indirect_symbol): Map to the new function. 3197 31982000-06-20 Alan Modra <alan@linuxcare.com.au> 3199 3200 * archive.c (normalize): Correct pointer comparison when checking 3201 for backslashes. 3202 (bfd_bsd_truncate_arname): Likewise. 3203 (bfd_gnu_truncate_arname): Likewise. 3204 32052000-06-20 Ulf Carlsson <ulfc@engr.sgi.com> 3206 3207 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual 3208 sections elf_{text,data}_{section,symbol}. 3209 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove. 3210 (_bfd_mips_elf_hide_symbol): New function. 3211 (elf_backend_hide_symbol): Map to the new function. 3212 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD 3213 definitions of mips_elf_{text,data}_{section,symbol}. 3214 (mips_elf_local_relocation_p): Try to find the direct symbol 3215 based on new check_forced argument. 3216 (mips_elf_calculate_relocation): Use new version of 3217 mips_elf_local_relocation_p. 3218 (mips_elf_relocate_section): Likewise. 3219 (_bfd_mips_elf_relocate_section): Likewise. 3220 (mips_elf_sort_hash_table): Only assert that have enough GOT 3221 space. 3222 (mips_elf_got16_entry): Match all 32 bits to the existing GOT 3223 entry if the relocation based on the new external argument. 3224 (mips_elf_create_dynamic_relocation): Assert that we have a 3225 section contents allocated where we can swap out the dynamic 3226 relocations. 3227 (mips_elf_calculate_relocation): Find the real hash-table entry 3228 correctly by using h->root.root.type. Only create a dynamic 3229 relocation entry if the symbol is defined in a shared library. 3230 Create an external GOT entry for the GOT16 relocation if the 3231 symbol was forced local. 3232 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a 3233 dynamic index if the symbol was forced local. 3234 32352000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl> 3236 3237 * elf32-mips.c: Fix typos in comments. 3238 32392000-06-19 Mark Kettenis <kettenis@gnu.org> 3240 3241 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef 3242 CORE_VERSION_1. 3243 32442000-06-18 Stephane Carrez <stcarrez@worldnet.fr> 3245 3246 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild. 3247 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS, 3248 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files. 3249 * configure.in (bfd_elf32_m68hc12_vec): Recognize. 3250 (bfd_elf32_m68hc11_vec): Likewise. 3251 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11. 3252 Supports 68hc11 & 68hc12 at the same time. 3253 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in 3254 bfd_target_vector. 3255 (bfd_elf32_m68hc11_vec): Likewise. 3256 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11. 3257 * archures.c (bfd_m68hc12_arch): Define and register in global list 3258 (bfd_m68hc11_arch): Likewise. 3259 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8, 3260 BFD_RELOC_M68HC11_3B): Define. 3261 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support. 3262 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support. 3263 32642000-06-18 Ulf Carlsson <ulfc@engr.sgi.com> 3265 3266 * elf_bfd.h (struct elf_backend_data): Add info argument to 3267 elf_backend_hide_symbol. 3268 (_bfd_elf_link_hash_hide_symbol): Likewise. 3269 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise. 3270 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise. 3271 * elflink.h (elf_link_add_object_symbols): Likewise. 3272 (elf_link_assign_sym_version): Likewise. 3273 32742000-06-18 H.J. Lu <hjl@gnu.org> 3275 3276 * coff-i386.c (coff_i386_reloc): Don't return in case of 3277 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined. 3278 Compensate PE relocations when linking with non-PE object 3279 files to generate a non-PE executable. 3280 32812000-06-17 Ulf Carlsson <ulfc@engr.sgi.com> 3282 3283 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write 3284 GOT entries if we're doing a static link or -Bsymbolic link. 3285 32862000-06-15 Ulf Carlsson <ulfc@engr.sgi.com> 3287 3288 * elflink.h (elf_link_adjust_relocs): Check for and call backend 3289 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if 3290 available. 3291 (elf_link_output_relocs): Likewise. 3292 (elf_reloc_link_order): Likewise. 3293 32942000-06-16 Nicholas Duffek <nsd@redhat.com> 3295 3296 * archures.c (enum bfd_architecture): #define constants for 3297 PowerPc and RS6000 machine numbers. 3298 * bfd-in2.h: Regenerate. 3299 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch 3300 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc 3301 and RS6000 machine numbers using #defined constants from 3302 archures.c. 3303 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000 3304 machine numbers using #defined constants from archures.c. Add 3305 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify 3306 64-bit words in 620 entry. 3307 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1, 3308 RSC, and RS2. 3309 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k). 3310 33112000-06-16 Nicholas Duffek <nsd@cygnus.com> 3312 3313 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64. 3314 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field. 3315 * libcoff.h (struct xcoff_tdata): Define xcoff64 field. 3316 33172000-06-16 Nicholas Duffek <nsd@redhat.com> 3318 3319 * bfd-in.h (bfd_family_coff): Define. 3320 * bfd-in2.h: Regenerate. 3321 * coffgen.c (coff_count_linenumbers, coff_symbol_from, 3322 coff_find_nearest_line): Check COFFness using bfd_family_coff() 3323 instead of bfd_target_coff_flavour. 3324 * cofflink.c (_bfd_coff_final_link): Likewise. 3325 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to 3326 exclude XCOFF files. 3327 * reloc.c (bfd_perform_relocation, bfd_install_relocation): 3328 Likewise. 3329 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour. 3330 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour. 3331 * xcofflink.c (XCOFF_XVECP): Delete. 3332 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol, 3333 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc, 3334 bfd_xcoff_record_link_assignment, 3335 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with 3336 check for bfd_target_xcoff_flavour. 3337 33382000-06-16 Nicholas Duffek <nsd@redhat.com> 3339 3340 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core 3341 files on AIX 4.3. 3342 (read_hdr): New function. 3343 (rs6000coff_core_p): Store mstsave or __context64 struct instead 3344 of trying to extract individual registers. Set abfd->arch_info 3345 to match the architecture that created the core file. 3346 (rs6000coff_get_section_contents): Delete. 3347 * xcoff-target.h (rs6000coff_get_section_contents): Delete. 3348 33492000-06-14 H.J. Lu <hjl@gnu.org> 3350 3351 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec) 3352 is NULL. 3353 33542000-06-13 H.J. Lu <hjl@gnu.org> 3355 3356 * configure: Regenerate. 3357 33582000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk> 3359 3360 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of 3361 armpei_little_vec. 3362 33632000-06-08 David O'Brien <obrien@FreeBSD.org> 3364 3365 * configure.in (VERSION): Update to show this is the CVS mainline. 3366 33672000-06-07 Alan Modra <alan@linuxcare.com.au> 3368 3369 * elf32-d10v.c: Include elf/d10v.h 3370 (enum reloc_type): Delete. 3371 * elf32-d30v.c: Include elf/d30v.h 3372 (enum reloc_type): Delete. 3373 3374 * Makefile.am: Run "make dep-am" to regenerate dependencies. 3375 * Makefile.in: Regenerate. 3376 3377 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs. 3378 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and 3379 move HOWTOs into elf_howto_table. 3380 (R_386_standard, R_386_ext_offset): Define. 3381 (R_386_ext, R_386_vt_offset, R_386_vt): Define. 3382 (elf_i386_reloc_type_lookup): Modify calculation of index into 3383 elf_howto_table since we've removed the padding. 3384 (elf_i386_info_to_howto_rel): Likewise. 3385 (elf_i386_relocate_section): Likewise. 3386 33872000-06-06 Michael Snyder <msnyder@seadog.cygnus.com> 3388 3389 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t. 3390 33912000-06-05 H.J. Lu <hjl@gnu.org> 3392 3393 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag 3394 an error when seeing an undefined symbol with hidden/internal 3395 attribute. It is handled in *_relocate_section (). 3396 33972000-06-05 H.J. Lu <hjl@gnu.org> 3398 3399 * elflink.h (elf_fix_symbol_flags): Follow the link for the 3400 indirect symbol for the ELF_LINK_NON_ELF bit. 3401 (elf_link_output_extsym): Don't output the indirect symbol even 3402 if the ELF_LINK_NON_ELF bit is set. 3403 34042000-06-01 J.T. Conklin <jtc@redback.com> 3405 3406 * config.bfd (i[3456]86-*-netbsdelf*): New target. 3407 (i[3456]86-*-netbsdaout*): New target. 3408 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs. 3409 (i[3456]86-*-openbsd*): Likewise. 3410 34112000-05-30 Andrew Cagney <cagney@b1.cygnus.com> 3412 3413 * trad-core.c: From hpux-core.c, include <dirent.h> or 3414 <sys/ndir.h> when possible. 3415 34162000-05-31 Nick Clifton <nickc@cygnus.com> 3417 3418 * opintl.h (_(String)): Explain why dgettext is used instead 3419 of gettext. 3420 34212000-05-31 Ulrich Drepper <drepper@redhat.com> 3422 3423 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version 3424 definitions. We must not assume they are sorted in the file 3425 according to their index numbers. 3426 34272000-05-31 Alan Modra <alan@linuxcare.com.au> 3428 3429 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field 3430 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and 3431 R_PARISC_DIR17F are for absolute branches; Handle them as such. 3432 34332000-05-30 Nick Clifton <nickc@cygnus.com> 3434 3435 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB, 3436 80960CA, 80960MC as valid machine names. 3437 34382000-05-30 H.J. Lu <hjl@gnu.org> 3439 3440 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the 3441 visibility bits if the symbol is undefined. Correctly handle 3442 weak undefined symbols with hidden and internal attributes. 3443 3444 * elflink.h (elf_link_add_object_symbols): Always turn the 3445 symbol into local if it has the hidden or internal attribute. 3446 34472000-05-29 Philip Blundell <philb@gnu.org> 3448 3449 * ppcboot.c: Add packed attribute if compiling with GCC. 3450 34512000-05-29 Anatoly Vorobey <mellon@pobox.com> 3452 3453 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal. 3454 34552000-05-26 Michael Snyder <msnyder@seadog.cygnus.com> 3456 3457 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus, 3458 elfcore_grok_psinfo): Add code to allow debugging a 32-bit 3459 corefile on a 64-bit (Sparc Solaris) host. Also clean up 3460 a few old comments. 3461 34622000-05-26 Alan Modra <alan@linuxcare.com.au> 3463 3464 * Makefile.am: Update dependencies with "make dep-am" 3465 * Makefile.in: Regenerate. 3466 3467 * sysdep.h (gettext, dgettext, dcgettext, textdomain, 3468 bindtextdomain): Replace defines with those from intl/libgettext.h 3469 to quieten gcc warnings. 3470 34712000-05-26 Eli Zaretskii <eliz@is.elta.co.il> 3472 3473 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH. 3474 3475 * archive.c (normalize, bfd_bsd_truncate_arname, 3476 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support 3477 file names with backslashes. 3478 3479 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file 3480 before opening it. 3481 3482 * sysdep.h: Include filenames.h. 3483 34842000-05-26 Alan Modra <alan@linuxcare.com.au> 3485 3486 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777. 3487 34882000-05-26 Jakub Jelinek <jakub@redhat.com> 3489 3490 * elf64-sparc.c (sparc64_elf_relax_section): New. 3491 (sparc64_elf_relocate_section): Optimize tail call into branch always 3492 if possible. 3493 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 3494 (elf32_sparc_relax_section): New. 3495 34962000-05-26 Jakub Jelinek <jakub@redhat.com> 3497 3498 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters. 3499 Remove unusued variables. 3500 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long. 3501 (sparc64_elf_merge_private_bfd_data): Fix shared library case from 3502 previous fix, so that shared libs really don't influence targets 3503 extension mask and memory model. 3504 35052000-05-23 H.J. Lu <hjl@gnu.org> 3506 3507 * elf64-alpha.c (elf64_alpha_relocate_section): Check 3508 h->root.other not h->other. 3509 * elf32-mips.c (mips_elf_calculate_relocation): Likewise. 3510 3511 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo. 3512 35132000-05-23 H.J. Lu <hjl@gnu.org> 3514 3515 * elf32-i386.c (elf_i386_relocate_section): Don't allow the 3516 undefined symbol with the non-default visibility attributes. 3517 * elf-hppa.h (elf_hppa_relocate_section): Likewise. 3518 * elf32-arm.h (elf32_arm_relocate_section): Likewise. 3519 * elf32-i370.c (i370_elf_relocate_section): Likewise. 3520 * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 3521 * elf32-mcore.c (mcore_elf_relocate_section): Likewise. 3522 * elf32-mips.c (mips_elf_calculate_relocation): Likewise. 3523 * elf32-ppc.c (ppc_elf_relocate_section): Likewise. 3524 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 3525 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. 3526 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise. 3527 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. 3528 35292000-05-22 Richard Henderson <rth@cygnus.com> 3530 3531 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI, 3532 PCREL22, PCREL64I. Zero size of special relocs. 3533 (elf64_ia64_reloc_type_lookup): Likewise. 3534 (USE_BRL, oor_brl, oor_ip): New. 3535 (elf64_ia64_relax_section): New. 3536 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I. 3537 (elf64_ia64_install_value): Likewise, plus PCREL21BI. 3538 (elf64_ia64_relocate_section): Likewise. 3539 (bfd_elf64_bfd_relax_section): New. 3540 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New. 3541 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New. 3542 * bfd-in2.h, libbfd.h: Regenerate. 3543 35442000-05-22 Nick Clifton <nickc@cygnus.com> 3545 3546 * configure.in : Add peigen.lo to MIPS PE targets. 3547 * configure: Regenerate. 3548 35492000-05-22 Momchil Velikov <velco@fadata.bg> 3550 3551 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess 3552 only if it is known for both input and output bfds. Separate 3553 error message strings as in some languages, it may be necessary 3554 to change more than one place in the string to change between 3555 'big' and 'little'. 3556 3557 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline 3558 endianess checks, call _bfd_generic_verify_endian_match() instead. 3559 3560 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise. 3561 3562 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise. 3563 3564 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify 3565 endianess before checking bfd flavours. 3566 35672000-05-22 H.J. Lu <hjl@gnu.org> 3568 3569 * elflink.h (elf_link_output_extsym): Clear the visibility 3570 field for symbols not defined locally. 3571 35722000-05-18 Alan Modra <alan@linuxcare.com.au> 3573 3574 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16, 3575 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn. 3576 (hppa_rebuild_insn): Mask immediate bits here instead. 3577 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too. 3578 35792000-05-18 Momchil Velikov <velco@fadata.bg> 3580 3581 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting 3582 relocs for an executable, ensure that they are virtual addresses. 3583 35842000-05-18 Jeffrey A Law (law@cygnus.com) 3585 3586 * config.bfd (hppa*64*-*-hpux11*): New target triplet. 3587 35882000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com> 3589 Rick Gorton <gorton@scrugs.lkg.dec.com> 3590 3591 * elflink.h: Add emitrelocations support: when enabled, relocation 3592 information and relocation sections are put into final output 3593 executables. If the emitrelocations flag is set, do the following: 3594 (elf_bfd_final_link): Emit relocation sections. 3595 (elf_link_input_bfd): Compute relocation section contents. 3596 (elf_gc_sections): Don't clean relocation sections. 3597 35982000-05-16 Catherine Moore <clm@cygnus.com> 3599 3600 * som.c (som_decode_symclass): Recognize weak symbols. 3601 36022000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com> 3603 3604 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that 3605 read idata section only from dataoff. 3606 (pe_print_edata): Correctly check for valid eat_member. 3607 36082000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk> 3609 3610 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8. 3611 36122000-05-14 Philip Blundell <philb@gnu.org> 3613 3614 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets. 3615 36162000-05-12 Alan Modra <alan@linuxcare.com.au> 3617 3618 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec 3619 3620 * peigen.c (pe_print_idata): Look for .idata section and print 3621 info even if data directory has zero entries. Read idata section 3622 starting from dataoff, and adjust all data offsets to suit. Cast 3623 all bfd_vma vars to unsigned long before passing to fprintf. 3624 * peigen.c (pe_print_edata): Similarly, look for .edata section 3625 and print info even if data directory has zero entries. Cast 3626 all bfd_vma vars to unsigned long before passing to fprintf. 3627 3628 From Szabolcs Szakacsits <szaka@F-Secure.com> 3629 * peigen.c (pe_print_idata): Use bfd_section_size rather than data 3630 directory size which may be bogus. 3631 * peigen.c (pe_print_edata): Similarly. 3632 36332000-05-09 Alan Modra <alan@linuxcare.com.au> 3634 3635 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela 3636 section is empty. 3637 (copy_private_bfd_data): Allow for space possibly taken up by elf 3638 headers when calculating segment physical address from lma. 3639 36402000-05-08 Alan Modra <alan@linuxcare.com.au> 3641 3642 * versados.c (versados_scan): Init stringlen and pass_2_done. 3643 3644 * trad-core.c (trad_unix_core_file_p): Return 3645 bfd_error_wrong_format rather than bfd_error_file_truncated. 3646 3647 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to 3648 add_data_entry. DataDirectory virtual address is relative. 3649 (pe_print_idata): Account for relative DataDirectory virtual 3650 addresses. Don't trash datasize inside POWERPC_LE_PE code. 3651 (pe_print_edata): Similarly. 3652 3653 From Szabolcs Szakacsits <szaka@F-Secure.com> 3654 * peigen.c (dir_names): Add Delay Import Directory. 3655 (pe_print_idata): Always search for bfd section containing 3656 idata address rather than looking up section name. Print this 3657 section name rather than .idata. 3658 (pe_print_edata): Similarly. Also print some fields as %08lx. 3659 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as 3660 Win32Version. 3661 36622000-05-05 Clinton Popetz <cpopetz@cygnus.com> 3663 3664 * xcoff.h: Rename to xcoff-target.h 3665 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h 3666 * coff-rs6000.c: Ditto. 3667 * coff64-rs6000.c: Ditto. 3668 * coff-pmac.c: Ditto. 3669 * Makefile.in: Regenerate. 3670 36712000-05-05 Clinton Popetz <cpopetz@cygnus.com> 3672 3673 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): 3674 Change U802TOC64MAGIC to U803XTOCMAGIC. 3675 36762000-05-04 Michael Snyder <msnyder@seadog.cygnus.com> 3677 3678 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1. 3679 * bfd-in.h: Prototype bfd_elf_get_arch_size. 3680 * bfd-in2.h: Prototype bfd_elf_get_arch_size. 3681 36822000-05-04 Alan Modra <alan@linuxcare.com.au> 3683 3684 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma. 3685 36862000-05-03 Martin v. L�wis <loewis@informatik.hu-berlin.de> 3687 3688 * elflink.h (elf_link_add_object_symbols): Reset dynindx for 3689 hidden and internal symbols. 3690 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with 3691 visibility. 3692 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not 3693 assign a PLT or GOT entry to symbols with hidden and 3694 internal visibility. 3695 36962000-05-03 Mark Elbrecht <snowball3@bigfoot.com> 3697 3698 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for 3699 the .bss section. 3700 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. 3701 37022000-05-02 H.J. Lu <hjl@gnu.org> 3703 3704 * elf.c (prep_headers): Use ELFOSABI_NONE instead of 3705 ELFOSABI_SYSV. 3706 37072000-05-02 Alan Modra <alan@linuxcare.com.au> 3708 3709 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec. 3710 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate 3711 dependencies. 3712 * Makefile.in: Regenerate. 3713 37142000-05-01 Jim Wilson <wilson@cygnus.com> 3715 3716 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo. 3717 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c. 3718 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo. 3719 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c. 3720 * Makefile.in: Rebuild. 3721 37222000-05-02 Alan Modra <alan@linuxcare.com.au> 3723 3724 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it 3725 doesn't work very well. 3726 3727 * elf-hppa.h (elf_hppa_internal_shdr): Define. 3728 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr. 3729 Set hdr->s_type to 1 if ARCH_SIZE == 32. 3730 (_bfd_elf_hppa_gen_reloc_type): Add prototype. 3731 (elf_hppa_info_to_howto): Likewise. 3732 (elf_hppa_info_to_howto_rel): Likewise. 3733 (elf_hppa_reloc_type_lookup): Likewise. 3734 (elf_hppa_is_local_label_name): Likewise. 3735 (elf_hppa_fake_sections): Likewise. 3736 (elf_hppa_final_write_processing): Likewise. 3737 (elf_hppa_howto_table): Fully initialise all entries. 3738 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args. 3739 (elf_hppa_info_to_howto): Likewise. 3740 (elf_hppa_info_to_howto_rel): Likewise. 3741 (elf_hppa_reloc_type_lookup): Likewise. 3742 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook, 3743 elf_hppa_unmark_useless_dynamic_symbols, 3744 elf_hppa_remark_useless_dynamic_symbols, 3745 elf_hppa_record_segment_addrs, elf_hppa_final_link, 3746 elf_hppa_relocate_section, elf_hppa_final_link_relocate, 3747 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until 3748 elf32-hppa.c mess is cleaned up. 3749 (elf_hppa_final_link_relocate): Make insn and r_type unsigned 3750 int. Delete r_field. In case R_PARISC_PCREL21L, don't set 3751 r_field then call hppa_field_adjust inline func with variable 3752 r_field arg, instead call hppa_field_adjust with fixed arg. 3753 In case R_PARISC_PCREL22F, don't set r_field. 3754 (elf_hppa_relocate_insn): Change args and return type to unsigned 3755 int. Call re_assemble_* funcs to do the work. 3756 3757 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when 3758 sign extending. 3759 3760 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign 3761 extending. 3762 (sign_extend): Mask first before sign extending. 3763 (low_sign_extend): Rewrite without condition expression. 3764 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16, 3765 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete. 3766 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a, 3767 assemble_17, assemble_21, sign_unext, low_sign_unext): Return 3768 result as function return value rather than through pointer arg. 3769 Accept unsigned int args, and return unsigned int. 3770 (re_assemble_3): New. Combines function of dis_assemble_3 with 3771 re-assembly of opcode and immediate. 3772 (re_assemble_12): Likewise. 3773 (re_assemble_16): Likewise. 3774 (re_assemble_17): Likewise. 3775 (re_assemble_21): Likewise. 3776 (re_assemble_22): Likewise. 3777 (hppa_field_adjust): Rewrite and document, paying attention to 3778 size of types and signed/unsigned issues. 3779 (get_opcode): Shift before masking. 3780 (FDLW): Rename to FLDW. 3781 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt. 3782 (hppa_rebuild_insn): Change args and return value to unsigned 3783 int. Make use of re_assemble_*. Correct case 11. 3784 3785 * dep-in.sed: Handle ../opcodes/. 3786 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h, 3787 elf64-hppa.h, hppa_stubs.h, xcoff.h. 3788 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c. 3789 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo, 3790 elfarm-nabi.lo dependencies outside of auto-dependency area. 3791 Regenerate dependencies. 3792 * Makefile.in: Regenerate. 3793 3794 * configure.in (TRAD_HEADER): Test non-null before 3795 AC_DEFINE_UNQUOTED. 3796 * configure: Regenerate. 3797 3798 * reloc.c: Fix mis-spelling in comment. 3799 38002000-05-01 Alan Modra <alan@linuxcare.com.au> 3801 3802 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change. 3803 * vms.c (vms_openr_next_archived_file): Return NULL. 3804 38052000-04-28 Clinton Popetz <cpopetz@cygnus.com> 3806 3807 * coffcode.h Copy changes mistakenly done to libcoff.h in 3808 4/24/2000 patch. 3809 38102000-04-29 Andreas Jaeger <aj@suse.de> 3811 3812 * libbfd-in.h: Correctly check GCC version. 3813 * bfd-in.h: Likewise. 3814 * libhppa.h: Likewise. 3815 * libbfd.h: Regenerate. 3816 * bfd-in2.h: Regenerate. 3817 38182000-04-28 Clinton Popetz <cpopetz@cygnus.com> 3819 3820 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add 3821 coffdu-rs6000.{lo,c}. 3822 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency 3823 on xcoff.h 3824 * Makefile.in: Regenerate. 3825 * xcoff.h: New file. 3826 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c. 3827 * coff-rs6000.c: Move all declarations and defines that are 3828 common to the xcoff backends into xcoff.h 3829 * coff64-rs6000.c: Ditto, 3830 38312000-04-28 Clinton Popetz <cpopetz@cygnus.com> 3832 3833 * coff-mips.c (mips_ecoff_backend_data): Add initialization of 3834 _bfd_coff_force_symnames in strings and 3835 _bfd_coff_debug_string_prefix_length to their default values. 3836 * coff-sh.c: (bfd_coff_small_swap_table): Ditto. 3837 38382000-04-28 Clinton Popetz <cpopetz@cygnus.com> 3839 3840 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of 3841 _bfd_coff_force_symnames in strings and 3842 _bfd_coff_debug_string_prefix_length to their default values. 3843 38442000-04-27 Alan Modra <alan@linuxcare.com.au> 3845 3846 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL. 3847 Check local_got_refcounts before dereferencing. 3848 3849 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL 3850 before deciding we don't need R_PPC_PLT32 relocation. 3851 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before 3852 dereferencing. 3853 3854 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment. 3855 3856 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and 3857 .plt entries. 3858 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries. 3859 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries. 3860 (elf_i386_relocate_section): Allow for .plt to go missing. 3861 (elf_i386_finish_dynamic_symbol): Use same test to decide if we 3862 can use a relative reloc for got as elf_i386_relocate_section. 3863 (bfd_elf32_bfd_final_link): Define to use gc form of final link. 3864 38652000-04-26 Clinton Popetz <cpopetz@cygnus.com> 3866 3867 * config.bfd: Remove extraneous bfd_powerpc_64_arch. 3868 38692000-04-24 Clinton Popetz <cpopetz@cygnus.com> 3870 3871 * Makefile.am (coff64-rs6000.lo): New rule. 3872 * Makefile.in: Regenerate. 3873 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data, 3874 xcoff_is_local_label_name, xcoff_rtype2howto, 3875 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p, 3876 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap, 3877 xcoff_write_archive_contents): No longer static, and prefix with _bfd_. 3878 (NO_COFF_SYMBOLS): Define. 3879 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in, 3880 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables 3881 internally. 3882 (MINUS_ONE): New macro. 3883 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS 3884 relocation. 3885 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in, 3886 coff_SWAP_aux_out): Map to the new functions. 3887 * coff64-rs6000.c: New file. 3888 * libcoff.h (bfd_coff_backend_data): Add new fields 3889 _bfd_coff_force_symnames_in_strings and 3890 _bfd_coff_debug_string_prefix_length. 3891 (bfd_coff_force_symnames_in_strings, 3892 bfd_coff_debug_string_prefix_length): New macros for above fields. 3893 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic. 3894 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead 3895 of using coff_swap_sym_in directly. 3896 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64. 3897 (coff_set_flags) Set magic for XCOFF64. 3898 (coff_compute_section_file_positions): Add symbol name length to 3899 string section length if bfd_coff_debug_string_prefix_length is 3900 true. 3901 (coff_write_object_contents): Don't do reloc overflow for XCOFF64. 3902 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of 3903 using coff_swap_lineno_in directly. 3904 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings 3905 and _bfd_coff_debug_string_prefix_length fields. 3906 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force 3907 symbol names into strings table when 3908 bfd_coff_force_symnames_in_strings is true. 3909 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR, 3910 SET_RELOC_VADDR): New macros. 3911 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros. 3912 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C 3913 code. 3914 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64 3915 changes within RS6000COFF_C specific code. 3916 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC, 3917 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO. 3918 * reloc.c (bfd_perform_relocation, bfd_install_relocation): 3919 Extend existing hack on target name. 3920 * xcofflink.c (XCOFF_XVECP): Extend existing hack on 3921 target name. 3922 * coff-tic54x.c (ticof): Keep up to date with new fields 3923 in bfd_coff_backend_data. 3924 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define 3925 targ_selvecs to include rs6000coff64_vec for rs6000. 3926 * configure.in: Add rs6000coff64_vec case. 3927 * cpu-powerpc.c: New bfd_arch_info_type. 3928 39292000-04-24 Jeffrey A Law (law@cygnus.com) 3930 3931 * config.bfd: Only disable elf32-hppa vectors, not all of the 3932 BSD and OSF configuration support. Provide (disabled) clauses 3933 for PA64 support. 3934 * configure.in: Add clause for PA64 support. 3935 * configure: Rebuilt. 3936 3937 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec. 3938 (bfd_elf64_hppa_vec): Declare. 3939 3940 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo 3941 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c 3942 (elf64-hppa.lo): Add dependencies. 3943 * Makefile.in: Rebuilt. 3944 3945 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support. 3946 39472000-04-24 Jason Eckhardt <jle@cygnus.com> 3948 3949 * libhppa.h (dis_assemble_16): New function. 3950 (pa_arch): Added pa20w element. 3951 39522000-04-24 Ulrich Drepper <drepper@cygnus.com> 3953 3954 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs, 3955 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and 3956 bfd_elf64_slurp_reloc_table. 3957 3958 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New 3959 definitions to get external names. 3960 (elf_write_relocs): Renamed from write_relocs and make global. 3961 (elf_slurp_reloc_table): Make global. 3962 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs. 3963 3964 * archive.c (hpux_uid_gid_encode): New function. 3965 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is 3966 defined and the ID is greater than 99999. 3967 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode 3968 special uid/gid fields into 32 bit values. 3969 39702000-04-21 Matthew Green <mrg@cygnus.com> 3971 3972 * config.bfd: Add NetBSD/sparc64 support. 3973 3974Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com> 3975 David Mosberger <davidm@hpl.hp.com> 3976 Timothy Wall <twall@cygnus.com> 3977 Jim Wilson <wilson@cygnus.com> 3978 3979 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo. 3980 (ALL_MACHINES_CFILES): Add cpu-ia64.c. 3981 (BFD64_BACKENDS): Add elf64-ia64.lo. 3982 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c. 3983 (cpu-ia64.lo, elf64-ia64.lo): New rules. 3984 * Makefile.in: Rebuild. 3985 * archures.c (enum bfd_architecture): Add bfd_arch_ia64. 3986 (bfd_ia64_arch): Declare. 3987 (bfd_archures_list): Add bfd_ia64_arch. 3988 * bfd-in2.h: Rebuild. 3989 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets. 3990 * configure: Rebuild. 3991 * configure.host: (ia64-*-linux*): New host. 3992 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec, 3993 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors. 3994 * elf.c (prep_headers): Add bfd_arch_ia64. 3995 * libbfd.h: Rebuild. 3996 * reloc.c: Add IA-64 relocations. 3997 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec): 3998 Declare. 3999 (bfd_target_vect): Add bfd_elf64_ia64_little_vec. 4000 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files. 4001 40022000-04-21 Richard Henderson <rth@cygnus.com> 4003 4004 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section 4005 contents when performing a partial link. 4006 (bfd_elf_d30v_reloc_21): Likewise. 4007 40082000-04-20 H.J. Lu <hjl@gnu.org> 4009 4010 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10 4011 patch to symbols defined by a shared object. 4012 * elf32-ppc.c (ppc_elf_relocate_section): Similarly. 4013 40142000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG> 4015 4016 K&R compiler fixes. 4017 * dwarf2.c (concat_filename): Avoid string literal concatenation. 4018 * ieee.c (ieee_get_symtab): Don't initialise union in struct. 4019 4020Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com> 4021 4022 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo. 4023 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c 4024 (coff-ia64.lo): Add dependency. 4025 * Makefile.in: Regenerate. 4026 * coff-ia64.c: New file. 4027 * efi-app-ia32.c: Ditto. 4028 * efi-app-ia64.c: Ditto. 4029 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC. 4030 (coff_set_flags): Ditto. 4031 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC. 4032 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec. 4033 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec. 4034 * configure: Regenerate. 4035 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro. 4036 (PUT_OPTHDR_IMAGE_BASE): Ditto. 4037 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto. 4038 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto. 4039 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto. 4040 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto. 4041 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto. 4042 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto. 4043 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto. 4044 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto. 4045 (GET_PDATA_ENTRY): Ditto. 4046 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read 4047 data_start. Use above macros to read fields that are 64 bit wide for 4048 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits. 4049 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force 4050 FileAlignment and SectionAlignment to minimum alignment if they 4051 are zero. 4052 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set 4053 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM. 4054 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start. 4055 Use above macros to write fields that are 64 bit wide for 4056 COFF_WITH_PEP64. 4057 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64, 4058 5*4 otherwise. This should be right for IA-32 and IA-64, but may 4059 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded 4060 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print 4061 begin address, end address, and unwind info address only. Use 4062 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to 4063 print addresses. 4064 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and 4065 HIGH3ADJ relocation names. 4066 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form. 4067 * targets.c: Declare bfd_efi_app_ia32_vec and 4068 bfd_efi_app_ia64_vec. 4069 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and 4070 bfd_efi_app_ia64_vec. 4071 40722000-04-17 Timothy Wall <twall@cygnus.com> 4073 4074 * bfd-in2.h: Add prototypes for tic54x load page access. 4075 * bfd-in.h: Regenerate. 4076 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown 4077 in customized _set_arch_mach function. 4078 * coffcode.h (coff_set_alignment_hook): Set section load page if 4079 the appropriate macro is defined. 4080 (write_object_contents): Read section load page. 4081 40822000-04-13 Alan Modra <alan@linuxcare.com.au> 4083 4084 * elf32-hppa.h: Update copyright date. 4085 4086 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix. 4087 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here. 4088 4089 * elf32-d30v.c (MAX32): Don't use LL suffix. 4090 (MIN32): Define in terms of MAX32. 4091 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma. 4092 4093 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise 4094 expression. 4095 4096 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants. 4097 40982000-04-12 Alan Modra <alan@linuxcare.com.au> 4099 4100 * dep-in.sed: Match space before file name, not after. 4101 * Makefile.am: Regenerate dependencies. 4102 * Makefile.in: Regenerate. 4103 4104 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield 4105 case, allow address wrap-around stupidly removed 2000-03-17. Sign 4106 extend without an if statement. 4107 41082000-04-11 Alan Modra <alan@linuxcare.com.au> 4109 4110 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using 4111 signed quantites. 4112 * elf32-mips.c (gprel16_with_gp): Likewise. 4113 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range 4114 here using -0x40000, not (int)0xfffc0000. 4115 (elf32_hppa_size_of_stub): Likewise. 4116 41172000-04-11 Timothy Wall <twall@cygnus.com> 4118 4119 * coff-tic54x.c: Now builds with all targets. 4120 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies. 4121 * Makefile.in: Regenerate. 4122 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on 4123 unitialized variable. 4124 4125Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com> 4126 4127 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add 4128 --enable-build-warnings option. 4129 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions. 4130 * Makefile.in, configure: Re-generate. 4131 41322000-04-07 Nick Clifton <nickc@cygnus.com> 4133 4134 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and 4135 BFD_RELOC_THUMB_PCREL_BLX. 4136 4137 * elf32-arm.h (elf32_arm_final_link_relocate): Handle 4138 R_ARM_XPC25 and R_ARM_THM_PC22. 4139 4140 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of 4141 R_ARM_XPC25 and R_ARM_THM_XPC22. 4142 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to 4143 R_ARM_[XPC25|THM_XPC22]. 4144 4145 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from 4146 elf/arm-oabi.h to elf/arm.h 4147 4148 * Makefile.am: Fix dependency for elfarm-oabi.c 4149 * Makefile.in: Regenerate. 4150 4151 * bfd-in2.h: Regenerate. 4152 * libbfd.h: Regenerate. 4153 41542000-04-06 Michael Snyder <msnyder@seadog.cygnus.com> 4155 4156 * elfcore.h (elf_core_file_p): preserve value of tdata at entry, 4157 and restore it on failure. Release newly allocated tdata on 4158 failure. 4159 4160Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com> 4161 4162 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size. 4163 (decode_line_info): Set it. Report error if unit->line_offset is 4164 equal to or larger than it. 4165 41662000-04-07 Timothy Wall <twall@cygnus.com> 4167 4168 * targets.c: Added vecs for tic54x. 4169 * reloc.c: Added relocs for tic54x. 4170 * libbfd.h: Regenerated. 4171 * configure: Add TI COFF vecs for tic54x. 4172 * configure.in: Ditto. 4173 * config.bfd (targ_cpu): Recognize new tic54x target. 4174 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling. 4175 * bfd-in2.h: Add tic54x target and relocations. 4176 * Makefile.am, Makefile.in: Add tic54x target. 4177 * archures.c (bfd_archures_list): Add tic54x target. 4178 * coff-tic54x.c: New. 4179 * cpu-tic54x.c: New. 4180 41812000-04-06 Michael Snyder <msnyder@seadog.cygnus.com> 4182 4183 * elfcore.h (elf_core_file_p): call backend_object_p which 4184 thereby gets an opportunity to update the arch/machine type. 4185 41862000-04-06 Timothy Wall <twall@cygnus.com> 4187 4188 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage 4189 class. Handle SEC_CLINK and SEC_BLOCK flags. 4190 * section.c: Add SEC_CLINK and SEC_BLOCK flags. 4191 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags. 4192 41932000-04-06 Nick Clifton <nickc@cygnus.com> 4194 4195 * elf32-arm.h (elf32_arm_set_private_flags): Only check for 4196 EF_INTERWORK if this is an unknown EABI. 4197 (elf32_arm_merge_private_bfd_data): Check EABI version 4198 numbers. Only check EF_xxx flags if the EABI version number 4199 is unknown. 4200 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags 4201 if the EABI version number is unknown. 4202 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags 4203 if the EABI version number is unknown. 4204 4205Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk> 4206 4207 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and 4208 BFD_RELOC_SH_LOOP_END. 4209 * elf32-sh.c (sh_elf_howto_tab): Change special_func to 4210 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore. 4211 Add entries for R_SH_LOOP_START and R_SH_LOOP_END. 4212 (sh_elf_reloc_loop): New function. 4213 (sh_elf_reloc): No need to test for always-to-be-ignored relocs 4214 any more. 4215 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}. 4216 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}. 4217 * bfd-in2.h, libbfd.h: Regenerate. 4218 42192000-04-04 Alan Modra <alan@linuxcare.com.au> 4220 4221 * po/bfd.pot: Regenerate. 4222 4223 * Makefile.am: Remove extraneous mkdep comment. 4224 (MKDEP): Use gcc -MM rather than mkdep. 4225 (DEP): Quote when passing vars to sub-make. Add warning 4226 message to end. 4227 (DEP1): Rewrite for "gcc -MM". 4228 (CLEANFILES): Add DEP2. 4229 Update dependencies. 4230 * Makefile.in: Regenerate. 4231 42322000-04-03 Kevin Buettner <kevinb@redhat.com> 4233 4234 * configure.in: Added corefile support for AIX 4.3. In particular, 4235 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when 4236 compiling rs6000-core.c. 4237 * configure: Regenerated. 4238 42392000-04-03 H.J. Lu <hjl@gnu.org> 4240 4241 * cache.c (bfd_open_file): Unlink the output file only if 4242 it has non-zero size. 4243 42442000-04-01 Ken Block USG <block@zk3.dec.com> 4245 4246 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit 4247 relative relocations for non-loaded sections in shared objects. 4248 (elf64_alpha_check_relocs): Similarly. 4249 4250Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com> 4251 4252 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and 4253 BFD_RELOC_16 to switch for extended relocs. 4254 (MY_swap_ext_reloc_in): New. 4255 (MY_swap_ext_reloc_out): New. 4256 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather 4257 than NAME(aout,swap_ext_reloc_in) for extended relocs. 4258 (NAME(aout,squirt_out_relocs)): Similarly use 4259 MY_swap_ext_reloc_out. 4260 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined. 4261 42622000-04-03 Kazu Hirata <kazu@hxi.com> 4263 4264 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to 4265 the R_PCRWORD_B case. 4266 42672000-03-31 Thomas de Lellis <tdel@wrs.com> 4268 4269 * srec.c : Set CHUNK size to 16 bytes to prevent download failures 4270 on some targets. 4271 * ihex.c : Ditto. 4272 4273Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com> 4274 4275 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All 4276 HOWTO references to bfd_elf_generic_reloc, that have 4277 partial_inplace == true, now use the new function. The function 4278 is based on the recent rewrite of m32r_elf_lo16_reloc(), and 4279 extends its fixes to the R_M32R_{16,24,32} relocs. 4280 The new logic in m32r_elf_lo16_reloc() has been removed, and 4281 it instead calls the new routine to obtain that functionality. 4282 42832000-03-27 Alan Modra <alan@linuxcare.com.au> 4284 4285 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook, 4286 elf32_avr_check_relocs, avr_final_link_relocate, 4287 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing, 4288 elf32_avr_object_p): Add prototypes. 4289 (elf32_avr_gc_mark_hook): Add default for h->root.type. 4290 (bfd_elf_avr_final_write_processing): Make static. 4291 42922000-03-27 Denis Chertykov <denisc@overta.ru> 4293 4294 * cpu-avr.c: New file. BFD support routines for AVR architecture. 4295 * archures.c (bfd_architecture): Add AVR architecture. 4296 (bfd_archures_list): Add reference to AVR architecture info. 4297 * elf.c (prep_headers): Handle bfd_arch_avr. 4298 * reloc.c: Add various AVR relocation enums. 4299 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector 4300 list. 4301 * Makefile.am: Add support for AVR elf. 4302 * configure.in: Likewise. 4303 * config.bfd: Likewise. 4304 * Makefile.in: Regenerate. 4305 * configure: This too. 4306 * bfd-in2.h: And this. 4307 * libbfd.h: And this. 4308 43092000-03-24 H.J. Lu <hjl@gnu.org> 4310 4311 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype. 4312 (elf64_alpha_find_reloc_at_ofs): Likewise. 4313 43142000-03-17 Alan Modra <alan@linuxcare.com.au> 4315 4316 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield, 4317 flag an overflow if the bitfield is outside -2**n to 2**n-1. The 4318 allowable range used to be -2**(n-1) to 2**n-1. 4319 * reloc.c (_bfd_relocate_contents): Same here. Also replace 4320 "boolean overflow" with "bfd_reloc_status_type flag". 4321 43222000-03-14 Doug Evans <dje@casey.transmeta.com> 4323 4324 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite. 4325 43262000-03-14 Kazu Hirata <kazu@hxi.com> 4327 4328 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number 4329 of shrinks properly, including the last reloc. 4330 43312000-03-13 Kazu Hirata <kazu@hxi.com> 4332 4333 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity 4334 check for R_MOVL2. 4335 43362000-03-11 Alan Modra <alan@linuxcare.com.au> 4337 4338 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on 4339 a format mismatch rather than an "error" from bfd_read such as 4340 bfd_error_file_truncated. 4341 43422000-03-10 Geoff Keating <geoffk@cygnus.com> 4343 4344 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper 4345 sign-extension and big-endian compensation for 4346 R_MIPS_64 even in ld -r. 4347 43482000-03-10 Geoffrey Keating <geoffk@cygnus.com> 4349 4350 * elf32-mips.c (mips_elf_next_relocation): Rename from 4351 mips_elf_next_lo16_relocation, and generalize to look 4352 for any relocation type. 4353 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset. 4354 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16. 4355 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16. 4356 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2. 4357 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64. 4358 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32. 4359 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs. 4360 (mips_rtype_to_howto): Likewise. 4361 (mips_elf_calculate_relocation): Handle new relocs. 4362 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs 4363 are paired. The addend for R_MIPS_GNU_REL16_S2 4364 is shifted right two bits. 4365 43662000-03-10 Alan Modra <alan@linuxcare.com.au> 4367 4368 * reloc.c (bfd_perform_relocation): Undo emacs formatting of 4369 comment, and ensure it doesn't happen again. 4370 (bfd_install_relocation): Same here. 4371 (_bfd_relocate_contents): Don't bother assigning unused signmask 4372 shift result. Fix typos in comments. 4373 Remove trailing whitespace throughout file. 4374 43752000-03-07 Doug Evans <dje@casey.transmeta.com> 4376 4377 * reloc.c (reloc_howto_struct): Fix partial_inplace comment. 4378 * bfd-in2.h: Rebuild. 4379 43802000-03-06 Nick Clifton <nickc@cygnus.com> 4381 4382 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and 4383 sym_ptr_ptr fields. 4384 (SIZEOF_ILF_SYM_PTR_TABLE): Define. 4385 (SIZEOF_ILF_STRINGS): Redefine. 4386 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol 4387 relative reloc, as opposed to a section relative reloc. 4388 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT 4389 not C_LABEL. 4390 Add length of symbol's prefix to string pointer. 4391 Store a pointer to the symbol in the symbol pointer table. 4392 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7. 4393 Initialise the symbol pointer table. 4394 Store the hint in the Hint/Name table. 4395 Make the jump reloc be symbol realtive, not section relative. 4396 Create an import symbol for imported code. 4397 43982000-03-06 Catherine Moore <clm@cygnus.com> 4399 4400 * elf.c (swap_out_syms): Check for null type_ptr. 4401 44022000-03-01 Hans-Peter Nilsson <hp@axis.com> 4403 4404 * aout-target.h (MY(write_object_contents)): Remove unused 4405 and unusable "#if CHOOSE_RELOC_SIZE". 4406 * pc532-mach.c (MY(write_object_contents)): Ditto. 4407 * netbsd.h (MY(write_object_contents)): Ditto. 4408 * hp300hpux.c (MY(write_object_contents)): Ditto. 4409 * freebsd.h (MY(write_object_contents)): Ditto. 4410 * aout-tic30.c (tic30_aout_write_object_contents): Ditto. 4411 44122000-02-29 H.J. Lu <hjl@gnu.org> 4413 4414 * peicode.h (jtab): Make it static. 4415 4416 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is 4417 defined and COFF_IMAGE_WITH_PE is not defined. 4418 (_bfd_sh_align_load_span): Defined as sh_align_load_span if 4419 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined. 4420 44212000-03-01 Nick Clifton <nickc@cygnus.com> 4422 4423 * coff-arm.c (bfd_arm_process_before_allocation): Make 4424 'symndx' signed to prevent compile time warning. 4425 4426 * coff-mcore.c: Remove unused prototype for pe_object_p. 4427 4428 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static 4429 functions that are not used when COFF_IMAGE_WITH_PE is 4430 defined. 4431 (struct sh_opcode): Change type of 'flags' field to unsigned 4432 long so that it can hold the USESAS flag. 4433 4434 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'. 4435 4436 * elf-m10300.c (mn10300_elf_relax_section): Initialise 4437 'sym_sec'. 4438 4439 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function 4440 parameters. 4441 Remove unusued variables and code. 4442 (elf_backend_add_symbol_hook): Fix prototype. 4443 4444 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and 4445 'srelgot'. 4446 4447 * elf32-mcore.c (mcore_elf_relocate_section): Initialise 4448 'oldinst'. 4449 4450 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function 4451 parameters. 4452 Remove unusued variables and code. 4453 (elf_backend_add_symbol_hook): Fix prototype. 4454 4455 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'. 4456 4457 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED 4458 to unused function parameter. 4459 4460 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function 4461 parameters. 4462 Use EMPTY_HOWTO to initialise empty howto slots. 4463 Remove unused variables. 4464 4465 * peicode.h (pe_ILF_build_a_bfd): Initialise id6. 4466 44672000-03-01 H.J. Lu <hjl@gnu.org> 4468 4469 * aoutx.h (aout_link_input_section_std): Pass "true" to 4470 the undefined_symbol callback. 4471 (aout_link_input_section_ext): Likewise. 4472 * bout.c (get_value): Likewise. 4473 * coff-a29k.c (coff_a29k_relocate_section): Likewise. 4474 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten): 4475 Likewise. 4476 (alpha_relocate_section): Likewise. 4477 * coff-arm.c (coff_arm_relocate_section): Likewise. 4478 * coff-i960.c (coff_i960_relocate_section): Likewise. 4479 * coff-mcore.c (coff_mcore_relocate_section): Likewise. 4480 * coff-mips.c (mips_relocate_section): Likewise. 4481 * coff-ppc.c (coff_ppc_relocate_section): Likewise. 4482 * coff-sh.c (sh_relocate_section): Likewise. 4483 * coff-tic80.c (coff_tic80_relocate_section): Likewise. 4484 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise. 4485 * elf-m10200.c (mn10200_elf_relocate_section): Likewise. 4486 * elf-m10300.c (mn10300_elf_relocate_section): Likewise. 4487 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. 4488 * elf32-fr30.c (fr30_elf_relocate_section): Likewise. 4489 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. 4490 * elf32-i370.c (i370_elf_relocate_section): Likewise. 4491 * elf32-m32r.c (m32r_elf_relocate_section): Likewise. 4492 * elf32-mcore.c (mcore_elf_relocate_section): Likewise. 4493 * elf32-sh.c (sh_elf_relocate_section): Likewise. 4494 * elf32-v850.c (v850_elf_relocate_section): Likewise. 4495 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise. 4496 * elflink.h (elf_link_output_extsym): Likewise. 4497 * pe-mips.c (coff_pe_mips_relocate_section): Likewise. 4498 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise. 4499 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise. 4500 4501 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the 4502 undefined_symbol callback when building shared library with 4503 -Bsymbolic and undefined symbols are allowed. Otherwise, pass 4504 "true". 4505 * elf32-arm.h (elf32_arm_relocate_section): Likewise. 4506 * elf32-i386.c (elf_i386_relocate_section): Likewise. 4507 * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 4508 * elf32-mips.c (mips_elf_calculate_relocation): Likewise. 4509 (elf32_mips_get_relocated_section_content): Likewise. 4510 * elf32-ppc.c (ppc_elf_relocate_section): Likewise. 4511 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 4512 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. 4513 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. 4514 45152000-02-28 Nick Clifton <nickc@cygnus.com> 4516 4517 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects. 4518 * Makefile.in: Regenerate. 4519 4520 * configure.in: Add support for mips and sh pe vectors. 4521 * configure: regenerate. 4522 4523 * config.bfd: Add support for arm-wince, mips-pe and sh-pe 4524 targets. 4525 4526 * targets.c: Add mips and sh pe vectors. 4527 4528 * libpei.h (coff_final_link_postscript): Only define if not 4529 already defined. 4530 4531 * coffcode.h: Add support for WinCE magic numbers. 4532 4533 * peigen.c (pe_print_reloc): Update comment and rearrange 4534 appending of newline character. 4535 4536 * peicode.h: Add support for Image Library Format. 4537 (pe_ILF_vars): Structure containing data used by ILF code. 4538 (pe_ILF_make_a_section): New function. Create a section based 4539 on ILF data. 4540 (pe_ILF_make_a_reloc): New function. Create a reloc based on 4541 ILF data. 4542 (pe_ILF_make_a_symbol): New function. Create a symbol based 4543 on ILF data. 4544 (pe_ILF_save_relocs): New function. Store the relocs created 4545 by pe_ILF_make_a_reloc in a section. 4546 (pe_ILF_build_a_bfd): New function. Create a BFD describing 4547 an ILF object. 4548 (pe_ILF_object_p): New function. Return a bfd_target pointer 4549 for an ILF object. 4550 (pe_bfd_object_p): If an ILF object is detected call 4551 pe_ILF_object_p on it. 4552 4553 * coff-arm.c: Add support for WinCE relocs which are different 4554 from normal ARM COFF relocs. 4555 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target. 4556 4557 * coff-sh.c: Add support for sh-pe target. 4558 * pe-sh.c: New file. Support code for sh-pe target. 4559 * pei-sh.c: New file. Support code for sh-pe target. 4560 4561 * pe-mips.c: New file. Support code for mips-pe target. 4562 * pei-mips.c: New file. Support code for mips-pe target. 4563 45642000-02-27 Jakub Jelinek <jakub@redhat.com> 4565 4566 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump 4567 architecture if the object causing the bump is dynamic. 4568 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise, 4569 and also don't it for memory ordering. 4570 (sparc64_elf_write_relocs): Take src_rela out of the loop. 4571 45722000-02-27 Ian Lance Taylor <ian@zembu.com> 4573 4574 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than 4575 calling bfd_get_section_size_before_reloc. 4576 (decode_line_info): Likewise. 4577 (_bfd_dwarf2_find_nearest_line): Likewise. 4578 45792000-02-27 Eli Zaretskii <eliz@is.elta.co.il> 4580 4581 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the 4582 name of the libtool directory. 4583 * Makefile.in: Rebuild. 4584 4585Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com) 4586 4587 * som.c (SOM_HOWTO): Define. 4588 (som_hppa_howto_table): Use it. 4589 45902000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br> 4591 4592 * config.bfd: Enable 64 bit support for GNU/Linux/sparc. 4593 4594 * config.bfd: Enable 64 bit support for Solaris7+/sparc. 4595 45962000-02-24 Catherine Moore <clm@cygnus.com> 4597 4598 * som.c (som_misc_symbol_info): Add field 4599 secondary_def. 4600 (som_bfd_derive_misc_symbol_info): Initialize 4601 secondary_def. 4602 (som_build_and_write_symbol_table): Keep track 4603 of secondary_def field. 4604 (som_slurp_symbol_table): Set BSF_WEAK symbol flag 4605 if secondary_def field is set. 4606 (som_bfd_ar_write_symbol_stuff): Initialize 4607 secondary_def. 4608 46092000-02-23 Stephane Carrez <stcarrez@worldnet.fr> 4610 4611 * dwarf2.c (read_address): Read 16-bits addresses. 4612 (parse_comp_unit): Accept addr_size == 2. 4613 46142000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au> 4615 4616 * bfd-in.h: Update copyright date. 4617 46182000-02-23 Linas Vepstas <linas@linas.org> 4619 4620 * cpu-i370.c: New file. 4621 * elf32-i370.c: New file. 4622 * archures.c (enum bfd_architecture): Add bfd_arch_i370. 4623 (bfd_i370_arch): New. 4624 (bfd_archures_list): Add bfd_i370_arch. 4625 * elf.c (prep_headers): Add bfd_arch_i370. 4626 * Makefile.am: Add support for IBM 370 elf. 4627 * config.bfd: Likewise. 4628 * configure.in: Likewise. 4629 * libbfd.h (bfd_reloc_code_real_names): Likewise. 4630 * reloc.c (bfd_reloc_code_type): Likewise. 4631 * targets.c: Likewise. 4632 4633 * Makefile.in: Regenerate. 4634 * configure: Regenerate. 4635 * bfd-in2.h: Regenerate. 4636 46372000-02-22 Ian Lance Taylor <ian@zembu.com> 4638 4639 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for 4640 invalid relocation types, and change them to R_386_NONE. 4641 46422000-02-22 H.J. Lu <hjl@gnu.org> 4643 4644 * elflink.h (elf_link_add_object_symbols): If a version symbol is 4645 not defined, don't add a second ELF_VER_CHR. 4646 4647 * elflink.h (elf_bfd_final_link): Call output_extsym for global 4648 symbols converted to local symbols even when stripping all 4649 symbols. 4650 (elf_link_output_extsym): Process global symbols converted to 4651 local symbols even if they are being stripped. 4652 46532000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au> 4654 4655 * archures.c (bfd_octets_per_byte): Return unsigned int. 4656 (bfd_arch_mach_octets_per_byte): Ditto. 4657 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned 4658 comparison warning. 4659 * section.c (bfd_get_section_size_before_reloc): Quell signed 4660 vs. unsigned comparison warning. 4661 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too. 4662 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27 4663 change. What was I thinking? 4664 * bfd-in2.h: Regenerate. 4665 4666 * elflink.h (elf_gc_sweep): Skip non-elf input bfds. 4667 (elf_gc_sections): Same here. 4668 (elf_gc_common_finalize_got_offsets): And here. 4669 46702000-02-21 Ian Lance Taylor <ian@zembu.com> 4671 4672 ELF HPPA doesn't work at present; remove it until it does. 4673 * config.bfd: Comment out setting targ_defvec to 4674 bfd_elf32_hppa_vec. 4675 * Makefile.am: Rebuild dependencies. 4676 (BFD32_BACKENDS): Remove elf32-hppa.lo. 4677 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c. 4678 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h. 4679 * Makefile.in: Rebuild. 4680 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec. 4681 46822000-02-18 Geoff Keating <geoffk@cygnus.com> 4683 4684 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there 4685 is no bfd_free(). Revert bfd_free part of previous change. 4686 46872000-02-18 Geoff Keating <geoffk@cygnus.com> 4688 4689 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size 4690 arrays. 4691 (coff_compute_section_file_positions): Use bfd_free to pair 4692 bfd_malloc. 4693 (coff_write_object_contents): Likewise. 4694 4695 * coff-rs6000.c (xcoff_howto_table_16): New variable. 4696 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs. 4697 46982000-02-18 Ulrich Drepper <drepper@cygnus.com> 4699 4700 * coff-rs6000.c (XCOFFARMAGBIG): New macro. 4701 (xcoff_ar_file_hdr_big): New structure. 4702 (SIZEOF_AR_FILE_HDR_BIG): New macro. 4703 (xcoff_ar_hdr_big): New structure. 4704 (SIZEOF_AR_HDR_BIG): New macro. 4705 (xcoff_big_format_p): New macro. 4706 (xcoff_ardata_big): New macro. 4707 (arch_xhdr_big): New macro. 4708 (xcoff_slurp_armap): Handle large archives. 4709 (xcoff_archive_p): Detect large archives. 4710 (xcoff_read_ar_hdr): Handle large archives. 4711 (xcoff_openr_next_archived_file): Handle large archives. 4712 (xcoff_generic_stat_arch_elt): Handle large archives. 4713 (xcoff_write_armap_old): Rename from xcoff_write_armap. 4714 (xcoff_write_armap_big): New function. 4715 (xcoff_write_armap): New function, dispatch to _old or _big. 4716 (xcoff_write_archive_contents_old): Rename from 4717 xcoff_write_archive_contents. 4718 (xcoff_write_archive_contents_big): New function. 4719 (xcoff_write_archive_contents): New function, dispatch to _old or 4720 _big. 4721 47222000-02-18 Richard Henderson <rth@cygnus.com> 4723 4724 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect 4725 and hide_symbol members. 4726 (elf_link_hash_copy_indirect): Remove. 4727 (elf_link_hash_hide_symbol): Remove. 4728 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol 4729 and elf_backend_hide_symbol. 4730 (_bfd_elf_link_hash_copy_indirect): Declare. 4731 (_bfd_elf_link_hash_hide_symbol): Declare. 4732 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument. 4733 (_bfd_elf_link_hash_hide_symbol): Likewise. 4734 (_bfd_elf_link_hash_table_init): Don't init killed members. 4735 * elflink.h (elf_link_add_object_symbols): Use the bed function 4736 pointers not elf_link_hash_{copy_indirect,hide_symbol}. 4737 (elf_link_assign_sym_version): Likewise. 4738 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default. 4739 (elf_backend_hide_symbol): Likewise. 4740 (elfNN_bed): Update for new members. 4741 47422000-02-17 Kevin Buettner <kevinb@redhat.com> 4743 4744 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD, 4745 STACK_END_ADDR): Define for new core file format. 4746 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines 4747 for handling the vagaries of the various core file structures used 4748 by AIX over the years. 4749 (rs6000coff_core_p, rs6000coff_core_file_matches_executable, 4750 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's 4751 core_dumpx structure. 4752 4753Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk> 4754 4755 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros. 4756 (bfd_mach_sh3_dsp): Likewise. 4757 (bfd_mach_sh4): Reinstate. 4758 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750. 4759 * bfd-in2.h: Regenerate. 4760 * coff-sh.c (struct sh_opcode): flags is no longer short. 4761 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros. 4762 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41. 4763 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes. 4764 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise. 4765 (sh_opcodes): No longer const. 4766 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays. 4767 (sh_insn_uses_reg): Check for USESAS and USESR8. 4768 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS. 4769 (_bfd_sh_align_load_span): Return early for SH4. 4770 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp. 4771 Take into account that field b of a parallel processing insn 4772 could be mistaken for a separate insn. 4773 * cpu-sh.c (arch_info_struct): New array elements for 4774 sh2, sh-dsp and sh3-dsp. 4775 Reinstate element for sh4. 4776 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros. 4777 (SH4_NEXT): Reinstate. 4778 (SH3_NEXT, SH3E_NEXT): Adjust. 4779 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare. 4780 * elf32-sh.c (sh_elf_set_private_flags): New function. 4781 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise. 4782 (sh_elf_merge_private_data): New function. 4783 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define. 4784 (bfd_elf32_bfd_copy_private_bfd_data): Define. 4785 (bfd_elf32_bfd_merge_private_bfd_data): Change to 4786 sh_elf_merge_private_data. 4787 47882000-02-13 Richard Henderson <rth@cygnus.com> 4789 4790 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and 4791 hide_symbol members. 4792 (elf_link_hash_copy_indirect): New. 4793 (elf_link_hash_hide_symbol): New. 4794 * elflink.h (elf_link_add_object_symbols): Break out copy from 4795 indirect new new symbol to elf.c. 4796 (elf_link_assign_sym_version): Break out privatization of 4797 non-exported symbol to elf.c. 4798 * elf.c (_bfd_elf_link_hash_copy_indirect): New. 4799 (_bfd_elf_link_hash_hide_symbol): New. 4800 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol. 4801 48022000-02-13 Ian Lance Taylor <ian@zembu.com> 4803 4804 * section.c (_bfd_strip_section_from_output): Add info parameter. 4805 If it passed as non-NULL, use it to check whether any input BFD 4806 has an input section which uses this output section. Change all 4807 callers. 4808 * bfd-in2.h: Rebuild. 4809 4810 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and 4811 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of 4812 1999-11-29. 4813 * bfd-in2.h: Rebuild. 4814 48152000-02-10 Timothy Wall <twall@cygnus.com> 4816 4817 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to 4818 allow final modifications of swapped-in symbol. 4819 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST. 4820 * coffcode.h (coff_write_relocs): Use macro 4821 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether 4822 symbol index should be set to -1. 4823 4824Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com) 4825 4826 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG, 4827 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros. 4828 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes. 4829 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg, 4830 sh_insns_uses_or_sets_freg): New functions. 4831 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros. 4832 * (sh_insns_conflict): Use new functions and new macros to 4833 detect conflicts when two instructions both set same integer registers, 4834 both set same fp register, and both set special register. 4835 48362000-02-09 Timothy Wall <twall@cygnus.com> 4837 4838 * coffgen.c (coff_real_object_p): Set arch/mach info prior to 4839 swapping in sections, so that the swapping routines have access to 4840 the arch/mach info. 4841 48422000-02-08 Mark Elbrecht <snowball3@bigfoot.com> 4843 4844 * coff-go32.c: Update comment. Update copyright. 4845 48462000-01-27 Thomas de Lellis <tdel@windriver.com> 4847 4848 * syms.c (bfd_decode_symclass) 4849 Two new class characters were added - 'V' and 'v'. The 4850 meaning of 'W' is now restricted to just weak non-object 4851 symbols. This allows differentiation between, for example, 4852 weak functions vs weak objects. nm for example now dumps: 4853 'W' = weak global 4854 'w' = weak unresolved 4855 'V' = weak global object 4856 'v' = weak unresolved object 4857 4858 (bfd_is_undefined_symclass): New function. Return true if the 4859 given symbol class represents and undefined/unresolved symbol. 4860 4861 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for 4862 unresolved symbols. 4863 4864 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol(). 4865 4866 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the 4867 STT_ARM_16BIT flag set, but it is not attached to a data object 4868 return STT_ARM_16BIT so that it will be treated as code by the 4869 disassembler. 4870 48712000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au> 4872 4873 * coff-i386.c (i3coff_object_p): Remove prototype. 4874 Update copyright. 4875 4876 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const 4877 to name. Update copyright. 4878 4879 * trad-core.c (trad_unix_core_file_p): Cast core_regsec 4880 assignment to avoid warning. Update copyright. 4881 48822000-01-24 Robert Lipe (robertl@sco.com) 4883 4884 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc 4885 instead of using GNU C extension. 4886 48872000-01-21 Nick Clifton <nickc@cygnus.com> 4888 4889 * libbfd.c (bfd_read): Do not attempt to get a negativly sized 4890 amount from a bfd_in_memory structure. 4891 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory 4892 structure. 4893 48942000-01-14 Nick Clifton <nickc@cygnus.com> 4895 4896 * linker.c (default_indirect_link_order): oops - fix incorrectly 4897 applied patch from Tim Wall. 4898 48992000-01-13 Timothy Wall (twall@tiac.net> 4900 4901 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx 4902 = scnhsz, filhsz, relsz, aoutsz, etc) 4903 4904 * coffswap.h: Ditto. 4905 49062000-01-13 Nick Clifton <nickc@cygnus.com> 4907 4908 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to 4909 interwork thumb to arm stub. 4910 49112000-01-13 Timothy Wall (twall@tiac.net> 4912 4913 * archures.c (bfd_octets_per_byte): New function: Return 4914 target byte size. 4915 (bfd_arch_mach_octets_per_byte): New function: Return target 4916 byte size. 4917 4918 * section.c: Distinguish between octets and bytes for usage of 4919 _cooked_size, _raw_size, and output_offset. Clarify 4920 description of bfd_set_section_contents. 4921 4922 * bfd-in2.h: Regenerate. 4923 4924 * coffgen.c: Indicate that the offset parameter is in bytes, not 4925 octets. 4926 4927 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte 4928 where appropriate to get the octet offset when calling 4929 bfd_set_section_contents. 4930 (bfd_coff_reloc_link_order): Ditto. 4931 4932 * linker.c (bfd_generic_reloc_link_order): Ditto. 4933 (_bfd_default_link_order): Ditto. 4934 4935 * reloc.c (bfd_perform_relocation): Distinguish between octets 4936 and bytes. Use octets when indexing into octet data; use bytes 4937 when calculating target addresses. 4938 (bfd_install_relocation): Ditto. 4939 4940 * srec.c (srec_write_section): Ditto. 4941 49422000-01-13 Nick Clifton <nickc@cygnus.com> 4943 4944 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from 4945 3 to 2. This allows 4 byte sized sections, which is necessary for 4946 dlltool to build functioning DLLs. 4947 49482000-01-10 Philip Blundell <pb@futuretv.com> 4949 4950 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu. 4951 (arm*-*-conix*): New target. 4952 49532000-01-10 Egor Duda <deo@logos-m.ru> 4954 4955 * config.bfd: Include elf32_i386 vector to target list for cygwin 4956 and mingw. 4957 4958 * config.in: Undefine HAVE_WIN32_PSTATUS_T. 4959 * configure.in: Test for structure win32_pstatus_t in 4960 <sys/procfs.h> 4961 * configure: Regenerate. 4962 4963 * elf.c (elfcore_grok_win32pstatus): New function: process 4964 win32_pstatus_t notes in elf core file. 4965 (elfcore_grok_note): Detect win32_pstatus notes. 4966 49672000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de> 4968 4969 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol 4970 visibility. 4971 * elflink.h (elf_link_add_object_symbols): Combine visibilities. 4972 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility. 4973 4974For older changes see ChangeLog-9899 4975 4976Local Variables: 4977mode: change-log 4978left-margin: 8 4979fill-column: 74 4980version-control: never 4981End: 4982