mirror of git://sourceware.org/git/glibc.git
Update.
* dlfcn/Makefile: Add rules to build and run bug-dlopen1. * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
This commit is contained in:
parent
37d8b77856
commit
472d82fc06
|
@ -1,5 +1,8 @@
|
||||||
2002-02-05 Ulrich Drepper <drepper@redhat.com>
|
2002-02-05 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* dlfcn/Makefile: Add rules to build and run bug-dlopen1.
|
||||||
|
* dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
|
||||||
|
|
||||||
* elf/rtld.c (process_dl_debug): Correct printing help message.
|
* elf/rtld.c (process_dl_debug): Correct printing help message.
|
||||||
* elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
|
* elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
|
||||||
for %s.
|
for %s.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
|
# Copyright (C) 1995-1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||||
# This file is part of the GNU C Library.
|
# This file is part of the GNU C Library.
|
||||||
|
|
||||||
# The GNU C Library is free software; you can redistribute it and/or
|
# The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -35,7 +35,7 @@ endif
|
||||||
libdl-shared-only-routines += eval
|
libdl-shared-only-routines += eval
|
||||||
|
|
||||||
ifeq (yes,$(build-shared))
|
ifeq (yes,$(build-shared))
|
||||||
tests = glrefmain failtest tst-dladdr default errmsg1 tstcxaatexit
|
tests = glrefmain failtest tst-dladdr default errmsg1 tstcxaatexit bug-dlopen1
|
||||||
ifeq (yes,$(have-protected))
|
ifeq (yes,$(have-protected))
|
||||||
tests += tstatexit
|
tests += tstatexit
|
||||||
endif
|
endif
|
||||||
|
@ -93,6 +93,8 @@ $(objpfx)tststatic.out: $(objpfx)tststatic $(objpfx)modstatic.so
|
||||||
|
|
||||||
$(objpfx)modstatic.so: $(common-objpfx)libc.so $(common-objpfx)libc_nonshared.a
|
$(objpfx)modstatic.so: $(common-objpfx)libc.so $(common-objpfx)libc_nonshared.a
|
||||||
|
|
||||||
|
$(objpfx)bug-dlopen1: $(libdl)
|
||||||
|
|
||||||
# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
|
# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
|
||||||
# This ensures they will load libc.so for needed symbols if loaded by
|
# This ensures they will load libc.so for needed symbols if loaded by
|
||||||
# a statically-linked program that hasn't already loaded it.
|
# a statically-linked program that hasn't already loaded it.
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
/* Test case by Bruno Haible. It test whether the dynamic string
|
||||||
|
token expansion can handle $ signs which do not start one of the
|
||||||
|
recognized keywords. */
|
||||||
|
|
||||||
|
#include <dlfcn.h>
|
||||||
|
|
||||||
|
int main (void)
|
||||||
|
{
|
||||||
|
dlopen ("gnu-gettext-GetURL$1", RTLD_GLOBAL | RTLD_LAZY);
|
||||||
|
dlopen ("gnu-gettext-GetURL${1", RTLD_GLOBAL | RTLD_LAZY);
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue