[Bug ld/27171] R_AMD64_DIR64/R_AMD64_DIR32 static address relocation

2021-01-11 Thread minnowware at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27171

--- Comment #4 from Kilian Kegel  ---
Created attachment 13115
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13115=edit
screen shot

Hi H.J.

please find the appended screen shot. 
This patch works - perfect.

Thanks a lot,
Kilian

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/26766] Support standalone PGO build

2021-01-11 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26766

H.J. Lu  changed:

   What|Removed |Added

   Target Milestone|--- |2.37
 Resolution|--- |FIXED
 Status|NEW |RESOLVED

--- Comment #25 from H.J. Lu  ---
Fixed for 2.37.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27173] binutils builds broken on ubuntu 18.04

2021-01-11 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27173

H.J. Lu  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |2.37

--- Comment #5 from H.J. Lu  ---
Fixed for 2.37.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/26766] Support standalone PGO build

2021-01-11 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26766

--- Comment #24 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=44124a46839b3563e448edfd013c6faa6a8b1642

commit 44124a46839b3563e448edfd013c6faa6a8b1642
Author: H.J. Lu 
Date:   Mon Jan 11 16:37:03 2021 -0800

binuitils: Check if AR is usable for LTO build

Check if AR is usable for LTO build with --enable-pgo-build=lto:

checking for -plugin option... ar: no operation specified
Failed: ar --plugin
/usr/gcc-11.0.0-x32/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/liblto_plugin.so rc
no
configure: error: AR with --plugin and rc is required for LTO build

instead of build failure later.

PR binutils/26766
* configure.ac:
* configure: Regenerated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27173] binutils builds broken on ubuntu 18.04

2021-01-11 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27173

--- Comment #4 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=83b33c6cb90db6c110bff0d5024713e8af747005

commit 83b33c6cb90db6c110bff0d5024713e8af747005
Author: H.J. Lu 
Date:   Mon Jan 11 16:29:31 2021 -0800

Binutils: Check if AR works with --plugin and rc

Check if AR works with --plugin and rc before passing --plugin to AR and
RANLIB.

bfd/

PR ld/27173

binutils/

PR ld/27173
* configure: Regenerated.

gas/

PR ld/27173
* configure: Regenerated.

gprof/

PR ld/27173
* configure: Regenerated.

ld/

PR ld/27173
* configure: Regenerated.

libctf/

PR ld/27173
* configure: Regenerated.

opcodes/

PR ld/27173
* configure: Regenerated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27173] binutils builds broken on ubuntu 18.04

2021-01-11 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27173

--- Comment #3 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=03c02f3116d75721f917c4155cefb18b940a43ff

commit 03c02f3116d75721f917c4155cefb18b940a43ff
Author: H.J. Lu 
Date:   Mon Jan 11 16:26:39 2021 -0800

GCC: Check if AR works with --plugin and rc

AR from older binutils doesn't work with --plugin and rc:

[hjl@gnu-cfl-2 bin]$ touch foo.c
[hjl@gnu-cfl-2 bin]$ ar --plugin
/usr/libexec/gcc/x86_64-redhat-linux/10/liblto_plugin.so rc libfoo.a foo.c
[hjl@gnu-cfl-2 bin]$ ./ar --plugin
/usr/libexec/gcc/x86_64-redhat-linux/10/liblto_plugin.so rc libfoo.a foo.c
./ar: no operation specified
[hjl@gnu-cfl-2 bin]$ ./ar --version
GNU ar (Linux/GNU Binutils) 2.29.51.0.1.20180112
Copyright (C) 2018 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later
version.
This program has absolutely no warranty.
[hjl@gnu-cfl-2 bin]$

Check if AR works with --plugin and rc before passing --plugin to AR and
RANLIB.

PR ld/27173
* configure: Regenerated.
* libtool.m4 (_LT_CMD_OLD_ARCHIVE): Check if AR works with
--plugin and rc before enabling --plugin.

config/

PR ld/27173
* gcc-plugin.m4 (GCC_PLUGIN_OPTION): Check if AR works with
--plugin and rc before enabling --plugin.

libiberty/

PR ld/27173
* configure: Regenerated.

zlib/

