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


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

    r0373af9 rc89ae25  
    2222        .unmapped (SIZEOF_HEADERS): AT (SIZEOF_HEADERS) {
    2323                . = ALIGN(0x100);
    24                 *(K_UNMAPPED_TEXT_START);
     24                KEEP(*(K_UNMAPPED_TEXT_START));
    2525        }
    2626
    2727        .mapped PA2KA(BOOT_OFFSET): AT (BOOT_OFFSET) {
    2828                ktext_start = .;
    29                 *(K_TEXT_START);
    30                 *(.text);
     29                KEEP(*(K_TEXT_START));
     30                *(.text .text.*);
    3131                ktext_end = .;
    3232
    3333                kdata_start = .;
    34                 *(K_DATA_START);
     34                KEEP(*(K_DATA_START));
    3535                *(.rodata .rodata.*);
    3636                *(.eh_frame .eh_frame.*);       /* stack unwinding data */
    3737                *(.eh_frame_hdr .eh_frame_hdr.*);
    38                 *(.data);       /* initialized data */
    39                 *(.sdata);
    40                 *(.sdata2);
    41                 *(.sbss);
    42                 *(.bss);        /* uninitialized static variables */
     38                *(.data .data.*);       /* initialized data */
     39                *(.sdata .sdata.*);
     40                *(.sdata2 .sdata2.*);
     41                *(.sbss .sbss.*);
     42                *(.bss .bss.*);        /* uninitialized static variables */
    4343                *(COMMON);      /* global variables */
    4444                kdata_end = .;
Note: See TracChangeset for help on using the changeset viewer.