Changeset 4ddbea7 in mainline


Ignore:
Timestamp:
2011-04-30T14:49:50Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
729f774f
Parents:
f798178
Message:

Bring linker scripts closer to the default one (debug, tbss).

Location:
uspace/lib/c
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/ppc32/_link.ld.in

    rf798178 r4ddbea7  
    1414SECTIONS {
    1515#ifdef LOADER
    16         .itnerp : {
     16        .interp : {
    1717                *(.interp);
    1818        } :interp
  • uspace/lib/c/shared/arch/ia32/_lib.ld.in

    rf798178 r4ddbea7  
    7171                _tdata_start = .;
    7272                *(.tdata);
     73                *(.gnu.linkonce.tb.*);
    7374                _tdata_end = .;
    74         } :data
    75         .tbss : {
    7675                _tbss_start = .;
    7776                *(.tbss);
    7877                _tbss_end = .;
    7978        } :data
    80         _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
    81        
     79        _tls_alignment = ALIGNOF(.tdata);
     80
     81#ifdef CONFIG_LINE_DEBUG
     82        .comment 0 : { *(.comment); } :debug
     83        .debug_abbrev 0 : { *(.debug_abbrev); } :debug
     84        .debug_aranges 0 : { *(.debug_aranges); } :debug
     85        .debug_info 0 : { *(.debug_info); } :debug
     86        .debug_line 0 : { *(.debug_line); } :debug
     87        .debug_loc 0 : { *(.debug_loc); } :debug
     88        .debug_pubnames 0 : { *(.debug_pubnames); } :debug
     89        .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
     90        .debug_ranges 0 : { *(.debug_ranges); } :debug
     91        .debug_str 0 : { *(.debug_str); } :debug
     92#endif
    8293        . = ALIGN(0x1000);
    8394        _heap = .;
  • uspace/lib/c/shared/arch/ia32/_link.ld.in

    rf798178 r4ddbea7  
    7777                _tdata_start = .;
    7878                *(.tdata);
     79                *(.gnu.linkonce.tb.*);
    7980                _tdata_end = .;
    80         } :data
    81         .tbss : {
    8281                _tbss_start = .;
    8382                *(.tbss);
    8483                _tbss_end = .;
    8584        } :data
    86         _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
    87 */     
     85        _tls_alignment = ALIGNOF(.tdata);
     86*/
     87
     88#ifdef CONFIG_LINE_DEBUG
     89        .comment 0 : { *(.comment); } :debug
     90        .debug_abbrev 0 : { *(.debug_abbrev); } :debug
     91        .debug_aranges 0 : { *(.debug_aranges); } :debug
     92        .debug_info 0 : { *(.debug_info); } :debug
     93        .debug_line 0 : { *(.debug_line); } :debug
     94        .debug_loc 0 : { *(.debug_loc); } :debug
     95        .debug_pubnames 0 : { *(.debug_pubnames); } :debug
     96        .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
     97        .debug_ranges 0 : { *(.debug_ranges); } :debug
     98        .debug_str 0 : { *(.debug_str); } :debug
     99#endif
    88100        /DISCARD/ : {
    89101                *(.comment);
  • uspace/lib/c/shared/arch/mips32/_lib.ld.in

    rf798178 r4ddbea7  
    1818                *(.MIPS.stubs);
    1919        } :text
    20 
     20       
    2121        .hash : {
    2222                *(.hash);
    2323        } : text
    24 
     24       
    2525        .reginfo : {
    2626                *(.reginfo);
    2727        } : text
    28 
     28       
    2929        .rel.plt : {
    3030                *(.rel.plt);
     
    3737                *(.rel.*);
    3838        } :text
    39 
     39       
    4040        .plt : {
    4141                *(.plt);
    4242        } : text
    43 
     43       
    4444        .dynsym : {
    4545                *(.dynsym);
    4646        } : text
    47 
     47       
    4848        .dynstr : {
    4949                *(.dynstr);
    5050        } : text
    51 
     51       
    5252        . = . + 0x4000;
    53 
     53       
    5454        .dynamic : {
    5555                *(.dynamic);
    5656        } :data :dynamic
    57 
     57       
    5858        .data : {
    5959                *(.data);
    6060                *(.data.rel*);
    6161        } :data
    62 
     62       
    6363        .got : {
    6464                _gp = .;
    6565                *(.got);
    6666        } :data
    67 
     67       
    6868        .tdata : {
    6969                _tdata_start = .;
     
    7171                _tdata_end = .;
    7272        } :data
     73       
    7374        .tbss : {
    7475                _tbss_start = .;
     
    7677                _tbss_end = .;
    7778        } :data
     79       
    7880        _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
    79 
     81       
    8082        .sbss : {
    8183                *(.scommon);
    8284                *(.sbss);
    83         }       
     85        }
     86       
    8487        .bss : {
    8588                *(.bss);
    8689                *(COMMON);
    8790        } :data
    88 
     91       
    8992        . = ALIGN(0x4000);
    9093        _heap = .;
  • uspace/lib/c/shared/arch/mips32/_link.ld.in

    rf798178 r4ddbea7  
    1111SECTIONS {
    1212        . = 0x4000 + SIZEOF_HEADERS;
    13 
     13       
    1414        .interp : {
    1515                *(.interp);
     
    2727                *(.MIPS.stubs);
    2828        } :text
    29 
     29       
    3030        .hash : {
    3131                *(.hash);
    3232        } : text
    33 
     33       
    3434        .reginfo : {
    3535                *(.reginfo);
    3636        } : text
    37 
     37       
    3838        .rel.plt : {
    3939                *(.rel.plt);
     
    5858                *(.dynstr);
    5959        } : text
    60 
     60       
    6161        . = . + 0x4000;
    62 
     62       
    6363        .dynamic : {
    6464                *(.dynamic);
    6565        } :data :dynamic
    66 
     66       
    6767        .data : {
    6868                *(.data);
    6969                *(.data.rel*);
    7070        } :data
    71 
     71       
    7272        .got : {
    7373                _gp = .;
    7474                *(.got);
    7575        } :data
     76       
    7677/*
    7778        .tdata : {
     
    8081                _tdata_end = .;
    8182        } :data
     83       
    8284        .tbss : {
    8385                _tbss_start = .;
     
    8587                _tbss_end = .;
    8688        } :data
     89       
    8790        _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
    8891*/
     92       
    8993        .sbss : {
    9094                *(.scommon);
    9195                *(.sbss);
    92         }       
     96        }
     97       
    9398        .bss : {
    9499                *(.bss);
    95100                *(COMMON);
    96101        } :data
    97 
     102       
    98103        . = ALIGN(0x4000);
    99104        _heap = .;
  • uspace/lib/c/shared/arch/ppc32/_lib.ld.in

    rf798178 r4ddbea7  
    99SECTIONS {
    1010        . = 0x1000 + SIZEOF_HEADERS;
    11 
     11       
    1212        .init : {
    1313                *(.init);
     
    1818                *(.rodata*);
    1919        } :text
    20 
     20       
    2121        .rel.plt : {
    2222                *(.rel.plt);
     
    2929                *(.rel.*);
    3030        } :text
    31 
     31       
    3232        .dynsym : {
    3333                *(.dynsym);
    3434        } :text
    35 
     35       
    3636        .dynstr : {
    3737                *(.dynstr);
    3838        } :text
    39 
     39       
    4040        . = . + 0x1000;
    41 
     41       
    4242        .dynamic : {
    4343                *(.dynamic);
    4444        } :data :dynamic
    45 
     45       
    4646        .data : {
    4747                *(.data);
    4848                *(.sdata);
    4949        } :data
    50 
     50       
    5151        .data.rel : {
    5252                *(.data.rel);
    5353        } :data
    54 
     54       
    5555        .got : {
    5656                *(.got);
     
    5959                *(.got.plt);
    6060        } :data
    61 
     61       
    6262        .tdata : {
    6363                _tdata_start = .;
    6464                *(.tdata);
    6565                _tdata_end = .;
    66         } :data
    67         .tbss : {
    6866                _tbss_start = .;
    6967                *(.tbss);
    7068                _tbss_end = .;
    7169        } :data
    72         _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
     70       
     71        _tls_alignment = ALIGNOF(.tdata);
     72       
    7373        .bss : {
    7474                *(.sbss);
     
    7676                *(.bss);
    7777        } :data
    78 
     78       
    7979        .plt : {
    8080                *(.plt);
    8181        } :data
    82 
     82       
    8383        . = ALIGN(0x1000);
    8484        _heap = .;
  • uspace/lib/c/shared/arch/ppc32/_link.ld.in

    rf798178 r4ddbea7  
    1111SECTIONS {
    1212        . = 0x1000 + SIZEOF_HEADERS;
    13 
     13       
    1414        .interp : {
    1515                *(.interp);
    1616        } :text :interp
    17 
     17       
    1818        /* Align on word boundary -- instructions will follow. */
    1919        . = ALIGN(4);
    20 
     20       
    2121        .init : {
    2222                *(.init);
     
    2727                *(.rodata*);
    2828        } :text
    29 
     29       
    3030        .rel.plt : {
    3131                *(.rel.plt);
     
    3838                *(.rel.*);
    3939        } :text
    40 
     40       
    4141        .dynsym : {
    4242                *(.dynsym);
    4343        } :text
    44 
     44       
    4545        .dynstr : {
    4646                *(.dynstr);
    4747        } :text
    48 
     48       
    4949        . = . + 0x1000;
    50 
     50       
    5151        .dynamic : {
    5252                *(.dynamic);
    5353        } :data :dynamic
    54 
     54       
    5555        .data : {
    5656                *(.data);
    5757                *(.sdata);
    5858        } :data
    59 
     59       
    6060        .data.rel : {
    6161                *(.data.rel);
    6262        } :data
    63 
     63       
    6464        .got : {
    6565                *(.got);
     
    6868                *(.got.plt);
    6969        } :data
    70 
     70       
    7171/*      .tdata : {
    7272                _tdata_start = .;
    7373                *(.tdata);
    7474                _tdata_end = .;
    75         } :data
    76         .tbss : {
    7775                _tbss_start = .;
    7876                *(.tbss);
    7977                _tbss_end = .;
    8078        } :data
    81         _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
     79       
     80        _tls_alignment = ALIGNOF(.tdata);
     81       
    8282*/
    8383        .bss : {
     
    8686                *(.bss);
    8787        } :data
    88 
     88       
    8989        .plt : {
    9090                *(.plt);
    9191        } :data
    92 
     92       
    9393        /DISCARD/ : {
    9494                *(.comment);
    9595                *(.gnu.attributes);
    9696        }
    97 
     97       
    9898        . = ALIGN(0x1000);
    9999        _heap = .;
Note: See TracChangeset for help on using the changeset viewer.