Skip to content

Commit 23ff080

Browse files
committed
layout.ld: Remove EDK2's /DISCARD/ section
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]>
1 parent d6f1dda commit 23ff080

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

layout.ld

-12
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,6 @@ SECTIONS
3838
/* ram32.s only maps the first 2 MiB, and that must include the stack. */
3939
ASSERT((. <= 2M), "Stack overflows initial identity-mapped memory region")
4040

41-
/* Match edk2's GccBase.lds DISCARD section */
42-
/DISCARD/ : {
43-
*(.note.GNU-stack)
44-
*(.gnu_debuglink)
45-
*(.interp)
46-
*(.dynsym)
47-
*(.dynstr)
48-
*(.dynamic)
49-
*(.hash .gnu.hash)
50-
*(.comment)
51-
*(COMMON)
52-
}
5341
/* Strip symbols from the output binary (comment out to get symbols) */
5442
/DISCARD/ : {
5543
*(.symtab)

0 commit comments

Comments
 (0)