summaryrefslogtreecommitdiff
path: root/bfd/elf-hppa.h
Commit message (Collapse)AuthorAgeFilesLines
* Use section id in get_dyn_name.Alan Modra2000-07-121-3/+3
|
* Restore hppa-elf32 to working order.Alan Modra2000-07-091-37/+42
|
* (elf_hppa_final_link_relocate) Fix handling of branches.Alan Modra2000-05-311-3/+13
|
* 2000-05-23 H.J. Lu <hjl@gnu.org>H.J. Lu2000-05-231-1/+2
| | | | | | | | | | | | | | | | * elf32-i386.c (elf_i386_relocate_section): Don't allow the undefined symbol with the non-default visibility attributes. * elf-hppa.h (elf_hppa_relocate_section): Likewise. * elf32-arm.h (elf32_arm_relocate_section): Likewise. * elf32-i370.c (i370_elf_relocate_section): Likewise. * elf32-m68k.c (elf_m68k_relocate_section): Likewise. * elf32-mcore.c (mcore_elf_relocate_section): Likewise. * elf32-mips.c (mips_elf_calculate_relocation): Likewise. * elf32-ppc.c (ppc_elf_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. * elf64-ia64.c (elf64_ia64_relocate_section): Likewise. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,Jeff Law2000-05-191-3/+3
| | | | | | re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn. (hppa_rebuild_insn): Mask immediate bits here instead. * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
* Assorted code cleanup and fixes for hppa. Re-enable elf32-hppa asAlan Modra2000-05-021-427/+599
| | | | it now compiles even if it doesn't work too well.
* 2000-03-01 H.J. Lu <hjl@gnu.org>H.J. Lu2000-03-011-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * aoutx.h (aout_link_input_section_std): Pass "true" to the undefined_symbol callback. (aout_link_input_section_ext): Likewise. * bout.c (get_value): Likewise. * coff-a29k.c (coff_a29k_relocate_section): Likewise. * coff-alpha.c (alpha_ecoff_get_relocated_section_conten): Likewise. (alpha_relocate_section): Likewise. * coff-arm.c (coff_arm_relocate_section): Likewise. * coff-i960.c (coff_i960_relocate_section): Likewise. * coff-mcore.c (coff_mcore_relocate_section): Likewise. * coff-mips.c (mips_relocate_section): Likewise. * coff-ppc.c (coff_ppc_relocate_section): Likewise. * coff-sh.c (sh_relocate_section): Likewise. * coff-tic80.c (coff_tic80_relocate_section): Likewise. * cofflink.c (_bfd_coff_generic_relocate_section): Likewise. * elf-m10200.c (mn10200_elf_relocate_section): Likewise. * elf-m10300.c (mn10300_elf_relocate_section): Likewise. * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. * elf32-fr30.c (fr30_elf_relocate_section): Likewise. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. * elf32-i370.c (i370_elf_relocate_section): Likewise. * elf32-m32r.c (m32r_elf_relocate_section): Likewise. * elf32-mcore.c (mcore_elf_relocate_section): Likewise. * elf32-sh.c (sh_elf_relocate_section): Likewise. * elf32-v850.c (v850_elf_relocate_section): Likewise. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise. * elflink.h (elf_link_output_extsym): Likewise. * pe-mips.c (coff_pe_mips_relocate_section): Likewise. * reloc.c (bfd_generic_get_relocated_section_conten): Likewise. * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise. * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the undefined_symbol callback when building shared library with -Bsymbolic and undefined symbols are allowed. Otherwise, pass "true". * elf32-arm.h (elf32_arm_relocate_section): Likewise. * elf32-i386.c (elf_i386_relocate_section): Likewise. * elf32-m68k.c (elf_m68k_relocate_section): Likewise. * elf32-mips.c (mips_elf_calculate_relocation): Likewise. (elf32_mips_get_relocated_section_content): Likewise. * elf32-ppc.c (ppc_elf_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* * elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL.Jeff Law1999-09-161-1/+7
|
* * elf-hppa.h (elf_hppa_final_link): If unable to find __gp in theJeff Law1999-09-161-9/+50
| | | | | symbol table, then just compute a suitable value (but do not create a __gp symbol).
* * elf-hppa.h (elf_hppa_relocate_section): Allow undefinedJeff Law1999-09-161-8/+31
| | | | | | symbols when building shared libraries. (elf_hppa_final_link_relocate): Correct handling of PCREL relocations against undefined symbols.
* * elf-hppa.h (elf_hppa_final_link): Revamp __gp handling.Jeff Law1999-09-151-32/+50
| | | | | (elf_hppa_final_link_relocate): Consistently create an absolute address, then subtract out the value of __gp.
* * elf-hppa.h (elf_hppa_record_segment_addrs): New function.Jeff Law1999-09-141-8/+61
| | | | | | (elf_hppa_final_link): Initialize text_segment_base and data_segment_base. (elf_hppa_final_link_relocate): Handle SEGREL relocations.
* * elf-hppa.h (elf_hppa_final_link): Remove unused variables.Jeff Law1999-09-141-11/+1
| | | | | | (elf_hppa_final_link_relocate): Likewise. (elf_hppa_relocate_insn): Likewise. (elf_hppa_relocate_section): Initialize HOWTO.
* * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32.Jeff Law1999-09-131-9/+12
| | | | Stub SEGREL32. Return an error for any relocation not handled.
* * elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entriesJeff Law1999-09-101-8/+96
| | | | for FPTR relocs involving local symbols.
* * elf-hppa.h (elf_hppa_final_link_relocate): Get the rightJeff Law1999-09-101-3/+23
| | | | | | value for the stub address in a call through a stub. Install the value for a local symbol directly into the DLT instead of generating a reloc. Correctly handle FPTR64 relocs.
* * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): New function.Jeff Law1999-09-101-2/+96
| | | | | (elf_hppa_remark_useless_dynamic_symbols): Similarly. (elf_hppa_final_link): Call them.
* Update some comments.Jeff Law1999-09-091-3/+1
|
* * elf-hppa.h (elf_hppa_howto_table); There is no DIR64WR, DIR64DRJeff Law1999-09-091-5/+57
| | | | | | | relocation, remove them. SECREL64->LTOFF16WF. (elf_hppa_final_link_relocate): Handle LTOFF* relocations. Handle DIR* relocations. (elf_hppa_relocate_insn): Similarly.
* * elf-hppa.h (elf_hppa_final_link_relocate): Handle PLTOFF* relocs.Jeff Law1999-09-091-2/+38
| | | | (elf_hppa_relocate_insn): Similarly.
* * elf-hppa.h (elf_hppa_final_link_relocate): Handle DPREL* andJeff Law1999-09-091-3/+32
| | | | | GPREL* relocations. (elf_hppa_relocate_insn): Similarly.
* * elf-hppa.h (elf_hppa_link_final_relocate): Fix typos.Jeff Law1999-09-091-11/+31
| | | | | Handle LTOFF_TP* relocs. (elf_hppa_relocate_insn): Similarly.
* * elf-hppa.h (elf_hppa_final_link_relocate): Handle PCREL* relocs.Jeff Law1999-09-091-12/+106
| | | | | Consistently deal with addends. Handle DLTIND14F and DLTREL14F. (elf_hppa_relocate_insn): Handle PCREL* relocs.
* * elf-hppa.h (elf_hppa_final_link_relocate): Handle LT_OFF_FPTR*,Jeff Law1999-09-091-5/+52
| | | | | DIR32, DIR64 and FPTR64 relocations. (elf_hppa_relocate_insn): Similarly.
* Wed Sep 8 17:56:11 1999 Jeffrey A Law (law@cygnus.com)Jeff Law1999-09-091-516/+443
| | | | | | | | | | | | | | | | | | | | | | * elf-hppa.h (elf_hppa_final_link): Set the value of __gp to the address of the .PARISC.global section. (elf_hppa_relocate_section): Lookup and pass the PA64 hash table entry elf_hppa_final_link_relocate. Do not give a warning for a reloc against an external symbol if it has a PA64 hash table entry. (elf_hppa_final_link_relocate): Significantly rework. Handle DLTIND relocations. Compute the final value of the relocation before passing the value of elf_hppa_relocate_insn. (elf_hppa_relocate_insn): Revamp to handle just bit tiwiddling relocation support. Handle DLTIND relocation requests just like DLTREL relocation requests. Simplify branch handling. 1999-09-08 Ulrich Drepper <drepper@cygnus.com> * elf-hppa.h (elf_hppa_relocate_section): Catch problems with non-allocated section as done in i386 version. (elf_hppa_final_link_relocate): Uncomment R_PARISC_14F in switch statement since this is no know relocation.
* * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14FJeff Law1999-09-081-0/+2
| | | | | relocs. (elf_hppa_relocate_insn): Similarly.
* * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14WR andJeff Law1999-09-081-4/+61
| | | | | DLTREL14WD relocs. (elf_hppa_relocate_insn): Similarly.
* * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14R andJeff Law1999-09-081-9/+81
| | | | | | | | DLTREL21L relocs. Pass the output bfd to elf_hppa_relocate_insn. Pass the relocate type rather than the insn format to elf_hppa_relocate_insn. (elf_hppa_relocate_insn): Make switch dependent on relocation type rather than the opcode. Handle DLTREL21L and DLTREL14R relocs.
* Fix minor typos introduced while cleaning up the previous patch.Jeff Law1999-09-011-4/+4
|
* * elf-hppa.h (elf_hppa_add_symbol_hook): New function.Jeff Law1999-09-011-0/+540
| | | | | (elf_hppa_final_link, elf_hppa_relocate_section): Likewise. (elf_hppa_final_link_relocate, elf_hppa_relocate_insn): Likewise.
* * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Allow bothJeff Law1999-08-301-1/+5
| | | | | | R_PARISC_DIR32 and R_PARISC_DIR64 regardless of how the tools were configured. * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Declare.
* * elf-hppa.h (elf_hppa_fake_sections): Compute section indicesJeff Law1999-08-201-4/+16
| | | | here instead of using elf_section_data...
* Fix typo.Jeff Law1999-08-111-1/+1
|
* * elf-hppa.h (elf_hppa_fake_sections): New function.Jeff Law1999-08-111-0/+30
| | | | * elf32-hppa.c (elf_backend_fake_sections): Define.
* * elf-hppa.h (elf_hppa_final_write_processing): Update forJeff Law1999-08-101-7/+3
| | | | recent changes to the arch_info structure.
* * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): HandleJeff Law1999-08-101-0/+5
| | | | | | R_HPPA_SEGBASE and R_HPPA_SEGREL32. * cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info list.
* * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case 32): When inJeff Law1999-08-091-0/+16
| | | | | | | | 64bit mode, generate a section relative relocation for a 32bit wide relocation. (elf_hppa_is_local_label_name): New function. * elf32-hppa.c (elf_hppa_is_local_label_name): Deleted. To be shared between 32bit and 64bit port.
* * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle 21bit e_ltpselJeff Law1999-08-051-0/+8
| | | | and 14bit ertpsel. Handle 64bit psel.
* èJeff Law1999-07-151-3/+18
| | | | | | | * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case R_HPPA): Handle 64bit format. (_bfd_elf_hppa_gen_reloc_type, case R_GOTOFF): Use base reloc type to derive final type instead of hardwiring a selection.
* * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSEDIan Lance Taylor1999-07-121-262/+261
| | | | | | | | | | | | | | | | | | | | | as appropriate. Use EMPTY_HOWTO as appropriate. Fill in structure initializations. Add casts. * reloc.c (EMPTY_HOWTO): Define. * bfd-in2.h: Rebuild. * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless comparisons against 0. * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change previous_ibfd_e_flags to unsigned long. * vms.h (struct vms_private_data_struct): Change section_count to unsigned. * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned. (_bfd_vms_write_gsd): Change symnum to unsigned. * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned. * vms-tir.c (etir_sta): Change psect to unsigned. (alloc_section): Change idx to unsigned. (tir_sta, tir_ctl): Change psect to unsigned. (_bfd_vms_write_tir): Change len and before to bfd_size_type. * vms.c (priv_section_count): Change to unsigned.
* èJeff Law1999-07-061-3/+3
| | | | | * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): T mode selectors need to generate DLTIND relocations, not DLTREL relocations.
* XJeff Law1999-07-011-0/+11
| | | | | * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle R_PCREL_CALL with 22bit format.
* èJeff Law1999-06-291-218/+218
| | | | | | * elf-hppa.c (elf_hppa_howto_table): Use bfd_elf_generic_reloc as relocation function. * elf32-hppa.c (hppa_elf_reloc): Kill unused/unwanted function.
* *** empty log message ***Jeff Law1999-06-241-0/+26
|
* * elf-hppa.h: New file. Common stuff for elf32 and elf64 PAJeff Law1999-06-221-0/+547
support. * elf32-hppa.c: Include elf-hppa.h. (ARCH_SIZE): Define. (elf_hppa_reloc_type_lookup): Delete. Found in the common code now. (elf32_hppa_info_to_howto): Similarly. (elf_hppa_howto_table): Similarly. (elf_hppa_reloc_type_lookup): Similarly. (hppa_elf_gen_reloc_type): Similarly. * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete.