~ubuntu-branches/debian/jessie/gdb/jessie

« back to all changes in this revision

Viewing changes to bfd/libbfd.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2010-03-20 01:21:29 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320012129-t7h25y8zgr8c2369
Tags: 7.1-1
* New upstream release, including:
  - PIE support (Closes: #346409).
  - C++ improvements, including static_cast<> et al, namespace imports,
    and bug fixes in printing virtual base classes.
  - Multi-program debugging.  One GDB can now debug multiple programs
    at the same time.
  - Python scripting improvements, including gdb.parse_and_eval.
  - Updated MIPS Linux signal frame layout (Closes: #570875).
  - No internal error stepping over _dl_debug_state (Closes: #569551).
* Update to Standards-Version: 3.8.4 (no changes required).
* Include more relevant (and smaller) docs in the gdbserver package
  (Closes: #571132).
* Do not duplicate documentation in gdb64, gdb-source, and libgdb-dev.
* Fix crash when switching into TUI mode (Closes: #568489).

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
struct areltdata {
96
96
  char * arch_header;           /* it's actually a string */
97
97
  unsigned int parsed_size;     /* octets of filesize not including ar_hdr */
 
98
  unsigned int extra_size;      /* BSD4.4: extra bytes after the header.  */
98
99
  char *filename;               /* null-terminated */
99
100
  file_ptr origin;              /* for element of a thin archive */
100
101
};
212
213
extern void *_bfd_generic_read_ar_hdr_mag
213
214
  (bfd *, const char *);
214
215
 
 
216
extern bfd_boolean _bfd_generic_write_ar_hdr
 
217
  (bfd *, bfd *);
 
218
 
 
219
extern bfd_boolean _bfd_bsd44_write_ar_hdr
 
220
  (bfd *, bfd *);
 
221
 
215
222
bfd * bfd_generic_openr_next_archived_file
216
223
  (bfd *archive, bfd *last_file);
217
224
 
220
227
 
221
228
#define _bfd_read_ar_hdr(abfd) \
222
229
  BFD_SEND (abfd, _bfd_read_ar_hdr_fn, (abfd))
 
230
#define _bfd_write_ar_hdr(archive, abfd)         \
 
231
  BFD_SEND (abfd, _bfd_write_ar_hdr_fn, (archive, abfd))
223
232
 
224
233
/* Generic routines to use for BFD_JUMP_TABLE_GENERIC.  Use
225
234
   BFD_JUMP_TABLE_GENERIC (_bfd_generic).  */
278
287
  ((bfd_boolean (*) (bfd *, unsigned int, struct orl *, unsigned int, int)) \
279
288
   bfd_false)
280
289
#define _bfd_noarchive_read_ar_hdr bfd_nullvoidptr
 
290
#define _bfd_noarchive_write_ar_hdr \
 
291
  ((bfd_boolean (*) (bfd *, bfd *)) bfd_false)
281
292
#define _bfd_noarchive_openr_next_archived_file \
282
293
  ((bfd *(*) (bfd *, bfd *)) bfd_nullvoidptr)
283
294
#define _bfd_noarchive_get_elt_at_index \
296
307
#define _bfd_archive_bsd_truncate_arname bfd_bsd_truncate_arname
297
308
#define _bfd_archive_bsd_write_armap bsd_write_armap
298
309
#define _bfd_archive_bsd_read_ar_hdr _bfd_generic_read_ar_hdr
 
310
#define _bfd_archive_bsd_write_ar_hdr _bfd_generic_write_ar_hdr
299
311
#define _bfd_archive_bsd_openr_next_archived_file \
300
312
  bfd_generic_openr_next_archived_file
301
313
#define _bfd_archive_bsd_get_elt_at_index _bfd_generic_get_elt_at_index
315
327
#define _bfd_archive_coff_truncate_arname bfd_dont_truncate_arname
316
328
#define _bfd_archive_coff_write_armap coff_write_armap
317
329
#define _bfd_archive_coff_read_ar_hdr _bfd_generic_read_ar_hdr
 
330
#define _bfd_archive_coff_write_ar_hdr _bfd_generic_write_ar_hdr
318
331
#define _bfd_archive_coff_openr_next_archived_file \
319
332
  bfd_generic_openr_next_archived_file
320
333
#define _bfd_archive_coff_get_elt_at_index _bfd_generic_get_elt_at_index
322
335
  bfd_generic_stat_arch_elt
323
336
#define _bfd_archive_coff_update_armap_timestamp bfd_true
324
337
 
 
338
/* Routines to use for BFD_JUMP_TABLE_ARCHIVE to get BSD4.4 style
 
339
   archives.  Use BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_bsd44).  */
 
340
 
 
341
#define _bfd_archive_bsd44_slurp_armap bfd_slurp_bsd_armap
 
342
#define _bfd_archive_bsd44_slurp_extended_name_table \
 
343
  _bfd_slurp_extended_name_table
 
344
extern bfd_boolean _bfd_archive_bsd44_construct_extended_name_table
 
345
  (bfd *, char **, bfd_size_type *, const char **);
 
346
#define _bfd_archive_bsd44_truncate_arname bfd_bsd_truncate_arname
 
347
#define _bfd_archive_bsd44_write_armap bsd_write_armap
 
348
#define _bfd_archive_bsd44_read_ar_hdr _bfd_generic_read_ar_hdr
 
349
#define _bfd_archive_bsd44_write_ar_hdr _bfd_bsd44_write_ar_hdr
 
350
#define _bfd_archive_bsd44_openr_next_archived_file \
 
351
  bfd_generic_openr_next_archived_file
 
352
#define _bfd_archive_bsd44_get_elt_at_index _bfd_generic_get_elt_at_index
 
353
#define _bfd_archive_bsd44_generic_stat_arch_elt \
 
354
  bfd_generic_stat_arch_elt
 
355
#define _bfd_archive_bsd44_update_armap_timestamp \
 
356
  _bfd_archive_bsd_update_armap_timestamp
 
357
 
325
358
/* Routines to use for BFD_JUMP_TABLE_SYMBOLS where there is no symbol
326
359
   support.  Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).  */
327
360
 
415
448
  ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) bfd_false)
416
449
#define _bfd_nolink_bfd_link_just_syms \
417
450
  ((void (*) (asection *, struct bfd_link_info *)) bfd_void)
 
451
#define _bfd_nolink_bfd_copy_link_hash_symbol_type \
 
452
  ((void (*) (bfd *, struct bfd_link_hash_entry *, \
 
453
              struct bfd_link_hash_entry *)) bfd_void)
418
454
#define _bfd_nolink_bfd_final_link \
419
455
  ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) bfd_false)
420
456
#define _bfd_nolink_bfd_link_split_section \
529
565
extern void _bfd_generic_link_just_syms
530
566
  (asection *, struct bfd_link_info *);
531
567
 
 
568
/* Generic routine that does nothing.  */
 
569
extern void _bfd_generic_copy_link_hash_symbol_type
 
570
  (bfd *, struct bfd_link_hash_entry *, struct bfd_link_hash_entry *);
 
571
 
532
572
/* Generic link routine.  */
533
573
extern bfd_boolean _bfd_generic_final_link
534
574
  (bfd *, struct bfd_link_info *);
888
928
  "BFD_RELOC_SPARC_GOTDATA_OP_HIX22",
889
929
  "BFD_RELOC_SPARC_GOTDATA_OP_LOX10",
890
930
  "BFD_RELOC_SPARC_GOTDATA_OP",
 
931
  "BFD_RELOC_SPARC_JMP_IREL",
 
932
  "BFD_RELOC_SPARC_IRELATIVE",
891
933
  "BFD_RELOC_SPARC_BASE13",
892
934
  "BFD_RELOC_SPARC_BASE22",
893
935
  "BFD_RELOC_SPARC_10",
1646
1688
  "BFD_RELOC_AVR_LDI",
1647
1689
  "BFD_RELOC_AVR_6",
1648
1690
  "BFD_RELOC_AVR_6_ADIW",
 
1691
  "BFD_RELOC_RX_NEG8",
 
1692
  "BFD_RELOC_RX_NEG16",
 
1693
  "BFD_RELOC_RX_NEG24",
 
1694
  "BFD_RELOC_RX_NEG32",
 
1695
  "BFD_RELOC_RX_16_OP",
 
1696
  "BFD_RELOC_RX_24_OP",
 
1697
  "BFD_RELOC_RX_32_OP",
 
1698
  "BFD_RELOC_RX_8U",
 
1699
  "BFD_RELOC_RX_16U",
 
1700
  "BFD_RELOC_RX_24U",
 
1701
  "BFD_RELOC_RX_DIR3U_PCREL",
 
1702
  "BFD_RELOC_RX_DIFF",
 
1703
  "BFD_RELOC_RX_GPRELB",
 
1704
  "BFD_RELOC_RX_GPRELW",
 
1705
  "BFD_RELOC_RX_GPRELL",
 
1706
  "BFD_RELOC_RX_SYM",
 
1707
  "BFD_RELOC_RX_OP_SUBTRACT",
 
1708
  "BFD_RELOC_RX_ABS8",
 
1709
  "BFD_RELOC_RX_ABS16",
 
1710
  "BFD_RELOC_RX_ABS32",
 
1711
  "BFD_RELOC_RX_ABS16U",
 
1712
  "BFD_RELOC_RX_ABS16UW",
 
1713
  "BFD_RELOC_RX_ABS16UL",
 
1714
  "BFD_RELOC_RX_RELAX",
1649
1715
  "BFD_RELOC_390_12",
1650
1716
  "BFD_RELOC_390_GOT12",
1651
1717
  "BFD_RELOC_390_PLT32",
2072
2138
  "BFD_RELOC_LM32_RELATIVE",
2073
2139
  "BFD_RELOC_MACH_O_SECTDIFF",
2074
2140
  "BFD_RELOC_MACH_O_PAIR",
 
2141
  "BFD_RELOC_MACH_O_X86_64_BRANCH32",
 
2142
  "BFD_RELOC_MACH_O_X86_64_BRANCH8",
 
2143
  "BFD_RELOC_MACH_O_X86_64_GOT",
 
2144
  "BFD_RELOC_MACH_O_X86_64_GOT_LOAD",
 
2145
  "BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32",
 
2146
  "BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64",
 
2147
  "BFD_RELOC_MACH_O_X86_64_PCREL32_1",
 
2148
  "BFD_RELOC_MACH_O_X86_64_PCREL32_2",
 
2149
  "BFD_RELOC_MACH_O_X86_64_PCREL32_4",
2075
2150
  "BFD_RELOC_MICROBLAZE_32_LO",
2076
2151
  "BFD_RELOC_MICROBLAZE_32_LO_PCREL",
2077
2152
  "BFD_RELOC_MICROBLAZE_32_ROSDA",