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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-cfl-2 tmp]$ cat foo.s
        .text
        .globl  foo
foo:
        jmp     bar@PLT
[hjl@gnu-cfl-2 tmp]$ gcc -c foo.s
[hjl@gnu-cfl-2 tmp]$ ld -shared -T pr28597.t foo.o
Segmentation fault (core dumped)
[hjl@gnu-cfl-2 tmp]$ cat pr28597.t
SECTIONS
{
  .text           :
  {
    *(.text .text.*)
  }
  /DISCARD/ : { *(.dynsym) }
  /DISCARD/ : { *(.dynstr*) }
  /DISCARD/ : { *(.dynamic*) }
  /DISCARD/ : { *(.plt*) }
  /DISCARD/ : { *(.interp*) }
  /DISCARD/ : { *(.gnu*) }
  /DISCARD/ : { *(.note.gnu.property) }
}
[hjl@gnu-cfl-2 tmp]$

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

Reply via email to