[Bug binutils/25031] nm reports wrong address on 32bit

2019-09-25 Thread costamagnagianfranco at yahoo dot it
https://sourceware.org/bugzilla/show_bug.cgi?id=25031

--- Comment #5 from Gianfranco  ---
thanks a ton for the quick fixes!

-- 
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 binutils/24942] objcopy: Add option for setting section alignment

2019-09-25 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24942

--- Comment #12 from Fangrui Song  ---
> Created attachment 12002 [details]

if (palign <= 0 || palign & (palign-1))

can be used to simplify the code.

-- 
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/24997] ld.gold creates huge binary with same options as ld.bfd

2019-09-25 Thread greened at obbligato dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=24997

David Greene  changed:

   What|Removed |Added

 CC||greened at obbligato dot org

-- 
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/25034] New: gold creates incorrect executable with large arrays

2019-09-25 Thread greened at obbligato dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25034

Bug ID: 25034
   Summary: gold creates incorrect executable with large arrays
   Product: binutils
   Version: 2.32
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gold
  Assignee: ccoutant at gmail dot com
  Reporter: greened at obbligato dot org
CC: ian at airs dot com
  Target Milestone: ---

$ cat big.c
#include 

struct {
  double a[512][512][512];
  double b[512][512][512];
  double c[512][512][512];
} bigarrays;

int x;

int main(void) {
  printf("&a: 0x%016x\n", bigarrays.a);
  printf("&b: 0x%016x\n", bigarrays.b);
  printf("&c: 0x%016x\n", bigarrays.c);
  printf("&x: 0x%016x\n", &x);

  x = 20;

  int i = 0;
  int j = 0;
  int k = 0;

  for (k = 0; k < 512; ++k) {
for (j = 0; j < 512; ++j) {
  for (i = 0; i < 512; ++i) {
bigarrays.a[k][j][i] = 0.0;
bigarrays.b[k][j][i] = 0.0;
bigarrays.c[k][j][i] = 0.0;
  }
}
  }

  printf("x: %d\n", x);

  return 0;
}

$ gcc -fPIC big.c -Wl,--no-relax -o big.bfd
$ ./big.bfd
&a: 0x00404080
&b: 0x40404080
&c: 0x80404080
&x: 0x00404060
x: 20

$ gcc -fuse-ld=gold -fPIC big.c -o big.gold
$ ./big.gold 
&a: 0x00402060
&b: 0x40402060
&c: 0x80402060
&x: 0xc0402060
Segmentation fault

$ ld --version
GNU ld (GNU Binutils) 2.32
Copyright (C) 2019 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) a later version.
This program has absolutely no warranty.

$ ld.gold --version
GNU gold (GNU Binutils 2.32) 1.16
Copyright (C) 2019 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) a later version.
This program has absolutely no warranty.

gdb shows the fault here:

   0x00400610 <+126>:   lea-0x3fffe5b7(%rip),%rax#
0xc0402060
=> 0x00400617 <+133>:   movl   $0x14,(%rax)

That offset looks like a relocation overflow.  Is gold trying to relax the
reference and doing it incorrectly?  `--no-relax` doesn't help.  The code looks
the same with and without the option.

-- 
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/25034] gold creates incorrect executable with large arrays

2019-09-25 Thread greened at obbligato dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25034

--- Comment #1 from David Greene  ---
Here is the original reference generated by gcc:

movqx@GOTPCREL(%rip), %rax
movl$20, (%rax)

So it does look like gold is trying to relax the GOT reference to an LEA.

-- 
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/25034] gold creates incorrect executable with large arrays

2019-09-25 Thread greened at obbligato dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25034

--- Comment #2 from David Greene  ---
Also note that bfd locates x below bigarrays.  That seems like better behavior,
keeping small symbols closer to the text.

-- 
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/16794] gold ignores R_386_GOTOFF addend

2019-09-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16794

Alan Modra  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC|amodra at gmail dot com|
   Assignee|ccoutant at gmail dot com  |amodra at gmail dot com
   Target Milestone|--- |2.33
Summary|gold doesn't include the|gold ignores R_386_GOTOFF
   |"implicit addend" when  |addend
   |processing REL relocations  |
   |to mergable sections|

--- Comment #11 from Alan Modra  ---
OK, so my fix wasn't correct since Relocate_functions<32, false>::rel32(view,
value) applies the addend again.  This would have worked:

-   elfcpp::Elf_types<32>::Elf_Addr value;
-   value = (psymval->value(object, 0)
-- target->got_plt_section()->address());
-   Relocate_functions<32, false>::rel32(view, value);
+   typedef typename elfcpp::Swap<32, false>::Valtype Valtype;
+   Valtype* wv = reinterpret_cast(view);
+   Valtype addend = elfcpp::Swap<32, false>::readval(wv);
+   Valtype value = (psymval->value(object, addend)
+- target->got_plt_section()->address());
+   elfcpp::Swap<32, false>::writeval(wv, value);

However, that looks very much like a pcrel32 using object/psymval, thus

elfcpp::Elf_types<32>::Elf_Addr reladdr;
reladdr = target->got_plt_section()->address();
Relocate_functions<32, false>::pcrel32(view, object, psymval, reladdr);

-- 
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 gas/25037] New: Here is the link to get the complete set of applications of the Microsoft Office Setup , Norton Setup and McAfee Activate Antivirus for your PC and Mac. You will receive the step

2019-09-25 Thread billymark8663 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25037

Bug ID: 25037
   Summary: Here is the link to get the complete set of
applications of the Microsoft Office Setup , Norton
Setup and McAfee Activate Antivirus for your PC and
Mac. You will receive the step by step complete setup
for the installation process of the Application.
   Product: binutils
   Version: 2.33
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: billymark8663 at gmail dot com
  Target Milestone: ---

Billy Mark  is expert in field of IT and  PC software Support. He is having
deep knowledge about PC antivirus products. Work mainly in  research and
writing blogs.

http://asknorton.com
http://2norton.com
http://au-norton.com
http://hbnorton.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


[Bug gas/25037] Here is the link to get the complete set of applications of the Microsoft Office Setup , Norton Setup and McAfee Activate Antivirus for your PC and Mac. You will receive the step by st

2019-09-25 Thread billymark8663 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25037

Billy MArk  changed:

   What|Removed |Added

URL||https://billymarkblog.wordp
   ||ress.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


[Bug gas/25037] spam

2019-09-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25037

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID
Summary|Here is the link to get the |spam
   |complete set of |
   |applications of the |
   |Microsoft Office Setup ,|
   |Norton Setup and McAfee |
   |Activate Antivirus for your |
   |PC and Mac. You will|
   |receive the step by step|
   |complete setup for the  |
   |installation process of the |
   |Application.|

--- Comment #1 from Alan Modra  ---
spam

-- 
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