Эх сурвалжийг харах

Slightly cleaner formatting

Eric Andersen 22 жил өмнө
parent
commit
5ef557bd1f

+ 4 - 4
ldso/include/dl-elf.h

@@ -99,12 +99,12 @@ extern int _dl_fixup(struct dyn_elf *rpnt, int flag);
    not support copy relocations.  In this case we define the macro to
    not support copy relocations.  In this case we define the macro to
    zero so that the code for handling them gets automatically optimized
    zero so that the code for handling them gets automatically optimized
    out.  */
    out.  */
-#define ELF_RTYPE_CLASS_PLT 1
-#ifndef DL_NO_COPY_RELOCS
-# define ELF_RTYPE_CLASS_COPY 2
+#ifdef DL_NO_COPY_RELOCS
+# define ELF_RTYPE_CLASS_COPY	(0x0)
 #else
 #else
-# define ELF_RTYPE_CLASS_COPY 0
+# define ELF_RTYPE_CLASS_COPY	(0x1)
 #endif
 #endif
+#define ELF_RTYPE_CLASS_PLT	(0x2)
 
 
 
 
 /* Convert between the Linux flags for page protections and the
 /* Convert between the Linux flags for page protections and the