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


Ignore:
Timestamp:
2018-07-11T17:45:30Z (7 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/ppc32
Files:
2 edited

Legend:

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

    rc2c4127 r2eadda9  
    5555
    5656        .init_array : {
     57#ifndef SHLIB
    5758                PROVIDE_HIDDEN (__init_array_start = .);
     59#endif
    5860                KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
    5961                KEEP (*(.init_array .ctors))
     62#ifndef SHLIB
    6063                PROVIDE_HIDDEN (__init_array_end = .);
     64#endif
    6165        }
    6266
    6367        .fini_array : {
     68#ifndef SHLIB
    6469                PROVIDE_HIDDEN (__fini_array_start = .);
     70#endif
    6571                KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))
    6672                KEEP (*(.fini_array .dtors))
     73#ifndef SHLIB
    6774                PROVIDE_HIDDEN (__fini_array_end = .);
     75#endif
    6876        }
    6977
  • uspace/lib/c/arch/ppc32/src/entry.S

    rc2c4127 r2eadda9  
    2929#include <abi/asmtool.h>
    3030
    31 .section .init, "ax"
     31.text
    3232
    3333.org 0
     
    4545        stwu %r1, -16(%r1)
    4646
    47         # Pass the PCB pointer to __libc_main() as the first argument.
     47        # Pass the PCB pointer to __c_start() as the first argument.
    4848        # The first argument is passed in r3.
    4949        mr %r3, %r6
    50         bl __libc_main
     50        bl __c_start
Note: See TracChangeset for help on using the changeset viewer.