diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-02-28 02:07:54 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-02-28 02:07:54 +0000 |
commit | 35a3e78edb9d4a3ef98f975587752325c9be860f (patch) | |
tree | ef86e36c35a9eee883d91f4066c08bd26a096cc7 /bfd/syms.c | |
parent | 85d6f0b476fd84375e4c50d02b02bf34321d0546 (diff) | |
download | gdb-35a3e78edb9d4a3ef98f975587752325c9be860f.zip gdb-35a3e78edb9d4a3ef98f975587752325c9be860f.tar.gz gdb-35a3e78edb9d4a3ef98f975587752325c9be860f.tar.bz2 |
* targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label
to _bfd_is_local_label_name.
(bfd_target): Likewise.
* syms.c (bfd_is_local_label): Define as function, not macro.
(bfd_is_local_name): Define.
* libbfd.c (bfd_generic_is_local_label_name): Rename from
bfd_generic_is_local_label, and take a string rather than a
symbol.
* libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define.
(_bfd_nosymbols_bfd_is_local_label_name): Define.
(bfd_generic_is_local_label): Don't declare.
(bfd_generic_is_local_label_name): Declare.
* bfd-in2.h, libbfd.h: Rebuild.
* All backends: Change local_label to local_label_name.
Diffstat (limited to 'bfd/syms.c')
-rw-r--r-- | bfd/syms.c | 34 |
1 files changed, 30 insertions, 4 deletions
@@ -1,5 +1,6 @@ /* Generic symbol-table support for the BFD library. - Copyright (C) 1990, 91, 92, 93, 94, 95, 1996 Free Software Foundation, Inc. + Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997 + Free Software Foundation, Inc. Written by Cygnus Support. This file is part of BFD, the Binary File Descriptor library. @@ -342,8 +343,33 @@ SYNOPSIS DESCRIPTION Return true if the given symbol @var{sym} in the BFD @var{abfd} is a compiler generated local label, else return false. -.#define bfd_is_local_label(abfd, sym) \ -. BFD_SEND (abfd, _bfd_is_local_label,(abfd, sym)) +*/ + +boolean +bfd_is_local_label (abfd, sym) + bfd *abfd; + asymbol *sym; +{ + if ((sym->flags & (BSF_GLOBAL | BSF_WEAK)) != 0) + return false; + return bfd_is_local_label_name (abfd, sym->name); +} + +/* +FUNCTION + bfd_is_local_label_name + +SYNOPSIS + boolean bfd_is_local_label_name(bfd *abfd, const char *name); + +DESCRIPTION + Return true if a symbol with the name @var{name} in the BFD + @var{abfd} is a compiler generated local label, else return + false. This just checks whether the name has the form of a + local label. + +.#define bfd_is_local_label_name(abfd, name) \ +. BFD_SEND (abfd, _bfd_is_local_label_name, (abfd, name)) */ /* @@ -621,7 +647,7 @@ DESCRIPTION Not enough memory exists to create private data for @var{osec}. .#define bfd_copy_private_symbol_data(ibfd, isymbol, obfd, osymbol) \ -. BFD_SEND (ibfd, _bfd_copy_private_symbol_data, \ +. BFD_SEND (obfd, _bfd_copy_private_symbol_data, \ . (ibfd, isymbol, obfd, osymbol)) */ |