mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern):
Handle null pattern. testsuite/: * ld-elf/dl2a.list: New file. * ld-elf/shared.exp: Add test using --dynamic-list=dl2a.list.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2007-05-14 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern):
|
||||||
|
Handle null pattern.
|
||||||
|
|
||||||
2007-05-11 Alan Modra <amodra@bigpond.net.au>
|
2007-05-11 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* emultempl/ppc32elf.em (plt_style): New variable.
|
* emultempl/ppc32elf.em (plt_style): New variable.
|
||||||
|
@ -414,17 +414,22 @@ gld${EMULATION_NAME}_new_vers_pattern (struct bfd_elf_version_expr *entry)
|
|||||||
unsigned int len;
|
unsigned int len;
|
||||||
char *dot_pat;
|
char *dot_pat;
|
||||||
|
|
||||||
if (!dotsyms || entry->pattern[0] == '*' || entry->pattern[0] == '.')
|
if (!dotsyms
|
||||||
|
|| (entry->pattern != NULL
|
||||||
|
&& (entry->pattern[0] == '*' || entry->pattern[0] == '.')))
|
||||||
return entry;
|
return entry;
|
||||||
|
|
||||||
dot_entry = xmalloc (sizeof *dot_entry);
|
dot_entry = xmalloc (sizeof *dot_entry);
|
||||||
*dot_entry = *entry;
|
*dot_entry = *entry;
|
||||||
dot_entry->next = entry;
|
dot_entry->next = entry;
|
||||||
len = strlen (entry->pattern) + 2;
|
if (entry->pattern != NULL)
|
||||||
dot_pat = xmalloc (len);
|
{
|
||||||
dot_pat[0] = '.';
|
len = strlen (entry->pattern) + 2;
|
||||||
memcpy (dot_pat + 1, entry->pattern, len - 1);
|
dot_pat = xmalloc (len);
|
||||||
dot_entry->pattern = dot_pat;
|
dot_pat[0] = '.';
|
||||||
|
memcpy (dot_pat + 1, entry->pattern, len - 1);
|
||||||
|
dot_entry->pattern = dot_pat;
|
||||||
|
}
|
||||||
if (entry->symbol != NULL)
|
if (entry->symbol != NULL)
|
||||||
{
|
{
|
||||||
len = strlen (entry->symbol) + 2;
|
len = strlen (entry->symbol) + 2;
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2007-05-14 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* ld-elf/dl2a.list: New file.
|
||||||
|
* ld-elf/shared.exp: Add test using --dynamic-list=dl2a.list.
|
||||||
|
|
||||||
2007-05-10 Richard Sandiford <richard@codesourcery.com>
|
2007-05-10 Richard Sandiford <richard@codesourcery.com>
|
||||||
|
|
||||||
* ld-arm/vxworks1-lib.dd: Expect "push" instead of stmdb and
|
* ld-arm/vxworks1-lib.dd: Expect "push" instead of stmdb and
|
||||||
|
3
ld/testsuite/ld-elf/dl2a.list
Normal file
3
ld/testsuite/ld-elf/dl2a.list
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"foo";
|
||||||
|
};
|
@ -75,6 +75,9 @@ set build_tests {
|
|||||||
{"Build libdl2a.so with --dynamic-list=dl2.list"
|
{"Build libdl2a.so with --dynamic-list=dl2.list"
|
||||||
"-shared -Wl,--dynamic-list=dl2.list" "-fPIC"
|
"-shared -Wl,--dynamic-list=dl2.list" "-fPIC"
|
||||||
{dl2.c dl2xxx.c} {} "libdl2a.so"}
|
{dl2.c dl2xxx.c} {} "libdl2a.so"}
|
||||||
|
{"Build libdl2a.so with --dynamic-list=dl2a.list"
|
||||||
|
"-shared -Wl,--dynamic-list=dl2a.list" "-fPIC"
|
||||||
|
{dl2.c dl2xxx.c} {} "libdl2a.so"}
|
||||||
{"Build libdl2a.so with --dynamic-list-data"
|
{"Build libdl2a.so with --dynamic-list-data"
|
||||||
"-shared -Wl,--dynamic-list-data" "-fPIC"
|
"-shared -Wl,--dynamic-list-data" "-fPIC"
|
||||||
{dl2.c dl2xxx.c} {} "libdl2a.so"}
|
{dl2.c dl2xxx.c} {} "libdl2a.so"}
|
||||||
|
Reference in New Issue
Block a user