Changeset c89ae25 in mainline for kernel/arch/amd64/_link.ld.in


Ignore:
Timestamp:
2023-10-27T17:24:14Z (19 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
34120f10, b169619
Parents:
0373af9
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 17:03:39)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 17:24:14)
Message:

Fix and enable —gc-sections in /kernel and /boot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/_link.ld.in

    r0373af9 rc89ae25  
    1717        .unmapped (BOOT_OFFSET + SIZEOF_HEADERS): AT (BOOT_OFFSET + SIZEOF_HEADERS) {
    1818                unmapped_start = .;
    19                 *(K_TEXT_START);
    20                 *(K_DATA_START);
    21                 *(K_INI_PTLS);
     19                KEEP(*(K_TEXT_START));
     20                KEEP(*(K_DATA_START));
     21                KEEP(*(K_INI_PTLS));
    2222                unmapped_end = .;
    2323        }
     
    2929
    3030                kdata_start = .;
    31                 *(.data);              /* initialized data */
     31                *(.data .data.*);              /* initialized data */
    3232                *(.rodata .rodata.*);
    33                 *(.eh_frame .eh_frame.*);       /* stack unwinding data */
     33                *(.eh_frame .eh_frame.*);      /* stack unwinding data */
    3434                *(.eh_frame_hdr .eh_frame_hdr.*);
    3535                *(COMMON);      /* global variables */
    3636
    3737                /* bss can't be omitted from the ELF image. */
    38                 *(.bss);        /* uninitialized static variables */
     38                *(.bss .bss.*);        /* uninitialized static variables */
    3939                kdata_end = .;
    4040        }
Note: See TracChangeset for help on using the changeset viewer.