Index: aix386-core.c =================================================================== RCS file: /cvs/src/src/bfd/aix386-core.c,v retrieving revision 1.18 diff -u -p -r1.18 aix386-core.c --- aix386-core.c 3 Jul 2007 14:26:39 -0000 1.18 +++ aix386-core.c 16 Nov 2007 15:00:57 -0000 @@ -263,6 +263,7 @@ const bfd_target aix386_core_vec = { BFD_JUMP_TABLE_WRITE (_bfd_generic), BFD_JUMP_TABLE_LINK (_bfd_nolink), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: aout-adobe.c =================================================================== RCS file: /cvs/src/src/bfd/aout-adobe.c,v retrieving revision 1.29 diff -u -p -r1.29 aout-adobe.c --- aout-adobe.c 3 Jul 2007 14:26:39 -0000 1.29 +++ aout-adobe.c 16 Nov 2007 15:00:57 -0000 @@ -508,6 +508,7 @@ const bfd_target a_out_adobe_vec = BFD_JUMP_TABLE_WRITE (aout_32), BFD_JUMP_TABLE_LINK (aout_32), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: aout-arm.c =================================================================== RCS file: /cvs/src/src/bfd/aout-arm.c,v retrieving revision 1.19 diff -u -p -r1.19 aout-arm.c --- aout-arm.c 3 Jul 2007 14:26:39 -0000 1.19 +++ aout-arm.c 16 Nov 2007 15:00:57 -0000 @@ -499,6 +499,7 @@ const bfd_target aout_arm_little_vec = BFD_JUMP_TABLE_WRITE (MY), BFD_JUMP_TABLE_LINK (MY), BFD_JUMP_TABLE_DYNAMIC (MY), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & aout_arm_big_vec, @@ -540,6 +541,7 @@ const bfd_target aout_arm_big_vec = BFD_JUMP_TABLE_WRITE (MY), BFD_JUMP_TABLE_LINK (MY), BFD_JUMP_TABLE_DYNAMIC (MY), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & aout_arm_little_vec, Index: aout-target.h =================================================================== RCS file: /cvs/src/src/bfd/aout-target.h,v retrieving revision 1.35 diff -u -p -r1.35 aout-target.h --- aout-target.h 3 Jul 2007 14:26:39 -0000 1.35 +++ aout-target.h 16 Nov 2007 15:00:57 -0000 @@ -645,6 +645,7 @@ const bfd_target MY (vec) = BFD_JUMP_TABLE_WRITE (MY), BFD_JUMP_TABLE_LINK (MY), BFD_JUMP_TABLE_DYNAMIC (MY), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), /* Alternative_target. */ NULL, Index: aout-tic30.c =================================================================== RCS file: /cvs/src/src/bfd/aout-tic30.c,v retrieving revision 1.34 diff -u -p -r1.34 aout-tic30.c --- aout-tic30.c 3 Jul 2007 14:26:39 -0000 1.34 +++ aout-tic30.c 16 Nov 2007 15:00:57 -0000 @@ -1088,6 +1088,7 @@ const bfd_target tic30_aout_vec = BFD_JUMP_TABLE_WRITE (MY), BFD_JUMP_TABLE_LINK (MY), BFD_JUMP_TABLE_DYNAMIC (MY), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: bfd-in.h =================================================================== RCS file: /cvs/src/src/bfd/bfd-in.h,v retrieving revision 1.130 diff -u -p -r1.130 bfd-in.h --- bfd-in.h 25 Oct 2007 21:01:55 -0000 1.130 +++ bfd-in.h 16 Nov 2007 15:00:57 -0000 @@ -390,6 +390,41 @@ typedef struct _symbol_info /* Get the name of a stabs type code. */ extern const char *bfd_get_stab_name (int); + + +/* Some import structs */ + +struct bfd_import_library +{ + struct bfd_section *sec; + bfd_vma vma; + bfd_size_type size; + + char *libname; + + void *data; /* private data */ +}; + +struct bfd_import +{ + struct bfd_section *sec; + bfd_vma vma; + bfd_size_type size; + + char *funcname; + BFD_HOST_U_64_BIT funcid; +}; + +struct bfd_export +{ + struct bfd_section *sec; + bfd_vma vma; + bfd_size_type size; + + char *funcname; + int funcid; +}; + /* Hash table routines. There is no way to free up a hash table. */ Index: bfd-in2.h =================================================================== RCS file: /cvs/src/src/bfd/bfd-in2.h,v retrieving revision 1.432 diff -u -p -r1.432 bfd-in2.h --- bfd-in2.h 30 Oct 2007 15:18:29 -0000 1.432 +++ bfd-in2.h 16 Nov 2007 15:00:58 -0000 @@ -397,6 +397,41 @@ typedef struct _symbol_info /* Get the name of a stabs type code. */ extern const char *bfd_get_stab_name (int); + + +/* Some import structs */ + +struct bfd_import_library +{ + struct bfd_section *sec; + bfd_vma vma; + bfd_size_type size; + + char *libname; + + void *data; /* private data */ +}; + +struct bfd_import +{ + struct bfd_section *sec; + bfd_vma vma; + bfd_size_type size; + + char *funcname; + BFD_HOST_U_64_BIT funcid; +}; + +struct bfd_export +{ + struct bfd_section *sec; + bfd_vma vma; + bfd_size_type size; + + char *funcname; + int funcid; +}; + /* Hash table routines. There is no way to free up a hash table. */ @@ -4937,6 +4972,14 @@ extern bfd_byte *bfd_get_relocated_secti (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *, bfd_boolean, asymbol **); +#define bfd_get_libraries(abfd, userdata, callback) \ + BFD_SEND (abfd, _bfd_get_libraries, (abfd, userdata, callback)) +#define bfd_get_imports(abfd, userdata, object, callback) \ + BFD_SEND (abfd, _bfd_get_imports, (abfd, userdata, object, callback)) +#define bfd_get_exports(abfd, userdata, callback) \ + BFD_SEND (abfd, _bfd_get_exports, (abfd, userdata, callback)) +#define bfd_print_imports(abfd, FILE) \ + BFD_SEND (abfd, _bfd_print_imports, (abfd, FILE)) bfd_boolean bfd_alt_mach_code (bfd *abfd, int alternative); struct bfd_preserve @@ -5374,6 +5417,25 @@ typedef struct bfd_target long (*_bfd_canonicalize_dynamic_reloc) (bfd *, arelent **, struct bfd_symbol **); + /* Entry points to read import/ export tables (?). */ +#define BFD_JUMP_TABLE_IMPORT(NAME) \ + NAME##_bfd_get_libraries, \ + NAME##_bfd_get_imports, \ + NAME##_bfd_get_exports, \ + NAME##_bfd_print_imports, \ + NAME##_bfd_print_exports + + /* Called to get libraries of object file */ + bfd_boolean (*_bfd_get_libraries) (bfd *, bfd_boolean (*func) (bfd *, struct bfd_import_library *, void *), void *); + /* Called to get imports of object file */ + bfd_boolean (*_bfd_get_imports) (bfd *, struct bfd_import_library *, bfd_boolean (*func) (bfd *, struct bfd_import_library *, struct bfd_import *, void *), void *); + /* Called to get exports of object file */ + bfd_boolean (*_bfd_get_exports) (bfd *, bfd_boolean (*func) (bfd *, struct bfd_export *, void *), void *); + /* Called to print imports of object file */ + bfd_boolean (*_bfd_print_imports) (bfd *, void *); + /* Called to print exports of object file */ + bfd_boolean (*_bfd_print_exports) (bfd *, void *); + /* Opposite endian version of this target. */ const struct bfd_target * alternative_target; Index: bfd.c =================================================================== RCS file: /cvs/src/src/bfd/bfd.c,v retrieving revision 1.99 diff -u -p -r1.99 bfd.c --- bfd.c 15 Sep 2007 03:02:01 -0000 1.99 +++ bfd.c 16 Nov 2007 15:00:58 -0000 @@ -1306,6 +1306,14 @@ DESCRIPTION . (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *, . bfd_boolean, asymbol **); . +.#define bfd_get_libraries(abfd, userdata, callback) \ +. BFD_SEND (abfd, _bfd_get_libraries, (abfd, userdata, callback)) +.#define bfd_get_imports(abfd, userdata, object, callback) \ +. BFD_SEND (abfd, _bfd_get_imports, (abfd, userdata, object, callback)) +.#define bfd_get_exports(abfd, userdata, callback) \ +. BFD_SEND (abfd, _bfd_get_exports, (abfd, userdata, callback)) +.#define bfd_print_imports(abfd, FILE) \ +. BFD_SEND (abfd, _bfd_print_imports, (abfd, FILE)) */ Index: binary.c =================================================================== RCS file: /cvs/src/src/bfd/binary.c,v retrieving revision 1.34 diff -u -p -r1.34 binary.c --- binary.c 26 Jul 2007 11:13:59 -0000 1.34 +++ binary.c 16 Nov 2007 15:00:58 -0000 @@ -370,6 +370,7 @@ const bfd_target binary_vec = BFD_JUMP_TABLE_WRITE (binary), BFD_JUMP_TABLE_LINK (binary), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: bout.c =================================================================== RCS file: /cvs/src/src/bfd/bout.c,v retrieving revision 1.31 diff -u -p -r1.31 bout.c --- bout.c 3 Jul 2007 14:26:39 -0000 1.31 +++ bout.c 16 Nov 2007 15:00:59 -0000 @@ -1429,6 +1429,7 @@ const bfd_target b_out_vec_big_host = BFD_JUMP_TABLE_WRITE (b_out), BFD_JUMP_TABLE_LINK (b_out), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & b_out_vec_little_host, @@ -1471,6 +1472,7 @@ const bfd_target b_out_vec_little_host = BFD_JUMP_TABLE_WRITE (b_out), BFD_JUMP_TABLE_LINK (b_out), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & b_out_vec_big_host, Index: cisco-core.c =================================================================== RCS file: /cvs/src/src/bfd/cisco-core.c,v retrieving revision 1.16 diff -u -p -r1.16 cisco-core.c --- cisco-core.c 3 Jul 2007 14:26:39 -0000 1.16 +++ cisco-core.c 16 Nov 2007 15:00:59 -0000 @@ -365,6 +365,7 @@ const bfd_target cisco_core_big_vec = BFD_JUMP_TABLE_WRITE (_bfd_generic), BFD_JUMP_TABLE_LINK (_bfd_nolink), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & cisco_core_little_vec, @@ -415,6 +416,7 @@ const bfd_target cisco_core_little_vec = BFD_JUMP_TABLE_WRITE (_bfd_generic), BFD_JUMP_TABLE_LINK (_bfd_nolink), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), &cisco_core_big_vec, Index: coff-alpha.c =================================================================== RCS file: /cvs/src/src/bfd/coff-alpha.c,v retrieving revision 1.36 diff -u -p -r1.36 coff-alpha.c --- coff-alpha.c 3 Jul 2007 14:26:39 -0000 1.36 +++ coff-alpha.c 16 Nov 2007 15:00:59 -0000 @@ -2436,6 +2436,7 @@ const bfd_target ecoffalpha_little_vec = BFD_JUMP_TABLE_WRITE (_bfd_ecoff), BFD_JUMP_TABLE_LINK (_bfd_ecoff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: coff-i386.c =================================================================== RCS file: /cvs/src/src/bfd/coff-i386.c,v retrieving revision 1.28 diff -u -p -r1.28 coff-i386.c --- coff-i386.c 27 Jul 2007 21:23:01 -0000 1.28 +++ coff-i386.c 16 Nov 2007 15:01:00 -0000 @@ -681,6 +681,7 @@ const bfd_target BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: coff-i860.c =================================================================== RCS file: /cvs/src/src/bfd/coff-i860.c,v retrieving revision 1.22 diff -u -p -r1.22 coff-i860.c --- coff-i860.c 3 Jul 2007 14:26:39 -0000 1.22 +++ coff-i860.c 16 Nov 2007 15:01:00 -0000 @@ -697,6 +697,7 @@ const bfd_target BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: coff-i960.c =================================================================== RCS file: /cvs/src/src/bfd/coff-i960.c,v retrieving revision 1.19 diff -u -p -r1.19 coff-i960.c --- coff-i960.c 3 Jul 2007 14:26:39 -0000 1.19 +++ coff-i960.c 16 Nov 2007 15:01:00 -0000 @@ -675,6 +675,7 @@ bfd_getb64, bfd_getb_signed_64, bfd_putb BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & icoff_little_vec, Index: coff-ia64.c =================================================================== RCS file: /cvs/src/src/bfd/coff-ia64.c,v retrieving revision 1.13 diff -u -p -r1.13 coff-ia64.c --- coff-ia64.c 3 Jul 2007 14:26:39 -0000 1.13 +++ coff-ia64.c 16 Nov 2007 15:01:00 -0000 @@ -196,6 +196,7 @@ const bfd_target BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: coff-mips.c =================================================================== RCS file: /cvs/src/src/bfd/coff-mips.c,v retrieving revision 1.33 diff -u -p -r1.33 coff-mips.c --- coff-mips.c 3 Jul 2007 14:26:39 -0000 1.33 +++ coff-mips.c 16 Nov 2007 15:01:03 -0000 @@ -1456,6 +1456,7 @@ const bfd_target ecoff_little_vec = BFD_JUMP_TABLE_WRITE (_bfd_ecoff), BFD_JUMP_TABLE_LINK (_bfd_ecoff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & ecoff_big_vec, @@ -1499,6 +1500,7 @@ const bfd_target ecoff_big_vec = BFD_JUMP_TABLE_WRITE (_bfd_ecoff), BFD_JUMP_TABLE_LINK (_bfd_ecoff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & ecoff_little_vec, @@ -1543,6 +1545,7 @@ const bfd_target ecoff_biglittle_vec = BFD_JUMP_TABLE_WRITE (_bfd_ecoff), BFD_JUMP_TABLE_LINK (_bfd_ecoff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: coff-or32.c =================================================================== RCS file: /cvs/src/src/bfd/coff-or32.c,v retrieving revision 1.13 diff -u -p -r1.13 coff-or32.c --- coff-or32.c 3 Jul 2007 14:26:39 -0000 1.13 +++ coff-or32.c 16 Nov 2007 15:01:03 -0000 @@ -628,6 +628,7 @@ const bfd_target or32coff_big_vec = BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), /* Alternative_target. */ #ifdef TARGET_LITTLE_SYM Index: coff-ppc.c =================================================================== RCS file: /cvs/src/src/bfd/coff-ppc.c,v retrieving revision 1.34 diff -u -p -r1.34 coff-ppc.c --- coff-ppc.c 15 Oct 2007 02:00:11 -0000 1.34 +++ coff-ppc.c 16 Nov 2007 15:01:03 -0000 @@ -2623,6 +2623,7 @@ const bfd_target TARGET_LITTLE_SYM = BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), /* Alternative_target. */ #ifdef TARGET_BIG_SYM @@ -2682,6 +2683,7 @@ const bfd_target TARGET_BIG_SYM = BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), /* Alternative_target. */ #ifdef TARGET_LITTLE_SYM Index: coff-rs6000.c =================================================================== RCS file: /cvs/src/src/bfd/coff-rs6000.c,v retrieving revision 1.82 diff -u -p -r1.82 coff-rs6000.c --- coff-rs6000.c 3 Jul 2007 14:26:39 -0000 1.82 +++ coff-rs6000.c 16 Nov 2007 15:01:03 -0000 @@ -4222,6 +4222,9 @@ const bfd_target rs6000coff_vec = _bfd_xcoff_get_dynamic_reloc_upper_bound, _bfd_xcoff_canonicalize_dynamic_reloc, + /* Imports */ + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), + /* Opposite endian version, none exists */ NULL, @@ -4473,6 +4476,9 @@ const bfd_target pmac_xcoff_vec = _bfd_xcoff_get_dynamic_reloc_upper_bound, _bfd_xcoff_canonicalize_dynamic_reloc, + /* Imports */ + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), + /* Opposite endian version, none exists */ NULL, Index: coff-sh.c =================================================================== RCS file: /cvs/src/src/bfd/coff-sh.c,v retrieving revision 1.37 diff -u -p -r1.37 coff-sh.c --- coff-sh.c 3 Jul 2007 14:26:40 -0000 1.37 +++ coff-sh.c 16 Nov 2007 15:01:03 -0000 @@ -3201,6 +3201,7 @@ const bfd_target shcoff_small_vec = BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & shlcoff_small_vec, @@ -3245,6 +3246,7 @@ const bfd_target shlcoff_small_vec = BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & shcoff_small_vec, Index: coff-tic30.c =================================================================== RCS file: /cvs/src/src/bfd/coff-tic30.c,v retrieving revision 1.13 diff -u -p -r1.13 coff-tic30.c --- coff-tic30.c 3 Jul 2007 14:26:40 -0000 1.13 +++ coff-tic30.c 16 Nov 2007 15:01:03 -0000 @@ -222,6 +222,7 @@ const bfd_target tic30_coff_vec = BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: coff-tic54x.c =================================================================== RCS file: /cvs/src/src/bfd/coff-tic54x.c,v retrieving revision 1.23 diff -u -p -r1.23 coff-tic54x.c --- coff-tic54x.c 3 Jul 2007 14:26:40 -0000 1.23 +++ coff-tic54x.c 16 Nov 2007 15:01:03 -0000 @@ -464,6 +464,7 @@ const bfd_target tic54x_coff0_vec = BFD_JUMP_TABLE_WRITE (tic54x), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, (PTR) & ticoff0_swap_table @@ -508,6 +509,7 @@ const bfd_target tic54x_coff0_beh_vec = BFD_JUMP_TABLE_WRITE (tic54x), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & tic54x_coff0_vec, @@ -553,6 +555,7 @@ const bfd_target tic54x_coff1_vec = BFD_JUMP_TABLE_WRITE (tic54x), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & tic54x_coff0_beh_vec, @@ -598,6 +601,7 @@ const bfd_target tic54x_coff1_beh_vec = BFD_JUMP_TABLE_WRITE (tic54x), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & tic54x_coff1_vec, @@ -643,6 +647,7 @@ const bfd_target tic54x_coff2_vec = BFD_JUMP_TABLE_WRITE (tic54x), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & tic54x_coff1_beh_vec, @@ -688,6 +693,7 @@ const bfd_target tic54x_coff2_beh_vec = BFD_JUMP_TABLE_WRITE (tic54x), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & tic54x_coff2_vec, Index: coff-x86_64.c =================================================================== RCS file: /cvs/src/src/bfd/coff-x86_64.c,v retrieving revision 1.4 diff -u -p -r1.4 coff-x86_64.c --- coff-x86_64.c 3 Jul 2007 14:26:40 -0000 1.4 +++ coff-x86_64.c 16 Nov 2007 15:01:03 -0000 @@ -777,6 +777,7 @@ const bfd_target BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: coff64-rs6000.c =================================================================== RCS file: /cvs/src/src/bfd/coff64-rs6000.c,v retrieving revision 1.70 diff -u -p -r1.70 coff64-rs6000.c --- coff64-rs6000.c 3 Jul 2007 14:26:40 -0000 1.70 +++ coff64-rs6000.c 16 Nov 2007 15:01:03 -0000 @@ -2772,6 +2772,9 @@ const bfd_target rs6000coff64_vec = _bfd_xcoff_get_dynamic_reloc_upper_bound, _bfd_xcoff_canonicalize_dynamic_reloc, + /* Imports */ + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), + /* Opposite endian version, none exists */ NULL, @@ -3024,6 +3027,9 @@ const bfd_target aix5coff64_vec = _bfd_xcoff_get_dynamic_reloc_upper_bound, _bfd_xcoff_canonicalize_dynamic_reloc, + /* Imports */ + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), + /* Opposite endian version, none exists. */ NULL, Index: coffcode.h =================================================================== RCS file: /cvs/src/src/bfd/coffcode.h,v retrieving revision 1.142 diff -u -p -r1.142 coffcode.h --- coffcode.h 2 Aug 2007 16:02:01 -0000 1.142 +++ coffcode.h 16 Nov 2007 15:01:05 -0000 @@ -5493,6 +5493,7 @@ const bfd_target VAR = \ BFD_JUMP_TABLE_WRITE (coff), \ BFD_JUMP_TABLE_LINK (coff), \ BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), \ + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), \ \ ALTERNATIVE, \ \ @@ -5543,6 +5544,7 @@ const bfd_target VAR = \ BFD_JUMP_TABLE_WRITE (coff), \ BFD_JUMP_TABLE_LINK (coff), \ BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), \ + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), \ \ ALTERNATIVE, \ \ @@ -5591,6 +5593,7 @@ const bfd_target VAR = \ BFD_JUMP_TABLE_WRITE (coff), \ BFD_JUMP_TABLE_LINK (coff), \ BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), \ + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), \ \ ALTERNATIVE, \ \ Index: elfxx-target.h =================================================================== RCS file: /cvs/src/src/bfd/elfxx-target.h,v retrieving revision 1.111 diff -u -p -r1.111 elfxx-target.h --- elfxx-target.h 18 Oct 2007 09:13:50 -0000 1.111 +++ elfxx-target.h 16 Nov 2007 15:01:06 -0000 @@ -813,6 +813,7 @@ const bfd_target TARGET_BIG_SYM = BFD_JUMP_TABLE_WRITE (bfd_elfNN), BFD_JUMP_TABLE_LINK (bfd_elfNN), BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), /* Alternative endian target. */ #ifdef TARGET_LITTLE_SYM @@ -909,6 +910,7 @@ const bfd_target TARGET_LITTLE_SYM = BFD_JUMP_TABLE_WRITE (bfd_elfNN), BFD_JUMP_TABLE_LINK (bfd_elfNN), BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), /* Alternative endian target. */ #ifdef TARGET_BIG_SYM Index: hppabsd-core.c =================================================================== RCS file: /cvs/src/src/bfd/hppabsd-core.c,v retrieving revision 1.21 diff -u -p -r1.21 hppabsd-core.c --- hppabsd-core.c 3 Jul 2007 14:26:42 -0000 1.21 +++ hppabsd-core.c 16 Nov 2007 15:01:06 -0000 @@ -276,6 +276,7 @@ const bfd_target hppabsd_core_vec = BFD_JUMP_TABLE_WRITE (_bfd_generic), BFD_JUMP_TABLE_LINK (_bfd_nolink), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: hpux-core.c =================================================================== RCS file: /cvs/src/src/bfd/hpux-core.c,v retrieving revision 1.23 diff -u -p -r1.23 hpux-core.c --- hpux-core.c 3 Jul 2007 14:26:42 -0000 1.23 +++ hpux-core.c 16 Nov 2007 15:01:06 -0000 @@ -421,6 +421,7 @@ const bfd_target hpux_core_vec = BFD_JUMP_TABLE_WRITE (_bfd_generic), BFD_JUMP_TABLE_LINK (_bfd_nolink), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: i386msdos.c =================================================================== RCS file: /cvs/src/src/bfd/i386msdos.c,v retrieving revision 1.27 diff -u -p -r1.27 i386msdos.c --- i386msdos.c 3 Jul 2007 14:26:42 -0000 1.27 +++ i386msdos.c 16 Nov 2007 15:01:06 -0000 @@ -220,6 +220,7 @@ const bfd_target i386msdos_vec = BFD_JUMP_TABLE_WRITE (msdos), BFD_JUMP_TABLE_LINK (msdos), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: i386os9k.c =================================================================== RCS file: /cvs/src/src/bfd/i386os9k.c,v retrieving revision 1.23 diff -u -p -r1.23 i386os9k.c --- i386os9k.c 3 Jul 2007 14:26:42 -0000 1.23 +++ i386os9k.c 16 Nov 2007 15:01:06 -0000 @@ -213,6 +213,7 @@ const bfd_target i386os9k_vec = BFD_JUMP_TABLE_WRITE (aout_32), BFD_JUMP_TABLE_LINK (os9k), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: ieee.c =================================================================== RCS file: /cvs/src/src/bfd/ieee.c,v retrieving revision 1.62 diff -u -p -r1.62 ieee.c --- ieee.c 11 Sep 2007 16:07:50 -0000 1.62 +++ ieee.c 16 Nov 2007 15:01:07 -0000 @@ -3853,6 +3853,7 @@ const bfd_target ieee_vec = BFD_JUMP_TABLE_LINK (ieee), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: ihex.c =================================================================== RCS file: /cvs/src/src/bfd/ihex.c,v retrieving revision 1.36 diff -u -p -r1.36 ihex.c --- ihex.c 3 Jul 2007 14:26:42 -0000 1.36 +++ ihex.c 16 Nov 2007 15:01:07 -0000 @@ -988,6 +988,7 @@ const bfd_target ihex_vec = BFD_JUMP_TABLE_WRITE (ihex), BFD_JUMP_TABLE_LINK (ihex), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: irix-core.c =================================================================== RCS file: /cvs/src/src/bfd/irix-core.c,v retrieving revision 1.21 diff -u -p -r1.21 irix-core.c --- irix-core.c 3 Jul 2007 14:26:42 -0000 1.21 +++ irix-core.c 16 Nov 2007 15:01:07 -0000 @@ -323,6 +323,7 @@ const bfd_target irix_core_vec = BFD_JUMP_TABLE_WRITE (_bfd_generic), BFD_JUMP_TABLE_LINK (_bfd_nolink), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: libbfd-in.h =================================================================== RCS file: /cvs/src/src/bfd/libbfd-in.h,v retrieving revision 1.72 diff -u -p -r1.72 libbfd-in.h --- libbfd-in.h 27 Jul 2007 01:04:29 -0000 1.72 +++ libbfd-in.h 16 Nov 2007 15:01:07 -0000 @@ -426,6 +426,21 @@ extern bfd_boolean _bfd_generic_set_sect #define _bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_n1 #define _bfd_nodynamic_canonicalize_dynamic_reloc \ ((long (*) (bfd *, arelent **, asymbol **)) _bfd_n1) + +/* Routines to use for BFD_JUMP_TABLE_IMPORT for targets which do not + have imports. USE BFD_JUMP_TABLE_IMPORT (_bfd_noimport). */ + +#define _bfd_noimport_bfd_get_libraries \ + ((bfd_boolean (*) (bfd *, bfd_boolean (*func) (bfd *, struct bfd_import_library *, void *), void *)) bfd_false) +#define _bfd_noimport_bfd_get_imports \ + ((bfd_boolean (*) (bfd *, struct bfd_import_library *, bfd_boolean (*func) (bfd *, struct bfd_import_library *, struct bfd_import *, void *), void *)) bfd_false) +#define _bfd_noimport_bfd_get_exports \ + ((bfd_boolean (*) (bfd *, bfd_boolean (*func) (bfd *, struct bfd_export *, void *), void *)) bfd_false) +#define _bfd_noimport_bfd_print_imports \ + ((bfd_boolean (*) (bfd *, void *)) bfd_false) +#define _bfd_noimport_bfd_print_exports \ + ((bfd_boolean (*) (bfd *, void *)) bfd_false) + /* Generic routine to determine of the given symbol is a local label. */ Index: libbfd.h =================================================================== RCS file: /cvs/src/src/bfd/libbfd.h,v retrieving revision 1.199 diff -u -p -r1.199 libbfd.h --- libbfd.h 30 Oct 2007 15:18:29 -0000 1.199 +++ libbfd.h 16 Nov 2007 15:01:07 -0000 @@ -431,6 +431,21 @@ extern bfd_boolean _bfd_generic_set_sect #define _bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_n1 #define _bfd_nodynamic_canonicalize_dynamic_reloc \ ((long (*) (bfd *, arelent **, asymbol **)) _bfd_n1) + +/* Routines to use for BFD_JUMP_TABLE_IMPORT for targets which do not + have imports. USE BFD_JUMP_TABLE_IMPORT (_bfd_noimport). */ + +#define _bfd_noimport_bfd_get_libraries \ + ((bfd_boolean (*) (bfd *, bfd_boolean (*func) (bfd *, struct bfd_import_library *, void *), void *)) bfd_false) +#define _bfd_noimport_bfd_get_imports \ + ((bfd_boolean (*) (bfd *, struct bfd_import_library *, bfd_boolean (*func) (bfd *, struct bfd_import_library *, struct bfd_import *, void *), void *)) bfd_false) +#define _bfd_noimport_bfd_get_exports \ + ((bfd_boolean (*) (bfd *, bfd_boolean (*func) (bfd *, struct bfd_export *, void *), void *)) bfd_false) +#define _bfd_noimport_bfd_print_imports \ + ((bfd_boolean (*) (bfd *, void *)) bfd_false) +#define _bfd_noimport_bfd_print_exports \ + ((bfd_boolean (*) (bfd *, void *)) bfd_false) + /* Generic routine to determine of the given symbol is a local label. */ Index: mach-o-target.c =================================================================== RCS file: /cvs/src/src/bfd/mach-o-target.c,v retrieving revision 1.5 diff -u -p -r1.5 mach-o-target.c --- mach-o-target.c 3 Jul 2007 14:26:42 -0000 1.5 +++ mach-o-target.c 16 Nov 2007 15:01:07 -0000 @@ -110,6 +110,7 @@ const bfd_target TARGET_NAME = BFD_JUMP_TABLE_WRITE (bfd_mach_o), BFD_JUMP_TABLE_LINK (bfd_mach_o), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: mipsbsd.c =================================================================== RCS file: /cvs/src/src/bfd/mipsbsd.c,v retrieving revision 1.19 diff -u -p -r1.19 mipsbsd.c --- mipsbsd.c 3 Jul 2007 14:26:42 -0000 1.19 +++ mipsbsd.c 16 Nov 2007 15:01:08 -0000 @@ -449,6 +449,7 @@ const bfd_target aout_mips_little_vec = BFD_JUMP_TABLE_WRITE (MY), BFD_JUMP_TABLE_LINK (MY), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & aout_mips_big_vec, @@ -490,6 +491,7 @@ const bfd_target aout_mips_big_vec = BFD_JUMP_TABLE_WRITE (MY), BFD_JUMP_TABLE_LINK (MY), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), & aout_mips_little_vec, Index: mmo.c =================================================================== RCS file: /cvs/src/src/bfd/mmo.c,v retrieving revision 1.37 diff -u -p -r1.37 mmo.c --- mmo.c 26 Jul 2007 11:13:59 -0000 1.37 +++ mmo.c 16 Nov 2007 15:01:13 -0000 @@ -3275,6 +3275,7 @@ const bfd_target bfd_mmo_vec = BFD_JUMP_TABLE_WRITE (mmo), BFD_JUMP_TABLE_LINK (mmo), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: netbsd-core.c =================================================================== RCS file: /cvs/src/src/bfd/netbsd-core.c,v retrieving revision 1.27 diff -u -p -r1.27 netbsd-core.c --- netbsd-core.c 3 Jul 2007 14:26:42 -0000 1.27 +++ netbsd-core.c 16 Nov 2007 15:01:13 -0000 @@ -311,6 +311,7 @@ const bfd_target netbsd_core_vec = BFD_JUMP_TABLE_WRITE (_bfd_generic), BFD_JUMP_TABLE_LINK (_bfd_nolink), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: nlm-target.h =================================================================== RCS file: /cvs/src/src/bfd/nlm-target.h,v retrieving revision 1.19 diff -u -p -r1.19 nlm-target.h --- nlm-target.h 3 Jul 2007 14:26:42 -0000 1.19 +++ nlm-target.h 16 Nov 2007 15:01:13 -0000 @@ -149,6 +149,7 @@ const bfd_target TARGET_BIG_SYM = BFD_JUMP_TABLE_WRITE (nlm), BFD_JUMP_TABLE_LINK (nlm), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), /* Alternative endian target. */ #ifdef TARGET_LITTLE_SYM @@ -242,6 +243,7 @@ const bfd_target TARGET_LITTLE_SYM = BFD_JUMP_TABLE_WRITE (nlm), BFD_JUMP_TABLE_LINK (nlm), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), /* Alternative endian target. */ #ifdef TARGET_BIG_SYM Index: oasys.c =================================================================== RCS file: /cvs/src/src/bfd/oasys.c,v retrieving revision 1.38 diff -u -p -r1.38 oasys.c --- oasys.c 3 Jul 2007 14:26:42 -0000 1.38 +++ oasys.c 16 Nov 2007 15:01:13 -0000 @@ -1253,6 +1253,7 @@ const bfd_target oasys_vec = BFD_JUMP_TABLE_WRITE (oasys), BFD_JUMP_TABLE_LINK (oasys), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: osf-core.c =================================================================== RCS file: /cvs/src/src/bfd/osf-core.c,v retrieving revision 1.20 diff -u -p -r1.20 osf-core.c --- osf-core.c 3 Jul 2007 14:26:42 -0000 1.20 +++ osf-core.c 16 Nov 2007 15:01:13 -0000 @@ -231,6 +231,7 @@ const bfd_target osf_core_vec = BFD_JUMP_TABLE_WRITE (_bfd_generic), BFD_JUMP_TABLE_LINK (_bfd_nolink), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: pdp11.c =================================================================== RCS file: /cvs/src/src/bfd/pdp11.c,v retrieving revision 1.39 diff -u -p -r1.39 pdp11.c --- pdp11.c 3 Jul 2007 14:26:42 -0000 1.39 +++ pdp11.c 16 Nov 2007 15:01:13 -0000 @@ -4536,6 +4536,7 @@ const bfd_target MY (vec) = BFD_JUMP_TABLE_WRITE (MY), BFD_JUMP_TABLE_LINK (MY), BFD_JUMP_TABLE_DYNAMIC (MY), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), /* Alternative_target. */ NULL, Index: pe-mips.c =================================================================== RCS file: /cvs/src/src/bfd/pe-mips.c,v retrieving revision 1.21 diff -u -p -r1.21 pe-mips.c --- pe-mips.c 3 Jul 2007 14:26:42 -0000 1.21 +++ pe-mips.c 16 Nov 2007 15:01:13 -0000 @@ -914,6 +914,7 @@ const bfd_target BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: pef.c =================================================================== RCS file: /cvs/src/src/bfd/pef.c,v retrieving revision 1.23 diff -u -p -r1.23 pef.c --- pef.c 3 Jul 2007 14:26:42 -0000 1.23 +++ pef.c 16 Nov 2007 15:01:13 -0000 @@ -1050,6 +1050,7 @@ const bfd_target pef_vec = BFD_JUMP_TABLE_WRITE (bfd_pef), BFD_JUMP_TABLE_LINK (bfd_pef), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, @@ -1202,6 +1203,7 @@ const bfd_target pef_xlib_vec = BFD_JUMP_TABLE_WRITE (_bfd_nowrite), BFD_JUMP_TABLE_LINK (_bfd_nolink), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: ppcboot.c =================================================================== RCS file: /cvs/src/src/bfd/ppcboot.c,v retrieving revision 1.29 diff -u -p -r1.29 ppcboot.c --- ppcboot.c 3 Jul 2007 14:26:42 -0000 1.29 +++ ppcboot.c 16 Nov 2007 15:01:13 -0000 @@ -534,6 +534,7 @@ const bfd_target ppcboot_vec = BFD_JUMP_TABLE_WRITE (ppcboot), BFD_JUMP_TABLE_LINK (ppcboot), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: ptrace-core.c =================================================================== RCS file: /cvs/src/src/bfd/ptrace-core.c,v retrieving revision 1.17 diff -u -p -r1.17 ptrace-core.c --- ptrace-core.c 3 Jul 2007 14:26:42 -0000 1.17 +++ ptrace-core.c 16 Nov 2007 15:01:13 -0000 @@ -211,6 +211,7 @@ const bfd_target ptrace_core_vec = BFD_JUMP_TABLE_WRITE (_bfd_generic), BFD_JUMP_TABLE_LINK (_bfd_nolink), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: sco5-core.c =================================================================== RCS file: /cvs/src/src/bfd/sco5-core.c,v retrieving revision 1.22 diff -u -p -r1.22 sco5-core.c --- sco5-core.c 3 Jul 2007 14:26:42 -0000 1.22 +++ sco5-core.c 16 Nov 2007 15:01:13 -0000 @@ -402,6 +402,7 @@ const bfd_target sco5_core_vec = BFD_JUMP_TABLE_WRITE (_bfd_generic), BFD_JUMP_TABLE_LINK (_bfd_nolink), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: som.c =================================================================== RCS file: /cvs/src/src/bfd/som.c,v retrieving revision 1.69 diff -u -p -r1.69 som.c --- som.c 16 Oct 2007 15:15:50 -0000 1.69 +++ som.c 16 Nov 2007 15:01:17 -0000 @@ -6405,6 +6405,7 @@ const bfd_target som_vec = BFD_JUMP_TABLE_WRITE (som), BFD_JUMP_TABLE_LINK (som), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: srec.c =================================================================== RCS file: /cvs/src/src/bfd/srec.c,v retrieving revision 1.45 diff -u -p -r1.45 srec.c --- srec.c 26 Jul 2007 18:45:13 -0000 1.45 +++ srec.c 16 Nov 2007 15:01:17 -0000 @@ -1275,6 +1275,7 @@ const bfd_target srec_vec = BFD_JUMP_TABLE_WRITE (srec), BFD_JUMP_TABLE_LINK (srec), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, @@ -1330,6 +1331,7 @@ const bfd_target symbolsrec_vec = BFD_JUMP_TABLE_WRITE (srec), BFD_JUMP_TABLE_LINK (srec), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: targets.c =================================================================== RCS file: /cvs/src/src/bfd/targets.c,v retrieving revision 1.163 diff -u -p -r1.163 targets.c --- targets.c 3 Jul 2007 14:26:42 -0000 1.163 +++ targets.c 16 Nov 2007 15:01:17 -0000 @@ -512,6 +512,25 @@ BFD_JUMP_TABLE macros. . long (*_bfd_canonicalize_dynamic_reloc) . (bfd *, arelent **, struct bfd_symbol **); . +. {* Entry points to read import/ export tables (?). *} +.#define BFD_JUMP_TABLE_IMPORT(NAME) \ +. NAME##_bfd_get_libraries, \ +. NAME##_bfd_get_imports, \ +. NAME##_bfd_get_exports, \ +. NAME##_bfd_print_imports, \ +. NAME##_bfd_print_exports +. +. {* Called to get libraries of object file *} +. bfd_boolean (*_bfd_get_libraries) (bfd *, bfd_boolean (*func) (bfd *, struct bfd_import_library *, void *), void *); +. {* Called to get imports of object file *} +. bfd_boolean (*_bfd_get_imports) (bfd *, struct bfd_import_library *, bfd_boolean (*func) (bfd *, struct bfd_import_library *, struct bfd_import *, void *), void *); +. {* Called to get exports of object file *} +. bfd_boolean (*_bfd_get_exports) (bfd *, bfd_boolean (*func) (bfd *, struct bfd_export *, void *), void *); +. {* Called to print imports of object file *} +. bfd_boolean (*_bfd_print_imports) (bfd *, void *); +. {* Called to print exports of object file *} +. bfd_boolean (*_bfd_print_exports) (bfd *, void *); +. A pointer to an alternative bfd_target in case the current one is not satisfactory. This can happen when the target cpu supports both big Index: tekhex.c =================================================================== RCS file: /cvs/src/src/bfd/tekhex.c,v retrieving revision 1.33 diff -u -p -r1.33 tekhex.c --- tekhex.c 26 Jul 2007 18:18:07 -0000 1.33 +++ tekhex.c 16 Nov 2007 15:01:17 -0000 @@ -1000,6 +1000,7 @@ const bfd_target tekhex_vec = BFD_JUMP_TABLE_WRITE (tekhex), BFD_JUMP_TABLE_LINK (tekhex), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: trad-core.c =================================================================== RCS file: /cvs/src/src/bfd/trad-core.c,v retrieving revision 1.28 diff -u -p -r1.28 trad-core.c --- trad-core.c 15 Jul 2007 06:33:34 -0000 1.28 +++ trad-core.c 16 Nov 2007 15:01:17 -0000 @@ -317,6 +317,7 @@ const bfd_target trad_core_vec = BFD_JUMP_TABLE_WRITE (_bfd_generic), BFD_JUMP_TABLE_LINK (_bfd_nolink), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: versados.c =================================================================== RCS file: /cvs/src/src/bfd/versados.c,v retrieving revision 1.34 diff -u -p -r1.34 versados.c --- versados.c 3 Jul 2007 14:26:42 -0000 1.34 +++ versados.c 16 Nov 2007 15:01:17 -0000 @@ -864,6 +864,7 @@ const bfd_target versados_vec = BFD_JUMP_TABLE_WRITE (versados), BFD_JUMP_TABLE_LINK (versados), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: vms.c =================================================================== RCS file: /cvs/src/src/bfd/vms.c,v retrieving revision 1.43 diff -u -p -r1.43 vms.c --- vms.c 3 Jul 2007 14:26:43 -0000 1.43 +++ vms.c 16 Nov 2007 15:01:17 -0000 @@ -1636,6 +1636,7 @@ const bfd_target vms_alpha_vec = BFD_JUMP_TABLE_WRITE (vms), BFD_JUMP_TABLE_LINK (vms), BFD_JUMP_TABLE_DYNAMIC (vms), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, @@ -1682,6 +1683,7 @@ const bfd_target vms_vax_vec = BFD_JUMP_TABLE_WRITE (vms), BFD_JUMP_TABLE_LINK (vms), BFD_JUMP_TABLE_DYNAMIC (vms), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: xcoff-target.h =================================================================== RCS file: /cvs/src/src/bfd/xcoff-target.h,v retrieving revision 1.18 diff -u -p -r1.18 xcoff-target.h --- xcoff-target.h 3 Jul 2007 14:26:43 -0000 1.18 +++ xcoff-target.h 16 Nov 2007 15:01:17 -0000 @@ -185,6 +185,7 @@ const bfd_target TARGET_SYM = BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (_bfd_xcoff), BFD_JUMP_TABLE_DYNAMIC (_bfd_xcoff), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL, Index: xsym.c =================================================================== RCS file: /cvs/src/src/bfd/xsym.c,v retrieving revision 1.22 diff -u -p -r1.22 xsym.c --- xsym.c 3 Jul 2007 14:26:43 -0000 1.22 +++ xsym.c 16 Nov 2007 15:01:17 -0000 @@ -2348,6 +2348,7 @@ const bfd_target sym_vec = BFD_JUMP_TABLE_WRITE (bfd_sym), BFD_JUMP_TABLE_LINK (bfd_sym), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_IMPORT (_bfd_noimport), NULL,