Mark Mitchell [Wed, 2 Jun 1999 10:20:16 +0000 (10:20 +0000)]
* reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
(BFD_RELOC_MIPS_GOT_PAGE): Likewise.
(BFD_RELOC_MIPS_GOT_OFST): Likewise.
(BFD_RELOC_MIPS_GOT_DISP): Likewise.
* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.
* elf32-mips.c (mips_info_to_howto_rela): New function.
(USE_REL): Adjust for new conventions.
(MINUS_ONE): New macro.
(elf_mips_howto_table): Add R_MIPS_SUB.
(mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
and MIPS_GOT_DISP.
(mips_elf_final_write_processing): Set sh_link, not sh_info, for a
.MIPS.content section.
(_bfd_mips_elf_fake_sections): Treat all sections that begin
with .MIPS.content as .MIPS.content sections. Set
SHF_MNIPS_NOSTRIP for such section.
(elf_info_to_howto): Define to mips_info_to_howto_rela.
* elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE,
MIPS_GOT_OFST, and MIPS_GOT_DISP.
Nick Clifton [Sun, 30 May 1999 11:36:53 +0000 (11:36 +0000)]
Philip Blundell <[email protected]>
* elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
1993-03-25 (!!). Take into account the bitmasks for the reloc so
the addend does not overflow into the rest of the word
Nick Clifton [Fri, 28 May 1999 13:24:33 +0000 (13:24 +0000)]
Initialise EI_OSABI and EI_ABIVERSION fields of e_ident array.
Add ability for backends to process program and section headers after they
have been created.
Ian Lance Taylor [Thu, 27 May 1999 22:48:53 +0000 (22:48 +0000)]
* configure.in: Check whether getuid and getgid exist.
* archive.c: Define getuid and getgid as macros if HAVE_GETUID or
HAVE_GETGID are not defined, respectively.
(bfd_write_armap): Don't special case on _WIN32 for getuid and
getgid.
* configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
* configure, config.in: Rebuild.
Ian Lance Taylor [Thu, 27 May 1999 22:31:03 +0000 (22:31 +0000)]
1999-05-28 Linus Nordberg <[email protected]>
* m68k.h: Document new formats `E', `G', `H' and new places `N',
`n', `o'.
* m68k.h: Define mcf5206e, mcf5307, mcf. Document new format `u'
and new places `m', `M', `h'.
Ian Lance Taylor [Thu, 27 May 1999 21:57:48 +0000 (21:57 +0000)]
1999-05-28 Martin Dorey <[email protected]>
* config/tc-i960.c: Several minor changes to add ELF and
BFD_ASSEMBLER support.
* config/tc-i960.h: Likewise.
* configure.in (i960-*-elf*): New target.
* aclocal.m4, configure: Rebuild.
Andreas Schwab [Thu, 27 May 1999 03:02:23 +0000 (03:02 +0000)]
* readelf.c (dump_relocations): Always print the addend on RELA
systems even if there is no symbol.
(process_program_headers): Reset dynamic_size before looping
through the program headers.
(process_version_sections): Cast sh_offset to unsigned long for
printing in case bfd_vma is wider.
(process_symbol_table): Use get_symbol_index_type when printing
st_shndx.
DJ Delorie [Tue, 25 May 1999 12:10:27 +0000 (12:10 +0000)]
* windres.c: add verbose option
(main): process verbose option
* resrc.c (look_for_default): new. Look for the default
preprocessor in a given location.
(read_rc_file): for foo/bar-windres, look for foo/bar-gcc,
foo/gcc (in case of foo/windres), and then gcc (the old default).
DJ Delorie [Tue, 25 May 1999 11:37:40 +0000 (11:37 +0000)]
* peicode.h (coff_swap_sym_in): When we create the actual section
to reflect the not-there section C_SECTION symbols refer to,
change the symbol class to C_STAT as the section is now really
there.
Jason Molenda [Sun, 23 May 1999 20:02:56 +0000 (20:02 +0000)]
Sync up with Cygnus CVS repository (cvs import doesn't handle these
automatically, alas. This cleanpu must be automated in the near future).
Tue Mar 9 19:25:11 1999 Stan Shebs <[email protected]>
* h8-cfg.texi: Remove, hasn't been used in years.
1999-05-10 Martin Hunt <[email protected]>
* debugify.c, debugify.h: Removed because they are no
longer used.
Tue Mar 16 15:29:04 1999 Stan Shebs <[email protected]>
* go32-xdep.c: Remove, no longer used by anything.
Alan Modra [Mon, 17 May 1999 08:35:42 +0000 (08:35 +0000)]
è
Add missing files from last change in gas/testsuite.
i386-dis.c: Catch a number of cases where an invalid modrm would result in
bogus disassembly. const lots of places.
Alan Modra [Mon, 17 May 1999 08:35:41 +0000 (08:35 +0000)]
a
Add missing files from last change in gas/testsuite.
i386-dis.c: Catch a number of cases where an invalid modrm would result in
bogus disassembly. const lots of places.
Alan Modra [Mon, 17 May 1999 08:35:40 +0000 (08:35 +0000)]
Ø
Add missing files from last change in gas/testsuite.
i386-dis.c: Catch a number of cases where an invalid modrm would result in
bogus disassembly. const lots of places.
Alan Modra [Mon, 17 May 1999 03:21:52 +0000 (03:21 +0000)]
è
Move bitfield overflow checks to after the md_apply_fix call in
fixup_segment so that md_apply_fix has a chance to modify value.
Handle 8 and 16-bit pcrel relocs for i386.
Prototypes and other minor code cleanups.
Alan Modra [Mon, 17 May 1999 03:21:50 +0000 (03:21 +0000)]
n
Move bitfield overflow checks to after the md_apply_fix call in
fixup_segment so that md_apply_fix has a chance to modify value.
Handle 8 and 16-bit pcrel relocs for i386.
Prototypes and other minor code cleanups.
Alan Modra [Mon, 17 May 1999 03:21:46 +0000 (03:21 +0000)]
/
Move bitfield overflow checks to after the md_apply_fix call in
fixup_segment so that md_apply_fix has a chance to modify value.
Handle 8 and 16-bit pcrel relocs for i386.
Prototypes and other minor code cleanups.
Alan Modra [Mon, 17 May 1999 03:21:41 +0000 (03:21 +0000)]
Move bitfield overflow checks to after the md_apply_fix call in
fixup_segment so that md_apply_fix has a chance to modify value.
Handle 8 and 16-bit pcrel relocs for i386.
Prototypes and other minor code cleanups.
Joel Sherrill ([email protected])
* configure.tgt (i386-*-rtemself*, sh-*-rtemself*): New targets.
(mips*el-*-rtems*, powerpcle-*-rtems*): New targets.
Joel Sherrill ([email protected])
* config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to
list of target formats (targ_selvecs).
(i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets.
(powerpcle*-*rtems*, sh-*-rtemself*): New targets.
DJ Delorie [Wed, 12 May 1999 22:03:10 +0000 (22:03 +0000)]
* rclex.l: add code to suppress certain output from cpp, replace
all returns with MAYBE_RETURN
(MAYBE_RETURN): new, implement the suppression by returning
IGNORED_TOKEN as needed.
(cpp_line): remember which file we're in, mark data from included
*.h files for suppression.
* rcparse.y (input): allow IGNORED_TOKEN outside of known constructs
DJ Delorie [Tue, 11 May 1999 21:06:50 +0000 (21:06 +0000)]
1999-05-10 DJ Delorie <[email protected]>
* scripttempl/pe.sc: Specify the output arch, which Ian says is
the Right Thing to do.
* emultempl/pe.em: various changes to parameterize the
target-specific information.
(gld_i386pe_after_open): Detect and fix MS import libraries
by renaming the member objects (which are all named the same).
* pe-dll.c: various changes to parameterize the target-specific
information.
(generate_reloc): support relocs more generically to allow for
expansion.
(pe_exe_build_sections): new; used to add .relocs to .exes
(pe_exe_fill_sections): ditto
DJ Delorie [Tue, 11 May 1999 21:06:16 +0000 (21:06 +0000)]
1999-05-10 DJ Delorie <[email protected]>
* windres.c (quot): Quote shell metacharacters in a string
(main): quote parameters to cpp that might have metacharacters in
them. Allow -D as an alias for --define to allow for sharing make
macros with gcc.
* objdump.c (dump_reloc_set): don't core if howto->name is NULL
* Makefile.am: Give rescoff.c a cpu-specific -D so it can set
the correct BFD.
* Makefile.in: ditto
* rescoff.c (write_coff_file): Set the correct BFD
DJ Delorie [Tue, 11 May 1999 21:05:44 +0000 (21:05 +0000)]
* ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
reasonable mode until "ar x" is smart enough to skip it (fixes
gcc/libgcc.a builds on mips-ecoff targets
* coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
to work. Hack to support MS import libraries, which use different
COMDAT types than GNU.
(coff_slurp_symbol_table): C_SECTION symbols are local; they refer
to implied zero-length sections (see peicode below)
* coffgen.c (coff_get_normalized_symtab): Properly read long MS
filename symbols, which use one *or more* auxents.
* coffswap.h (coff_swap_aux_in): ditto
* peicode.h (coff_swap_sym_in): Build the implied zero-length
sections