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