[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patches] when disable OPTION_EGLIBC_RTLD_DEBUG, build failed



when disable OPTION_EGLIBC_RTLD_DEBUG by setting OPTION_EGLIBC_RTLD_DEBUG = n in option-groups.config, build failed.

| powerpc-poky-linux-gcc -mcpu=603e -mhard-float --sysroot=/mnt/sda9/poky-tmp-build/build/tmp/sysroots/mpc8315e-rdb-tcbootstrap dl-object.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -feliminate-unused-debug-types -fmerge-all-constants -g -pipe -mhard-float -mnew-mnemonics -Wstrict-prototypes -mlong-double-128 -fpic -I../include -I/mnt/sda9/poky-tmp-build/build/tmp/work/ppc603e-poky-linux/eglibc-2.13-r0+svnr13356/build-powerpc-poky-linux/elf @/mnt/sda9/poky-tmp-build/build/tmp/work/ppc603e-poky-linux/eglibc-2.13-r0+svnr13356/build-powerpc-poky-linux/includes -I.. -I../libio -I. -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DNOT_IN_libc=1 -DIS_IN_rtld=1 -o /mnt/sda9/poky-tmp-build/build/tmp/work/ppc603e-poky-linux/eglibc-2.13-r0+svnr13356/build-powerpc-poky-linux/elf/dl-object.os -MD -MP -MF /mnt/sda9/poky-tmp-build/build/tmp/work/ppc603e-poky-linux/eglibc-2.13-r0+svnr13356/build-powerpc-poky-linux/elf/dl-object.os.dt -MT /mnt/sda9/poky-tmp-build/build/tmp/work/ppc603e-poky-linux/eglibc-2.13-r0+svnr13356/build-powerpc-poky-linux/elf/dl-object.os
| dl-lookup.c: In function 'do_lookup_x':
| dl-lookup.c:426:9: error: 'struct rtld_global_ro' has no member named '_dl_debug_mask'
| dl-lookup.c: In function '_dl_setup_hash':
| dl-lookup.c:860:14: warning: variable 'nchain' set but not used [-Wunused-but-set-variable] | make[2]: *** [/mnt/sda9/poky-tmp-build/build/tmp/work/ppc603e-poky-linux/eglibc-2.13-r0+svnr13356/build-powerpc-poky-linux/elf/dl-lookup.os] Error 1

Patch in attachment try to fix this issue.

Index: libc/elf/dl-lookup.c
===================================================================
--- libc/elf/dl-lookup.c	(ç??æ?¬ 13356)
+++ libc/elf/dl-lookup.c	(工���)
@@ -423,7 +423,9 @@
 		     hash table.  */
 		  if (__builtin_expect (tab->size, 0))
 		    {
+              #if __OPTION_EGLIBC_RTLD_DEBUG
 		      assert (GLRO(dl_debug_mask) & DL_DEBUG_PRELINK);
+              #endif
 		      __rtld_lock_unlock_recursive (tab->lock);
 		      goto success;
 		    }