Skip to content

Commit

Permalink
layout.ld: Remove EDK2's /DISCARD/ section
Browse files Browse the repository at this point in the history
This was just copied over, but isn't necessary. The only data this
removes is the `.comment` section, but it's fine (and even desireable)
to leave that in.

Signed-off-by: Joe Richey <[email protected]>
  • Loading branch information
josephlr authored and rbradford committed May 18, 2020
1 parent 913017e commit 7e65617
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions layout.ld
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@ SECTIONS
/* ram32.s only maps the first 2 MiB, and that must include the stack. */
ASSERT((. <= 2M), "Stack overflows initial identity-mapped memory region")

/* Match edk2's GccBase.lds DISCARD section */
/DISCARD/ : {
*(.note.GNU-stack)
*(.gnu_debuglink)
*(.interp)
*(.dynsym)
*(.dynstr)
*(.dynamic)
*(.hash .gnu.hash)
*(.comment)
*(COMMON)
}
/* Strip symbols from the output binary (comment out to get symbols) */
/DISCARD/ : {
*(.symtab)
Expand Down

0 comments on commit 7e65617

Please sign in to comment.