Binutils with MCST patches
Go to file
H.J. Lu 37a9e49a28 Properly handle common symbol and weak function
bfd/

	PR ld/14591
	* elf-bfd.h (_bfd_elf_merge_symbol): Add an argument to return
	if the old symbol is weak.

	* elf32-sh-symbian.c (sh_symbian_relocate_section): Update
	_bfd_elf_merge_symbol call.

	* elflink.c (_bfd_elf_merge_symbol): Add an argument to return
	if the old symbol is weak.
	(_bfd_elf_add_default_symbol): Update _bfd_elf_merge_symbol
	call.
	(elf_link_add_object_symbols): Don't update symbol type from a
	weak definition.  Update symbol type from a common symbol when
	overriding a weak symbol.

ld/testsuite/

	PR ld/14591
	* ld-elf/comm-data.exp (run_ld_link_tests): Add comm-data3a and
	comm-data3b tests.

	* ld-ifunc/ifunc.exp (run_ld_link_exec_tests): New.

	* ld-elf/comm-data3.sd: New file.
	* ld-elf/comm-data3a.s: Likewise.
	* ld-elf/comm-data3b.s: Likewise.
	* ld-ifunc/ifunc-17a-i386.d: Likewise.
	* ld-ifunc/ifunc-17a-x86-64.d: Likewise.
	* ld-ifunc/ifunc-17a.s: Likewise.
	* ld-ifunc/ifunc-17b-i386.d: Likewise.
	* ld-ifunc/ifunc-17b-x86-64.d: Likewise.
	* ld-ifunc/ifunc-17b.s: Likewise.
	* ld-ifunc/ifunc-common-1.out: Likewise.
	* ld-ifunc/ifunc-common-1a.c: Likewise.
	* ld-ifunc/ifunc-common-1b.c: Likewise.
2012-09-19 00:53:30 +00:00
bfd Properly handle common symbol and weak function 2012-09-19 00:53:30 +00:00
binutils * configure: Regenerate. 2012-09-15 00:03:06 +00:00
config Sync toplevel files with GCC tree 2012-08-26 14:34:40 +00:00
cpu cpu/ 2012-02-27 06:57:57 +00:00
elfcpp Add support for tilegx in gold. 2012-09-15 17:11:28 +00:00
etc
gas 2012-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com> 2012-09-18 14:52:43 +00:00
gdb *** empty log message *** 2012-09-19 00:00:32 +00:00
gold Add support for tilegx in gold. 2012-09-15 17:11:28 +00:00
gprof * configure: Regenerate. 2012-09-15 00:03:06 +00:00
include 2012-09-11 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com> 2012-09-12 16:25:51 +00:00
intl
ld Properly handle common symbol and weak function 2012-09-19 00:53:30 +00:00
libdecnumber config/: 2011-12-20 17:01:30 +00:00
libiberty Replace malloc with xmalloc 2012-08-29 01:02:41 +00:00
opcodes 2012-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com> 2012-09-18 14:52:43 +00:00
readline * signals.c (_rl_block_sigwinch, _rl_release_sigwinch): Add 2012-02-24 17:14:43 +00:00
sim * v850.igen (W,WWWW): Correct computation of register number. 2012-09-13 08:09:26 +00:00
texinfo
.cvsignore
.gitignore
ChangeLog Moved the Changelog entries for breakpoint.c and remote.c out of Changelog 2012-09-17 20:39:13 +00:00
compile
config-ml.in
config.guess
config.rpath
config.sub Update config.sub to 2012-04-18 version. 2012-04-25 15:53:25 +00:00
configure Add support for tilegx in gold. 2012-09-15 17:11:28 +00:00
configure.ac Add support for tilegx in gold. 2012-09-15 17:11:28 +00:00
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.LIBGLOSS 2012-03-09 Jeff Johnston <jjohnstn@redhat.com> 2012-03-09 20:31:34 +00:00
COPYING.NEWLIB 2012-03-09 Jeff Johnston <jjohnstn@redhat.com> 2012-03-09 20:31:34 +00:00
depcomp
djunpack.bat
install-sh
libtool.m4 PR target/38607 2012-09-14 23:55:22 +00:00
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS MAINTAINERS: clarify policy with config/ (and other top level files) 2012-05-12 03:10:17 +00:00
Makefile.def Don't set HOST_LIB_PATH_bfd/HOST_LIB_PATH_opcodes 2012-08-26 14:41:28 +00:00
Makefile.in Don't set HOST_LIB_PATH_bfd/HOST_LIB_PATH_opcodes 2012-08-26 14:41:28 +00:00
Makefile.tpl Sync toplevel files with GCC tree 2012-08-26 14:34:40 +00:00
makefile.vms
missing
mkdep
mkinstalldirs
move-if-change
README
README-maintainer-mode
setup.com
src-release Include the <root>/cpu/ dir in GDB releases 2011-08-19 15:48:36 +00:00
symlink-tree
ylwrap

		   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.