diff options
author | Alan Modra <amodra@gmail.com> | 2002-05-22 09:04:48 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-05-22 09:04:48 +0000 |
commit | fac1652d6be8f3a3292d250464d02053630b93f4 (patch) | |
tree | 12629083242cf413b732e30c08a04e256bfd7fb7 /ld/ldemul.c | |
parent | eb3d6bb8dc61ba812ddb6478c6dc16cc4f569567 (diff) | |
download | gdb-fac1652d6be8f3a3292d250464d02053630b93f4.zip gdb-fac1652d6be8f3a3292d250464d02053630b93f4.tar.gz gdb-fac1652d6be8f3a3292d250464d02053630b93f4.tar.bz2 |
* ldemul.c (ldemul_new_vers_pattern): New function.
* ldemul.h (ldemul_new_vers_pattern): Declare.
(struct ld_emulation_xfer_struct): Add new_vers_pattern.
* ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
* emultempl/ppc64elf.em (dotsyms): New static var.
(gld${EMULATION_NAME}_new_vers_pattern): New function.
(LDEMUL_NEW_VERS_PATTERN): Define.
(PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
(PARSE_AND_LIST_LONGOPTS): Likewise.
(PARSE_AND_LIST_ARGS_CASES): Handle them.
* emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
initialiser.
* emultempl/armcoff.em: Likewise.
* emultempl/armelf_oabi.em: Likewise.
* emultempl/beos.em: Likewise.
* emultempl/elf32.em: Likewise.
* emultempl/generic.em: Likewise.
* emultempl/gld960.em: Likewise.
* emultempl/gld960c.em: Likewise.
* emultempl/linux.em: Likewise.
* emultempl/lnk960.em: Likewise.
* emultempl/m68kcoff.em: Likewise.
* emultempl/mipsecoff.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/sunos.em: Likewise.
* emultempl/ticoff.em: Likewise.
* emultempl/vanilla.em: Likewise.
Diffstat (limited to 'ld/ldemul.c')
-rw-r--r-- | ld/ldemul.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/ldemul.c b/ld/ldemul.c index 6b96204..abf3419 100644 --- a/ld/ldemul.c +++ b/ld/ldemul.c @@ -308,3 +308,12 @@ ldemul_find_potential_libraries (name, entry) return 0; } + +struct bfd_elf_version_expr * +ldemul_new_vers_pattern (entry) + struct bfd_elf_version_expr *entry; +{ + if (ld_emulation->new_vers_pattern) + entry = (*ld_emulation->new_vers_pattern) (entry); + return entry; +} |