discard comment sections
authorJohn Tsiombikas <nuclear@member.fsf.org>
Mon, 19 Aug 2024 01:03:28 +0000 (04:03 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Mon, 19 Aug 2024 01:03:28 +0000 (04:03 +0300)
kern/kern.ld

index fddd365..1cd3c2d 100644 (file)
@@ -31,4 +31,8 @@ SECTIONS {
        . = ALIGN(4);
        _kern_end = .;
        _kern_size = _kern_end - _kern_start;
+
+       /DISCARD/ : {
+               * (.comment);
+       }
 };