Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9bcdbc5 in mainline


Ignore:
Timestamp:
2012-07-31T14:59:17Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
master
Children:
47a728e1, d4112ba
Parents:
31e6aa7
Message:

make sure the code in .init is always aligned reasonably
(despite .interp section being also present in the text segment)

Location:
uspace/lib/c/arch
Files:
9 edited

Legend:

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

    r31e6aa7 r9bcdbc5  
    2222        . = 0x1000 + SIZEOF_HEADERS;
    2323#endif
     24       
     25        /* Make sure the code is aligned reasonably */
     26        . = ALIGN(., 16);
    2427       
    2528        .text : {
  • uspace/lib/c/arch/amd64/_link.ld.in

    r31e6aa7 r9bcdbc5  
    2323        . = 0x1000 + SIZEOF_HEADERS;
    2424#endif
     25       
     26        /* Make sure the code is aligned reasonably */
     27        . = ALIGN(., 16);
    2528       
    2629        .init : {
  • uspace/lib/c/arch/arm32/_link.ld.in

    r31e6aa7 r9bcdbc5  
    2222        . = 0x1000 + SIZEOF_HEADERS;
    2323#endif
     24       
     25        /* Make sure the code is aligned reasonably */
     26        . = ALIGN(., 8);
    2427       
    2528        .init : {
  • uspace/lib/c/arch/ia32/_link.ld.in

    r31e6aa7 r9bcdbc5  
    3131#endif
    3232       
     33        /* Make sure the code is aligned reasonably */
     34        . = ALIGN(., 16);
     35       
    3336        .init : {
    3437                *(.init);
     
    3942                *(.rodata .rodata.*);
    4043        } :text
    41 
     44       
    4245#if defined(SHLIB) || defined(DLEXE)
    4346        .rel.plt : {
     
    8285#if defined(SHLIB) || defined(DLEXE)
    8386        .data.rel : {
    84                 *(.data.rel .data.rel.*);
     87                *(.data.rel .data.rel.*);
    8588        } :data
    86 
     89       
    8790        .got : {
    88                 *(.got);
     91                *(.got);
    8992        } :data
     93       
    9094        .got.plt : {
    91                 *(.got.plt);
     95                *(.got.plt);
    9296        } :data
    9397#endif
  • uspace/lib/c/arch/ia64/_link.ld.in

    r31e6aa7 r9bcdbc5  
    2323#endif
    2424       
    25         /*
    26          * XXX This is just a work around. Problem: .init section does not
    27          * have the proper alignment.
    28          */
     25        /* Make sure the code is aligned reasonably */
    2926        . = ALIGN(., 16);
    3027       
  • uspace/lib/c/arch/mips32/_link.ld.in

    r31e6aa7 r9bcdbc5  
    2222        . = 0x4000 + SIZEOF_HEADERS;
    2323#endif
     24       
     25        /* Make sure the code is aligned reasonably */
     26        . = ALIGN(., 16);
    2427       
    2528        .init : {
  • uspace/lib/c/arch/mips64/_link.ld.in

    r31e6aa7 r9bcdbc5  
    2323        . = 0x4000 + SIZEOF_HEADERS;
    2424#endif
     25       
     26        /* Make sure the code is aligned reasonably */
     27        . = ALIGN(., 16);
    2528       
    2629        .init : {
  • uspace/lib/c/arch/ppc32/_link.ld.in

    r31e6aa7 r9bcdbc5  
    2323        . = 0x1000 + SIZEOF_HEADERS;
    2424#endif
     25       
     26        /* Make sure the code is aligned reasonably */
     27        . = ALIGN(., 4);
    2528       
    2629        .init : {
  • uspace/lib/c/arch/sparc64/_link.ld.in

    r31e6aa7 r9bcdbc5  
    2222        . = 0x4000 + SIZEOF_HEADERS;
    2323#endif
     24       
     25        /* Make sure the code is aligned reasonably */
     26        . = ALIGN(., 16);
    2427       
    2528        .init : {
Note: See TracChangeset for help on using the changeset viewer.