Commit Graph

15318 Commits

Author SHA1 Message Date
Ian Lance Taylor
8adca58251 * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
ELF_LINK_NON_ELF flag.
	(mips_elf_create_got_section): Likewise.

	* elf.c: Revert last change, since it breaks dynamic linking.
	* elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
	field.
	* elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
	* elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
	(elfNN_bed): Don't initialize want_hdr_in_seg field.
1996-02-05 15:48:59 +00:00
Ian Lance Taylor
e303e2e358 * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
flavour of a section with no owner.
1996-02-05 15:47:53 +00:00
Ian Lance Taylor
0f09ddd4d2 * coffcode.h: Move today's libcoff.h change into coffcode.h. 1996-02-04 04:01:36 +00:00
Fred Fish
b48f10bacc * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args back into
one line.  Some compilers (sunos 4.1.3 for example) won't accept args
	split across more than one line.
1996-02-03 23:47:12 +00:00
Fred Fish
f56cc4e719 * command.c (add_cmd): Add missing initialization for enums member.
Reorder members to match structure declaration to make it easier to
	tell when one is missing.
1996-02-03 19:39:34 +00:00
Fred Fish
8bdae15642 * exec.c (exec_file_command): Fix problem reported by Hans Verkuil
(hans@wyst.hobby.nl) where filename in malloc'd memory is referenced
	after being freed.
1996-02-03 18:06:12 +00:00
Michael Meissner
d03a1ca81a Winsup needs libiberty 1996-02-03 15:46:00 +00:00
Peter Schauer
255181a9ed * dwarfread.c (read_func_scope): Avoid GDB core dumps if
AT_name tag is missing.

	* procfs.c (procfs_stopped_by_watchpoint):  Fix logic when
	FLTWATCH and FLTKWATCH are defined.

	* remote.c (remote_read_bytes):  Advance memaddr for transfers,
	return number of bytes transferred for partial reads.

	* top.c (init_signals):  Reset SIGTRAP to SIG_DFL.
1996-02-03 11:32:34 +00:00
Michael Meissner
c2b6884b97 Move .sdata2/.sbss2 into read-only section 1996-02-03 00:31:03 +00:00
Michael Meissner
fcfcbf27be Fix typo 1996-02-02 23:01:14 +00:00
Ian Lance Taylor
ae9120f917 * configure: Regenerate. 1996-02-02 21:50:53 +00:00
Steve Chamberlain
9a763320c2 Spell off correctly. 1996-02-02 21:43:15 +00:00
Steve Chamberlain
454ffae5c4 * win32-nat.c (mappings): Add ppc registers.
(child_resume): Turn of step for ppc.
1996-02-02 21:42:12 +00:00
Steve Chamberlain
50761d3b66 * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
* configure: Regenerate.
1996-02-02 19:45:14 +00:00
Jeff Law
9dce8260d4 * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
try to do arithmetic on a void *, cast it to a unsigned char * first.
Some solaris compilers don't like void * arithmetic.
1996-02-02 19:14:40 +00:00
Ian Lance Taylor
e277d131e8 Fri Feb 2 14:09:25 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
* Makefile.in (INSTALL_XFORM): Remove -e.
1996-02-02 19:10:33 +00:00
Ian Lance Taylor
e24cf2b556 * write.c (write_relocs): Use S_IS_DEFINED and S_IS_COMMON rather
than comparing S_GET_SEGMENT to undefined_section.
	(write_object_file): Skip symbols which were equated to an
	undefined or common symbol.
	* symbols.c (resolve_symbol_value): Use S_IS_DEFINED and
	S_IS_COMMON rather than comparing S_GET_SEGMENT to
	undefined_section.
	(S_GET_VALUE): Likewise.  Avoid recursion problems if S_IS_DEFINED
	or S_IS_COMMON call S_GET_VALUE.
	* config/obj-aout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
	* config/obj-aout.c (obj_emit_relocations): If a reloc is equated
	to an undefined or common symbol, convert the reloc to be against
	the target symbol.
	(obj_crawl_symbol_chain): Skip symbols which were equated to an
	undefined or common symbol.
	* config/obj-bout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
	* config/obj-bout.c (obj_emit_relocations): If a reloc is equated
	to an undefined or common symbol, convert the reloc to be against
	the target symbol.
	(obj_crawl_symbol_chain): Skip symbols which were equated to an
	undefined or common symbol.
	* config/obj-coff.c (do_relocs_for): Use S_IS_DEFINED and
	S_IS_COMMON rather than comparing S_GET_SEGMENT to
	undefined_section.
	(yank_symbols): Skip symbols which were equated to an undefined or
	common symbol.
