[Bug gas/16279] New: Need a way to create two COFF sections with the same name but different comdats

2013-12-01 Thread rafael.espindola at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16279

Bug ID: 16279
   Summary: Need a way to create two COFF sections with the same
name but different comdats
   Product: binutils
   Version: unspecified
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: rafael.espindola at gmail dot com

On ELF one can easily create two sections with the same name in different
comdats:

-
.sectionfoo,"axG",@progbits,f,comdat
.globl f
f:
  ret

.sectionfoo,"axG",@progbits,g,comdat
.globl g
g:
  ret
-

on COFF that is not possible since the .section directive doesn't include the
comdat information (that is part of the .linkonce directive). This means that a
compiler using gas needs to produce unique names, producing more complex .obj
files than the ones produced by msvc, which, for example, have all c++ inline
functions in sections named .text.

The assembler included in LLVM solved this by allowing the information normally
passed to .linkonce to be passed to .section itself:
http://llvm.org/docs/Extensions.html#section-directive

-- 
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/15126] [REGRESSION] 2.23.51.0.9 fails to link cairo with libstdc++ (could not read symbols: Invalid operation)

2013-12-01 Thread hp at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=15126

Hans-Peter Nilsson  changed:

   What|Removed |Added

 CC||hp at sourceware 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