Changeset 6677acb in mainline for kernel/arch/ppc32/_link.ld.in


Ignore:
Timestamp:
2024-01-14T15:09:08Z (9 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
3b68542
Parents:
5907aa4
Message:

Emit .text/.data/.eh_frame sections in kernel ELF files

Gives tools like objdump an easier time interpreting contents of
the file, and allows kernel to find .eh_frame_hdr since the linker
emits a program header for it when it's present under the standard
name.

File:
1 edited

Legend:

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

    r5907aa4 r6677acb  
    2525        }
    2626
    27         .mapped PA2KA(BOOT_OFFSET): AT (BOOT_OFFSET) {
     27        .text PA2KA(BOOT_OFFSET): AT (BOOT_OFFSET) {
    2828                ktext_start = .;
    2929                KEEP(*(K_TEXT_START));
    3030                *(.text .text.*);
    3131                ktext_end = .;
     32        }
    3233
     34        /* stack unwinding data */
     35        .eh_frame_hdr : {
     36                eh_frame_hdr_start = .;
     37                *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*);
     38                eh_frame_hdr_end = .;
     39        }
     40
     41        .eh_frame : {
     42                eh_frame_start = .;
     43                KEEP(*(.eh_frame .eh_frame.*));
     44                eh_frame_end = .;
     45        }
     46
     47        .data : {
    3348                kdata_start = .;
    3449                KEEP(*(K_DATA_START));
    3550                *(.rodata .rodata.*);
    36                 *(.eh_frame .eh_frame.*);       /* stack unwinding data */
    37                 *(.eh_frame_hdr .eh_frame_hdr.*);
    3851                *(.data .data.*);       /* initialized data */
    3952                *(.sdata .sdata.*);
Note: See TracChangeset for help on using the changeset viewer.