1996-02-02 17:46:05 +00:00
Jeff Law
4771fe157f * lib/gdb.exp: Fix typos (LDLAGS -> LDFLAGS).
Load libgloss.exp.
1996-02-02 17:20:54 +00:00
Jeff Law
a827a33f93 * gdb.disasm/hppa.exp: Compile directly into an executable, use
the executable, not the .o to run the tests from.

Remove a useless step and avoid loading a .o into a target board
(loads into address zero which causes all kinds of problems).
1996-02-02 03:22:45 +00:00
Geoffrey Noer
0807a8afd8 Changes to configure.in so that -gm-magic targets won't build libgloss
anymore.
1996-02-02 01:07:16 +00:00
Stan Shebs
ca234b7d2f * mpw-mh-mpw (CC_MWC68K): Add options similar to those used
in CC_MWCPPC, and -mc68020 -model far.
	(AR_MWLINK68K): Add -xm library.
	(AR_AR): Define.
	(CC_LD_MWLINK68K): Remove -d.
	(EXTRALIBS_MWC68K): Define.
1996-02-01 23:25:52 +00:00
Ian Lance Taylor
869b7d80d3 * elf-bfd.h (ELF_LINK_NON_ELF): Define.
* elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
	ELF_LINK_NON_ELF.
	* elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
	flag for a newly defined symbol.
	(NAME(bfd_elf,record_link_assignment)): Likewise.
	(elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
	set the DEF or REF_REGULAR flags correctly.
1996-02-01 23:15:23 +00:00
Steve Chamberlain
626a6542ec * configure: Regenerate with autoconf 2.7. 1996-02-01 21:39:44 +00:00
Ian Lance Taylor
6f6956c63c * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
(libbfd.h, libcoff.h): Corresponding change.
1996-02-01 21:34:29 +00:00
Ian Lance Taylor
9e396994aa * config/obj-aout.h (S_IS_LOCAL): Check for \002 as well as \001.
* config/obj-bout.h (S_IS_LOCAL): Likewise.
1996-02-01 21:24:15 +00:00
Ian Lance Taylor
6c55897c9f * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
a PLT32 reloc as dynamic.
	(elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
	is not referenced by a dynamic object, and we are not making a
	shared object, then don't make a PLT entry.  If we do make a PLT
	entry, make sure the symbol has been recorded as dynamic.
1996-02-01 21:05:52 +00:00
Ian Lance Taylor
be54c2b6c9 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
for SVR4 compatibility.
PR 8794.
1996-02-01 21:02:03 +00:00
Stan Shebs
2805d4b86f * mpw-configure (extralibs_name, rez_name): Set correctly
for MWC68K compiler.

	* mpw-README: Add more info on the necessary build tools.
1996-02-01 20:42:27 +00:00
Ian Lance Taylor
4d9e33e490 * configure.in: Make sure we only add m68k-parse.o to
${extra_objects} once, no matter how many m68k targets have been
	enabled.
	* configure: Rebuild.
1996-02-01 20:36:23 +00:00
Steve Chamberlain
3d78f53277 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
xm-cygwin32.h): New.
	* config/i386/(*win32*): Becomes *cygwin32*.
	* configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
	(powerpcle-*-cygwin32): New.
	* configure: Regenerate.
	* win32-nat.c  (child_create_inferior): Call CreateProcess
	with the right program arg.
1996-02-01 18:39:00 +00:00
Steve Chamberlain
9daacfc4e4 * configure.in, config.sub: Recognize cygwin32. 1996-02-01 18:23:56 +00:00
Steve Chamberlain
904fe36b83 * configure.in (i[3-6]86-*-win32): Becomes i[3-6]86-*-cygwin32.
(powerpc*-*-cygwin32): New.
	* configure: Regenerated.
1996-02-01 18:08:36 +00:00
Jeff Law
4ad7025328 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition. 1996-02-01 18:03:01 +00:00
Ian Lance Taylor
48766668d5 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
PR 8909.
1996-02-01 15:52:04 +00:00
Fred Fish
0db5a6fe3f * serial.c: Change fputc/fputs/fprintf to _unfiltered forms. 1996-02-01 04:15:53 +00:00
Stan Shebs
256364e93a Name change 1996-02-01 03:26:15 +00:00
Stan Shebs
97abaf19da * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
here from config/i386/xm-i386mach.h, fix name.
	* config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
	* config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
	here from config/i386/xm-ptx4.h.
	* config/i386/nm-ptx4.h: Ditto,	from config/i386/xm-ptx.h.
	* config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
	* config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
more housekeeping
1996-02-01 02:59:15 +00:00
Stan Shebs
28bc5ef7bb * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
* config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Move to here
	from config/sparc/xm-nbsd.h.
	* config/sparc/nm-sun4os4 (CHILD_PREPARE_TO_STORE): Ditto, from
	config/sparc/xm-sparc.h.
	* config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
	(PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
	* config/sparc/sun4sol2.mh (NAT_FILE): Update.
	* config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
housekeeping
1996-02-01 02:47:32 +00:00
Steve Chamberlain
0ff513d912 * configure.in (i386-*-cygwin32, ppc-*-cygwin32): New.
* configure: Rebuild.
1996-02-01 02:42:51 +00:00
Steve Chamberlain
923b8e0c59 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
* emultempl/pe.em (definfo init): Make the default stack reserve
	of a PPC larger.
1996-02-01 01:43:42 +00:00
Steve Chamberlain
b06136f240 * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
* config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
	(powerpcle-*-cygwin32): New.
	* peicode.h (add_data_entry): Get address from vma.
1996-02-01 01:26:15 +00:00
Jeff Law
17280c3f6f * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
floating point correctly.
        (STORE_RETURN_VALUE): Likewise.
        * config/pa/tm-pro.h (SOFT_FLOAT): define.
Fixes minor testsuite failures for pro targets.
1996-02-01 00:40:59 +00:00
Ian Lance Taylor
615c0a79da * config/obj-coff.h (S_IS_LOCAL): Check for \001 as well as \002. 1996-01-31 22:40:55 +00:00
Michael Meissner
5c867ecd01 If _SDA_BASE_ has already been created as an undefined symbol, treat like it has never been created 1996-01-31 22:13:09 +00:00
Jeff Law
1be1bc3835 * gdb.base/break.exp: Don't test for program exit or exit status
if $noresults if nonzero.
        * gdb.base/langs.exp: Likewise.
        * gdb.base/watchpoint.exp: Likewise.
For proelf targets were we can't even tell if a process exits.
1996-01-31 21:44:24 +00:00
Jeff Law
9b2ceeb159 * gdb.base/default.exp: Remove extraneous call to load gdb.exp.
* gdb.chill/pr-8405.exp: Move skip_chill_tests check to just before
        trying to compile the testcase.
1996-01-31 21:24:38 +00:00
Ian Lance Taylor
28c16b5525 * elflink.h (elf_bfd_final_link): Don't output initial dummy
symbol or section symbols if stripping all symbols and this is not
	a relocateable link.  Don't output the symbol string table if
	there are no symbols.
	(elf_link_flush_output_syms): Don't do anything if there are no
	symbols to flush.
1996-01-31 21:22:02 +00:00
Fred Fish
44e9f3b3d3 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
Define to what should be reasonable values.  However, apparently
	a bug in linux mmap prevents mapped symbol tables from working.
1996-01-31 20:35:51 +00:00
Ian Lance Taylor
40ab9bb9d7 Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
* configure.tgt (m68*-apple-aux*): New target.
	* emulparams/m68kaux.sh: New file.
	* scripttempl/m68kaux.sc: New file.
	* Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
	(em68kaux.c): New target.
1996-01-31 19:36:20 +00:00
Ian Lance Taylor
c174fb5c71 Wed Jan 31 14:03:17 1996 Richard Henderson <rth@tamu.edu>
* config/tc-m68k.c (md_pseudo_table): Add "extend" and "ldouble".
	* doc/c-m68k.texi: Document .extend and .ldouble.
1996-01-31 19:31:29 +00:00