bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/28597] SEGV. x86_64 EFI app


From: hjl.tools at gmail dot com
Subject: [Bug ld/28597] SEGV. x86_64 EFI app
Date: Thu, 18 Nov 2021 15:21:40 +0000

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

[Prev in Thread] Current Thread [Next in Thread]