Update mipsel and mips64el multilib lib* and lib-bootstrap

Needed by:
  https://android-review.googlesource.com/#/c/101410
  https://android-review.googlesource.com/#/c/101022

Change-Id: Ia5f96fa2ee91984cba12983c9fb01a6b2e584209
This commit is contained in:
Andrew Hsieh
2014-07-09 08:48:52 +08:00
parent 37351fdd10
commit d10a35fe44
68 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1 @@
lib

View File

@@ -0,0 +1 @@
../../android-L/arch-mips64/libr6

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -49,6 +49,8 @@ __LIBC_HIDDEN__ void do_mips_start(void *raw_args) {
__libc_init(raw_args, NULL, &main, &array); __libc_init(raw_args, NULL, &main, &array);
} }
#if defined(__LP64__)
/* /*
* This function prepares the return address with a branch-and-link * This function prepares the return address with a branch-and-link
* instruction (bal) and then uses a .cpsetup to compute the Global * instruction (bal) and then uses a .cpsetup to compute the Global
@@ -90,5 +92,50 @@ __asm__ (
" .set pop \n" " .set pop \n"
); );
#else
/*
* This function prepares the return address with a branch-and-link
* instruction (bal) and then uses a .cpload to compute the Global
* Offset Table (GOT) pointer ($gp). The $gp is then used to load
* the address of _do_start() into $t9 just before calling it.
* Terminating the stack with a NULL return address.
*/
__asm__ (
" .set push \n"
" \n"
" .text \n"
" .align 4 \n"
" .type __start,@function \n"
" .globl __start \n"
" .globl _start \n"
" \n"
" .ent __start \n"
"__start: \n"
" _start: \n"
" .frame $sp,32,$ra \n"
" .mask 0x80000000,-4 \n"
" \n"
" .set noreorder \n"
" bal 1f \n"
" nop \n"
"1: \n"
" .cpload $ra \n"
" .set reorder \n"
" \n"
" move $a0, $sp \n"
" addiu $sp, $sp, (-32) \n"
" sw $0, 28($sp) \n"
" la $t9, do_mips_start \n"
" jalr $t9 \n"
" \n"
"2: b 2b \n"
" .end __start \n"
" \n"
" .set pop \n"
);
#endif
#include "../../arch-common/bionic/__dso_handle.h" #include "../../arch-common/bionic/__dso_handle.h"
#include "atexit.h" #include "atexit.h"