[Bug gold/17005] New: [Gold] .ehframe problem with --sort-section=name

2014-05-31 Thread aivchenk at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17005

Bug ID: 17005
   Summary: [Gold] .ehframe problem with --sort-section=name
   Product: binutils
   Version: 2.25 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
  Assignee: ian at airs dot com
  Reporter: aivchenk at gmail dot com
CC: ccoutant at google dot com

> cat a.cc
void foo(void) {
  throw 1;
}

> cat b.cc

void foo(void);
int main()
{
  try {
foo();
  }
  catch (int i) {
return 0;
  }
  return -1;
}

>g++ -B/users/aivchenk/src/binutils_obj/gold/testsuite/gcctestdir/ a.cc b.cc 
>-fPIE -pie -Wl,-sort-section,name -fexceptions -frtti -g3 -o a32.out -m32
> ./a32.out
terminate called after throwing an instance of 'int'
Aborted

> g++ -B/users/aivchenk/src/binutils_obj/gold/testsuite/gcctestdir/ a.cc b.cc 
> -fPIE -pie -fexceptions -frtti -g3 -o b32.out -m32
> ./b32.out

-- 
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/17005] [Gold] .ehframe problem with --sort-section=name

2014-05-31 Thread aivchenk at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17005

--- Comment #1 from Alexander Ivchenko  ---
>objdump -W a32.out

a32.out: file format elf32-i386

Contents of the .eh_frame section:

 ZERO terminator

0004 0014  CIE
  Version:   1
  Augmentation:  "zR"
  Code alignment factor: 1
  Data alignment factor: -4
  Return address column: 8
  Augmentation data: 1b

  DW_CFA_def_cfa: r4 (esp) ofs 4
  DW_CFA_offset: r8 (eip) at cfa-4
  DW_CFA_nop
  DW_CFA_nop
objdump: Warning: Invalid CIE pointer 0xfeb3 in FDE at 0x1c

001c 0018 feb3 FDE cie=ff330970 pc=..003e
  DW_CFA_nop...

 And there are plenty of those invalid CIE pointers.



 Seems that relocations against ehframe in case of sort-section=name are placed
incorrectly (They are 4 bytes behind of the place where there should be - in
resulting a32.out binary you can see 4byte-zeros) 

 >objdump -s -j .eh_frame 32/a32.out

 32/a32.out: file format elf32-i386

Contents of section .eh_frame:
 0884  1400  017a5200 
 0894 017c0801 1b0c0404 8801 1800 
 08a4 b3fe  3e00 00410e08 
 08b4 8502420d 05448303 3800 48ff 
 08c4  6100 00410e08 8502410e 
 08d4 0c870343 0e108604 410e1483 054e0e30 
 08e4 02480e14 41c30e10 41c60e0c 41c70e08 
 08f4 41c50e04 1000 48ff 7000 
 0904 0200  2400 8800 
 0914 3cfc 9000 000e0846 0e0c4a0f 
 0924 0b740478 003f1a3b 2a322422  
 0934 1c00  017a504c 52000145 
 0944 1a079b00 001b 1b0c0404 8801 
 0954 2800 45fe  520f 
 0964 0300 00410e08 8502420d 05488603 
 0974 83040244 c341c641 c50c0404  


 objdump -s -j .eh_frame 32/b32.out
 32/b32.out: file format elf32-i386

Contents of section .eh_frame:
 0874 1400  017a5200 017c0801  
 0884 1b0c0404 8801 1800 1c00  
 0894 a7fe 3e00 00410e08 8502420d  
 08a4 05448303 3800 3800 20ff  
 08b4 6100 00410e08 8502410e 0c870343  
 08c4 0e108604 410e1483 054e0e30 02480e14  
 08d4 41c30e10 41c60e0c 41c70e08 41c50e04  
 08e4 1000 7400 54ff 0200  
 08f4  2400 8800 50fc  
 0904 9000 000e0846 0e0c4a0f 0b740478  
 0914 003f1a3b 2a322422  1c00  
 0924  017a504c 5200017c 08079bc9  
 0934 111b 1b0c0404 8801 2800  
 0944 2400 31fe 5200 040f  
 0954 ff410e08 8502420d 05488603 83040244  
 0964 c341c641 c50c0404 

-- 
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/16895] building mariadb-5.5.37 with gold - .../libmysql_versions.ld:155:9: invalid use of VERSION in input file

2014-05-31 Thread vuvova at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16895

--- Comment #7 from vuvova at gmail dot com ---
Thanks. I've tried these workarounds, both using -T and splitting the linker
script (moving the version part into a separate file for --version-script).

Both kind of worked, no more linking errors. But the resulting library wasn't
the same as with GNU ld. It did not have any symbols in the libmysqlclient_16
version node.

-- 
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/16807] Bad behavior with resources of Windows applications with recent binutils upgrade on Cygwin64

2014-05-31 Thread angelo.graziosi at alice dot it
https://sourceware.org/bugzilla/show_bug.cgi?id=16807

--- Comment #18 from Angelo Graziosi  ---
(In reply to Ken Brown from comment #16)
> Created attachment 7623 [details]
> emacs-x64.manifest
> 
> Sorry, I forgot to attach this.

Thanks... ;-) Now I can try your test case. I can confirm the issues at step 4.
ONLY if I strip test.exe.

Ciao,
 Angelo.

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