Kevin Buettner
e5e2b9ff10
Use gdbarch data mechanism instead of gdbarch swap mechanism to manage
...
the fetching of architecture specific link map offsets.
2001-09-26 07:03:13 +00:00
Alan Modra
d5e0ebeb62
* ldmisc.c (USE_STDARG): Remove.
...
(info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
(einfo): Likewise.
(minfo): Likewise.
(lfinfo): Likewise.
* ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
declarations. Update copyright.
2001-09-26 01:55:44 +00:00
Alan Modra
451dad9c58
* bucomm.c (fatal): Define using VPARAMS, VA_OPEN, VA_FIXEDARG,
...
VA_CLOSE.
(non_fatal): Likewise.
* objdump.c (objdump_sprintf): Likewise.
* readelf.c (error): Likewise.
(warn): Likewise.
2001-09-26 01:55:19 +00:00
Alan Modra
86caa542b1
* arc-dis.c: Formatting fixes.
...
(my_sprintf): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2001-09-26 01:54:07 +00:00
Alan Modra
af6166c063
* bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
...
VA_OPEN, VA_FIXEDARG, VA_CLOSE.
(bfd_archive_filename): Cast bfd_malloc arg to the correct size.
2001-09-26 01:53:25 +00:00
gdbadmin
ca990479da
*** empty log message ***
2001-09-26 00:00:02 +00:00
DJ Delorie
66c94e19fc
merge from gcc
2001-09-25 23:02:03 +00:00
Jakub Jelinek
e62de969f0
* elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
...
computation.
2001-09-25 22:12:29 +00:00
H.J. Lu
5d5849d7b5
2001-09-25 H.J. Lu <hjl@gnu.org>
...
* ld-elfweak/dso.dsym: Updated for alpha.
* ld-elfweak/dsodata.dsym: Likewise.
* ld-elfweak/strong.sym: Likewise.
* ld-elfweak/strongcomm.sym: Likewise.
* ld-elfweak/strongdata.sym: Likewise.
2001-09-25 20:24:00 +00:00
Jakub Jelinek
d974e25661
* readelf.c (do_wide): New.
...
(options): Add --wide.
(usage, parse_args): Likewise.
(process_program_headers): Put each segment on a single line if
--wide is given.
(process_section_headers): Put each section on a single line if
--wide is given.
* doc/binutils.texi: Document it.
* NEWS: Likewise.
2001-09-25 16:44:19 +00:00
H.J. Lu
09c1cc8828
2001-09-25 H.J. Lu <hjl@gnu.org>
...
* bfd-in2.h: Regenerated.
2001-09-25 16:35:05 +00:00
Alan Modra
2f11c26109
* readelf.c (print_vma): Print 8 digits of low hex value.
2001-09-25 12:49:38 +00:00
Alan Modra
97735a42e7
* listing.c (buffer_line): Don't write past the end of `line' when
...
EOF is reached.
2001-09-25 12:09:45 +00:00
Jiri Smid
86ed34a902
fix of my email address
2001-09-25 11:52:54 +00:00
Jiri Smid
c74ae012f5
* x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
...
(x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
by LINUX_SIGINFO_SIZE.
2001-09-25 10:37:17 +00:00
Alan Modra
387019538f
* elf32-i386.c: Add comment re linker function names and ordering.
...
(elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
(elf_i386_grok_prstatus): Move before linker functions.
(elf_i386_grok_psinfo): Likewise.
(elf_i386_fake_sections): Move so that functions are ordered.
(elf_i386_reloc_type_class): Likewise. Comment function purpose.
2001-09-25 10:11:46 +00:00
Alexandre Oliva
6e22e505ed
* config/tc-mn10300.c (tc_gen_reloc): Don't emit an *ABS*
...
relocation for differences between symbols in a section other
than the one in which the difference is to be placed; apply
the relocation instead.
2001-09-25 08:51:52 +00:00
Alan Modra
83c81bfe97
* elf32-hppa.c: Rename all occurrences of "hplink" to "htab"
...
throughout file.
2001-09-25 07:28:13 +00:00
Alan Modra
98ceb8ce1d
* elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
...
code handling this option.
(LONG_BRANCH_VIA_PLT): Likewise.
(RELATIVE_DYNRELOCS): Define as zero.
(struct elf32_hppa_dyn_reloc_entry): Add "sec", and
"pc_count" fields. Remove "section" field.
(elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
(elf32_hppa_check_relocs): Don't allocate space for dynamic
relocs here. Instead, record all needed dynamic relocs via
dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
in elf_section_data.
(elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
(allocate_plt_and_got_and_discard_relocs): Rename to
allocate_dynrelocs. Allocate rather than discarding dyn relocs.
(readonly_dynrelocs): New function.
(elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
Call readonly_dynrelocs to determine need for DT_TEXTREL.
Rename "i" to "ibfd". Allocate space for local dyn relocs.
(elf32_hppa_relocate_section): Make use of cached sreloc.
(elf32_hppa_reloc_type_class): New function.
(elf_backend_reloc_type_class): Define.
2001-09-25 07:10:59 +00:00
Alan Modra
0c715baa72
* elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
...
and "sreloc" fields.
* elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
"pc_count" fields. Remove "section" field.
(elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
allocate space for dynamic relocs here. Instead, record all
needed dynamic relocs via dyn_relocs and local_dynrel. Cache
pointer to "sreloc" section in elf_section_data.
(elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
(allocate_plt_and_got_and_discard_relocs): Rename to
allocate_dynrelocs. Allocate rather than discarding dyn relocs.
(readonly_dynrelocs): New function.
(elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
Rename "i" to "ibfd". Allocate space for local dyn relocs.
(elf_i386_relocate_section): Make use of cached sreloc.
2001-09-25 04:34:50 +00:00
Andrew Cagney
4f3379724d
* maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
...
variables.
(maintenance_set_profile_cmd): New function.
(maintenance_show_cmd, maintenance_set_cmd): New functions.
(_initialize_maint_cmds): Add "maintenance set" and "maintenance
show" and, commented out, "maintenance set/show profile" commands.
2001-09-25 02:31:51 +00:00
gdbadmin
0163999c22
*** empty log message ***
2001-09-25 00:00:06 +00:00
DJ Delorie
99ee3a8f13
merge from gcc
2001-09-24 23:37:52 +00:00
Nick Clifton
85c774585e
Fix thinko
2001-09-24 21:16:47 +00:00
Nick Clifton
9cc16c3a6b
Remove spurious prototype.
2001-09-24 21:13:48 +00:00
Andrew Cagney
f76febae84
* findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
...
convert the pointer into a CORE_ADDRs.
2001-09-24 19:46:15 +00:00
Nick Clifton
c406afafb1
oops - frag omitted from previous patch application
2001-09-24 18:35:08 +00:00
Nick Clifton
aa3d9aba51
oops - omitted from previous delta
2001-09-24 18:21:24 +00:00
Andrew Cagney
96d2f608dc
* doublest.h (store_floating, extract_floating): Add comment
...
indicating these functions are deprecated.
(extract_typed_floating, store_typed_floating): Declare.
* doublest.c: Include "gdbtypes.h".
(extract_typed_floating, store_typed_floating): Define.
* stabsread.c (define_symbol): Use store_typed_floating.
* valarith.c (value_binop): Ditto.
* values.c (unpack_long): Use extract_typed_floating.
(unpack_double): Ditto.
2001-09-24 17:16:53 +00:00
Nick Clifton
2f8d8971c6
improve documenation about auto-import
2001-09-24 16:17:46 +00:00
Nick Clifton
72358f6568
Define and use pe_get_data_import_dll_name().
2001-09-24 15:03:01 +00:00
Nick Clifton
89b57c9acc
fix compile time warning messages
2001-09-24 14:47:10 +00:00
Orjan Friberg
7ab98e9e4f
2001-09-24 Orjan Friberg <orjanf@axis.com>
...
* cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
from correct register.
2001-09-24 08:04:10 +00:00
Andreas Jaeger
1d50f91e28
* nlmconv.c: Fix warnings about unused attributes and function
...
prototypes.
* strings.c: Add prototype for get_char.
2001-09-24 06:07:52 +00:00
Alan Modra
f51e552e0e
* elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
...
reloc rather than just the type.
(_bfd_elf_reloc_type_class): Likewise.
* elf.c (_bfd_elf_reloc_type_class): Likewise.
* elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
* elf32-cris.c (elf_cris_reloc_type_class): Likewise.
* elf32-i386.c (elf_i386_reloc_type_class): Likewise.
* elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
* elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
* elf32-s390.c (elf_s390_reloc_type_class): Likewise.
* elf32-sh.c (sh_elf_reloc_type_class): Likewise.
* elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
* elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
* elf64-s390.c (elf_s390_reloc_type_class): Likewise.
* elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
* elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
* elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
* elflink.h: Formatting fixes.
(elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
o->contents to PTR. Update call to elf_backend_reloc_type_class.
2001-09-24 01:38:31 +00:00
gdbadmin
02ca6eb41d
*** empty log message ***
2001-09-24 00:00:33 +00:00
gdbadmin
5175008b28
*** empty log message ***
2001-09-23 00:00:03 +00:00
Nick Clifton
a80076a171
Fix compile time warnings
2001-09-22 09:23:31 +00:00
Alan Modra
0c35f01ab3
* elfcode.h (elf_object_p): Allow for no section header at all in
...
non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
2001-09-22 03:16:01 +00:00
gdbadmin
7e6922fd50
*** empty log message ***
2001-09-22 00:00:02 +00:00
Mark Kettenis
1dbeeb7b3b
* x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
2001-09-21 22:57:29 +00:00
Nick Clifton
1e738b87c8
Fix compile time warnings
2001-09-21 14:25:09 +00:00
Alan Modra
2ca0d95257
* arc-dis.c: Don't include <ctype.h>.
...
* openrisc-desc.c: Likewise.
* openrisc-ibld.c: Likewise.
2001-09-21 12:36:56 +00:00
Alan Modra
7146a6f592
* config/tc-openrisc.c: Don't include <ctype.h>.
2001-09-21 12:34:40 +00:00
Jiri Smid
c4d82c9662
* config/i386/x86-64linux.mh: New file.
...
* config/i386/x86-64linux.mt: New file.
* config/i386/nm-x86_64.h: New file.
* x86-64-linux-tdep.c: New file.
* x86-64-linux-nat.c: New file.
* x86-64-tdep.c: New file.
* x86-64-tdep.h: New file.
* i386-tdep.h: New file.
* i387-nat.c: Include i386-tdep.h when multiarch.
* i387-tdep.c: Ditto.
* config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
and x86_64-linux-nat.c
* Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
2001-09-21 12:24:55 +00:00
Jiri Smid
53e95fcfec
* config/i386/x86-64linux.mh: New file.
...
* config/i386/x86-64linux.mt: New file.
* config/i386/nm-x86_64.h: New file.
* x86-64-linux-tdep.c: New file.
* x86-64-linux-nat.c: New file.
* x86-64-tdep.c: New file.
* x86-64-tdep.h: New file.
* config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
and x86_64-linux-nat.c
* Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
2001-09-21 12:19:15 +00:00
Jiri Smid
9a82579f3d
* i386-tdep.h: New file.
...
* i387-nat.c: Include i386-tdep.h when multiarch.
* i387-tdep.c: Ditto.
2001-09-21 12:15:15 +00:00
Jiri Smid
cab16195fe
* MAINTAINERS: Add myself to the write-after-approval list.
...
* i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
(i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
i386_insert_watchpoint, i386_remove_watchpoint): Add support for
8-byte wide watchpoints.
(i386_show_dr): Debug message format string change.
2001-09-21 07:17:52 +00:00
Jiri Smid
e906b9a3a9
* i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
...
(i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
i386_insert_watchpoint, i386_remove_watchpoint): Add support for
8-byte wide watchpoints.
(i386_show_dr): Debug message format string change.
2001-09-21 07:16:03 +00:00
Jiri Smid
5f3b524877
* MAINTAINERS: Add myself to the write-after-approval list.
2001-09-21 07:14:31 +00:00