mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
bfd: Rename bsd_write_armap and coff_write_armap
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> * archive.c (bsd_write_armap): Rename to ... (_bfd_bsd_write_armap): ... this. (coff_write_armap): Rename to ... (_bfd_coff_write_armap): ... this. * libbfd-in.h (bsd_write_armap): Rename to ... (_bfd_bsd_write_armap): ... this. (coff_write_armap): Rename to ... (_bfd_coff_write_armap): ... this. * aout-target.h, aout-tic30.c: Adjust all users. * libbfd.h: Regenerate.
This commit is contained in:
parent
8c8402ccf1
commit
7ec22e0f1e
@ -1,3 +1,16 @@
|
||||
2017-02-17 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* archive.c (bsd_write_armap): Rename to ...
|
||||
(_bfd_bsd_write_armap): ... this.
|
||||
(coff_write_armap): Rename to ...
|
||||
(_bfd_coff_write_armap): ... this.
|
||||
* libbfd-in.h (bsd_write_armap): Rename to ...
|
||||
(_bfd_bsd_write_armap): ... this.
|
||||
(coff_write_armap): Rename to ...
|
||||
(_bfd_coff_write_armap): ... this.
|
||||
* aout-target.h, aout-tic30.c: Adjust all users.
|
||||
* libbfd.h: Regenerate.
|
||||
|
||||
2017-02-17 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* bfd-in.h (bfd_read, bfd_write): Adjust to rename.
|
||||
|
@ -373,7 +373,7 @@ MY_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
|
||||
_bfd_archive_bsd_construct_extended_name_table
|
||||
#endif
|
||||
#ifndef MY_write_armap
|
||||
#define MY_write_armap bsd_write_armap
|
||||
#define MY_write_armap _bfd_bsd_write_armap
|
||||
#endif
|
||||
#ifndef MY_read_ar_hdr
|
||||
#define MY_read_ar_hdr _bfd_generic_read_ar_hdr
|
||||
|
@ -828,7 +828,7 @@ tic30_aout_set_arch_mach (bfd *abfd,
|
||||
_bfd_archive_bsd_construct_extended_name_table
|
||||
#endif
|
||||
#ifndef MY_write_armap
|
||||
#define MY_write_armap bsd_write_armap
|
||||
#define MY_write_armap _bfd_bsd_write_armap
|
||||
#endif
|
||||
#ifndef MY_read_ar_hdr
|
||||
#define MY_read_ar_hdr _bfd_generic_read_ar_hdr
|
||||
|
@ -2455,7 +2455,7 @@ _bfd_compute_and_write_armap (bfd *arch, unsigned int elength)
|
||||
}
|
||||
|
||||
bfd_boolean
|
||||
bsd_write_armap (bfd *arch,
|
||||
_bfd_bsd_write_armap (bfd *arch,
|
||||
unsigned int elength,
|
||||
struct orl *map,
|
||||
unsigned int orl_count,
|
||||
@ -2679,7 +2679,7 @@ _bfd_archive_bsd_update_armap_timestamp (bfd *arch)
|
||||
symbol name n-1 */
|
||||
|
||||
bfd_boolean
|
||||
coff_write_armap (bfd *arch,
|
||||
_bfd_coff_write_armap (bfd *arch,
|
||||
unsigned int elength,
|
||||
struct orl *map,
|
||||
unsigned int symbol_count,
|
||||
|
@ -207,11 +207,11 @@ void bfd_bsd_truncate_arname
|
||||
void bfd_gnu_truncate_arname
|
||||
(bfd *abfd, const char *filename, char *hdr);
|
||||
|
||||
bfd_boolean bsd_write_armap
|
||||
bfd_boolean _bfd_bsd_write_armap
|
||||
(bfd *arch, unsigned int elength, struct orl *map, unsigned int orl_count,
|
||||
int stridx);
|
||||
|
||||
bfd_boolean coff_write_armap
|
||||
bfd_boolean _bfd_coff_write_armap
|
||||
(bfd *arch, unsigned int elength, struct orl *map, unsigned int orl_count,
|
||||
int stridx);
|
||||
|
||||
@ -321,7 +321,7 @@ extern int _bfd_nocore_core_file_pid
|
||||
extern bfd_boolean _bfd_archive_bsd_construct_extended_name_table
|
||||
(bfd *, char **, bfd_size_type *, const char **);
|
||||
#define _bfd_archive_bsd_truncate_arname bfd_bsd_truncate_arname
|
||||
#define _bfd_archive_bsd_write_armap bsd_write_armap
|
||||
#define _bfd_archive_bsd_write_armap _bfd_bsd_write_armap
|
||||
#define _bfd_archive_bsd_read_ar_hdr _bfd_generic_read_ar_hdr
|
||||
#define _bfd_archive_bsd_write_ar_hdr _bfd_generic_write_ar_hdr
|
||||
#define _bfd_archive_bsd_openr_next_archived_file \
|
||||
@ -341,7 +341,7 @@ extern bfd_boolean _bfd_archive_bsd_update_armap_timestamp
|
||||
extern bfd_boolean _bfd_archive_coff_construct_extended_name_table
|
||||
(bfd *, char **, bfd_size_type *, const char **);
|
||||
#define _bfd_archive_coff_truncate_arname bfd_dont_truncate_arname
|
||||
#define _bfd_archive_coff_write_armap coff_write_armap
|
||||
#define _bfd_archive_coff_write_armap _bfd_coff_write_armap
|
||||
#define _bfd_archive_coff_read_ar_hdr _bfd_generic_read_ar_hdr
|
||||
#define _bfd_archive_coff_write_ar_hdr _bfd_generic_write_ar_hdr
|
||||
#define _bfd_archive_coff_openr_next_archived_file \
|
||||
@ -360,7 +360,7 @@ extern bfd_boolean _bfd_archive_coff_construct_extended_name_table
|
||||
extern bfd_boolean _bfd_archive_bsd44_construct_extended_name_table
|
||||
(bfd *, char **, bfd_size_type *, const char **);
|
||||
#define _bfd_archive_bsd44_truncate_arname bfd_bsd_truncate_arname
|
||||
#define _bfd_archive_bsd44_write_armap bsd_write_armap
|
||||
#define _bfd_archive_bsd44_write_armap _bfd_bsd_write_armap
|
||||
#define _bfd_archive_bsd44_read_ar_hdr _bfd_generic_read_ar_hdr
|
||||
#define _bfd_archive_bsd44_write_ar_hdr _bfd_bsd44_write_ar_hdr
|
||||
#define _bfd_archive_bsd44_openr_next_archived_file \
|
||||
|
10
bfd/libbfd.h
10
bfd/libbfd.h
@ -212,11 +212,11 @@ void bfd_bsd_truncate_arname
|
||||
void bfd_gnu_truncate_arname
|
||||
(bfd *abfd, const char *filename, char *hdr);
|
||||
|
||||
bfd_boolean bsd_write_armap
|
||||
bfd_boolean _bfd_bsd_write_armap
|
||||
(bfd *arch, unsigned int elength, struct orl *map, unsigned int orl_count,
|
||||
int stridx);
|
||||
|
||||
bfd_boolean coff_write_armap
|
||||
bfd_boolean _bfd_coff_write_armap
|
||||
(bfd *arch, unsigned int elength, struct orl *map, unsigned int orl_count,
|
||||
int stridx);
|
||||
|
||||
@ -326,7 +326,7 @@ extern int _bfd_nocore_core_file_pid
|
||||
extern bfd_boolean _bfd_archive_bsd_construct_extended_name_table
|
||||
(bfd *, char **, bfd_size_type *, const char **);
|
||||
#define _bfd_archive_bsd_truncate_arname bfd_bsd_truncate_arname
|
||||
#define _bfd_archive_bsd_write_armap bsd_write_armap
|
||||
#define _bfd_archive_bsd_write_armap _bfd_bsd_write_armap
|
||||
#define _bfd_archive_bsd_read_ar_hdr _bfd_generic_read_ar_hdr
|
||||
#define _bfd_archive_bsd_write_ar_hdr _bfd_generic_write_ar_hdr
|
||||
#define _bfd_archive_bsd_openr_next_archived_file \
|
||||
@ -346,7 +346,7 @@ extern bfd_boolean _bfd_archive_bsd_update_armap_timestamp
|
||||
extern bfd_boolean _bfd_archive_coff_construct_extended_name_table
|
||||
(bfd *, char **, bfd_size_type *, const char **);
|
||||
#define _bfd_archive_coff_truncate_arname bfd_dont_truncate_arname
|
||||
#define _bfd_archive_coff_write_armap coff_write_armap
|
||||
#define _bfd_archive_coff_write_armap _bfd_coff_write_armap
|
||||
#define _bfd_archive_coff_read_ar_hdr _bfd_generic_read_ar_hdr
|
||||
#define _bfd_archive_coff_write_ar_hdr _bfd_generic_write_ar_hdr
|
||||
#define _bfd_archive_coff_openr_next_archived_file \
|
||||
@ -365,7 +365,7 @@ extern bfd_boolean _bfd_archive_coff_construct_extended_name_table
|
||||
extern bfd_boolean _bfd_archive_bsd44_construct_extended_name_table
|
||||
(bfd *, char **, bfd_size_type *, const char **);
|
||||
#define _bfd_archive_bsd44_truncate_arname bfd_bsd_truncate_arname
|
||||
#define _bfd_archive_bsd44_write_armap bsd_write_armap
|
||||
#define _bfd_archive_bsd44_write_armap _bfd_bsd_write_armap
|
||||
#define _bfd_archive_bsd44_read_ar_hdr _bfd_generic_read_ar_hdr
|
||||
#define _bfd_archive_bsd44_write_ar_hdr _bfd_bsd44_write_ar_hdr
|
||||
#define _bfd_archive_bsd44_openr_next_archived_file \
|
||||
|
Loading…
Reference in New Issue
Block a user