diff options
author | Pedro Alves <palves@redhat.com> | 2017-02-17 01:26:12 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-02-17 01:26:12 +0000 |
commit | c7c3d11bead272b718bade379e3441ff239bbd16 (patch) | |
tree | a6b92625643c23692755fe0625947b56e5fe82fe /bfd/opncls.c | |
parent | 4265548c65907f095e887148f61af4813b106737 (diff) | |
download | gdb-c7c3d11bead272b718bade379e3441ff239bbd16.zip gdb-c7c3d11bead272b718bade379e3441ff239bbd16.tar.gz gdb-c7c3d11bead272b718bade379e3441ff239bbd16.tar.bz2 |
bfd: Rename real_{ftell, fseek, fopen}
Give these bfd-internal symbols with external linkage a _bfd_ prefix
to avoid collisions in the global symbol namespace.
bfd/ChangeLog:
2017-02-17 Pedro Alves <palves@redhat.com>
* bfdio.c (real_ftell): Rename to ...
(_bfd_real_ftell): ... this.
(real_fseek): Rename to ...
(_bfd_real_fseek): ... this.
(real_fopen): Rename to ...
(_bfd_real_fopen): ... this.
* libbfd-in.h (real_ftell): Rename to ...
(_bfd_real_ftell): ... this.
(real_fseek): Rename to ...
(_bfd_real_fseek): ... this.
(real_fopen): Rename to ...
(_bfd_real_fopen): ... this.
* cache.c, dwarf2.c, opncls.c: Adjust all callers.
* libbfd.h: Regenerate.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r-- | bfd/opncls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c index b4d4dcf..2ab7dfe 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -219,7 +219,7 @@ bfd_fopen (const char *filename, const char *target, const char *mode, int fd) nbfd->iostream = fdopen (fd, mode); else #endif - nbfd->iostream = real_fopen (filename, mode); + nbfd->iostream = _bfd_real_fopen (filename, mode); if (nbfd->iostream == NULL) { bfd_set_error (bfd_error_system_call); @@ -1288,7 +1288,7 @@ separate_debug_file_exists (const char *name, const unsigned long crc) BFD_ASSERT (name); - f = real_fopen (name, FOPEN_RB); + f = _bfd_real_fopen (name, FOPEN_RB); if (f == NULL) return FALSE; @@ -1321,7 +1321,7 @@ separate_alt_debug_file_exists (const char *name, BFD_ASSERT (name); - f = real_fopen (name, FOPEN_RB); + f = _bfd_real_fopen (name, FOPEN_RB); if (f == NULL) return FALSE; @@ -1704,7 +1704,7 @@ bfd_fill_in_gnu_debuglink_section (bfd *abfd, .gnu_debuglink section, we insist upon the user providing us with a correct-for-section-creation-time path, but this need not conform to the gdb location algorithm. */ - handle = real_fopen (filename, FOPEN_RB); + handle = _bfd_real_fopen (filename, FOPEN_RB); if (handle == NULL) { bfd_set_error (bfd_error_system_call); |