diff options
author | Ken Raeburn <raeburn@cygnus> | 1995-11-06 10:08:03 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1995-11-06 10:08:03 +0000 |
commit | 4fe6d901bd49996a77c84ab710918c94e84e9a23 (patch) | |
tree | efb4a153d072284395fe4dc4d61d88ca61e17782 /bfd/oasys.c | |
parent | ffacb892eba97f8eb3019ee236fc8ea7e1825718 (diff) | |
download | gdb-4fe6d901bd49996a77c84ab710918c94e84e9a23.zip gdb-4fe6d901bd49996a77c84ab710918c94e84e9a23.tar.gz gdb-4fe6d901bd49996a77c84ab710918c94e84e9a23.tar.bz2 |
Changes for mmap; details in change log.
Added some new interfaces, and a new entry in the target vector. Under the new
interfaces, mmap will be used if available, otherwise malloc/seek/read, as
before. Old interfaces all still intact.
Most configurations (including all used by "--enable-targets=all") simply
changed to call the default routine for that entry in the target vector. I
might've missed some targets only included in special configurations.
Support for a.out symbol and string table reading now goes through new
interfaces, and will use mmap when available.
Linker hooks (e.g., avoiding reallocation under malloc) not ready yet.
Diffstat (limited to 'bfd/oasys.c')
-rw-r--r-- | bfd/oasys.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/oasys.c b/bfd/oasys.c index 4e543af..7637064 100644 --- a/bfd/oasys.c +++ b/bfd/oasys.c @@ -1484,6 +1484,7 @@ oasys_sizeof_headers (abfd, exec) ((boolean (*) \ PARAMS ((bfd *, unsigned int, struct orl *, unsigned int, int))) \ bfd_true) +#define oasys_read_ar_hdr bfd_nullvoidptr #define oasys_update_armap_timestamp bfd_true #define oasys_bfd_is_local_label bfd_generic_is_local_label @@ -1496,6 +1497,9 @@ oasys_sizeof_headers (abfd, exec) #define oasys_set_arch_mach bfd_default_set_arch_mach +#define oasys_get_section_contents_in_window \ + _bfd_generic_get_section_contents_in_window + #define oasys_bfd_get_relocated_section_contents \ bfd_generic_get_relocated_section_contents #define oasys_bfd_relax_section bfd_generic_relax_section @@ -1519,7 +1523,6 @@ const bfd_target oasys_vec = 0, /* leading underscore */ ' ', /* ar_pad_char */ 16, /* ar_max_namelen */ - 1, /* minimum alignment */ bfd_getb64, bfd_getb_signed_64, bfd_putb64, bfd_getb32, bfd_getb_signed_32, bfd_putb32, bfd_getb16, bfd_getb_signed_16, bfd_putb16, /* data */ |