Binutils with MCST patches
Go to file
Jakub Jelinek 40937810e1 2005-04-14 David S. Miller <davem@davemloft.net>
bfd/
	Add TLS support for 64-bit Sparc ELF.
	*  elf64-sparc.c (sparc64_elf_dyn_relocs,
	sparc64_elf_link_hash_entry, sparc64_elf_obj_tdata): New structs.
	(GOT_UNKNOWN, GOT_NORMAL, GOT_TLD_GD, GOT_TLD_IE,
	sparc64_elf_hash_entry, sparc64_elf_tdata,
	sparc64_elf_local_got_tls_type): New defines.
	(sparc64_elf_mkobject): New function.
	(sparc64_elf_link_hash_table): Add members for dynamic linker
	sections PLT, RELPLT, DYNBSS, and RELBSS.  Add tls_ldm_got
	uion to track TLS GOT references.  Add sym_sec to cache
	mappings from local sym to section.
	(link_hash_newfunc): New function.
	(sparc64_elf_bfd_link_hash_table_create): Rename to
	sparc64_elf_link_hash_table_create for consistency.
	Pass link_hash_newfunc to _bfd_elf_link_hash_table_init.
	(sparc64_elf_create_dynamic_sections): Initialize new section
	members of sparc64_elf_link_hash_table.  Only init srelbss
	if not-shared.
	(sparc64_elf_copy_indirect_symbol, sparc64_elf_tls_transition):
	New functions.
	(SPARC_NOP): Define.
	(sparc64_elf_build_plt, sparc64_elf_plt_entry_offset,
	sparc64_elf_plt_ptr_offset): Delete.
	(sparc64_plt_entry_build): New function to build PLT entries
	gradually instread of all at once at the end of linking.
	(sparc64_elf_check_relocs): Delete dynobj, sgot, and srelgot
	local vars.  Get them from sparc64_elf_hash_table instead.
	Check early on if r_symndx is in bounds.  Handle TLS transitions.
	Account for TLS GOT references and DF_STATIC_TLS, as needed.
	For TLS relocs, record the tls_type in either
	sparc64_elf_local_got_tls_type or sparc64_elf_hash_entry as
	appropriate.  For R_SPARC_TLS_{GD,LDM}_CALL, emit a reference
	to the __tls_get_addr symbol.  For PLT relocs, track references
	via h->plt.refcount.  When R_SPARC_{PC10,PC22,PC_HH22,PC_HM10,
	PC_LM22} and h not-NULL, set h->non_got_ref.  For global data
	symbol references, count the number of relocations needed for
	that symbol.  For default switch case, don't error, this lets
	the TLS relocs not explicitly handled by this function get
	accepted.
	(sparc64_elf_gc_mark_hook, sparc64_gc_sweep_hook): New functions.
	(sparc64_elf_adjust_dynamic_symbol): Remove dynobj local var, get
	it from sparc64_elf_hash_table.  Store the real PLT offset
	in h->plt.offset, and build PLT entries one at a time.  Also
	get .dynbss section pointer from htab.
	(allocate_dynrelocs, readonly_dynrelocs,
	sparc64_omit_section_dynsym): New functions.
	(sparc64_elf_omit_section_dynsym): Use these new functions as
	helpers.
	(dtpoff_base, tpoff): New functions.
	(sparc64_elf_relocate_section): Kill dynobj, sgot, and splt
	locals, get them from sparc64_elf_hash_table.  Handle TLS
	relocations and refcounting in main relocation loop.
	(sparc64_elf_finish_dynamic_symbol): Use
	sparc64_elf_link_hash_table.  Build PLT entries as we see
	them.  Handle TLS GOT relocations.
	(sparc64_elf_finish_dynamic_sections): Get sgot and dynobj
	from sparc64_elf_hash_table.  Initialize only PLT header
	not all entries since we not build PLT entries one by one.
	(elf_backend_copy_indirect_symbol, bfd_elf64_mkobject,
	elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook,
	elf_backend_can_gc_sections, elf_backend_can_refcount): Define.