PR ld/27173
* configure: Regenerated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27173] binutils builds broken on ubuntu 18.04

2021-01-11 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27173

Alan Modra  changed:

   What|Removed |Added

   Assignee|amodra at gmail dot com|hjl.tools at gmail dot 
com
 CC|hjl.tools at gmail dot com |

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27173] binutils builds broken on ubuntu 18.04

2021-01-11 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27173

--- Comment #2 from H.J. Lu  ---
Patches are posted at

https://sourceware.org/pipermail/binutils/2021-January/114879.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/27171] R_AMD64_DIR64/R_AMD64_DIR32 static address relocation

2021-01-11 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27171

H.J. Lu  changed:

   What|Removed |Added

Summary|R_X86_64_PC32 static|R_AMD64_DIR64/R_AMD64_DIR32
   |address relocation  |static address relocation
 CC||hjl.tools at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/27171] R_X86_64_PC32 static address relocation

2021-01-11 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27171

--- Comment #3 from H.J. Lu  ---
Created attachment 13114
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13114=edit
A patch

Please try this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27173] binutils builds broken on ubuntu 18.04

2021-01-11 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27173

Alan Modra  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Status|NEW |ASSIGNED

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/26766] Support standalone PGO build

2021-01-11 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26766

--- Comment #23 from H.J. Lu  ---
(In reply to Martin Liska from comment #22)
> Kudos H.J.
> Can we close this as resolved?

--enable-pgo-build=lto fails with binutils 2.30 since ar in binutils 2.30
doesn't support

$ ar --plugin /usr/libexec/gcc/x86_64-redhat-linux/10/liblto_plugin.so rc 

Do we need to detect it and issue an error at configure time?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/27171] R_X86_64_PC32 static address relocation

2021-01-11 Thread minnowware at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27171

Kilian Kegel  changed:

   What|Removed |Added

 CC||minnowware at hotmail dot com
Version|2.34|2.35.1

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/27171] R_X86_64_PC32 static address relocation

2021-01-11 Thread minnowware at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27171

Kilian Kegel  changed:

   What|Removed |Added

Version|2.35.1  |2.37 (HEAD)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/27167] Missing -mipsXXX LD command line flags

2021-01-11 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27167

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Nick Clifton  ---
Hi Matt,

  Thanks for the patch.  I have now applied it to the mainline and 2.36 branch
sources.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/27167] Missing -mipsXXX LD command line flags

2021-01-11 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27167

--- Comment #7 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_36-branch branch has been updated by Nick Clifton
:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=dee726de9b1b5e6eaa1d1869c68d8e443646e72a

commit dee726de9b1b5e6eaa1d1869c68d8e443646e72a
Author: Matt Jenkins 
Date:   Mon Jan 11 14:33:03 2021 +

Add support for more MIPS variants to the linker command line.

PR ld/27167
* ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
and mips64r5 to list of known mips targets.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/27167] Missing -mipsXXX LD command line flags

2021-01-11 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27167

--- Comment #6 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c0f6e439cc59fa60fec3a4c4ff56e6fac52a8c65

commit c0f6e439cc59fa60fec3a4c4ff56e6fac52a8c65
Author: Matt Jenkins 
Date:   Mon Jan 11 14:31:55 2021 +

Add support for more MIPS variants to the linker command line.

PR ld/27167
* ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
and mips64r5 to list of known mips targets.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/27167] Missing -mipsXXX LD command line flags

2021-01-11 Thread matt at majenko dot co.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=27167

--- Comment #5 from Matt Jenkins  ---
Sure thing. I've retained the -mips5 flag which GCC doesn't seem to use, just
in case there's some other source that flag could come from. It's doing no harm
being there.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/27167] Missing -mipsXXX LD command line flags

2021-01-11 Thread matt at majenko dot co.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=27167

--- Comment #4 from Matt Jenkins  ---
Created attachment 13113
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13113=edit
Patch for mips flags

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/27167] Missing -mipsXXX LD command line flags

2021-01-11 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27167

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #3 from Nick Clifton  ---
(In reply to Matt Jenkins from comment #2)
> Actually, there's a couple more missing.  From GCC's `--target-help`:

In which case would you mind submitting a revised patch ?  Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27155] objcopy --only-keep-debug should strip .debug_info symbols

