Skip to content

Commit 25fe9a9

Browse files
authored
Merge pull request #12 from replit/th-cleanup
Some cleanup missed in https://github.com/replit/replit_rtld_loader/p…
2 parents f455cd6 + a22bae4 commit 25fe9a9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test: binsearch_lookup_test.bin string_funs_test.bin env_parser_test.bin dynamic
99
python3 test/dynamic_lookup_test.py
1010
python3 test/integration_tests.py
1111

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

1515
src/lookup_by_channel.generated.c: scripts/gen_lookup_by_channel.py $(shell find registry -type f)

src/rtld_loader.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Entrypoint of the rtld loader. It uses the rtld-audit API provided by Linux:
1313
#include "dynamic_lookup.h"
1414
#include "env_parser.h"
1515
#include "logging.h"
16-
#include "lookup_by_channel.generated.h"
1716
#include "string_funs.h"
1817
#include "syscalls.h"
1918

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

65+
unsigned int la_objopen(struct link_map* map, Lmid_t lmid, uintptr_t* cookie) {
66+
log_debug("la_objopen(");
67+
log_debug(map->l_name);
68+
log_debug(")\n");
69+
return 0;
70+
}
71+
6672
void la_preinit(uintptr_t* cookie) {
6773
log_info("la_preinit()\n");
6874
}

0 commit comments

Comments
 (0)