Nathan Sidwell 04c3a75556 bfd/
* bfd-in.h (bfd_elf_stack_segment_size): Declare.
	* bfd-in2.h: Rebuilt.
	* elfxx-target.h (elf_backend_stack_align): New.
	(elfNN_bed): Add it.
	* elf-bfd.h (struct elf_backend_data): Add stack_align field.
	* elf.c (bfd_elf_map_sections_to_segments): Pay attention to
	stack_align and stacksize for PT_GNU_STACK segment.
	(assign_file_positions_for_non_load_sections): Set p_memsz for
	PT_GNU_STACK segment.
	(copy_elf_program_header): Copy PT_GNU_STACK size.
	* elflink.c (bfd_elf_stack_segment_size): New function, taken from
	uclinux backends.
	(bfd_elf_size_dynamic_sections): Determine
	PT_GNU_STACK requirements after calling backend.  Pay attention to
	stacksize.
	* elf32-bfin.c (elf32_bfinfdpic_always_size_sections): Call
	bfd_elf_stack_segment_size.
	(elf32_bfinfdpic_modify_program_headers): Delete.
	(elf32_bfingfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
	here.
	(elf_backend_stack_align): Override.
	(elf_backend_modify_program_headers): Don't override.
	* elf32-frv.c (frvfdpic_always_size_sections): Call
	bfd_elf_stack_segment_size.
	(elf32_frvfdpic_modify_program_headers): Delete.
	(elf32_frvfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
	here.
	(elf_backend_stack_align): Override.
	(elf_backend_modify_program_headers): Don't override.
	* elf32-lm32.c (lm32_elf_always_size_sections): Leave
	PT_GNU_STACK creation to underlying elf support.  Check
	__stacksize here for backwards compatibility, and set it if
	needed.
	(lm32_elf_modify_segment_map): Delete.
	(lm32_elf_modify_program_headers): Delete.
	(elf_backend_stack_align): Override.
	(elf_backend_modify_segment_map): Don't override.
	(elf_backend_modify_program_headers): Don't override.
	* elf32-sh.c (sh_elf_always_size_sections): Call
	bfd_elf_stack_segment_size.
	(sh_elf_modify_program_headers): Delete.
	(sh_elf_copy_private_data): Don't copy PT_GNU_STACK
	here.
	(elf_backend_stack_align): Override.
	(elf_backend_modify_program_headers): Don't override.
	* elf32-tic6x.c (elf32_tic6x_always_size_sections): Call
	bfd_elf_stack_segment_size.
	(elf32_tic6x_modify_program_headers): Delete.
	(elf32_tic6x_copy_private_data): Delete.
	(elf_backend_stack_align): Override.
	(bfd_elf32_bfd_copy_private_bfd_data): Don't override.
	(elf_backend_modify_program_headers): Don't override.

	include/
	* bfdlink.h (struct bfd_link_info): Add stacksize option.

	ld/
	* ld.texinfo (stack-size): New option.
	* emultempl/elf32.em: Add stack-size option.

	ld/testsuite/
	* ld-elf/binutils.exp: Add -z stack-size=0.
	* ld-elf/elf.exp: Add stack-exec and stack-size tests.
	* ld-elf/orphan-region.d: Add stack-size option. Remove xfail.
	* ld-elf/stack-exec.rd: New.
	* ld-elf/stack-size.rd: New.
	* ld-elf/stack.s: New.
	* ld-scripts/empty-aligned.d: Add stack-size option.
	* ld-sh/fdpic-stack-set.d: New.
	* ld-tic6x/shlib-1.rd: Remove __stacksize symbol.
	* ld-tic6x/shlib-1b.rd: Likewise.
	* ld-tic6x/shlib-1r.rd: Likewise.
	* ld-tic6x/shlib-1rb.rd: Likewise.
	* ld-tic6x/shlib-app-1.rd: Likewise.
	* ld-tic6x/shlib-app-1b.rd: Likewise.
	* ld-tic6x/shlib-app-1r.rd: Likewise.
	* ld-tic6x/shlib-app-1rb.rd: Likewise.
	* ld-tic6x/shlib-noindex.rd: Likewise.
	* ld-tic6x/static-app-1.rd: Likewise.
	* ld-tic6x/static-app-1b.rd: Likewise.
	* ld-tic6x/static-app-1r.rd: Likewise.
	* ld-tic6x/static-app-1rb.rd: Likewise.
2012-10-23 09:33:56 +00:00
..
2011-06-16 22:08:12 +00:00
2012-05-17 22:23:42 +00:00
2012-05-16 14:26:46 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2011-07-11 15:03:09 +00:00
2012-05-16 14:26:46 +00:00
2012-05-16 14:26:46 +00:00
2012-05-16 14:26:46 +00:00
2011-07-11 15:03:09 +00:00
2012-05-01 16:07:36 +00:00
2012-10-23 09:33:56 +00:00
2012-10-23 09:33:56 +00:00
2011-07-11 15:03:09 +00:00
2011-07-11 15:03:09 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2012-10-23 09:33:56 +00:00
2012-08-17 02:43:21 +00:00
2012-08-17 02:43:21 +00:00
2012-08-17 02:43:21 +00:00
2012-08-17 02:43:21 +00:00
2012-01-05 10:09:39 +00:00
2009-09-02 07:25:43 +00:00
2012-10-18 17:42:29 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2012-10-18 17:42:29 +00:00
2012-10-18 17:42:29 +00:00
2012-10-18 17:42:29 +00:00
2012-10-18 17:42:29 +00:00
2012-10-21 09:06:07 +00:00
2011-03-31 14:15:31 +00:00
2010-12-31 11:01:00 +00:00
2011-02-28 18:30:16 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-05-16 14:26:46 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-05-16 14:26:46 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-05-16 14:26:46 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-05-16 14:26:46 +00:00
2012-05-16 14:26:46 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2012-01-31 17:54:39 +00:00
2009-09-02 07:25:43 +00:00
2010-01-11 09:53:27 +00:00
2012-10-23 09:33:56 +00:00
2012-10-23 09:33:56 +00:00
2009-09-02 07:25:43 +00:00
2012-10-23 09:33:56 +00:00
2009-09-02 07:25:43 +00:00
2012-09-13 22:24:51 +00:00
2012-05-19 06:58:48 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2012-10-23 09:33:56 +00:00
2009-08-05 20:40:34 +00:00
2012-10-23 09:33:56 +00:00
2011-03-31 08:58:28 +00:00
2012-06-28 21:36:35 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2012-01-11 09:28:45 +00:00
2009-09-02 07:25:43 +00:00
2012-10-23 09:33:56 +00:00
2012-05-25 01:12:20 +00:00
2012-04-09 16:27:18 +00:00
2012-04-03 16:01:38 +00:00
2009-09-02 07:25:43 +00:00
2012-10-23 09:33:56 +00:00
2012-07-04 00:29:52 +00:00
2012-10-23 09:33:56 +00:00
2011-07-24 14:20:15 +00:00
2012-10-23 09:33:56 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2009-10-02 14:40:41 +00:00
2009-10-02 14:40:41 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2011-07-11 15:03:09 +00:00
2011-07-11 15:03:09 +00:00
2009-09-02 07:25:43 +00:00
2012-09-13 11:09:02 +00:00
2012-10-18 17:42:29 +00:00
2012-10-18 17:42:29 +00:00
2010-03-24 15:41:59 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
bfd
2011-05-18 07:58:36 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2009-10-02 14:40:41 +00:00
2009-09-02 07:25:43 +00:00
2012-02-17 11:23:44 +00:00
2011-12-19 15:42:37 +00:00
2011-07-11 15:03:09 +00:00
2011-06-02 13:43:24 +00:00
2009-10-02 14:40:41 +00:00
2012-05-16 14:26:46 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2011-07-11 15:03:09 +00:00
2009-09-02 07:25:43 +00:00
2011-06-02 13:43:24 +00:00
2012-05-16 14:26:46 +00:00
2012-02-11 15:10:12 +00:00
2012-05-01 16:07:36 +00:00
2012-10-18 17:42:29 +00:00
2012-10-18 17:42:29 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2012-10-18 17:42:29 +00:00
2012-05-16 14:26:46 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2009-09-02 07:25:43 +00:00
2012-10-18 17:42:29 +00:00
2012-05-17 15:13:28 +00:00
2012-07-18 17:08:18 +00:00
2011-04-20 00:11:33 +00:00
2012-05-17 15:13:28 +00:00
2009-09-02 07:25:43 +00:00
2011-07-11 15:03:09 +00:00
2012-05-16 14:26:46 +00:00
2012-05-16 14:26:46 +00:00
2012-05-17 15:13:28 +00:00
2012-09-13 22:24:51 +00:00
2011-07-11 15:03:09 +00:00
2009-09-02 07:25:43 +00:00
2009-10-02 14:40:41 +00:00
2009-09-02 07:25:43 +00:00
2012-10-22 23:00:04 +00:00
2012-08-17 02:43:21 +00:00
2012-05-17 15:13:28 +00:00
2011-02-28 18:30:16 +00:00

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.