2021-01-11 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=27155

Martin Liska  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #1 from Martin Liska  ---
It's invalid as perf should look at .debug_info in a separate ELF as the
section has PROGBITS == 1.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Issue 29483 in oss-fuzz: binutils: Fuzzing build failure

2021-01-11 Thread amo… via monorail

Comment #1 on issue 29483 by amo...@gmail.com: binutils: Fuzzing build failure
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=29483#c1

See https://sourceware.org/bugzilla/show_bug.cgi?id=27173

-- 
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.

[Bug binutils/27173] binutils builds broken on ubuntu 18.04

2021-01-11 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27173

Alan Modra  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27173] binutils builds broken on ubuntu 18.04

2021-01-11 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27173

--- Comment #1 from Alan Modra  ---
PR13256

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27173] binutils builds broken on ubuntu 18.04

2021-01-11 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27173

Alan Modra  changed:

   What|Removed |Added

Version|2.36|2.37 (HEAD)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27173] New: binutils builds broken on ubuntu 18.04

2021-01-11 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27173

Bug ID: 27173
   Summary: binutils builds broken on ubuntu 18.04
   Product: binutils
   Version: 2.36
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: amodra at gmail dot com
  Target Milestone: ---

commit a4966cd965 has introduced a regression on ubuntu

/usr/bin/ar --version
GNU ar (GNU Binutils for Ubuntu) 2.30

rm -f ./libiberty.a pic/./libiberty.a noasan/./libiberty.a
ar --plugin /usr/lib/gcc/x86_64-linux-gnu/7/liblto_plugin.so rc ./libiberty.a \
  ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o ./argv.o
./bsearch_r.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./d-demangle.o
./dwarfnames.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filedescriptor.o
./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o
./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o
./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o
./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o
./pex-unix.o ./vprintf-support.o ./rust-demangle.o ./safe-ctype.o
./simple-object.o ./simple-object-coff.o ./simple-object-elf.o
./simple-object-mach-o.o ./simple-object-xcoff.o ./sort.o ./spaces.o
./splay-tree.o ./stack-limit.o ./strerror.o ./strsignal.o ./timeval-utils.o
./unlink-if-ordinary.o ./xasprintf.o ./xatexit.o ./xexit.o ./xmalloc.o
./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o ./xvasprintf.o 
./setproctitle.o
ar: no operation specified

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/27167] Missing -mipsXXX LD command line flags

2021-01-11 Thread matt at majenko dot co.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=27167

--- Comment #2 from Matt Jenkins  ---
Actually, there's a couple more missing.  From GCC's `--target-help`:

  Known MIPS ISA levels (for use with the -mips option):
1 2 3 32 32r2 32r3 32r5 32r6 4 64 64r2 64r3 64r5 64r6

-mips64r3 and -mips64r5 seem to be lacking (and -mips5 seems to be there which
isn't in the list of ISA levels).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/27167] Missing -mipsXXX LD command line flags

2021-01-11 Thread matt at majenko dot co.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=27167

--- Comment #1 from Matt Jenkins  ---
On further investigation there is no MIPS32R4, so the -mips32r4 flag could be
removed from that list.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Issue 27734 in oss-fuzz: binutils:fuzz_readelf: Abrt with empty stacktrace

2021-01-11 Thread amo… via monorail

Comment #4 on issue 27734 by amo...@gmail.com: binutils:fuzz_readelf: Abrt with 
empty stacktrace
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=27734#c4

Pull request here https://github.com/google/oss-fuzz/pull/4945

-- 
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.

[Bug ld/26766] Support standalone PGO build

2021-01-11 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26766

--- Comment #22 from Martin Liska  ---
Kudos H.J.
Can we close this as resolved?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Issue 27734 in oss-fuzz: binutils:fuzz_readelf: Abrt with empty stacktrace

2021-01-11 Thread p . ant… via monorail

Comment #3 on issue 27734 by p.ant...@catenacyber.fr: binutils:fuzz_readelf: 
Abrt with empty stacktrace
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=27734#c3

Thanks Alan, could you push this patch upstream ?

-- 
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.