old-cross-binutils/bfd
Jakub Jelinek 8c37241be3 bfd/
* elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol
	into .dynsym if elf_section_data (sec)->dynindx <= 0.
	Adjust counting of last_local.
	(_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
	other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
	created by the linker nor !SHF_ALLOC.

	* elf32-i386.c (elf_i386_finish_dynamic_sections): Point
	DT_PLTGOT to the start of the .got.plt section instead of the
	.got output section.  Set sh_entsize for .got section in addition
	to .got.plt.
	(elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
	is at sgot->output_section->vma.
	* elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
	DT_PLTGOT to the start of the .got.plt section instead of the
	.got output section.
	(elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
	is at sgot->output_section->vma.  Set sh_entsize for .got section
	in addition to .got.plt.
	* elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
	(bfd_section_from_phdr): Likewise.
	(map_sections_to_segments): Likewise.
	(assign_file_positions_for_segments): Likewise.
	(get_program_header_size): Likewise.
	* elflink.c (bfd_elf_size_dynamic_sections): Set
	elf_tdata (output_bfd)->relro from info->relro.
	* elf-bfd.h (struct elf_obj_tdata): Add relro field.
include/
	* bfdlink.h (struct bfd_link_info): Add relro, relro_start and
	relro_end fields.
	* elf/common.h (PT_GNU_EH_FRAME, PT_GNU_STACK): Add comments.
	(PT_GNU_RELRO): Define.
binutils/
	* readelf.c (get_segment_type): Handle PT_GNU_RELRO.
ld/
	* genscripts.sh: Generate -z combreloc -z now -z relro scripts
	for binaries, -shared and -pie.
	* emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
	* emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
	* emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
	(OTHER_RELRO_SECTIONS): ... this.
	* ldlex.l (DATA_SEGMENT_RELRO_END): Add.
	* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
	-z relro and -z norelro.
	(gld${EMULATION_NAME}_list_options): Add it to usage.
	(gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
	-z relro scripts when appropriate.
	* scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
	Create separate .got.plt section if SEPARATE_GOTPLT.
	Move sections which are only written during relocation handling
	to the beginning of RW segment.  If NO_SMALL_DATA, move .got
	before .data.  Add DATA_SEGMENT_RELRO_END directive.
	Include OTHER_RELRO_SECTIONS.
	* ldgram.y (DATA_SEGMENT_RELRO_END): Add.
	* ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
	(fold_unary): Likewise.
	(fold_binary): Handle -z relro.
	* ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
	exp_dataseg_relro_adjust phases.  Add relro_end field.
	* ldmain.c (main): Initialize link_info.relro to FALSE.
	* ldlang.c (lang_size_sections): Handle -z relro.
ld/testsuite/
	* ld-i386/tlspic.rd: Adjust for section reordering changes
	and removal of unneeded STT_SECTION symbols from .dynsym.
	* ld-i386/tlspic.dd: Likewise.
	* ld-i386/tlspic.sd: Likewise.
	* ld-i386/tlsbin.rd: Likewise.
	* ld-i386/tlsbinpic.s: Likewise.
	* ld-i386/tlsbin.dd: Likewise.
	* ld-i386/tlsbin.sd: Likewise.
	* ld-i386/tlsnopic.rd: Likewise.
	* ld-i386/tlsnopic1.s: Likewise.
	* ld-i386/combreloc.d: Likewise.
	* ld-i386/tlsnopic.dd: Likewise.
	* ld-i386/tlsnopic.sd: Likewise.
	* ld-x86-64/tlspic.rd: Likewise.
	* ld-x86-64/tlspic.dd: Likewise.
	* ld-x86-64/tlsbin.dd: Likewise.
	* ld-x86-64/tlspic.sd: Likewise.
	* ld-x86-64/tlsbin.sd: Likewise.
	* ld-x86-64/tlspic.td: Likewise.
	* ld-x86-64/tlsbin.td: Likewise.
	* ld-x86-64/tlsbin.rd: Likewise.
	* ld-s390/tlspic1.s: Likewise.
	* ld-s390/tlsbinpic.s: Likewise.
	* ld-s390/tlspic.rd: Likewise.
	* ld-s390/tlsbin.rd: Likewise.
	* ld-s390/tlspic.dd: Likewise.
	* ld-s390/tlsbin.dd: Likewise.
	* ld-s390/tlsbin.sd: Likewise.
	* ld-s390/tlsbin.td: Likewise.
	* ld-s390/tlspic.sd: Likewise.
	* ld-s390/tlspic.td: Likewise.
	* ld-s390/tlspic1_64.s: Likewise.
	* ld-s390/tlsbinpic_64.s: Likewise.
	* ld-s390/tlspic_64.rd: Likewise.
	* ld-s390/tlsbin_64.rd: Likewise.
	* ld-s390/tlspic_64.dd: Likewise.
	* ld-s390/tlsbin_64.dd: Likewise.
	* ld-s390/tlspic_64.sd: Likewise.
	* ld-s390/tlspic_64.td: Likewise.
	* ld-s390/tlsbin_64.td: Likewise.
	* ld-s390/tlsbin_64.sd: Likewise.
	* ld-powerpc/tlsexe32.r: Likewise.
	* ld-powerpc/tlsso32.r: Likewise.
	* ld-powerpc/tlsso32.d: Likewise.
	* ld-powerpc/tlsso32.g: Likewise.
	* ld-powerpc/tlsso32.t: Likewise.
	* ld-powerpc/tlsexe.r: Likewise.
	* ld-powerpc/tlsso.r: Likewise.
	* ld-powerpc/tlsso.g: Likewise.
	* ld-powerpc/tlsexetoc.r: Likewise.
	* ld-powerpc/tlstocso.r: Likewise.
	* ld-powerpc/tlstocso.g: Likewise.
	* ld-ia64/tlspic.rd: Likewise.
	* ld-ia64/tlspic.dd: Likewise.
	* ld-ia64/tlspic.sd: Likewise.
	* ld-ia64/tlspic.td: Likewise.
	* ld-ia64/tlsbin.rd: Likewise.
	* ld-ia64/tlsbin.sd: Likewise.
	* ld-ia64/tlsbin.td: Likewise.
	* ld-elfvsb/elfvsb.exp: XFAIL non-PIC load offset tests on s390x.
	* ld-shared/shared.exp: Likewise.
2004-05-11 17:08:38 +00:00
..
doc
hosts
po
acinclude.m4
aclocal.m4
aix5ppc-core.c
aix386-core.c
aout-adobe.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
aout-arm.c
aout-cris.c
aout-encap.c
aout-ns32k.c
aout-sparcle.c
aout-target.h * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
aout-tic30.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
aout0.c
aout32.c
aout64.c
aoutf1.h
aoutx.h
archive.c PR/136 - Have bfd_cache_lookup_worker() abort rather than return an 2004-05-05 15:39:11 +00:00
archive64.c
archures.c Add support for 521x,5249,547x,548x. 2004-05-05 14:33:14 +00:00
armnetbsd.c
bfd-in.h
bfd-in2.h Add support for 521x,5249,547x,548x. 2004-05-05 14:33:14 +00:00
bfd.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
bfdio.c
bfdwin.c
binary.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
bout.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
cache.c PR/136 - Have bfd_cache_lookup_worker() abort rather than return an 2004-05-05 15:39:11 +00:00
cf-i386lynx.c
cf-m68klynx.c
cf-sparclynx.c
ChangeLog bfd/ 2004-05-11 17:08:38 +00:00
ChangeLog-0001
ChangeLog-0203
ChangeLog-9193
ChangeLog-9495
ChangeLog-9697
ChangeLog-9899
cisco-core.c
coff-a29k.c
coff-alpha.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
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-ia64.c
coff-m68k.c
coff-m88k.c
coff-mcore.c
coff-mips.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
coff-or32.c
coff-pmac.c
coff-ppc.c
coff-rs6000.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
coff-sh.c
coff-sparc.c
coff-stgo32.c
coff-svm68k.c
coff-tic4x.c
coff-tic30.c
coff-tic54x.c
coff-tic80.c
coff-u68k.c
coff-w65.c
coff-we32k.c
coff-z8k.c
coff64-rs6000.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
coffcode.h * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]: 2004-05-07 15:08:49 +00:00
coffgen.c
cofflink.c
coffswap.h
config.bfd * configure.in (bfd_elf32_frvfdpic_vec): New. 2004-05-06 02:46:29 +00:00
config.in
configure * configure.in (bfd_elf32_frvfdpic_vec): New. 2004-05-06 02:46:29 +00:00
configure.com
configure.host
configure.in * configure.in (bfd_elf32_frvfdpic_vec): New. 2004-05-06 02:46:29 +00:00
COPYING
corefile.c
cpu-a29k.c
cpu-alpha.c
cpu-arc.c
cpu-arm.c
cpu-avr.c
cpu-cr16c.c
cpu-cris.c
cpu-d10v.c
cpu-d30v.c
cpu-dlx.c
cpu-fr30.c
cpu-frv.c
cpu-h8300.c
cpu-h8500.c
cpu-hppa.c
cpu-i370.c
cpu-i386.c
cpu-i860.c
cpu-i960.c
cpu-ia64-opc.c
cpu-ia64.c
cpu-ip2k.c
cpu-iq2000.c
cpu-m32r.c
cpu-m68hc11.c
cpu-m68hc12.c
cpu-m68k.c Add support for 521x,5249,547x,548x. 2004-05-05 14:33:14 +00:00
cpu-m88k.c
cpu-m10200.c
cpu-m10300.c
cpu-mcore.c
cpu-mips.c
cpu-mmix.c
cpu-msp430.c
cpu-ns32k.c
cpu-openrisc.c
cpu-or32.c
cpu-pdp11.c
cpu-pj.c
cpu-powerpc.c
cpu-rs6000.c
cpu-s390.c
cpu-sh.c
cpu-sparc.c
cpu-tic4x.c
cpu-tic30.c
cpu-tic54x.c
cpu-tic80.c
cpu-v850.c
cpu-vax.c
cpu-w65.c
cpu-we32k.c
cpu-xstormy16.c
cpu-xtensa.c
cpu-z8k.c
demo64.c
dep-in.sed
dwarf1.c
dwarf2.c * dwarf2.c (add_line_info): Also set info->filename to NULL if 2004-05-07 00:01:25 +00:00
ecoff.c [ bfd/ChangeLog ] 2004-04-24 06:12:25 +00:00
ecofflink.c [ bfd/ChangeLog ] 2004-04-24 06:12:25 +00:00
ecoffswap.h
efi-app-ia32.c
efi-app-ia64.c
elf-bfd.h bfd/ 2004-05-11 17:08:38 +00:00
elf-eh-frame.c
elf-hppa.h
elf-m10200.c
elf-m10300.c
elf-strtab.c
elf.c bfd/ 2004-05-11 17:08:38 +00:00
elf32-am33lin.c
elf32-arc.c
elf32-arm.h * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32 2004-05-06 23:43:40 +00:00
elf32-avr.c
elf32-cr16c.c
elf32-cris.c
elf32-d10v.c
elf32-d30v.c
elf32-dlx.c
elf32-fr30.c
elf32-frv.c * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get 2004-05-08 07:05:32 +00:00
elf32-gen.c
elf32-h8300.c
elf32-hppa.c
elf32-hppa.h
elf32-i370.c
elf32-i386.c bfd/ 2004-05-11 17:08:38 +00:00
elf32-i860.c
elf32-i960.c
elf32-ip2k.c
elf32-iq2000.c
elf32-m32r.c
elf32-m68hc1x.c
elf32-m68hc1x.h
elf32-m68hc11.c
elf32-m68hc12.c
elf32-m68k.c
elf32-m88k.c
elf32-mcore.c
elf32-mips.c [ bfd/ChangeLog ] 2004-04-24 22:07:14 +00:00
elf32-msp430.c
elf32-openrisc.c
elf32-or32.c
elf32-pj.c
elf32-ppc.c
elf32-ppc.h
elf32-s390.c
elf32-sh.c
elf32-sh64-com.c
elf32-sh64.c 2004-04-27 H.J. Lu <hongjiu.lu@intel.com> 2004-04-27 16:06:07 +00:00
elf32-sh64.h
elf32-sparc.c
elf32-v850.c
elf32-vax.c
elf32-xstormy16.c
elf32-xtensa.c * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size 2004-04-27 21:28:16 +00:00
elf32.c
elf64-alpha.c * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign 2004-04-27 03:13:15 +00:00
elf64-gen.c
elf64-hppa.c
elf64-hppa.h
elf64-mips.c
elf64-mmix.c
elf64-ppc.c
elf64-ppc.h
elf64-s390.c
elf64-sh64.c
elf64-sparc.c * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign 2004-04-27 03:13:15 +00:00
elf64-x86-64.c bfd/ 2004-05-11 17:08:38 +00:00
elf64.c
elfarm-nabi.c
elfarm-oabi.c
elfcode.h
elfcore.h
elflink.c bfd/ 2004-05-11 17:08:38 +00:00
elfn32-mips.c
elfxx-ia64.c * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign 2004-04-27 03:13:15 +00:00
elfxx-mips.c [ bfd/ChangeLog ] 2004-04-24 22:07:14 +00:00
elfxx-mips.h
elfxx-target.h * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
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
hppabsd-core.c Remove checks of the return value from bfd_cache_ookup() 2004-05-05 15:46:35 +00:00
hpux-core.c
i386aout.c
i386bsd.c
i386dynix.c
i386freebsd.c
i386linux.c
i386lynx.c
i386mach3.c
i386msdos.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
i386netbsd.c
i386os9k.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
ieee.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
ihex.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
init.c
irix-core.c
libaout.h
libbfd-in.h * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
libbfd.c
libbfd.h * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
libcoff-in.h
libcoff.h
libecoff.h [ bfd/ChangeLog ] 2004-04-24 06:12:25 +00:00
libhppa.h
libieee.h
libnlm.h
liboasys.h
libpei.h
libxcoff.h
linker.c
lynx-core.c
m68k4knetbsd.c
m68klinux.c
m68klynx.c
m68knetbsd.c
m88kmach3.c
mach-o-target.c
mach-o.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
mach-o.h
MAINTAINERS
Makefile.am
Makefile.in
makefile.vms
merge.c
mipsbsd.c
mmo.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
netbsd-core.c
netbsd.h
newsos3.c
nlm-target.h * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
nlm.c
nlm32-alpha.c
nlm32-i386.c
nlm32-ppc.c
nlm32-sparc.c
nlm32.c
nlm64.c
nlmcode.h
nlmswap.h
ns32k.h
ns32knetbsd.c
oasys.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
opncls.c
osf-core.c
pc532-mach.c
pdp11.c
pe-arm.c
pe-i386.c Add support for generating DWARF2 debug sections in the x86 PE port 2004-04-29 16:40:20 +00:00
pe-mcore.c
pe-mips.c [ bfd/ChangeLog ] 2004-04-24 06:12:25 +00:00
pe-ppc.c
pe-sh.c
pef-traceback.h
pef.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
pef.h
pei-arm.c
pei-i386.c Add support for generating DWARF2 debug sections in the x86 PE port 2004-04-29 16:40:20 +00:00
pei-mcore.c
pei-mips.c
pei-ppc.c
pei-sh.c
peicode.h
peXXigen.c * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]: 2004-05-07 15:08:49 +00:00
PORTING
ppcboot.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
ptrace-core.c
README
reloc.c [ bfd/ChangeLog ] 2004-04-29 05:14:22 +00:00
reloc16.c
riscix.c
rs6000-core.c
sco5-core.c Remove checks of the return value from bfd_cache_ookup() 2004-05-05 15:46:35 +00:00
section.c bfd/ 2004-05-02 14:36:25 +00:00
simple.c
som.c * som.c (som_bfd_is_group_section): Define. 2004-05-02 06:21:08 +00:00
som.h * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and 2004-04-28 18:02:49 +00:00
sparclinux.c
sparclynx.c
sparcnetbsd.c
srec.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
stab-syms.c
stabs.c
stamp-h.in
sunos.c
syms.c
sysdep.h
targets.c * configure.in (bfd_elf32_frvfdpic_vec): New. 2004-05-06 02:46:29 +00:00
targmatch.sed
tekhex.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
ticoff.h
TODO
trad-core.c Remove checks of the return value from bfd_cache_ookup() 2004-05-05 15:46:35 +00:00
vax1knetbsd.c
vaxbsd.c
vaxnetbsd.c
versados.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
version.h daily update 2004-05-11 00:00:06 +00:00
vms-gsd.c
vms-hdr.c
vms-misc.c
vms-tir.c
vms.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
vms.h
xcoff-target.h
xcofflink.c
xsym.c * section.c (bfd_make_section_anyway): Add all sections to hash tab. 2004-04-30 14:23:40 +00:00
xsym.h
xtensa-isa.c
xtensa-modules.c

BFD is 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-binutils@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.