diff options
| author | Jessica Clarke <jrtc27@FreeBSD.org> | 2025-05-28 20:22:15 +0000 |
|---|---|---|
| committer | Jessica Clarke <jrtc27@FreeBSD.org> | 2025-05-28 20:22:15 +0000 |
| commit | 03801d449a3731cb643a51625c8c4d5d07b2e54c (patch) | |
| tree | a22641794b1feafae13f20a267854e9b893a38b0 /libexec/rtld-elf | |
| parent | cba5d7ab32fd0b4e9c4312cc967baf137377f812 (diff) | |
Diffstat (limited to 'libexec/rtld-elf')
| -rw-r--r-- | libexec/rtld-elf/riscv/reloc.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libexec/rtld-elf/riscv/reloc.c b/libexec/rtld-elf/riscv/reloc.c index 4b61c4b9a061..cfa474aa93b7 100644 --- a/libexec/rtld-elf/riscv/reloc.c +++ b/libexec/rtld-elf/riscv/reloc.c @@ -404,23 +404,6 @@ reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld, int flags, lockstate); if (def == NULL) return (-1); - /* - * We lazily allocate offsets for static TLS as we - * see the first relocation that references the - * TLS block. This allows us to support (small - * amounts of) static TLS in dynamically loaded - * modules. If we run out of space, we generate an - * error. - */ - if (!defobj->tls_static) { - if (!allocate_tls_offset( - __DECONST(Obj_Entry *, defobj))) { - _rtld_error( - "%s: No space available for static " - "Thread Local Storage", obj->path); - return (-1); - } - } *where += (Elf_Addr)(def->st_value + rela->r_addend - TLS_DTV_OFFSET); |
