uClibc-0.9.30.1-dl-sysdep-inline.patch 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. Index: uClibc-0.9.30.1/ldso/ldso/arm/dl-sysdep.h
  2. ===================================================================
  3. --- uClibc-0.9.30.1/ldso/ldso/arm/dl-sysdep.h (revision 25503)
  4. +++ uClibc-0.9.30.1/ldso/ldso/arm/dl-sysdep.h (working copy)
  5. @@ -15,7 +15,7 @@
  6. GOT_BASE[1] = (unsigned long) MODULE; \
  7. }
  8. -static __inline__ unsigned long arm_modulus(unsigned long m, unsigned long p)
  9. +static __always_inline unsigned long arm_modulus(unsigned long m, unsigned long p)
  10. {
  11. unsigned long i,t,inc;
  12. i=p; t=0;
  13. @@ -72,7 +72,7 @@ unsigned long _dl_linux_resolver(struct
  14. first element of the GOT. We used to use the PIC register to do this
  15. without a constant pool reference, but GCC 4.2 will use a pseudo-register
  16. for the PIC base, so it may not be in r10. */
  17. -static __inline__ Elf32_Addr __attribute__ ((unused))
  18. +static __always_inline Elf32_Addr __attribute__ ((unused))
  19. elf_machine_dynamic (void)
  20. {
  21. Elf32_Addr dynamic;
  22. @@ -104,7 +104,7 @@ elf_machine_dynamic (void)
  23. }
  24. /* Return the run-time load address of the shared object. */
  25. -static __inline__ Elf32_Addr __attribute__ ((unused))
  26. +static __always_inline Elf32_Addr __attribute__ ((unused))
  27. elf_machine_load_address (void)
  28. {
  29. extern void __dl_start __asm__ ("_dl_start");
  30. @@ -128,7 +128,7 @@ elf_machine_load_address (void)
  31. return pcrel_addr - got_addr;
  32. }
  33. -static __inline__ void
  34. +static __always_inline void
  35. elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr,
  36. Elf32_Word relative_count)
  37. {
  38. Index: uClibc-0.9.30.1/ldso/ldso/powerpc/dl-sysdep.h
  39. ===================================================================
  40. --- uClibc-0.9.30.1/ldso/ldso/powerpc/dl-sysdep.h (revision 25503)
  41. +++ uClibc-0.9.30.1/ldso/ldso/powerpc/dl-sysdep.h (working copy)
  42. @@ -90,7 +90,7 @@ void _dl_init_got(unsigned long *lpnt,st
  43. #define ELF_MACHINE_PLTREL_OVERLAP 1
  44. /* Return the value of the GOT pointer. */
  45. -static __inline__ Elf32_Addr * __attribute__ ((const))
  46. +static __always_inline Elf32_Addr * __attribute__ ((const))
  47. ppc_got (void)
  48. {
  49. Elf32_Addr *got;
  50. @@ -109,14 +109,14 @@ ppc_got (void)
  51. /* Return the link-time address of _DYNAMIC, stored as
  52. the first value in the GOT. */
  53. -static __inline__ Elf32_Addr __attribute__ ((const))
  54. +static __always_inline Elf32_Addr __attribute__ ((const))
  55. elf_machine_dynamic (void)
  56. {
  57. return *ppc_got();
  58. }
  59. /* Return the run-time load address of the shared object. */
  60. -static __inline__ Elf32_Addr __attribute__ ((const))
  61. +static __always_inline Elf32_Addr __attribute__ ((const))
  62. elf_machine_load_address (void)
  63. {
  64. Elf32_Addr *branchaddr;
  65. @@ -164,7 +164,7 @@ elf_machine_load_address (void)
  66. return runtime_dynamic - elf_machine_dynamic ();
  67. }
  68. -static __inline__ void
  69. +static __always_inline void
  70. elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr,
  71. Elf32_Word relative_count)
  72. {
  73. Index: uClibc-0.9.30.1/ldso/ldso/sh64/dl-sysdep.h
  74. ===================================================================
  75. --- uClibc-0.9.30.1/ldso/ldso/sh64/dl-sysdep.h (revision 25503)
  76. +++ uClibc-0.9.30.1/ldso/ldso/sh64/dl-sysdep.h (working copy)
  77. @@ -42,7 +42,7 @@ extern unsigned long _dl_linux_resolver(
  78. /* Return the link-time address of _DYNAMIC. Conveniently, this is the
  79. first element of the GOT. This must be inlined in a function which
  80. uses global data. */
  81. -static __inline__ Elf32_Addr elf_machine_dynamic(void)
  82. +static __always_inline Elf32_Addr elf_machine_dynamic(void)
  83. {
  84. register Elf32_Addr *got;
  85. @@ -70,7 +70,7 @@ static __inline__ Elf32_Addr elf_machine
  86. }
  87. /* Return the run-time load address of the shared object. */
  88. -static __inline__ Elf32_Addr elf_machine_load_address(void)
  89. +static __always_inline Elf32_Addr elf_machine_load_address(void)
  90. {
  91. Elf32_Addr addr;
  92. @@ -123,7 +123,7 @@ static __inline__ Elf32_Addr elf_machine
  93. } \
  94. }
  95. -static __inline__ void
  96. +static __always_inline void
  97. elf_machine_relative(Elf32_Addr load_off, const Elf32_Addr rel_addr,
  98. Elf32_Word relative_count)
  99. {
  100. Index: uClibc-0.9.30.1/ldso/ldso/m68k/dl-sysdep.h
  101. ===================================================================
  102. --- uClibc-0.9.30.1/ldso/ldso/m68k/dl-sysdep.h (revision 25503)
  103. +++ uClibc-0.9.30.1/ldso/ldso/m68k/dl-sysdep.h (working copy)
  104. @@ -41,7 +41,7 @@ extern unsigned long _dl_linux_resolver
  105. /* Return the link-time address of _DYNAMIC. Conveniently, this is the
  106. first element of the GOT. This must be inlined in a function which
  107. uses global data. */
  108. -static __inline__ Elf32_Addr
  109. +static __always_inline Elf32_Addr
  110. elf_machine_dynamic (void)
  111. {
  112. register Elf32_Addr *got __asm__ ("%a5");
  113. @@ -50,7 +50,7 @@ elf_machine_dynamic (void)
  114. /* Return the run-time load address of the shared object. */
  115. -static __inline__ Elf32_Addr
  116. +static __always_inline Elf32_Addr
  117. elf_machine_load_address (void)
  118. {
  119. Elf32_Addr addr;
  120. @@ -60,7 +60,7 @@ elf_machine_load_address (void)
  121. return addr;
  122. }
  123. -static __inline__ void
  124. +static __always_inline void
  125. elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr,
  126. Elf32_Word relative_count)
  127. {
  128. Index: uClibc-0.9.30.1/ldso/ldso/i386/dl-sysdep.h
  129. ===================================================================
  130. --- uClibc-0.9.30.1/ldso/ldso/i386/dl-sysdep.h (revision 25503)
  131. +++ uClibc-0.9.30.1/ldso/ldso/i386/dl-sysdep.h (working copy)
  132. @@ -42,8 +42,8 @@ extern unsigned long _dl_linux_resolver(
  133. /* Return the link-time address of _DYNAMIC. Conveniently, this is the
  134. first element of the GOT. This must be inlined in a function which
  135. uses global data. */
  136. -static __inline__ Elf32_Addr elf_machine_dynamic (void) attribute_unused;
  137. -static __inline__ Elf32_Addr
  138. +static __always_inline Elf32_Addr elf_machine_dynamic (void) attribute_unused;
  139. +static __always_inline Elf32_Addr
  140. elf_machine_dynamic (void)
  141. {
  142. register Elf32_Addr *got __asm__ ("%ebx");
  143. @@ -52,8 +52,8 @@ elf_machine_dynamic (void)
  144. /* Return the run-time load address of the shared object. */
  145. -static __inline__ Elf32_Addr elf_machine_load_address (void) attribute_unused;
  146. -static __inline__ Elf32_Addr
  147. +static __always_inline Elf32_Addr elf_machine_load_address (void) attribute_unused;
  148. +static __always_inline Elf32_Addr
  149. elf_machine_load_address (void)
  150. {
  151. /* It doesn't matter what variable this is, the reference never makes
  152. @@ -66,7 +66,7 @@ elf_machine_load_address (void)
  153. return addr;
  154. }
  155. -static __inline__ void
  156. +static __always_inline void
  157. elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr,
  158. Elf32_Word relative_count)
  159. {
  160. Index: uClibc-0.9.30.1/ldso/ldso/cris/dl-sysdep.h
  161. ===================================================================
  162. --- uClibc-0.9.30.1/ldso/ldso/cris/dl-sysdep.h (revision 25503)
  163. +++ uClibc-0.9.30.1/ldso/ldso/cris/dl-sysdep.h (working copy)
  164. @@ -39,7 +39,7 @@ extern unsigned long _dl_linux_resolver(
  165. || ((type) == R_CRIS_GLOB_DAT)) * ELF_RTYPE_CLASS_PLT) \
  166. | (((type) == R_CRIS_COPY) * ELF_RTYPE_CLASS_COPY))
  167. -static __inline__ Elf32_Addr
  168. +static __always_inline Elf32_Addr
  169. elf_machine_dynamic(void)
  170. {
  171. /* Don't just set this to an asm variable "r0" since that's not logical
  172. @@ -61,7 +61,7 @@ elf_machine_dynamic(void)
  173. there's some other symbol we could use, that we don't *have* to force a
  174. GOT entry for. */
  175. -static __inline__ Elf32_Addr
  176. +static __always_inline Elf32_Addr
  177. elf_machine_load_address(void)
  178. {
  179. Elf32_Addr gotaddr_diff;
  180. @@ -95,7 +95,7 @@ elf_machine_load_address(void)
  181. return gotaddr_diff;
  182. }
  183. -static __inline__ void
  184. +static __always_inline void
  185. elf_machine_relative(Elf32_Addr load_off, const Elf32_Addr rel_addr,
  186. Elf32_Word relative_count)
  187. {
  188. Index: uClibc-0.9.30.1/ldso/ldso/xtensa/dl-sysdep.h
  189. ===================================================================
  190. --- uClibc-0.9.30.1/ldso/ldso/xtensa/dl-sysdep.h (revision 25503)
  191. +++ uClibc-0.9.30.1/ldso/ldso/xtensa/dl-sysdep.h (working copy)
  192. @@ -87,7 +87,7 @@ extern unsigned long _dl_linux_resolver
  193. (((type) == R_XTENSA_JMP_SLOT) * ELF_RTYPE_CLASS_PLT)
  194. /* Return the link-time address of _DYNAMIC. */
  195. -static __inline__ Elf32_Addr
  196. +static __always_inline Elf32_Addr
  197. elf_machine_dynamic (void)
  198. {
  199. /* This function is only used while bootstrapping the runtime linker.
  200. @@ -97,7 +97,7 @@ elf_machine_dynamic (void)
  201. }
  202. /* Return the run-time load address of the shared object. */
  203. -static __inline__ Elf32_Addr
  204. +static __always_inline Elf32_Addr
  205. elf_machine_load_address (void)
  206. {
  207. Elf32_Addr addr, tmp;
  208. @@ -118,7 +118,7 @@ elf_machine_load_address (void)
  209. return addr - 3;
  210. }
  211. -static __inline__ void
  212. +static __always_inline void
  213. elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr,
  214. Elf32_Word relative_count)
  215. {
  216. Index: uClibc-0.9.30.1/ldso/ldso/sparc/dl-sysdep.h
  217. ===================================================================
  218. --- uClibc-0.9.30.1/ldso/ldso/sparc/dl-sysdep.h (revision 25503)
  219. +++ uClibc-0.9.30.1/ldso/ldso/sparc/dl-sysdep.h (working copy)
  220. @@ -49,7 +49,7 @@ unsigned long _dl_linux_resolver(struct
  221. #ifndef COMPILE_ASM
  222. /* Cheap modulo implementation, taken from arm/ld_sysdep.h. */
  223. -static __inline__ unsigned long
  224. +static __always_inline unsigned long
  225. sparc_mod(unsigned long m, unsigned long p)
  226. {
  227. unsigned long i, t, inc;
  228. @@ -127,7 +127,7 @@ do { register Elf32_Addr pc __asm__("
  229. /* Return the link-time address of _DYNAMIC. Conveniently, this is the
  230. first element of the GOT. This must be inlined in a function which
  231. uses global data. */
  232. -static __inline__ Elf32_Addr
  233. +static __always_inline Elf32_Addr
  234. elf_machine_dynamic (void)
  235. {
  236. register Elf32_Addr *got __asm__ ("%l7");
  237. @@ -138,7 +138,7 @@ elf_machine_dynamic (void)
  238. }
  239. /* Return the run-time load address of the shared object. */
  240. -static __inline__ Elf32_Addr
  241. +static __always_inline Elf32_Addr
  242. elf_machine_load_address (void)
  243. {
  244. register Elf32_Addr *pc __asm__ ("%o7"), *got __asm__ ("%l7");
  245. @@ -157,7 +157,7 @@ elf_machine_load_address (void)
  246. return (Elf32_Addr) got - *got + (pc[2] - pc[3]) * 4 - 4;
  247. }
  248. -static __inline__ void
  249. +static __always_inline void
  250. elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr,
  251. Elf32_Word relative_count)
  252. {
  253. Index: uClibc-0.9.30.1/ldso/ldso/mips/dl-sysdep.h
  254. ===================================================================
  255. --- uClibc-0.9.30.1/ldso/ldso/mips/dl-sysdep.h (revision 25503)
  256. +++ uClibc-0.9.30.1/ldso/ldso/mips/dl-sysdep.h (working copy)
  257. @@ -163,7 +163,7 @@ void _dl_perform_mips_global_got_relocat
  258. #define OFFSET_GP_GOT 0x7ff0
  259. -static __inline__ ElfW(Addr) *
  260. +static __always_inline ElfW(Addr) *
  261. elf_mips_got_from_gpreg (ElfW(Addr) gpreg)
  262. {
  263. /* FIXME: the offset of gp from GOT may be system-dependent. */
  264. @@ -173,7 +173,7 @@ elf_mips_got_from_gpreg (ElfW(Addr) gpre
  265. /* Return the link-time address of _DYNAMIC. Conveniently, this is the
  266. first element of the GOT. This must be inlined in a function which
  267. uses global data. We assume its $gp points to the primary GOT. */
  268. -static __inline__ ElfW(Addr)
  269. +static __always_inline ElfW(Addr)
  270. elf_machine_dynamic (void)
  271. {
  272. register ElfW(Addr) gp __asm__ ("$28");
  273. @@ -192,7 +192,7 @@ elf_machine_dynamic (void)
  274. #endif
  275. /* Return the run-time load address of the shared object. */
  276. -static __inline__ ElfW(Addr)
  277. +static __always_inline ElfW(Addr)
  278. elf_machine_load_address (void)
  279. {
  280. ElfW(Addr) addr;
  281. @@ -208,7 +208,7 @@ elf_machine_load_address (void)
  282. return addr;
  283. }
  284. -static __inline__ void
  285. +static __always_inline void
  286. elf_machine_relative (ElfW(Addr) load_off, const ElfW(Addr) rel_addr,
  287. ElfW(Word) relative_count)
  288. {
  289. Index: uClibc-0.9.30.1/ldso/ldso/sh/dl-sysdep.h
  290. ===================================================================
  291. --- uClibc-0.9.30.1/ldso/ldso/sh/dl-sysdep.h (revision 25503)
  292. +++ uClibc-0.9.30.1/ldso/ldso/sh/dl-sysdep.h (working copy)
  293. @@ -25,7 +25,7 @@
  294. struct elf_resolve;
  295. extern unsigned long _dl_linux_resolver(struct elf_resolve * tpnt, int reloc_entry);
  296. -static __inline__ unsigned int
  297. +static __always_inline unsigned int
  298. _dl_urem(unsigned int n, unsigned int base)
  299. {
  300. int res;
  301. @@ -100,7 +100,7 @@ _dl_urem(unsigned int n, unsigned int ba
  302. /* Return the link-time address of _DYNAMIC. Conveniently, this is the
  303. first element of the GOT. This must be inlined in a function which
  304. uses global data. */
  305. -static __inline__ Elf32_Addr __attribute__ ((unused))
  306. +static __always_inline Elf32_Addr __attribute__ ((unused))
  307. elf_machine_dynamic (void)
  308. {
  309. register Elf32_Addr *got;
  310. @@ -109,7 +109,7 @@ elf_machine_dynamic (void)
  311. }
  312. /* Return the run-time load address of the shared object. */
  313. -static __inline__ Elf32_Addr __attribute__ ((unused))
  314. +static __always_inline Elf32_Addr __attribute__ ((unused))
  315. elf_machine_load_address (void)
  316. {
  317. Elf32_Addr addr;
  318. @@ -151,7 +151,7 @@ elf_machine_load_address (void)
  319. } \
  320. }
  321. -static __inline__ void
  322. +static __always_inline void
  323. elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr,
  324. Elf32_Word relative_count)
  325. {
  326. Index: uClibc-0.9.30.1/ldso/ldso/bfin/dl-sysdep.h
  327. ===================================================================
  328. --- uClibc-0.9.30.1/ldso/ldso/bfin/dl-sysdep.h (revision 25503)
  329. +++ uClibc-0.9.30.1/ldso/ldso/bfin/dl-sysdep.h (working copy)
  330. @@ -213,7 +213,7 @@ while (0)
  331. #endif
  332. #include <elf.h>
  333. -static __inline__ void
  334. +static __always_inline void
  335. elf_machine_relative (DL_LOADADDR_TYPE load_off, const Elf32_Addr rel_addr,
  336. Elf32_Word relative_count)
  337. {