Changeset 2eadda9 in mainline for uspace/lib/c/arch/mips32


Ignore:
Timestamp:
2018-07-11T17:45:30Z (8 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
99d3123
Parents:
c2c4127
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-11 17:08:12)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-11 17:45:30)
Message:

Remove undefined references to main program from shared libc.

Location:
uspace/lib/c/arch/mips32
Files:
2 edited

Legend:

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

    rc2c4127 r2eadda9  
    6262
    6363        .init_array : {
     64#ifndef SHLIB
    6465                PROVIDE_HIDDEN (__init_array_start = .);
     66#endif
    6567                KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
    6668                KEEP (*(.init_array .ctors))
     69#ifndef SHLIB
    6770                PROVIDE_HIDDEN (__init_array_end = .);
     71#endif
    6872        }
    6973
    7074        .fini_array : {
     75#ifndef SHLIB
    7176                PROVIDE_HIDDEN (__fini_array_start = .);
     77#endif
    7278                KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))
    7379                KEEP (*(.fini_array .dtors))
     80#ifndef SHLIB
    7481                PROVIDE_HIDDEN (__fini_array_end = .);
     82#endif
    7583        }
    7684
  • uspace/lib/c/arch/mips32/src/entry.S

    rc2c4127 r2eadda9  
    3131
    3232.text
    33 .section .init, "ax"
    3433
    3534.set noreorder
     
    5150        .cprestore 16
    5251
    53         # Pass pcb_ptr to __libc_main() as the first argument. It is already
     52        # Pass pcb_ptr to __c_start() as the first argument. It is already
    5453        # in $a0. As the first argument is passed in $a0, no operation
    5554        # is needed.
    5655
    57         jal __libc_main
     56        jal __c_start
    5857        nop
    5958
Note: See TracChangeset for help on using the changeset viewer.