Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test: binsearch_lookup_test.bin string_funs_test.bin env_parser_test.bin dynamic
python3 test/dynamic_lookup_test.py
python3 test/integration_tests.py

rtld_loader.so: $(shell find src -type f) src/lookup_by_channel.generated.c
rtld_loader.so: $(shell find src -type f)
gcc -shared -nostdlib -fno-stack-protector -fPIC -O2 src/*.c -o rtld_loader.so

src/lookup_by_channel.generated.c: scripts/gen_lookup_by_channel.py $(shell find registry -type f)
Expand Down
8 changes: 7 additions & 1 deletion src/rtld_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Entrypoint of the rtld loader. It uses the rtld-audit API provided by Linux:
#include "dynamic_lookup.h"
#include "env_parser.h"
#include "logging.h"
#include "lookup_by_channel.generated.h"
#include "string_funs.h"
#include "syscalls.h"

Expand Down Expand Up @@ -63,6 +62,13 @@ char* la_objsearch(const char* name, uintptr_t* cookie, unsigned int flag) {
return (char*)name;
}

unsigned int la_objopen(struct link_map* map, Lmid_t lmid, uintptr_t* cookie) {
log_debug("la_objopen(");
log_debug(map->l_name);
log_debug(")\n");
return 0;
}

void la_preinit(uintptr_t* cookie) {
log_info("la_preinit()\n");
}