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


Ignore:
Timestamp:
2023-10-27T17:24:14Z (21 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/ia32/_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);
     19                KEEP(*(K_TEXT_START));
     20                KEEP(*(K_DATA_START));
    2121                unmapped_end = .;
    2222        }
     
    2828
    2929                kdata_start = .;
    30                 *(.data);               /* initialized data */
     30                *(.data .data.*);               /* initialized data */
    3131                *(.rodata .rodata.*);
    3232                *(.eh_frame .eh_frame.*);       /* stack unwinding data */
     
    3535
    3636                /* bss can't be omitted from the ELF image. */
    37                 *(.bss);                /* uninitialized static variables */
     37                *(.bss .bss.*);                /* uninitialized static variables */
    3838                kdata_end = .;
    3939        }
Note: See TracChangeset for help on using the changeset viewer.