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


Ignore:
Timestamp:
2023-10-27T17:24:14Z (7 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/riscv64/_link.ld.in

    r0373af9 rc89ae25  
    1818        .image (PA2KA(BOOT_OFFSET) + SIZEOF_HEADERS) : AT (BOOT_OFFSET + SIZEOF_HEADERS) {
    1919                ktext_start = .;
    20                 *(K_TEXT_START);
    21                 *(.text);
     20                KEEP(*(K_TEXT_START));
     21                *(.text .text.*);
    2222                ktext_end = .;
    2323
    2424                kdata_start = .;
    25                 *(.data);                       /* initialized data */
     25                *(.data .data.*);                       /* initialized data */
    2626                *(.rodata .rodata.*);
    2727                *(.eh_frame .eh_frame.*);       /* stack unwinding data */
    2828                *(.eh_frame_hdr .eh_frame_hdr.*);
    29                 *(.sdata);
    30                 *(.reginfo);
    31                 *(.sbss);
    32                 *(.scommon);
    33                 *(.bss);                        /* uninitialized static variables */
     29                *(.sdata .sdata.*);
     30                *(.sbss .sbss.*);
     31                *(.scommon .scommon.*);
     32                *(.bss .bss.*);                        /* uninitialized static variables */
    3433                *(COMMON);                      /* global variables */
    3534                kdata_end = .;
Note: See TracChangeset for help on using the changeset viewer.