Re: Problem in binutils-2.24.90.pot
On Fri, Dec 12, 2014 at 08:53:58AM +0100, Frédéric Marchal wrote: > The corresponding source code line is this one: > > 5063 error (_("Section %d has invalid sh_entsize of %" BFD_VMA_FMT "x\n"), \ > 5064 i, section->sh_entsize); \ > > Xgettext could not extract the end of the string. This has been fixed in binutils-2.25. -- Alan Modra Australia Development Lab, IBM ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/15228] copy relocations against protected symbols should be disallowed
https://sourceware.org/bugzilla/show_bug.cgi?id=15228 --- Comment #1 from cvs-commit at gcc dot gnu.org --- This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gdb and binutils". The branch, master has been updated via 6cabe1ea460c54c17ac877b2541eccf91d6b4b9c (commit) from 21dffcbda47b724858dd99ee2082043ef2da (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6cabe1ea460c54c17ac877b2541eccf91d6b4b9c commit 6cabe1ea460c54c17ac877b2541eccf91d6b4b9c Author: Alan Modra Date: Fri Dec 12 22:53:46 2014 +1030 Copy relocations against protected symbols Copy relocs are used in a scheme to avoid dynamic text relocations in non-PIC executables that refer to variables defined in shared libraries. The idea is to have the linker define any such variable in the executable, with a copy reloc copying the initial value, then have both the executable and shared library refer to the executable copy. If the shared library defines the variable as protected then we have two copies of the variable being used. PR 15228 * elflink.c (_bfd_elf_adjust_dynamic_copy): Add "info" param. Error on copy relocs against protected symbols. (elf_merge_st_other): Set h->protected_def. * elf-bfd.h (struct elf_link_hash_entry): Add "protected_def". (_bfd_elf_adjust_dynamic_copy): Update prototype. * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Update _bfd_elf_adjust_dynamic_copy call. * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise. * elf32-cr16.c (_bfd_cr16_elf_adjust_dynamic_symbol): Likewise. * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise. * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise. * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise. * elf32-lm32.c (lm32_elf_adjust_dynamic_symbol): Likewise. * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise. * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise. * elf32-metag.c (elf_metag_adjust_dynamic_symbol): Likewise. * elf32-or1k.c (or1k_elf_adjust_dynamic_symbol): Likewise. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise. * elf32-tic6x.c (elf32_tic6x_adjust_dynamic_symbol): Likewise. * elf32-tilepro.c (tilepro_elf_adjust_dynamic_symbol): Likewise. * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise. * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise. * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise. * elfnn-aarch64.c (elfNN_aarch64_adjust_dynamic_symbol): Likewise. * elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise. * elfxx-tilegx.c (tilegx_elf_adjust_dynamic_symbol): Likewise. --- Summary of changes: bfd/ChangeLog | 36 bfd/elf-bfd.h |4 +++- bfd/elf-m10300.c|2 +- bfd/elf32-arm.c |2 +- bfd/elf32-cr16.c|2 +- bfd/elf32-cris.c|2 +- bfd/elf32-hppa.c|2 +- bfd/elf32-i370.c|2 +- bfd/elf32-i386.c|2 +- bfd/elf32-lm32.c|2 +- bfd/elf32-m32r.c|2 +- bfd/elf32-m68k.c|2 +- bfd/elf32-metag.c |2 +- bfd/elf32-or1k.c|2 +- bfd/elf32-ppc.c |2 +- bfd/elf32-s390.c|2 +- bfd/elf32-sh.c |2 +- bfd/elf32-tic6x.c |2 +- bfd/elf32-tilepro.c |2 +- bfd/elf32-vax.c |2 +- bfd/elf64-ppc.c |2 +- bfd/elf64-s390.c|2 +- bfd/elf64-sh64.c|2 +- bfd/elf64-x86-64.c |2 +- bfd/elflink.c | 13 - bfd/elfnn-aarch64.c |2 +- bfd/elfxx-mips.c|2 +- bfd/elfxx-sparc.c |2 +- bfd/elfxx-tilegx.c |2 +- 29 files changed, 77 insertions(+), 28 deletions(-) -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/15228] copy relocations against protected symbols should be disallowed
https://sourceware.org/bugzilla/show_bug.cgi?id=15228 --- Comment #2 from cvs-commit at gcc dot gnu.org --- This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gdb and binutils". The branch, master has been updated via de287215cef5f4271367f75c557c1af788892e69 (commit) from e5a9158d093d53f2bb1057359ac381dcdf6d4305 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=de287215cef5f4271367f75c557c1af788892e69 commit de287215cef5f4271367f75c557c1af788892e69 Author: Alan Modra Date: Fri Dec 12 23:39:14 2014 +1030 Set bfd_error in _bfd_elf_adjust_dynamic_copy PR 15228 * elflink.c (_bfd_elf_adjust_dynamic_copy): Call bfd_set_error. --- Summary of changes: bfd/ChangeLog |5 + bfd/elflink.c |1 + 2 files changed, 6 insertions(+), 0 deletions(-) -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/17704] icf doesn't respect section alignment
https://sourceware.org/bugzilla/show_bug.cgi?id=17704 Sriraman Tallam changed: What|Removed |Added CC||tmsriram at google dot com Assignee|ccoutant at google dot com |tmsriram at google dot com -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
Re: binutils-2.24 build fails on HPUX PA-RISC
Compilation still fails in the same place. -Stuart >>> Alan Modra 12/11/2014 12:48 AM >>> On Tue, Dec 09, 2014 at 12:01:41PM +1030, Alan Modra wrote: > On Mon, Dec 08, 2014 at 01:30:34PM -0700, Stuart Kemp wrote: > > > > Building binutils-2.24 fails on HPUX PA-RISC 11.31 using HP's compiler > > Yes, you need a compiler that supports "long long". I don't know if > yours does. If it does, you might need to tweak binutils/elfcomm.h > HOST_WIDEST_INT define. Let's fix this properly. Also fix a place where %lld was wrongly used to print a dwarf_vma. * configure.ac: Check for long long and sizes of long long and long. * elfcomm.h (HOST_WIDEST_INT): Test HAVE_LONG_LONG in place of __STDC_VERSION__ and __GNUC__. * strings.c (print_strings): Likewise. * dwarf.c (DWARF_VMA_FMT, DWARF_VMA_FMT_LONG): Likewise. (read_debug_line_header): Use dwarf_vmatoa to print warning. * configure: Regenerate. * config.in: Regenerate. diff --git a/binutils/configure.ac b/binutils/configure.ac index 84c287c..b85a9d2 100644 --- a/binutils/configure.ac +++ b/binutils/configure.ac @@ -124,6 +124,9 @@ case "${host}" in esac AC_SUBST(DEMANGLER_NAME) +AC_CHECK_SIZEOF([long]) +AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)]) + AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h) AC_HEADER_SYS_WAIT ACX_HEADER_STRING diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 4e37038..02b7668 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -162,17 +162,17 @@ get_encoded_value (unsigned char **pdata, return val; } -#if __STDC_VERSION__ >= 199901L || (defined(__GNUC__) && __GNUC__ >= 2) -#ifndef __MINGW32__ -#define DWARF_VMA_FMT "ll" -#define DWARF_VMA_FMT_LONG "%16.16llx" +#if defined HAVE_LONG_LONG && SIZEOF_LONG_LONG > SIZEOF_LONG +# ifndef __MINGW32__ +# define DWARF_VMA_FMT"ll" +# define DWARF_VMA_FMT_LONG "%16.16llx" +# else +# define DWARF_VMA_FMT"I64" +# define DWARF_VMA_FMT_LONG "%016I64x" +# endif #else -#define DWARF_VMA_FMT "I64" -#define DWARF_VMA_FMT_LONG "%016I64x" -#endif -#else -#define DWARF_VMA_FMT "l" -#define DWARF_VMA_FMT_LONG "%16.16lx" +# define DWARF_VMA_FMT "l" +# define DWARF_VMA_FMT_LONG"%16.16lx" #endif /* Convert a dwarf vma value into a string. Returns a pointer to a static @@ -2757,7 +2757,8 @@ read_debug_line_header (struct dwarf_section * section, /* PR 17512: file:002-117414-0.004. */ if (* end_of_sequence > end) { - warn (_("Line length %lld extends beyond end of section\n"), linfo->li_length); + warn (_("Line length %s extends beyond end of section\n"), + dwarf_vmatoa ("u", linfo->li_length)); * end_of_sequence = end; return NULL; } diff --git a/binutils/elfcomm.h b/binutils/elfcomm.h index 4fd2d6c..f7f7544 100644 --- a/binutils/elfcomm.h +++ b/binutils/elfcomm.h @@ -29,7 +29,7 @@ void error (const char *, ...) ATTRIBUTE_PRINTF_1; void warn (const char *, ...) ATTRIBUTE_PRINTF_1; -#if __STDC_VERSION__ >= 199901L || (defined(__GNUC__) && __GNUC__ >= 2) +#if defined HAVE_LONG_LONG && SIZEOF_LONG_LONG > SIZEOF_LONG /* We can't use any bfd types here since readelf may define BFD64 and objdump may not. */ #define HOST_WIDEST_INTlong long diff --git a/binutils/strings.c b/binutils/strings.c index 2cf046f..7346f55 100644 --- a/binutils/strings.c +++ b/binutils/strings.c @@ -578,14 +578,14 @@ print_strings (const char *filename, FILE *stream, file_ptr address, switch (address_radix) { case 8: -#if __STDC_VERSION__ >= 199901L || (defined(__GNUC__) && __GNUC__ >= 2) +#ifdef HAVE_LONG_LONG if (sizeof (start) > sizeof (long)) { -#ifndef __MSVCRT__ +# ifndef __MSVCRT__ printf ("%7llo ", (unsigned long long) start); -#else +# else printf ("%7I64o ", (unsigned long long) start); -#endif +# endif } else #elif !BFD_HOST_64BIT_LONG @@ -597,14 +597,14 @@ print_strings (const char *filename, FILE *stream, file_ptr address, break; case 10: -#if __STDC_VERSION__ >= 199901L || (defined(__GNUC__) && __GNUC__ >= 2) +#ifdef HAVE_LONG_LONG if (sizeof (start) > sizeof (long)) { -#ifndef __MSVCRT__ +# ifndef __MSVCRT__ printf ("%7lld ", (unsigned long long) start); -#else +# else printf ("%7I64d ", (unsigned long long) start); -#endif +# endif } else #elif !BFD_HOST_64BIT_LONG @@ -616,14 +616,14 @@ print_strings (const char *filename, FILE *stream, file_ptr address, break; case 16: -#if __STDC_VERSION__ >= 199901L || (defined(__GNUC__) && __GNUC__ >= 2) +#ifdef HAVE_LONG_LONG if (sizeof (start) > sizeof (long)) { -#ifndef __MSVCRT__ +# ifndef __MSVCRT__
Re: binutils-2.24 build fails on HPUX PA-RISC
On Fri, Dec 12, 2014 at 01:46:57PM -0700, Stuart Kemp wrote: > Compilation still fails in the same place. Did you regenerate configure and config.in? -- Alan Modra Australia Development Lab, IBM ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/15228] copy relocations against protected symbols should be disallowed
https://sourceware.org/bugzilla/show_bug.cgi?id=15228 Alan Modra changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED Assignee|unassigned at sourceware dot org |amodra at gmail dot com Target Milestone|--- |2.26 --- Comment #3 from Alan Modra --- Fixed -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils