#!/bin/sh# program# <- liba.so# <- libb.so# <- libb.so# Expected: symbol in program resolves to weak alias in liba.so,# not to symbol in libb.so.. ./test_setup# create libb.socat > libb.c << EOIint a() { return 4; }EOI# buildcompile_lib -o libb.so libb.c# create liba.socat > liba.c << EOIint __a() { return 2; }int a() __attribute__((weak, alias("__a")));EOI# buildcompile_lib -o liba.so liba.c ./libb.so# create programcat > program.c << EOIextern int a();intmain(){return a();}EOI# buildcompile_program -o program program.c ./liba.so ./libb.so# runtest_run_ok ./program 2