Mark Mitchell [Thu, 13 Oct 2005 22:14:23 +0000 (22:14 +0000)]
Issue #439
Backport:
2005-10-13 Mark Mitchell <mark@codesourcery.com>
* ld.texino: Describe double-quoted string syntax for version
nodes.
* ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
* ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
Adjust calls to lang_new_vers_pattern to pass literal_p argument.
* ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
version nodes without a pattern.
(lang_new_vers_pattern): Add literal_p parameter.
(lang_do_version_exports_section): Pass it.
* include/libiberty.h (expandargv): New function.
* libiberty/argv.c (safe-ctype.h): Include it.
(ISBLANK): Remove.
(stdio.h): Include.
(expandargv): New function.
* libiberty/Makefile.in: Regenerated.
gas/
Backport from mainline:
2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
* config/tc-mips.c (load_register): Add leading "0x" to the
output of sprintf_vma().
(macro): Likewise.
gas/testsuite/
Backport from mainline:
2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
* gas/mips/ldstla-32-1.l: Update to handle leading zeroes.
* gas/mips/ldstla-32-mips3-1.l: Likewise.
Alan Modra [Fri, 3 Jun 2005 04:00:18 +0000 (04:00 +0000)]
PR 568
* elf32-i386.c (elf_i386_relocate_section): Handle zero symndx
for all reloc types.
Apply from mainline:
2005-05-12 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_relocate_section): Allow R_386_GOTOFF
against protected function when building executable.
Backport from mainline:
2005-05-29 Jakub Jelinek <jakub@redhat.com>
* elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and
first shdr has sh_size == 0. Fail if e_shnum is large to cause
arithmetic overflow when allocating the i_shdr array.
Sanity check sh_link and sh_info fields. Fix e_shstrndx sanity check.
2005-05-18 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (group_signature): Undo the last change. Check if the
symbol table section is correct.
2005-05-17 Nick Clifton <nickc@redhat.com>
* elf.c (group_signature): Check for a group section which is
actually a (corrupt) symbol table section in disguise and prevent
an infinite loop from occurring.
* elfxx-mips.c (_bfd_mips_elf_section_processing): Warn and
stop processing of options if one of invalid size is
encountered.
(_bfd_mips_elf_section_from_shdr): Likewise.
(_bfd_mips_elf_fake_sections): Reset the type of empty special
sections.
* elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr to
undefweak to use zero register. Call elf64_alpha_relax_got_load
if not all uses removed.
(elf64_alpha_relax_got_load): Relax undefweak to lda zero.
(elf64_alpha_relax_section): Handle undefweak symbols.
(elf64_alpha_calc_dynrel_sizes): Don't add relocs for undefweak.
(elf64_alpha_size_rela_got_1): Likewise.
(elf64_alpha_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relax_section): Only operate
on SEC_CODE sections.
nobody [Thu, 19 May 2005 06:32:02 +0000 (06:32 +0000)]
This commit was manufactured by cvs2svn to create branch 'binutils-
2_16-branch'.
Cherrypick from master 2005-05-19 06:32:01 UTC Jan Beulich <jbeulich@novell.com> 'gas/':
gas/testsuite/gas/ia64/reloc-uw-ilp32.d
gas/testsuite/gas/ia64/reloc-uw.d
gas/testsuite/gas/ia64/reloc-uw.s
Backport from mainline:
2005-05-05 Nick Clifton <nickc@redhat.com>
* config/tc-arm.c (arm_opts): Make -mlittle-endian switch set
the target_big_endian variable to false.
Alan Modra [Tue, 10 May 2005 00:42:00 +0000 (00:42 +0000)]
Apply from mainline.
2005-05-09 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_dotsym.
(ppc64_elf_add_symbol_hook): Set has_dotsym.
(ppc64_elf_check_directives): Only process syms when has_dotsym.
(func_desc_adjust): Hide fake function descriptors when function
code entry is defined.
(adjust_opd_syms): Adjust for deleted_section becoming union field.
2005-04-05 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (dec_dynrel_count): New function split out from
ppc64_elf_edit_toc, with additional code from ppc64_elf_edit_opd.
(ppc64_elf_edit_toc, ppc64_elf_edit_opd): Use it.
(ppc64_elf_tls_optimize): Likewise.
2005-04-01 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocs
that we no longer need.