Changeset da13982 in mainline for kernel/arch


Ignore:
Timestamp:
2023-10-26T15:20:07Z (2 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
2fbb42f
Parents:
d28bdbe
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-26 14:42:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-26 15:20:07)
Message:

Read symbol table from ELF sections

Instead of the currently broken data generated using genmap.py,
read the ELF symbol table for stack traces and symbol names.
In addition to that, prepare ground for accessing DWARF debug
sections.

Because neither .symtab, nor .debug_* sections are
normally part of the program image, these have to be provided
externally. Instead of the previous way of relinking kernel
to bake in the symbol data, we now only link kernel once
and the extra debug data is loaded as part of the initrd image.

Location:
kernel/arch
Files:
10 edited

Legend:

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

    rd28bdbe rda13982  
    1212                *(COMMON);                      /* global variables */
    1313
    14                 *(.rodata*);
     14                *(.rodata .rodata.*);
     15                *(.eh_frame .eh_frame.*);       /* stack unwinding data */
     16                *(.eh_frame_hdr .eh_frame_hdr.*);
    1517                *(.sdata);
    1618                *(.reginfo);
    17                 . = ALIGN(8);
    18                 symbol_table = .;
    19                 *(symtab.*);
    2019        }
    2120        .sbss : {
     
    2625        kdata_end = .;
    2726
     27        .comment 0 : { *(.comment); }
     28        .debug_abbrev 0 : { *(.debug_abbrev); }
     29        .debug_abbrev.dwo 0 : { *(      .debug_abbrev.dwo); }
     30        .debug_addr 0 : { *(.debug_addr); }
     31        .debug_aranges 0 : { *(.debug_aranges); }
     32        .debug_cu_index 0 : { *(.debug_cu_index); }
     33        .debug_frame 0 : { *(.debug_frame); }
     34        .debug_frame_hdr 0 : { *(.debug_frame_hdr); }
     35        .debug_info 0 : { *(.debug_info); }
     36        .debug_info.dwo 0 : { *(.debug_info.dwo); }
     37        .debug_line 0 : { *(.debug_line); }
     38        .debug_line.dwo 0 : { *(.debug_line.dwo); }
     39        .debug_line_str 0 : { *(.debug_line_str); }
     40        .debug_loc 0 : { *(.debug_loc); }
     41        .debug_loclists 0 : { *(.debug_loclists); }
     42        .debug_loclists.dwo 0 : { *(.debug_loclists.dwo); }
     43        .debug_macinfo 0 : { *(.debug_macinfo); }
     44        .debug_macro 0 : { *(.debug_macro); }
     45        .debug_macro.dwo 0 : { *(.debug_macro.dwo); }
     46        .debug_names 0 : { *(.debug_names); }
     47        .debug_pubnames 0 : { *(.debug_pubnames); }
     48        .debug_pubtypes 0 : { *(.debug_pubtypes); }
     49        .debug_ranges 0 : { *(.debug_ranges); }
     50        .debug_rnglists 0 : { *(.debug_rnglists); }
     51        .debug_str 0 : { *(.debug_str); }
     52        .debug_str.dwo 0 : { *(.debug_str.dwo); }
     53        .debug_str_offsets 0 : { *(.debug_str_offsets); }
     54        .debug_str_offsets.dwo 0 : { *(.debug_str_offsets.dwo); }
     55        .debug_tu_index 0 : { *(.debug_tu_index); }
     56        .debug_types 0 : { *(.debug_types); }
     57
    2858        /DISCARD/ : {
    2959                *(.mdebug*);
  • kernel/arch/amd64/_link.ld.in

    rd28bdbe rda13982  
    3030                kdata_start = .;
    3131                *(.data);              /* initialized data */
    32                 *(.rodata .rodata.*);  /* string literals */
     32                *(.rodata .rodata.*);
     33                *(.eh_frame .eh_frame.*);       /* stack unwinding data */
     34                *(.eh_frame_hdr .eh_frame_hdr.*);
    3335                *(COMMON);      /* global variables */
    3436
    3537                /* bss can't be omitted from the ELF image. */
    3638                *(.bss);        /* uninitialized static variables */
    37 
    38                 . = ALIGN(8);
    39                 symbol_table = .;
    40                 *(symtab.*);    /* Symbol table, must be LAST symbol!*/
    41 
    4239                kdata_end = .;
    4340        }
    4441
    45 #ifdef CONFIG_LINE_DEBUG
    4642        .comment 0 : { *(.comment); }
    4743        .debug_abbrev 0 : { *(.debug_abbrev); }
     44        .debug_abbrev.dwo 0 : { *(      .debug_abbrev.dwo); }
     45        .debug_addr 0 : { *(.debug_addr); }
    4846        .debug_aranges 0 : { *(.debug_aranges); }
     47        .debug_cu_index 0 : { *(.debug_cu_index); }
     48        .debug_frame 0 : { *(.debug_frame); }
     49        .debug_frame_hdr 0 : { *(.debug_frame_hdr); }
    4950        .debug_info 0 : { *(.debug_info); }
     51        .debug_info.dwo 0 : { *(.debug_info.dwo); }
    5052        .debug_line 0 : { *(.debug_line); }
     53        .debug_line.dwo 0 : { *(.debug_line.dwo); }
     54        .debug_line_str 0 : { *(.debug_line_str); }
    5155        .debug_loc 0 : { *(.debug_loc); }
     56        .debug_loclists 0 : { *(.debug_loclists); }
     57        .debug_loclists.dwo 0 : { *(.debug_loclists.dwo); }
     58        .debug_macinfo 0 : { *(.debug_macinfo); }
     59        .debug_macro 0 : { *(.debug_macro); }
     60        .debug_macro.dwo 0 : { *(.debug_macro.dwo); }
     61        .debug_names 0 : { *(.debug_names); }
    5262        .debug_pubnames 0 : { *(.debug_pubnames); }
    5363        .debug_pubtypes 0 : { *(.debug_pubtypes); }
    5464        .debug_ranges 0 : { *(.debug_ranges); }
     65        .debug_rnglists 0 : { *(.debug_rnglists); }
    5566        .debug_str 0 : { *(.debug_str); }
    56 #endif
     67        .debug_str.dwo 0 : { *(.debug_str.dwo); }
     68        .debug_str_offsets 0 : { *(.debug_str_offsets); }
     69        .debug_str_offsets.dwo 0 : { *(.debug_str_offsets.dwo); }
     70        .debug_tu_index 0 : { *(.debug_tu_index); }
     71        .debug_types 0 : { *(.debug_types); }
    5772
    5873        /DISCARD/ : {
  • kernel/arch/arm32/_link.ld.in

    rd28bdbe rda13982  
    3737                *(COMMON);                      /* global variables */
    3838
    39                 *(.rodata*);
     39                *(.rodata .rodata.*);
     40                *(.eh_frame .eh_frame.*);       /* stack unwinding data */
     41                *(.eh_frame_hdr .eh_frame_hdr.*);
    4042                *(.sdata);
    4143                *(.reginfo);
    42                 . = ALIGN(8);
    43                 symbol_table = .;
    44                 *(symtab.*);
    4544        }
    4645        .sbss : {
     
    5150        kdata_end = .;
    5251
     52        .comment 0 : { *(.comment); }
     53        .debug_abbrev 0 : { *(.debug_abbrev); }
     54        .debug_abbrev.dwo 0 : { *(      .debug_abbrev.dwo); }
     55        .debug_addr 0 : { *(.debug_addr); }
     56        .debug_aranges 0 : { *(.debug_aranges); }
     57        .debug_cu_index 0 : { *(.debug_cu_index); }
     58        .debug_frame 0 : { *(.debug_frame); }
     59        .debug_frame_hdr 0 : { *(.debug_frame_hdr); }
     60        .debug_info 0 : { *(.debug_info); }
     61        .debug_info.dwo 0 : { *(.debug_info.dwo); }
     62        .debug_line 0 : { *(.debug_line); }
     63        .debug_line.dwo 0 : { *(.debug_line.dwo); }
     64        .debug_line_str 0 : { *(.debug_line_str); }
     65        .debug_loc 0 : { *(.debug_loc); }
     66        .debug_loclists 0 : { *(.debug_loclists); }
     67        .debug_loclists.dwo 0 : { *(.debug_loclists.dwo); }
     68        .debug_macinfo 0 : { *(.debug_macinfo); }
     69        .debug_macro 0 : { *(.debug_macro); }
     70        .debug_macro.dwo 0 : { *(.debug_macro.dwo); }
     71        .debug_names 0 : { *(.debug_names); }
     72        .debug_pubnames 0 : { *(.debug_pubnames); }
     73        .debug_pubtypes 0 : { *(.debug_pubtypes); }
     74        .debug_ranges 0 : { *(.debug_ranges); }
     75        .debug_rnglists 0 : { *(.debug_rnglists); }
     76        .debug_str 0 : { *(.debug_str); }
     77        .debug_str.dwo 0 : { *(.debug_str.dwo); }
     78        .debug_str_offsets 0 : { *(.debug_str_offsets); }
     79        .debug_str_offsets.dwo 0 : { *(.debug_str_offsets.dwo); }
     80        .debug_tu_index 0 : { *(.debug_tu_index); }
     81        .debug_types 0 : { *(.debug_types); }
     82
    5383        /DISCARD/ : {
    5484          *(.mdebug*);
  • kernel/arch/arm64/_link.ld.in

    rd28bdbe rda13982  
    3232                *(COMMON);                      /* global variables */
    3333
    34                 *(.rodata*);
    35                 . = ALIGN(8);
    36                 symbol_table = .;
    37                 *(symtab.*);
     34                *(.rodata .rodata.*);
     35                *(.eh_frame .eh_frame.*);       /* stack unwinding data */
     36                *(.eh_frame_hdr .eh_frame_hdr.*);
    3837
    3938                kdata_end = .;
    4039        }
    4140
    42 #ifdef CONFIG_LINE_DEBUG
    4341        .comment 0 : { *(.comment); }
    4442        .debug_abbrev 0 : { *(.debug_abbrev); }
     43        .debug_abbrev.dwo 0 : { *(      .debug_abbrev.dwo); }
     44        .debug_addr 0 : { *(.debug_addr); }
    4545        .debug_aranges 0 : { *(.debug_aranges); }
     46        .debug_cu_index 0 : { *(.debug_cu_index); }
    4647        .debug_frame 0 : { *(.debug_frame); }
     48        .debug_frame_hdr 0 : { *(.debug_frame_hdr); }
    4749        .debug_info 0 : { *(.debug_info); }
     50        .debug_info.dwo 0 : { *(.debug_info.dwo); }
    4851        .debug_line 0 : { *(.debug_line); }
     52        .debug_line.dwo 0 : { *(.debug_line.dwo); }
     53        .debug_line_str 0 : { *(.debug_line_str); }
    4954        .debug_loc 0 : { *(.debug_loc); }
     55        .debug_loclists 0 : { *(.debug_loclists); }
     56        .debug_loclists.dwo 0 : { *(.debug_loclists.dwo); }
    5057        .debug_macinfo 0 : { *(.debug_macinfo); }
     58        .debug_macro 0 : { *(.debug_macro); }
     59        .debug_macro.dwo 0 : { *(.debug_macro.dwo); }
     60        .debug_names 0 : { *(.debug_names); }
    5161        .debug_pubnames 0 : { *(.debug_pubnames); }
    5262        .debug_pubtypes 0 : { *(.debug_pubtypes); }
    5363        .debug_ranges 0 : { *(.debug_ranges); }
     64        .debug_rnglists 0 : { *(.debug_rnglists); }
    5465        .debug_str 0 : { *(.debug_str); }
    55 #endif
     66        .debug_str.dwo 0 : { *(.debug_str.dwo); }
     67        .debug_str_offsets 0 : { *(.debug_str_offsets); }
     68        .debug_str_offsets.dwo 0 : { *(.debug_str_offsets.dwo); }
     69        .debug_tu_index 0 : { *(.debug_tu_index); }
     70        .debug_types 0 : { *(.debug_types); }
    5671
    5772        /DISCARD/ : {
  • kernel/arch/ia32/_link.ld.in

    rd28bdbe rda13982  
    2929                kdata_start = .;
    3030                *(.data);               /* initialized data */
    31                 *(.rodata .rodata.*);   /* string literals */
     31                *(.rodata .rodata.*);
     32                *(.eh_frame .eh_frame.*);       /* stack unwinding data */
     33                *(.eh_frame_hdr .eh_frame_hdr.*);
    3234                *(COMMON);              /* global variables */
    3335
    3436                /* bss can't be omitted from the ELF image. */
    3537                *(.bss);                /* uninitialized static variables */
    36 
    37                 . = ALIGN(8);
    38                 symbol_table = .;
    39                 *(symtab.*);            /* Symbol table, must be LAST symbol! */
    4038                kdata_end = .;
    4139        }
    4240
    43 #ifdef CONFIG_LINE_DEBUG
    4441        .comment 0 : { *(.comment); }
    4542        .debug_abbrev 0 : { *(.debug_abbrev); }
     43        .debug_abbrev.dwo 0 : { *(      .debug_abbrev.dwo); }
     44        .debug_addr 0 : { *(.debug_addr); }
    4645        .debug_aranges 0 : { *(.debug_aranges); }
     46        .debug_cu_index 0 : { *(.debug_cu_index); }
     47        .debug_frame 0 : { *(.debug_frame); }
     48        .debug_frame_hdr 0 : { *(.debug_frame_hdr); }
    4749        .debug_info 0 : { *(.debug_info); }
     50        .debug_info.dwo 0 : { *(.debug_info.dwo); }
    4851        .debug_line 0 : { *(.debug_line); }
     52        .debug_line.dwo 0 : { *(.debug_line.dwo); }
     53        .debug_line_str 0 : { *(.debug_line_str); }
    4954        .debug_loc 0 : { *(.debug_loc); }
     55        .debug_loclists 0 : { *(.debug_loclists); }
     56        .debug_loclists.dwo 0 : { *(.debug_loclists.dwo); }
     57        .debug_macinfo 0 : { *(.debug_macinfo); }
     58        .debug_macro 0 : { *(.debug_macro); }
     59        .debug_macro.dwo 0 : { *(.debug_macro.dwo); }
     60        .debug_names 0 : { *(.debug_names); }
    5061        .debug_pubnames 0 : { *(.debug_pubnames); }
    5162        .debug_pubtypes 0 : { *(.debug_pubtypes); }
    5263        .debug_ranges 0 : { *(.debug_ranges); }
     64        .debug_rnglists 0 : { *(.debug_rnglists); }
    5365        .debug_str 0 : { *(.debug_str); }
    54 #endif
     66        .debug_str.dwo 0 : { *(.debug_str.dwo); }
     67        .debug_str_offsets 0 : { *(.debug_str_offsets); }
     68        .debug_str_offsets.dwo 0 : { *(.debug_str_offsets.dwo); }
     69        .debug_tu_index 0 : { *(.debug_tu_index); }
     70        .debug_types 0 : { *(.debug_types); }
    5571
    5672        /DISCARD/ : {
  • kernel/arch/ia64/_link.ld.in

    rd28bdbe rda13982  
    2424                kdata_start = .;
    2525                *(K_DATA_START)
    26                 *(.rodata .rodata.*)
     26                *(.rodata .rodata.*);
     27                *(.eh_frame .eh_frame.*);       /* stack unwinding data */
     28                *(.eh_frame_hdr .eh_frame_hdr.*);
    2729                *(.opd)
    2830                *(.data .data.*)
     
    3436                *(.bss)
    3537                *(COMMON);
    36 
    37                 . = ALIGN(8);
    38                 symbol_table = .;
    39                 *(symtab.*);            /* Symbol table, must be LAST symbol!*/
    40 
    4138                kdata_end = .;
    4239        }
     40
     41        .comment 0 : { *(.comment); }
     42        .debug_abbrev 0 : { *(.debug_abbrev); }
     43        .debug_abbrev.dwo 0 : { *(      .debug_abbrev.dwo); }
     44        .debug_addr 0 : { *(.debug_addr); }
     45        .debug_aranges 0 : { *(.debug_aranges); }
     46        .debug_cu_index 0 : { *(.debug_cu_index); }
     47        .debug_frame 0 : { *(.debug_frame); }
     48        .debug_frame_hdr 0 : { *(.debug_frame_hdr); }
     49        .debug_info 0 : { *(.debug_info); }
     50        .debug_info.dwo 0 : { *(.debug_info.dwo); }
     51        .debug_line 0 : { *(.debug_line); }
     52        .debug_line.dwo 0 : { *(.debug_line.dwo); }
     53        .debug_line_str 0 : { *(.debug_line_str); }
     54        .debug_loc 0 : { *(.debug_loc); }
     55        .debug_loclists 0 : { *(.debug_loclists); }
     56        .debug_loclists.dwo 0 : { *(.debug_loclists.dwo); }
     57        .debug_macinfo 0 : { *(.debug_macinfo); }
     58        .debug_macro 0 : { *(.debug_macro); }
     59        .debug_macro.dwo 0 : { *(.debug_macro.dwo); }
     60        .debug_names 0 : { *(.debug_names); }
     61        .debug_pubnames 0 : { *(.debug_pubnames); }
     62        .debug_pubtypes 0 : { *(.debug_pubtypes); }
     63        .debug_ranges 0 : { *(.debug_ranges); }
     64        .debug_rnglists 0 : { *(.debug_rnglists); }
     65        .debug_str 0 : { *(.debug_str); }
     66        .debug_str.dwo 0 : { *(.debug_str.dwo); }
     67        .debug_str_offsets 0 : { *(.debug_str_offsets); }
     68        .debug_str_offsets.dwo 0 : { *(.debug_str_offsets.dwo); }
     69        .debug_tu_index 0 : { *(.debug_tu_index); }
     70        .debug_types 0 : { *(.debug_types); }
    4371
    4472        /DISCARD/ : {
  • kernel/arch/mips32/_link.ld.in

    rd28bdbe rda13982  
    3434                kdata_start = .;
    3535                *(.data);                       /* initialized data */
    36                 *(.rodata*);
     36                *(.rodata .rodata.*);
     37                *(.eh_frame .eh_frame.*);       /* stack unwinding data */
     38                *(.eh_frame_hdr .eh_frame_hdr.*);
    3739                *(.sdata);
    3840                *(.reginfo);
     
    4143                *(.bss);                        /* uninitialized static variables */
    4244                *(COMMON);                      /* global variables */
    43                 . = ALIGN(8);
    44                 symbol_table = .;
    45                 *(symtab.*);
    4645        }
    4746        _gp = . + 0x8000;
     
    5049
    5150        kdata_end = .;
     51
     52        .comment 0 : { *(.comment); }
     53        .debug_abbrev 0 : { *(.debug_abbrev); }
     54        .debug_abbrev.dwo 0 : { *(      .debug_abbrev.dwo); }
     55        .debug_addr 0 : { *(.debug_addr); }
     56        .debug_aranges 0 : { *(.debug_aranges); }
     57        .debug_cu_index 0 : { *(.debug_cu_index); }
     58        .debug_frame 0 : { *(.debug_frame); }
     59        .debug_frame_hdr 0 : { *(.debug_frame_hdr); }
     60        .debug_info 0 : { *(.debug_info); }
     61        .debug_info.dwo 0 : { *(.debug_info.dwo); }
     62        .debug_line 0 : { *(.debug_line); }
     63        .debug_line.dwo 0 : { *(.debug_line.dwo); }
     64        .debug_line_str 0 : { *(.debug_line_str); }
     65        .debug_loc 0 : { *(.debug_loc); }
     66        .debug_loclists 0 : { *(.debug_loclists); }
     67        .debug_loclists.dwo 0 : { *(.debug_loclists.dwo); }
     68        .debug_macinfo 0 : { *(.debug_macinfo); }
     69        .debug_macro 0 : { *(.debug_macro); }
     70        .debug_macro.dwo 0 : { *(.debug_macro.dwo); }
     71        .debug_names 0 : { *(.debug_names); }
     72        .debug_pubnames 0 : { *(.debug_pubnames); }
     73        .debug_pubtypes 0 : { *(.debug_pubtypes); }
     74        .debug_ranges 0 : { *(.debug_ranges); }
     75        .debug_rnglists 0 : { *(.debug_rnglists); }
     76        .debug_str 0 : { *(.debug_str); }
     77        .debug_str.dwo 0 : { *(.debug_str.dwo); }
     78        .debug_str_offsets 0 : { *(.debug_str_offsets); }
     79        .debug_str_offsets.dwo 0 : { *(.debug_str_offsets.dwo); }
     80        .debug_tu_index 0 : { *(.debug_tu_index); }
     81        .debug_types 0 : { *(.debug_types); }
    5282
    5383        /DISCARD/ : {
  • kernel/arch/ppc32/_link.ld.in

    rd28bdbe rda13982  
    3434                *(K_DATA_START);
    3535                *(.rodata .rodata.*);
     36                *(.eh_frame .eh_frame.*);       /* stack unwinding data */
     37                *(.eh_frame_hdr .eh_frame_hdr.*);
    3638                *(.data);       /* initialized data */
    3739                *(.sdata);
     
    4042                *(.bss);        /* uninitialized static variables */
    4143                *(COMMON);      /* global variables */
    42 
    43                 . = ALIGN(8);
    44                 symbol_table = .;
    45                 *(symtab.*);    /* Symbol table, must be LAST symbol!*/
    46 
    4744                kdata_end = .;
    4845        }
     46
     47        .comment 0 : { *(.comment); }
     48        .debug_abbrev 0 : { *(.debug_abbrev); }
     49        .debug_abbrev.dwo 0 : { *(      .debug_abbrev.dwo); }
     50        .debug_addr 0 : { *(.debug_addr); }
     51        .debug_aranges 0 : { *(.debug_aranges); }
     52        .debug_cu_index 0 : { *(.debug_cu_index); }
     53        .debug_frame 0 : { *(.debug_frame); }
     54        .debug_frame_hdr 0 : { *(.debug_frame_hdr); }
     55        .debug_info 0 : { *(.debug_info); }
     56        .debug_info.dwo 0 : { *(.debug_info.dwo); }
     57        .debug_line 0 : { *(.debug_line); }
     58        .debug_line.dwo 0 : { *(.debug_line.dwo); }
     59        .debug_line_str 0 : { *(.debug_line_str); }
     60        .debug_loc 0 : { *(.debug_loc); }
     61        .debug_loclists 0 : { *(.debug_loclists); }
     62        .debug_loclists.dwo 0 : { *(.debug_loclists.dwo); }
     63        .debug_macinfo 0 : { *(.debug_macinfo); }
     64        .debug_macro 0 : { *(.debug_macro); }
     65        .debug_macro.dwo 0 : { *(.debug_macro.dwo); }
     66        .debug_names 0 : { *(.debug_names); }
     67        .debug_pubnames 0 : { *(.debug_pubnames); }
     68        .debug_pubtypes 0 : { *(.debug_pubtypes); }
     69        .debug_ranges 0 : { *(.debug_ranges); }
     70        .debug_rnglists 0 : { *(.debug_rnglists); }
     71        .debug_str 0 : { *(.debug_str); }
     72        .debug_str.dwo 0 : { *(.debug_str.dwo); }
     73        .debug_str_offsets 0 : { *(.debug_str_offsets); }
     74        .debug_str_offsets.dwo 0 : { *(.debug_str_offsets.dwo); }
     75        .debug_tu_index 0 : { *(.debug_tu_index); }
     76        .debug_types 0 : { *(.debug_types); }
    4977
    5078        /DISCARD/ : {
  • kernel/arch/riscv64/_link.ld.in

    rd28bdbe rda13982  
    2424                kdata_start = .;
    2525                *(.data);                       /* initialized data */
    26                 *(.rodata*);
     26                *(.rodata .rodata.*);
     27                *(.eh_frame .eh_frame.*);       /* stack unwinding data */
     28                *(.eh_frame_hdr .eh_frame_hdr.*);
    2729                *(.sdata);
    2830                *(.reginfo);
     
    3133                *(.bss);                        /* uninitialized static variables */
    3234                *(COMMON);                      /* global variables */
    33                 . = ALIGN(8);
    34                 symbol_table = .;
    35                 *(symtab.*);
    3635                kdata_end = .;
    3736        }
     37
     38        .comment 0 : { *(.comment); }
     39        .debug_abbrev 0 : { *(.debug_abbrev); }
     40        .debug_abbrev.dwo 0 : { *(      .debug_abbrev.dwo); }
     41        .debug_addr 0 : { *(.debug_addr); }
     42        .debug_aranges 0 : { *(.debug_aranges); }
     43        .debug_cu_index 0 : { *(.debug_cu_index); }
     44        .debug_frame 0 : { *(.debug_frame); }
     45        .debug_frame_hdr 0 : { *(.debug_frame_hdr); }
     46        .debug_info 0 : { *(.debug_info); }
     47        .debug_info.dwo 0 : { *(.debug_info.dwo); }
     48        .debug_line 0 : { *(.debug_line); }
     49        .debug_line.dwo 0 : { *(.debug_line.dwo); }
     50        .debug_line_str 0 : { *(.debug_line_str); }
     51        .debug_loc 0 : { *(.debug_loc); }
     52        .debug_loclists 0 : { *(.debug_loclists); }
     53        .debug_loclists.dwo 0 : { *(.debug_loclists.dwo); }
     54        .debug_macinfo 0 : { *(.debug_macinfo); }
     55        .debug_macro 0 : { *(.debug_macro); }
     56        .debug_macro.dwo 0 : { *(.debug_macro.dwo); }
     57        .debug_names 0 : { *(.debug_names); }
     58        .debug_pubnames 0 : { *(.debug_pubnames); }
     59        .debug_pubtypes 0 : { *(.debug_pubtypes); }
     60        .debug_ranges 0 : { *(.debug_ranges); }
     61        .debug_rnglists 0 : { *(.debug_rnglists); }
     62        .debug_str 0 : { *(.debug_str); }
     63        .debug_str.dwo 0 : { *(.debug_str.dwo); }
     64        .debug_str_offsets 0 : { *(.debug_str_offsets); }
     65        .debug_str_offsets.dwo 0 : { *(.debug_str_offsets.dwo); }
     66        .debug_tu_index 0 : { *(.debug_tu_index); }
     67        .debug_types 0 : { *(.debug_types); }
    3868
    3969        /DISCARD/ : {
  • kernel/arch/sparc64/_link.ld.in

    rd28bdbe rda13982  
    2323                *(K_DATA_START)
    2424                *(.rodata .rodata.*);
     25                *(.eh_frame .eh_frame.*);       /* stack unwinding data */
     26                *(.eh_frame_hdr .eh_frame_hdr.*);
    2527                *(.data);                   /* initialized data */
    2628                *(.sdata);
     
    3032                *(.bss);                    /* uninitialized static variables */
    3133                *(COMMON);                  /* global variables */
    32 
    33                 . = ALIGN(8);
    34                 symbol_table = .;
    35                 *(symtab.*);                /* Symbol table, must be LAST symbol!*/
    36 
    3734                kdata_end = .;
    3835        }
     36
     37        .comment 0 : { *(.comment); }
     38        .debug_abbrev 0 : { *(.debug_abbrev); }
     39        .debug_abbrev.dwo 0 : { *(      .debug_abbrev.dwo); }
     40        .debug_addr 0 : { *(.debug_addr); }
     41        .debug_aranges 0 : { *(.debug_aranges); }
     42        .debug_cu_index 0 : { *(.debug_cu_index); }
     43        .debug_frame 0 : { *(.debug_frame); }
     44        .debug_frame_hdr 0 : { *(.debug_frame_hdr); }
     45        .debug_info 0 : { *(.debug_info); }
     46        .debug_info.dwo 0 : { *(.debug_info.dwo); }
     47        .debug_line 0 : { *(.debug_line); }
     48        .debug_line.dwo 0 : { *(.debug_line.dwo); }
     49        .debug_line_str 0 : { *(.debug_line_str); }
     50        .debug_loc 0 : { *(.debug_loc); }
     51        .debug_loclists 0 : { *(.debug_loclists); }
     52        .debug_loclists.dwo 0 : { *(.debug_loclists.dwo); }
     53        .debug_macinfo 0 : { *(.debug_macinfo); }
     54        .debug_macro 0 : { *(.debug_macro); }
     55        .debug_macro.dwo 0 : { *(.debug_macro.dwo); }
     56        .debug_names 0 : { *(.debug_names); }
     57        .debug_pubnames 0 : { *(.debug_pubnames); }
     58        .debug_pubtypes 0 : { *(.debug_pubtypes); }
     59        .debug_ranges 0 : { *(.debug_ranges); }
     60        .debug_rnglists 0 : { *(.debug_rnglists); }
     61        .debug_str 0 : { *(.debug_str); }
     62        .debug_str.dwo 0 : { *(.debug_str.dwo); }
     63        .debug_str_offsets 0 : { *(.debug_str_offsets); }
     64        .debug_str_offsets.dwo 0 : { *(.debug_str_offsets.dwo); }
     65        .debug_tu_index 0 : { *(.debug_tu_index); }
     66        .debug_types 0 : { *(.debug_types); }
    3967
    4068        /DISCARD/ : {
Note: See TracChangeset for help on using the changeset viewer.