Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105044772
D40919.id124388.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
903 B
Referenced Files
None
Subscribers
None
D40919.id124388.diff
View Options
diff --git a/libexec/rtld-elf/debug.h b/libexec/rtld-elf/debug.h
--- a/libexec/rtld-elf/debug.h
+++ b/libexec/rtld-elf/debug.h
@@ -37,6 +37,7 @@
#include <sys/cdefs.h>
#include <string.h>
+#include "rtld_paths.h"
#include "rtld_printf.h"
void debug_printf(const char *, ...) __printflike(1, 2);
@@ -48,17 +49,11 @@
#define dbg(...) ((void) 0)
#endif
-#ifndef COMPAT_32BIT
-#define _MYNAME "ld-elf.so.1"
-#else
-#define _MYNAME "ld-elf32.so.1"
-#endif
-
-#define assert(cond) ((cond) ? (void) 0 : \
- (msg(_MYNAME ": assert failed: " __FILE__ ":" \
+#define assert(cond) ((cond) ? (void) 0 : \
+ (msg(_BASENAME_RTLD ": assert failed: " __FILE__ ":" \
__XSTRING(__LINE__) "\n"), abort()))
#define msg(s) rtld_putstr(s)
-#define trace() msg(_MYNAME ": " __XSTRING(__LINE__) "\n")
+#define trace() msg(_BASENAME_RTLD ": " __XSTRING(__LINE__) "\n")
#endif /* DEBUG_H */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 12, 9:50 PM (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15336176
Default Alt Text
D40919.id124388.diff (903 B)
Attached To
Mode
D40919: rtld-elf: Reuse _BASENAME_RTLD for debug.h rather than duplicating logic
Attached
Detach File
Event Timeline
Log In to Comment