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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
On Linux/x86-64:

[hjl@gnu-tools-1 pr18160]$ cat foo.c
void
foo ()
{
}
[hjl@gnu-tools-1 pr18160]$ cat x.c
void foo (void);

void
start ()
{
  foo ();
}
[hjl@gnu-tools-1 pr18160]$ cat link.ld 
OUTPUT_FORMAT(elf32-i386)
ENTRY(start)
SECTIONS
{
  .text : { *(.text*) }
  .data : { *(.data.*) }
  .bss : { *(.bss.*) }
}
[hjl@gnu-tools-1 pr18160]$ gcc -ffunction-sections -c foo.c x.c
[hjl@gnu-tools-1 pr18160]$ ld --gc-sections -T link.ld foo.o x.o
Segmentation fault (core dumped)
[hjl@gnu-tools-1 pr18160]$

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

Reply via email to