binutils-gdb/bfd
H.J. Lu 92dd451149 bfd/
2009-04-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/10074
	* coffcode.h (bfd_pei_p): New.

	* config.bfd: Remove bfd_efi_bsdrv_ia32_vec,
	bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
	bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and
	bfd_efi_rtdrv_ia64_vec.  Replace bfd_efi_app_ia32_vec,
	bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with
	i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively.

	* configure.in: Remove bfd_efi_bsdrv_ia32_vec,
	bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
	bfd_efi_rtdrv_x86_64_vec,
	bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec.  Replace
	bfd_efi_ia64_vec with bfd_pei_ia64_vec.
	* targets.c: Likewise.

	* configure: Regenerated.
	* libcoff.h: Likewise.
	* Makefile.in: Likewise.

	* efi-app-ia32.c: Removed.
	* efi-app-x86_64.c: Likewise.
	* efi-bsdrv-ia32.c: Likewise.
	* efi-bsdrv-ia64.c: Likewise.
	* efi-bsdrv-x86_64.c: Likewise.
	* efi-rtdrv-ia32.c: Likewise.
	* efi-rtdrv-ia64.c: Likewise.
	* efi-rtdrv-x86_64.c: Likewise.
	* efi-rtdrv-ia32.c: Likewise.

	* efi-app-ia64.c: Moved to ...
	* pei-ia64.c: This.
	(TARGET_SYM): Set to bfd_pei_ia64_vec.
	(TARGET_NAME): Set to pei-ia64.

	* libpei.h (bfd_target_pei_p): Removed.
	(bfd_target_pei_arch): Likewise.
	(bfd_target_efi_app_p): Likewise.
	(bfd_target_efi_app_arch): Likewise.
	(bfd_target_efi_bsdrv_p): Likewise.
	(bfd_target_efi_bsdrv_arch): Likewise.
	(bfd_target_efi_rtdrv_p): Likewise.
	(bfd_target_efi_rtdrv_arch): Likewise.
	(bfd_pe_executable_p): Likewise.

	* Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo,
	efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo.
	(BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c
	and efi-rtdrv-ia32.c.
	(BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo,
	efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and
	efi-rtdrv-x86_64.lo. Add pei-ia64.lo.
	(BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c,
	efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and
	efi-rtdrv-x86_64.c. Add pei-ia64.c.
	(efi-app-ia64.lo): Removed.
	(efi-bsdrv-ia32.lo): Likewise.
	(efi-rtdrv-ia32.lo): Likewise.
	(efi-app-ia64.lo): Likewise.
	(efi-bsdrv-ia64.lo): Likewise.
	(efi-rtdrv-ia64.lo): Likewise.
	(efi-app-x86_64.lo): Likewise.
	(efi-bsdrv-x86_64.lo): Likewise.
	(efi-rtdrv-x86_64.lo): Likewise.
	(pei-ia64.lo): New.

	* peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p
	with bfd_pei_p.
	(arch_type): Removed.
	(pe_arch): Likewise.
	(pe_bfd_object_p): Just return coff_object_p.

	* peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace
	bfd_pe_executable_p with bfd_pei_p.

binutils/

2009-04-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/10074
	* objcopy.c: Include coff/i386.h and coff/pe.h.
	(pe_file_alignment): New.
	(pe_heap_commit): Likewise.
	(pe_heap_reserve): Likewise.
	(pe_image_base): Likewise.
	(pe_section_alignment): Likewise.
	(pe_stack_commit): Likewise.
	(pe_stack_reserve): Likewise.
	(pe_subsystem): Likewise.
	(pe_major_subsystem_version): Likewise.
	(pe_minor_subsystem_version): Likewise.
	(set_pe_subsystem): Likewise.
	(convert_efi_target): Likewise.
	(command_line_switch): Add OPTION_FILE_ALIGNMENT,
	OPTION_HEAP, OPTION_IMAGE_BASE, OPTION_SECTION_ALIGNMENT,
	OPTION_STACK and OPTION_SUBSYSTEM.
	(copy_options): Likewise.
	(copy_usage): Add --file-alignment, --heap, --image-base,
	--section-alignment, --stack and --subsystem.
	(copy_object): Set up PE parameters.
	(copy_main): Process Add OPTION_FILE_ALIGNMENT,
	OPTION_HEAP, OPTION_IMAGE_BASE, OPTION_SECTION_ALIGNMENT,
	OPTION_STACK and OPTION_SUBSYSTEM.   Convert EFI target to
	PEI target.

	* NEWS: Mention --file-alignment, --heap, --image-base,
	--section-alignment, --stack and --subsystem command line
	options for objcopy.

	* doc/binutils.texi: Document --file-alignment, --heap,
	--image-base, --section-alignment, --stack and --subsystem
	command line options for objcopy.
2009-04-17 13:46:18 +00:00
..
doc
hosts
po Updated Spanish translations. 2009-03-06 12:14:40 +00:00
acinclude.m4
aclocal.m4
aix5ppc-core.c
aix386-core.c
aout0.c
aout32.c
aout64.c
aout-adobe.c bfd/ 2009-04-16 23:07:00 +00:00
aout-arm.c
aout-cris.c
aout-ns32k.c
aout-sparcle.c
aout-target.h bfd/ 2009-04-16 23:07:00 +00:00
aout-tic30.c bfd/ 2009-04-16 23:07:00 +00:00
aoutf1.h
aoutx.h
archive64.c
archive.c [bfd/ChangeLog] 2009-03-11 04:36:40 +00:00
archures.c Add new binutils target: moxie 2009-04-16 15:39:48 +00:00
armnetbsd.c
bfd-in2.h bfd/ 2009-04-16 23:07:00 +00:00
bfd-in.h bfd/ 2009-04-01 19:53:53 +00:00
bfd.c [bfd/ChangeLog] 2009-03-11 04:36:40 +00:00
bfd.m4
bfdio.c
bfdwin.c
binary.c bfd/ 2009-04-16 23:07:00 +00:00
bout.c bfd/ 2009-04-16 23:07:00 +00:00
cache.c
cf-i386lynx.c
cf-sparclynx.c
ChangeLog bfd/ 2009-04-17 13:46:18 +00:00
ChangeLog-0001
ChangeLog-0203
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-9193
ChangeLog-9495
ChangeLog-9697
ChangeLog-9899
cisco-core.c
coff64-rs6000.c bfd/ 2009-04-16 23:07:00 +00:00
coff-alpha.c bfd/ 2009-04-16 23:07:00 +00:00
coff-apollo.c
coff-arm.c * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not 2009-03-28 23:19:00 +00:00
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-maxq.c
coff-mcore.c
coff-mips.c bfd/ 2009-04-16 23:07:00 +00:00
coff-or32.c
coff-pmac.c
coff-ppc.c
coff-rs6000.c bfd/ 2009-04-16 23:07:00 +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-x86_64.c 2009-04-06 H.J. Lu <hongjiu.lu@intel.com> 2009-04-06 16:48:36 +00:00
coff-z8k.c
coff-z80.c
coffcode.h bfd/ 2009-04-17 13:46:18 +00:00
coffgen.c bfd/ChangeLog 2009-04-14 09:47:44 +00:00
cofflink.c
coffswap.h
compress.c
config.bfd bfd/ 2009-04-17 13:46:18 +00:00
config.in
configure bfd/ 2009-04-17 13:46:18 +00:00
configure.com
configure.host
configure.in bfd/ 2009-04-17 13:46:18 +00:00
COPYING
corefile.c
cpu-alpha.c
cpu-arc.c
cpu-arm.c * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not 2009-03-28 23:19:00 +00:00
cpu-avr.c
cpu-bfin.c
cpu-cr16.c
cpu-cr16c.c
cpu-cris.c
cpu-crx.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 2009-03-24 H.J. Lu <hongjiu.lu@intel.com> 2009-03-24 18:07:14 +00:00
cpu-i860.c
cpu-i960.c
cpu-ia64-opc.c
cpu-ia64.c
cpu-ip2k.c
cpu-iq2000.c
cpu-lm32.c
cpu-m32c.c
cpu-m32r.c
cpu-m68hc11.c
cpu-m68hc12.c
cpu-m68k.c
cpu-m88k.c
cpu-m10200.c
cpu-m10300.c
cpu-maxq.c
cpu-mcore.c
cpu-mep.c [include/elf] 2009-04-08 02:24:23 +00:00
cpu-mips.c
cpu-mmix.c
cpu-moxie.c Add new binutils target: moxie 2009-04-16 15:39:48 +00:00
cpu-msp430.c
cpu-mt.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-score.c Add support for Score7 architecture. 2009-03-02 10:33:08 +00:00
cpu-sh.c
cpu-sparc.c
cpu-spu.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-xc16x.c
cpu-xstormy16.c
cpu-xtensa.c
cpu-z8k.c
cpu-z80.c
demo64.c
dep-in.sed
dwarf1.c
dwarf2.c 2009-03-16 Andrew Stubbs <ams@codesourcery.com> 2009-03-16 12:41:26 +00:00
ecoff.c include/elf/ 2009-03-04 05:50:50 +00:00
ecofflink.c
ecoffswap.h
elf32-am33lin.c
elf32-arc.c
elf32-arm.c 2009-04-17 Christophe Lyon <christophe.lyon@st.com> 2009-04-17 13:04:41 +00:00
elf32-avr.c
elf32-avr.h
elf32-bfin.c
elf32-cr16.c
elf32-cr16c.c
elf32-cris.c * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> 2009-03-25 03:03:40 +00:00
elf32-crx.c 2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com> 2009-03-25 08:05:57 +00:00
elf32-d10v.c
elf32-d30v.c
elf32-dlx.c
elf32-fr30.c
elf32-frv.c
elf32-gen.c
elf32-h8300.c [bfd] 2009-04-07 18:21:22 +00:00
elf32-hppa.c * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long 2009-03-19 10:40:06 +00:00
elf32-hppa.h
elf32-i370.c
elf32-i386.c 2009-03-12 H.J. Lu <hongjiu.lu@intel.com> 2009-03-12 17:13:41 +00:00
elf32-i860.c
elf32-i960.c
elf32-ip2k.c
elf32-iq2000.c
elf32-lm32.c
elf32-m32c.c
elf32-m32r.c
elf32-m68hc1x.c include/ 2009-03-18 11:27:18 +00:00
elf32-m68hc1x.h
elf32-m68hc11.c
elf32-m68hc12.c
elf32-m68k.c
elf32-m88k.c
elf32-mcore.c
elf32-mep.c [include/elf] 2009-04-08 02:24:23 +00:00
elf32-mips.c
elf32-moxie.c Add new binutils target: moxie 2009-04-16 15:39:48 +00:00
elf32-msp430.c
elf32-mt.c
elf32-openrisc.c
elf32-or32.c
elf32-pj.c
elf32-ppc.c * elf32-ppc.c (is_pic_glink_stub): Delete. 2009-03-21 02:35:27 +00:00
elf32-ppc.h
elf32-s390.c 2009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com> 2009-03-20 12:57:15 +00:00
elf32-score7.c Add support for Score7 architecture. 2009-03-02 10:33:08 +00:00
elf32-score.c Add support for Score7 architecture. 2009-03-02 10:33:08 +00:00
elf32-score.h Add support for Score7 architecture. 2009-03-02 10:33:08 +00:00
elf32-sh64-com.c
elf32-sh64.c
elf32-sh64.h
elf32-sh-relocs.h
elf32-sh-symbian.c
elf32-sh.c
elf32-sparc.c
elf32-spu.c bfd/ 2009-03-19 07:04:12 +00:00
elf32-spu.h bfd/ 2009-03-19 07:04:12 +00:00
elf32-v850.c
elf32-vax.c 2009-04-01 Matt Thomas <matt@netbsd.org> 2009-04-02 00:20:42 +00:00
elf32-xc16x.c
elf32-xstormy16.c
elf32-xtensa.c 2009-04-02 Sterling Augustine <sterling@jaw.hq.tensilica.com> 2009-04-03 16:06:40 +00:00
elf32.c
elf64-alpha.c
elf64-gen.c
elf64-hppa.c include/ 2009-03-18 11:27:18 +00:00
elf64-hppa.h
elf64-mips.c
elf64-mmix.c
elf64-ppc.c * elf64-ppc.c (synthetic_opd): Delete. 2009-03-23 13:35:46 +00:00
elf64-ppc.h
elf64-s390.c 2009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com> 2009-03-20 12:57:15 +00:00
elf64-sh64.c
elf64-sparc.c
elf64-x86-64.c 2009-03-12 H.J. Lu <hongjiu.lu@intel.com> 2009-03-12 17:13:41 +00:00
elf64.c
elf-attrs.c * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not 2009-03-28 23:19:00 +00:00
elf-bfd.h PR 9934 2009-03-13 11:34:43 +00:00
elf-eh-frame.c
elf-hppa.h * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to 2009-03-01 17:08:54 +00:00
elf-m10200.c
elf-m10300.c
elf-strtab.c
elf-vxworks.c
elf-vxworks.h
elf.c PR 6494 2009-03-26 12:23:52 +00:00
elfcode.h
elfcore.h
elflink.c bfd/ 2009-04-08 16:04:50 +00:00
elfn32-mips.c
elfxx-ia64.c
elfxx-mips.c
elfxx-mips.h
elfxx-sparc.c
elfxx-sparc.h
elfxx-target.h bfd/ 2009-04-16 23:07:00 +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
hpux-core.c
i386aout.c
i386bsd.c
i386dynix.c
i386freebsd.c
i386linux.c
i386lynx.c
i386mach3.c
i386msdos.c bfd/ 2009-04-16 23:07:00 +00:00
i386netbsd.c
i386os9k.c bfd/ 2009-04-16 23:07:00 +00:00
ieee.c bfd/ 2009-04-16 23:07:00 +00:00
ihex.c bfd/ 2009-04-16 23:07:00 +00:00
init.c
irix-core.c
libaout.h
libbfd-in.h bfd/ 2009-04-16 23:07:00 +00:00
libbfd.c
libbfd.h bfd/ 2009-04-16 23:07:00 +00:00
libcoff-in.h bfd/ 2009-04-16 23:07:00 +00:00
libcoff.h bfd/ 2009-04-17 13:46:18 +00:00
libecoff.h
libhppa.h
libieee.h
libnlm.h
liboasys.h
libpei.h bfd/ 2009-04-17 13:46:18 +00:00
libxcoff.h
linker.c bfd/ 2009-04-16 23:07:00 +00:00
lynx-core.c
m68k4knetbsd.c
m68klinux.c
m68knetbsd.c
m88kmach3.c
m88kopenbsd.c
mach-o-target.c
mach-o.c bfd/ 2009-04-16 23:07:00 +00:00
mach-o.h
MAINTAINERS
Makefile.am bfd/ 2009-04-17 13:46:18 +00:00
Makefile.in bfd/ 2009-04-17 13:46:18 +00:00
makefile.vms
mep-relocs.pl
merge.c
mipsbsd.c
mmo.c bfd/ 2009-04-16 23:07:00 +00:00
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 bfd/ 2009-04-16 23:07:00 +00:00
nlm.c
nlmcode.h
nlmswap.h
ns32k.h
ns32knetbsd.c
oasys.c bfd/ 2009-04-16 23:07:00 +00:00
opncls.c
osf-core.c
pc532-mach.c
pdp11.c
pe-arm-wince.c
pe-arm.c
pe-i386.c
pe-mcore.c
pe-mips.c
pe-ppc.c
pe-sh.c
pe-x86_64.c
pef-traceback.h
pef.c bfd/ 2009-04-16 23:07:00 +00:00
pef.h
pei-arm-wince.c
pei-arm.c
pei-i386.c
pei-ia64.c bfd/ 2009-04-17 13:46:18 +00:00
pei-mcore.c
pei-mips.c
pei-ppc.c
pei-sh.c
pei-x86_64.c
peicode.h bfd/ 2009-04-17 13:46:18 +00:00
peXXigen.c bfd/ 2009-04-17 13:46:18 +00:00
PORTING
ppcboot.c bfd/ 2009-04-16 23:07:00 +00:00
ptrace-core.c
README
reloc16.c
reloc.c include/elf/ 2009-03-04 05:50:50 +00:00
riscix.c
rs6000-core.c
sco5-core.c
section.c * section.c (bfd_get_section_contents): Detect and handle the case 2009-03-27 11:38:30 +00:00
simple.c * simple.c (bfd_simple_get_relocated_section_contents): Use larger 2009-03-16 00:52:37 +00:00
som.c bfd/ 2009-04-16 23:07:00 +00:00
som.h
sparclinux.c
sparclynx.c
sparcnetbsd.c
srec.c bfd/ 2009-04-16 23:07:00 +00:00
stab-syms.c
stabs.c
stamp-h.in
sunos.c
syms.c
sysdep.h
targets.c bfd/ 2009-04-17 13:46:18 +00:00
targmatch.sed
tekhex.c bfd/ 2009-04-16 23:07:00 +00:00
ticoff.h
TODO
trad-core.c
vax1knetbsd.c
vaxbsd.c
vaxnetbsd.c
versados.c bfd/ 2009-04-16 23:07:00 +00:00
version.h daily update 2009-04-17 00:00:05 +00:00
vms-gsd.c
vms-hdr.c bfd/ 2009-03-18 11:47:18 +00:00
vms-misc.c
vms-tir.c
vms.c bfd/ 2009-04-16 23:07:00 +00:00
vms.h
vmsutil.c
vmsutil.h
warning.m4
xcoff-target.h bfd/ 2009-04-16 23:07:00 +00:00
xcofflink.c bfd/ 2009-04-16 23:07:00 +00:00
xsym.c bfd/ 2009-04-16 23:07:00 +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.