Changeset c89ae25 in mainline for boot/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
  • boot/arch/riscv64/_link.ld.in

    r0373af9 rc89ae25  
    88        .text : {
    99                loader_start = .;
    10                 *(BOOTSTRAP);
    11                 *(.text);
     10                KEEP(*(BOOTSTRAP));
     11                *(.text .text.*);
    1212        }
    1313
     
    2727
    2828        .data : {
    29                 *(.data);       /* initialized data */
    30                 *(.rodata);
    31                 *(.rodata.*);
    32                 *(.sdata);
    33                 *(.reginfo);
    34                 *(.sbss);
    35                 *(.scommon);
    36                 *(.bss);        /* uninitialized static variables */
     29                *(.data .data.*);       /* initialized data */
     30                *(.rodata .rodata.*);
     31                *(.sdata .sdata.*);
     32                *(.sbss .sbss.*);
     33                *(.scommon .scommon.*);
     34                *(.bss .bss.*);        /* uninitialized static variables */
    3735                *(COMMON);      /* global variables */
    3836                loader_end = .;
    3937                payload_start = .;
    40                 *(.payload);
     38                KEEP(*(.payload));
    4139                payload_end = .;
    4240        }
Note: See TracChangeset for help on using the changeset viewer.