ld/testsuite/
	* ld-selective/sel-dump.exp: Do not exclude sparc64-*.
	* ld-selective/selective.exp: Likewise.
	* ld-sparc/sparc.exp: Add {32,64}-bit prefix to test
	names so we know which one is failing.  Run sparc64 TLS
	tests on multi-arch sparc platforms.
	* ld-sparc/tls64.sd, ld-sparc/tlssunbin64.dd,
	ld-sparc/tlssunbin64.rd, ld/testsuite/ld-sparc/tlssunbin64.sd,
	ld-sparc/tlssunbin64.td, ld-sparc/tlssunnopic64.dd,
	ld-sparc/tlssunnopic64.rd, ld-sparc/tlssunnopic64.sd,
	ld-sparc/tlssunpic64.dd, ld-sparc/tlssunpic64.rd,
	ld-sparc/tlssunpic64.sd, ld-sparc/tlssunpic64.td): Update now
	that sparc64 ELF does support TLS.
2005-04-13 22:29:36 +00:00
bfd 2005-04-14 David S. Miller <davem@davemloft.net> 2005-04-13 22:29:36 +00:00
binutils bfd/ 2005-04-12 02:50:28 +00:00
config * config/mh-mingw32: Delete. 2005-03-30 18:36:33 +00:00
contrib New directory. Created to contain a copy of the texi2pod.pl script so that 2002-07-03 11:20:13 +00:00
cpu * frv.opc (parse_A): Warning fix. 2005-02-24 13:36:46 +00:00
etc Replace i[3456]86 with i[3-7]86 2003-05-16 16:30:27 +00:00
gas gas/: 2005-04-13 18:17:10 +00:00
gdb *** empty log message *** 2005-04-13 00:00:35 +00:00
gprof po/rw.po: New translation: Kinyarwanda 2005-04-06 15:42:14 +00:00
include Move entries in ChangeLog-9103 to appropriate */ChangeLog-9103. 2005-04-13 17:33:48 +00:00
intl Change LOCALEDIR to $(datadir)/share. 2004-11-30 17:20:48 +00:00
ld 2005-04-14 David S. Miller <davem@davemloft.net> 2005-04-13 22:29:36 +00:00
libiberty merge from gcc 2005-04-13 01:06:55 +00:00
mmalloc gdb/ 2003-08-08 17:30:37 +00:00
opcodes Initialise value to zero to avoid a compile time warning. 2005-04-04 10:09:52 +00:00
readline Index: ChangeLog 2004-02-19 14:55:26 +00:00
sim 2005-03-30 Paul Brook <paul@codesourcery.com> 2005-03-30 16:21:33 +00:00
texinfo 2004-02-23 Andrew Cagney <cagney@redhat.com> 2004-02-23 19:37:48 +00:00
.cvsignore Add MMIX support 2001-10-30 15:20:14 +00:00
COPYING 19990502 sourceware import 1999-05-03 07:29:11 +00:00
COPYING.LIB 19990502 sourceware import 1999-05-03 07:29:11 +00:00
COPYING.LIBGLOSS 2002-12-20 Jeff Johnston <jjohnstn@redhat.com> 2002-12-20 21:36:01 +00:00
COPYING.NEWLIB 2004-02-02 Jeff Johnston <jjohnstn@redhat.com> 2004-02-03 00:05:49 +00:00
ChangeLog 2005-04-06 Paolo Bonzini <bonzini@gnu.org> 2005-04-06 06:23:22 +00:00
MAINTAINERS 2005-02-08 Andrew Cagney <cagney@gnu.org> 2005-02-08 22:37:35 +00:00
Makefile.def 2005-02-28 Paolo Bonzini <bonzini@gnu.org> 2005-03-30 08:39:18 +00:00
Makefile.in 2005-04-06 Paolo Bonzini <bonzini@gnu.org> 2005-04-06 06:23:22 +00:00
Makefile.tpl 2005-04-06 Paolo Bonzini <bonzini@gnu.org> 2005-04-06 06:23:22 +00:00
README 19990502 sourceware import 1999-05-03 07:29:11 +00:00
README-maintainer-mode Update URL 2003-05-30 07:30:26 +00:00
compile 2004-11-15 Kelley Cook <kcook@gcc.gnu.org> 2004-11-16 01:18:39 +00:00
config-ml.in * config-ml.in: Pass FCFLAGS for multilibs, handle GFORTRAN 2004-11-08 15:28:01 +00:00
config.guess 2004-11-15 Kelley Cook <kcook@gcc.gnu.org> 2004-11-16 01:18:39 +00:00
config.sub 2005-01-17 Kelley Cook <kcook@gcc.gnu.org> 2005-01-19 00:34:56 +00:00
configure * config/mh-mingw32: Delete. 2005-03-30 18:36:33 +00:00
configure.in * config/mh-mingw32: Delete. 2005-03-30 18:36:33 +00:00
depcomp Merge from gcc: 2004-09-23 19:54:49 +00:00
djunpack.bat * djunpack.bat: Change the Sed script to replace @V@ in fnchange.lst 2000-05-08 15:13:30 +00:00
gettext.m4 2005-01-31 Andrew Cagney <cagney@gnu.org> 2005-01-31 20:32:45 +00:00
install-sh 2005-01-17 Kelley Cook <kcook@gcc.gnu.org> 2005-01-19 00:34:56 +00:00
libtool.m4 knetbsd/kfreebsd patches from Robert Millan. 2004-07-21 19:21:41 +00:00
ltcf-c.sh 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com> 2004-10-05 13:34:42 +00:00
ltcf-cxx.sh 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com> 2004-10-05 13:34:42 +00:00
ltcf-gcj.sh knetbsd/kfreebsd patches from Robert Millan. 2004-07-21 19:21:41 +00:00
ltconfig 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com> 2004-10-05 13:34:42 +00:00
ltmain.sh PR libgcj/20160 2005-03-01 22:33:54 +00:00
makefile.vms 19990502 sourceware import 1999-05-03 07:29:11 +00:00
missing 2004-09-07 Paolo Bonzini <bonzini@gnu.org> 2004-09-07 08:34:06 +00:00
mkdep * mkdep: New file. 1999-08-08 17:46:02 +00:00
mkinstalldirs PR bootstrap/11932 2004-02-20 02:05:00 +00:00
move-if-change 19990502 sourceware import 1999-05-03 07:29:11 +00:00
setup.com 19990502 sourceware import 1999-05-03 07:29:11 +00:00
src-release Remove config.if. 2004-12-03 10:30:13 +00:00
symlink-tree * config-ml.in, symlink-tree: Add license. 2003-08-14 20:44:13 +00:00
ylwrap * ylwrap: Revert to previous version. 2004-09-24 13:21:46 +00:00

README

		   README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers, 
debuggers, etc., plus their support routines, definitions, and documentation.

If you are receiving this as part of a GDB release, see the file gdb/README.
If with a binutils release, see binutils/README;  if with a libg++ release,
see libg++/README, etc.  That'll give you info about this
package -- supported targets, how to use it, how to report bugs, etc.

It is now possible to automatically configure and build a variety of
tools with one command.  To build all of the tools contained herein,
run the ``configure'' script here, e.g.:

	./configure 
	make

To install them (by default in /usr/local/bin, /usr/local/lib, etc),
then do:
	make install

(If the configure script can't determine your type of computer, give it
the name as an argument, for instance ``./configure sun4''.  You can
use the script ``config.sub'' to test whether a name is recognized; if
it is, config.sub translates it to a triplet specifying CPU, vendor,
and OS.)

If you have more than one compiler on your system, it is often best to
explicitly set CC in the environment before running configure, and to
also set CC when running make.  For example (assuming sh/bash/ksh):

	CC=gcc ./configure
	make

A similar example using csh:

	setenv CC gcc
	./configure
	make

Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc.  See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.