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


Ignore:
Timestamp:
2024-01-14T15:09:08Z (5 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/arm32/_link.ld.in

    r5907aa4 r6677acb  
    2626        kernel_load_address = .;
    2727        . = . + SIZEOF_HEADERS;
     28
    2829        .text : {
    2930                ktext_start = .;
     
    3132                ktext_end = .;
    3233        }
     34
     35        /* stack unwinding data */
     36        .eh_frame_hdr : {
     37                eh_frame_hdr_start = .;
     38                *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*);
     39                eh_frame_hdr_end = .;
     40        }
     41
     42        .eh_frame : {
     43                eh_frame_start = .;
     44                KEEP(*(.eh_frame .eh_frame.*));
     45                eh_frame_end = .;
     46        }
     47
    3348        .data : {
    3449                kdata_start = .;
     
    3853
    3954                *(.rodata .rodata.*);
    40                 *(.eh_frame .eh_frame.*);       /* stack unwinding data */
    41                 *(.eh_frame_hdr .eh_frame_hdr.*);
    4255                *(.sdata .sdata.*);
    43         }
    44         .sbss : {
    4556                *(.sbss .sbss.*);
    4657                *(.scommon .scommon.*);
     58                kdata_end = .;
    4759        }
    48 
    49         kdata_end = .;
    5060
    5161        .comment 0 : { *(.comment); }
Note: See TracChangeset for help on using the changeset viewer.