Skip to contentSkip to conversation

minor ELF addition

PATCH In review Jan Beulich 2 participants 3 messages Nov 8, 2005 – Nov 9, 2005 exec and binfmt

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 minor ELF addition

A trivial addition to the ELF definitions.

From: Jan Beulich <[email protected]>

(actual patch attached)

A trivial addition to the ELF definitions.

From: Jan Beulich <[email protected]>

include/linux/elf.h +2 -0
@@ -151,6 +151,8 @@ typedef __s64	Elf64_Sxword;
 #define STT_FUNC    2
 #define STT_SECTION 3
 #define STT_FILE    4
+#define STT_COMMON  5
+#define STT_TLS     6
 
 #define ELF_ST_BIND(x)		((x) >> 4)
 #define ELF_ST_TYPE(x)		(((unsigned int) x) & 0xf)
#1 lore raw

include/linux/elf.h typedef __s64 Elf64_Sxword; · line 155

Quoted 7 lines · Jan Beulich

A trivial addition to the ELF definitions.

...
#define STT_FILE 4

include/linux/elf.h +2 -0
+#define STT_COMMON  5
+#define STT_TLS     6

Is there any particular reason for adding these, or is it just a completeness thing?

#2 lore raw
Quoted 5 lines
Quoted 1 line
Quoted 1 line

Andrew Morton <[email protected]> 08.11.05 23:56:56 >>>

Quoted 3 lines · Jan Beulich

A trivial addition to the ELF definitions.

Quoted 7 lines

include/linux/elf.h typedef __s64 Elf64_Sxword; · line 155

Quoted 4 lines

...
#define STT_FILE 4

include/linux/elf.h +2 -0
+#define STT_COMMON  5
+#define STT_TLS     6

Is there any particular reason for adding these, or is it just a completeness thing?

NLKD needs STT_COMMON. STT_TLS is just for completeness (and probably not of much use in the kernel, though Andi seemed to have at least considered using TLS for x86-64's per-CPU data).