mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 15:23:53 +08:00
103186c62b
(_bfd_mips_elf_create_dynamic_sections): New function. (_bfd_mips_elf_add_symbol_hook): Likewise. (_bfd_mips_elf_adjust_dynamic_symbol): Likewise. (_bfd_mips_elf_finish_dynamic_symbol): Likewise. (_bfd_mips_elf_finish_dynamic_sections): Likewise. (_bfd_mips_elf_gc_mark_hook): Likewise. (_bfd_mips_elf_gc_sweep_hook): Likewise. (_bfd_mips_elf_always_size_sections): Likewise. (_bfd_mips_elf_size_dynamic_sections): Likewise. (_bfd_mips_elf_check_relocs): Likewise. (_bfd_mips_elf_link_hash_table_create): Likewise. (_bfd_mips_elf_print_private_data): Likewise. (_bfd_mips_elf_link_output_symbol_hook): Likewise. (_bfd_mips_elf_final_link): Likewise. (_bfd_mips_elf_additional_program_headers): Likewise. (_bfd_mips_elf_modify_segment_map): Likewise. (_bfd_mips_elf_relocate_section): Likewise. * elf32-mips.c (mips_elf32_object_p): Move contents into _bfd_mips_elf_object_p. (mips_elf_additional_program_headers): Rename to _bfd_mips_elf_additional_program_headers. (mips_elf_modify_segment_map): Rename to _bfd_mips_elf_modify_segment_map. (elf_mips_abi_name): Change prototype. (mips_elf32_section_from_shdr): Merge into _bfd_mips_elf_section_from_shdr. (mips_elf32_section_processing): Merge into _bfd_mips_elf_section_processing. (mips_elf_final_link): Rename to _bfd_mips_elf_final_link. Invoke the right back-end ELF linker. (mips_elf_relocate_section): Rename to _bfd_mips_elf_relocate_section. Clean up. Adjust for 64-bit code. (mips_elf_link_output_symbol_hook): Rename to _bfd_mips_elf_link_output_symbol_hook. (mips_elf_create_dynamic_section): Rename to _bfd_mips_elf_create_dynamic_section. (mips_elf_check_relocs): Rename to _bfd_mips_elf_check_relocs. Adjust for 64-bit code. Use mips_elf_got_section. (mips_elf_adjust_dynamic_symbol): Rename to _bfd_mips_elf_adjust_dynamic_symbol. Use mips_elf_allocate_dynamic_relocations. (mips_elf_finish_dynamic_symbol): Rename to _bfd_mips_elf_finish_dynamic_symbol. Use mips_elf_got_section. Adjust for 64-bit code. (mips_elf_finish_dynamic_sections): Rename to _bfd_mips_elf_finish_dynamic_sections. Adjust for 64-bit code. (mips_elf_always_size_sections): Rename to _bfd_mips_elf_always_size_sections. (mips_elf_add_symbol_hook): Rename to _bfd_mips_elf_add_symbol_hook. (mips_elf_next_lo16_addend): Constify. (mips_elf_calculate_relocation): Likewise. (mips_elf_obtain_contents): Likewise. (mips_elf_perform_relocation): Likewise. (mips_elf_create_dynamic_relocation): Likewise. (mips_elf_allocate_dynamic_relocations): New function. (MIPS_ELF_REL_DYN_SECTION_NAME): New macro. (MIPS_ELF_REL_SIZE): Likewise. (MIPS_ELF_DYN_SIZE): Likewise. (MIPS_ELF_GOT_SIZE): Likewise. (MIPS_ELF_SYM_SIZE): Likewise. (MIPS_ELF_LOG_FILE_ALIGN): Likewise. (MIPS_ELF_GET_WORD): Likewise. (MIPS_ELF_PUT_WORD): Likewise. (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise. (STUB_LW): Conditionalize for 64-bit value. (elf_mips_howto_table): Add R_MIPS_HIGHER and R_MIPS_HIGHEST entries. (_bfd_mips_elf_merge_private_bfd_data): Merge e_ident[EI_CLASS]. Check it for inconsistency. (_bfd_mips_elf_print_private_bfd_data): Print ABI=64 for 64-bit ABI. (_bfd_mips_elf_fake_sections): Remove duplicate handling of .msym. (mips_elf_global_got_index): Use MIPS_ELF_GOT_SIZE. (mips_elf_got_offset_from_index): Use misp_elf_got_section. (mips_elf_create_local_got_entry): Use MIPS_ELF_GOT_SIZE. (mips_elf_local_got_index): Likewise. (mips_elf_got_page): Likewise. (mips_elf_got_info): Likewise. (mips_elf_create_dynamic_relocation): Handle 32-bit/64-bit split. (ELF_DYNAMIC_INTERPRETER): Handle 64-bit code. (mips_elf_create_dynamic_sections): Use MIPS_ELF_LOG_FILE_ALIGN, instead of constant `2'. (mips_elf_create_got_section): Tidy. Use MIPS_ELF_GOT_SIZE. (mips_elf_create_msym_section): Use MIPS_ELF_LOG_FILE_ALIGN. (mips_elf_size_dynamic_sections): Use MIPS_ELF_REL_DYN_SECTION_NAME, MIPS_ELF_GOT_SIZE, MIPS_ELF_ADD_DYNAMIC_ENTRY. Remove #if 0'd code. Adjust all releveant entries in elf backend table. * elf64-mips.c (mips_elf64_section_from_shdr): Remove. (mips_elf64_section_processing): Likewise. Adjust elf backend entries to use _bfd_mips_elf variants now publicly available. |
||
---|---|---|
.. | ||
doc | ||
hosts | ||
po | ||
acinclude.m4 | ||
aclocal.m4 | ||
aix386-core.c | ||
aout0.c | ||
aout32.c | ||
aout64.c | ||
aout-adobe.c | ||
aout-arm.c | ||
aout-encap.c | ||
aout-ns32k.c | ||
aout-sparcle.c | ||
aout-target.h | ||
aout-tic30.c | ||
aoutf1.h | ||
aoutx.h | ||
archive.c | ||
archures.c | ||
bfd-in2.h | ||
bfd-in.h | ||
bfd.c | ||
binary.c | ||
bout.c | ||
cache.c | ||
cf-i386lynx.c | ||
cf-m68klynx.c | ||
cf-sparclynx.c | ||
ChangeLog | ||
ChangeLog-9193 | ||
ChangeLog-9495 | ||
ChangeLog-9697 | ||
cisco-core.c | ||
coff-a29k.c | ||
coff-alpha.c | ||
coff-apollo.c | ||
coff-arm.c | ||
coff-aux.c | ||
coff-go32.c | ||
coff-h8300.c | ||
coff-h8500.c | ||
coff-i386.c | ||
coff-i860.c | ||
coff-i960.c | ||
coff-m68k.c | ||
coff-m88k.c | ||
coff-mcore.c | ||
coff-mips.c | ||
coff-pmac.c | ||
coff-ppc.c | ||
coff-rs6000.c | ||
coff-sh.c | ||
coff-sparc.c | ||
coff-stgo32.c | ||
coff-svm68k.c | ||
coff-tic30.c | ||
coff-tic80.c | ||
coff-u68k.c | ||
coff-w65.c | ||
coff-we32k.c | ||
coff-z8k.c | ||
coffcode.h | ||
coffgen.c | ||
cofflink.c | ||
coffswap.h | ||
config.bfd | ||
config.in | ||
configure | ||
configure.bat | ||
configure.com | ||
configure.host | ||
configure.in | ||
COPYING | ||
corefile.c | ||
cpu-a29k.c | ||
cpu-alpha.c | ||
cpu-arc.c | ||
cpu-arm.c | ||
cpu-d10v.c | ||
cpu-d30v.c | ||
cpu-fr30.c | ||
cpu-h8300.c | ||
cpu-h8500.c | ||
cpu-hppa.c | ||
cpu-i386.c | ||
cpu-i860.c | ||
cpu-i960.c | ||
cpu-m32r.c | ||
cpu-m68k.c | ||
cpu-m88k.c | ||
cpu-m10200.c | ||
cpu-m10300.c | ||
cpu-mcore.c | ||
cpu-mips.c | ||
cpu-ns32k.c | ||
cpu-powerpc.c | ||
cpu-rs6000.c | ||
cpu-sh.c | ||
cpu-sparc.c | ||
cpu-tic30.c | ||
cpu-tic80.c | ||
cpu-v850.c | ||
cpu-vax.c | ||
cpu-w65.c | ||
cpu-we32k.c | ||
cpu-z8k.c | ||
demo64.c | ||
dep-in.sed | ||
dwarf1.c | ||
dwarf2.c | ||
ecoff.c | ||
ecofflink.c | ||
ecoffswap.h | ||
elf32-arc.c | ||
elf32-arm.h | ||
elf32-d10v.c | ||
elf32-d30v.c | ||
elf32-fr30.c | ||
elf32-gen.c | ||
elf32-hppa.c | ||
elf32-hppa.h | ||
elf32-i386.c | ||
elf32-i860.c | ||
elf32-i960.c | ||
elf32-m32r.c | ||
elf32-m68k.c | ||
elf32-m88k.c | ||
elf32-mcore.c | ||
elf32-mips.c | ||
elf32-ppc.c | ||
elf32-sh.c | ||
elf32-sparc.c | ||
elf32-v850.c | ||
elf32.c | ||
elf64-alpha.c | ||
elf64-gen.c | ||
elf64-mips.c | ||
elf64-sparc.c | ||
elf64.c | ||
elf-bfd.h | ||
elf-hppa.h | ||
elf-m10200.c | ||
elf-m10300.c | ||
elf.c | ||
elfarm-nabi.c | ||
elfarm-oabi.c | ||
elfcode.h | ||
elfcore.h | ||
elflink.c | ||
elflink.h | ||
elfxx-target.h | ||
epoc-pe-arm.c | ||
epoc-pei-arm.c | ||
format.c | ||
freebsd.h | ||
gen-aout.c | ||
genlink.h | ||
go32stub.h | ||
hash.c | ||
host-aout.c | ||
hp300bsd.c | ||
hp300hpux.c | ||
hppa_stubs.h | ||
hppabsd-core.c | ||
hpux-core.c | ||
i386aout.c | ||
i386bsd.c | ||
i386dynix.c | ||
i386freebsd.c | ||
i386linux.c | ||
i386lynx.c | ||
i386mach3.c | ||
i386msdos.c | ||
i386netbsd.c | ||
i386os9k.c | ||
ieee.c | ||
ihex.c | ||
init.c | ||
irix-core.c | ||
libaout.h | ||
libbfd-in.h | ||
libbfd.c | ||
libbfd.h | ||
libcoff-in.h | ||
libcoff.h | ||
libecoff.h | ||
libhppa.h | ||
libieee.h | ||
libnlm.h | ||
liboasys.h | ||
linker.c | ||
lynx-core.c | ||
m68k4knetbsd.c | ||
m68klinux.c | ||
m68klynx.c | ||
m68knetbsd.c | ||
m88kmach3.c | ||
Makefile.am | ||
makefile.dos | ||
Makefile.in | ||
makefile.vms | ||
mipsbsd.c | ||
mpw-config.in | ||
mpw-make.sed | ||
netbsd-core.c | ||
netbsd.h | ||
newsos3.c | ||
nlm32-alpha.c | ||
nlm32-i386.c | ||
nlm32-ppc.c | ||
nlm32-sparc.c | ||
nlm32.c | ||
nlm64.c | ||
nlm-target.h | ||
nlm.c | ||
nlmcode.h | ||
nlmswap.h | ||
ns32k.h | ||
ns32knetbsd.c | ||
oasys.c | ||
opncls.c | ||
osf-core.c | ||
pc532-mach.c | ||
pe-arm.c | ||
pe-i386.c | ||
pe-mcore.c | ||
pe-ppc.c | ||
pei-arm.c | ||
pei-i386.c | ||
pei-mcore.c | ||
pei-ppc.c | ||
peicode.h | ||
PORTING | ||
ppcboot.c | ||
ptrace-core.c | ||
README | ||
reloc16.c | ||
reloc.c | ||
riscix.c | ||
rs6000-core.c | ||
sco5-core.c | ||
section.c | ||
som.c | ||
som.h | ||
sparclinux.c | ||
sparclynx.c | ||
sparcnetbsd.c | ||
srec.c | ||
stab-syms.c | ||
stabs.c | ||
stamp-h.in | ||
sunos.c | ||
syms.c | ||
sysdep.h | ||
targets.c | ||
targmatch.sed | ||
tekhex.c | ||
TODO | ||
trad-core.c | ||
vaxnetbsd.c | ||
versados.c | ||
vms-gsd.c | ||
vms-hdr.c | ||
vms-misc.c | ||
vms-tir.c | ||
vms.c | ||
vms.h | ||
xcofflink.c |
BFD is a an object file library. It permits applications to use the same routines to process object files regardless of their format. BFD is used by the GNU debugger, assembler, linker, and the binary utilities. The documentation on using BFD is scanty and may be occasionally incorrect. Pointers to documentation problems, or an entirely rewritten manual, would be appreciated. There is some BFD internals documentation in doc/bfdint.texi which may help programmers who want to modify BFD. BFD is normally built as part of another package. See the build instructions for that package, probably in a README file in the appropriate directory. BFD supports the following configure options: --target=TARGET The default target for which to build the library. TARGET is a configuration target triplet, such as sparc-sun-solaris. --enable-targets=TARGET,TARGET,TARGET... Additional targets the library should support. To include support for all known targets, use --enable-targets=all. --enable-64-bit-bfd Include support for 64 bit targets. This is automatically turned on if you explicitly request a 64 bit target, but not for --enable-targets=all. This requires a compiler with a 64 bit integer type, such as gcc. --enable-shared Build BFD as a shared library. --with-mmap Use mmap when accessing files. This is faster on some hosts, but slower on others. It may not work on all hosts. Report bugs with BFD to bug-gnu-utils@gnu.org. Patches are encouraged. When sending patches, always send the output of diff -u or diff -c from the original file to the new file. Do not send default diff output. Do not make the diff from the new file to the original file. Remember that any patch must not break other systems. Remember that BFD must support cross compilation from any host to any target, so patches which use ``#ifdef HOST'' are not acceptable. Please also read the ``Reporting Bugs'' section of the gcc manual. Bug reports without patches will be remembered, but they may never get fixed until somebody volunteers to fix them.