public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] elf: Remove spurios SHARED conditional from elf/rtld.c
@ 2023-05-30 14:06 Florian Weimer
  2023-05-30 14:27 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Weimer @ 2023-05-30 14:06 UTC (permalink / raw)
  To: libc-alpha

elf/rtld.c is only ever built in SHARED mode.

---
 elf/rtld.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/elf/rtld.c b/elf/rtld.c
index 37a2d8b3e9..ca5e8b9ec3 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2409,10 +2409,8 @@ dl_main (const ElfW(Phdr) *phdr,
      _dl_relocate_object might need to call `mprotect' for DT_TEXTREL.  */
   _dl_sysdep_start_cleanup ();
 
-#ifdef SHARED
   /* Auditing checkpoint: we have added all objects.  */
   _dl_audit_activity_nsid (LM_ID_BASE, LA_ACT_CONSISTENT);
-#endif
 
   /* Notify the debugger all new objects are now ready to go.  We must re-get
      the address since by now the variable might be in another object.  */

-- 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] elf: Remove spurios SHARED conditional from elf/rtld.c
  2023-05-30 14:06 [PATCH] elf: Remove spurios SHARED conditional from elf/rtld.c Florian Weimer
@ 2023-05-30 14:27 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2023-05-30 14:27 UTC (permalink / raw)
  To: Florian Weimer via Libc-alpha; +Cc: Florian Weimer

On Mai 30 2023, Florian Weimer via Libc-alpha wrote:

> elf/rtld.c is only ever built in SHARED mode.

Ok.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-30 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-30 14:06 [PATCH] elf: Remove spurios SHARED conditional from elf/rtld.c Florian Weimer
2023-05-30 14:27 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).