diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2019-12-07 22:57:49 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2019-12-07 22:57:49 +0000 |
commit | 69435a08336c1e465df0a7e105e263777a3c9d5a (patch) | |
tree | 8692ed3789dab69c3fcf2b40f2a1d28e981df77f /libexec/ld.so/i386 | |
parent | 931d1c94dd72f93bfbdef370008c9ef3ece61b0b (diff) |
Disable ltrace for objects linked with -znow, as at least on amd64, linking
that was deletes the lazy relocation trampoline which ltrace currently
depends on
problem reported by tb@
directional feedback kettenis@
ok mpi@
Diffstat (limited to 'libexec/ld.so/i386')
-rw-r--r-- | libexec/ld.so/i386/rtld_machine.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libexec/ld.so/i386/rtld_machine.c b/libexec/ld.so/i386/rtld_machine.c index 6ab0616e112..a23a188f3f4 100644 --- a/libexec/ld.so/i386/rtld_machine.c +++ b/libexec/ld.so/i386/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.47 2019/11/28 16:54:30 guenther Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.48 2019/12/07 22:57:48 guenther Exp $ */ /* * Copyright (c) 2002 Dale Rahn @@ -369,9 +369,6 @@ _dl_md_reloc_got(elf_object_t *object, int lazy) if (object->Dyn.info[DT_PLTREL] != DT_REL) return 0; - if (object->traced) - lazy = 1; - if (!lazy) { fails = _dl_md_reloc(object, DT_JMPREL, DT_PLTRELSZ); } else { |