OSDN Git Service

uclinux-h8/elf2flt.git
18 years agonios/nios2 support by Wentao Xu <wentao@microtronix.com>
David McCullough [Wed, 11 Jan 2006 03:39:16 +0000 (03:39 +0000)]
nios/nios2 support by Wentao Xu <wentao@microtronix.com>
cleaned up for inclusion by Mike Frysinger <vapier@gentoo.org>

18 years agoHi,
David McCullough [Wed, 28 Sep 2005 05:26:02 +0000 (05:26 +0000)]
Hi,

I'm the maintainer of a windows hosted arm-elf gcc toolchain used mostly
for homebrew console development. One of my users recently asked if I
could have a look a getting elf2flt to build under mingw/msys to help
with his uclinux Nintendo DS port. I've attached a patch containing the
changes I made to the source in CVS, thought it might be useful.

2005-09-25  Dave Murphy  <davem@devkitpro.org>
   * Makefile.in: add ws2_32 library when building from msys shell.
   * cygwin-elf.h: On mingw.include stdint.h and add extra typedefs
   * elf2flt.c: Include cygwin-elf.h on mingw too.
   * flthdr.c: For mingw use winsock2.h for internet consts & structs ,
     use mktemp instead of mkstemp

Dave

18 years agoBlackfin support merged in by Bernd Schmidt <bernds_cb1@t-online.de>
David McCullough [Thu, 25 Aug 2005 02:19:42 +0000 (02:19 +0000)]
Blackfin support merged in by Bernd Schmidt <bernds_cb1@t-online.de>

18 years agoChange all file format related unsigned longs to uint32_t, so that 64 bits
David McCullough [Mon, 1 Aug 2005 00:02:33 +0000 (00:02 +0000)]
Change all file format related unsigned longs to uint32_t,  so that 64 bits
hosts can build this code correctly,  plus a little bit of Blackfin code.

Most of the changes provided Bernd Schmidt <bernds_cb1 at t-online.de>

18 years agoA new config.sub with blackfin support
David McCullough [Fri, 15 Jul 2005 10:33:32 +0000 (10:33 +0000)]
A new config.sub with blackfin support
Bernd Schmidt <bernds_cb1@t-online.de>

18 years agoSmall spelling fixup from Dylan Griffiths.
David McCullough [Wed, 6 Jul 2005 23:00:20 +0000 (23:00 +0000)]
Small spelling fixup from Dylan Griffiths.

18 years agoTweaked Makefile.in so that post-configured Makefile tests for a Cygwin build
John Williams [Tue, 3 May 2005 23:26:11 +0000 (23:26 +0000)]
Tweaked Makefile.in so that post-configured Makefile tests for a Cygwin build
environment, and if detected, explicitly adjusts the link order so that
libcygwin links *before* libiberty.a.  This gets around a Cygwin problem with
getopt()'s optind/optarg symbols.  See, for example:

http://sources.redhat.com/ml/cygwin/2004-04/msg01179.html

Also tweaked cygwin-elf.h and elf2flt.c so that Cygwin builds for MicroBlaze
target work as expected.

Patch sumbitted by John Williams <jwilliams@itee.uq.edu.au>

19 years agoExplicit assignment of elf2flt package under GPL v2.0.
John Williams [Mon, 18 Apr 2005 22:00:48 +0000 (22:00 +0000)]
Explicit assignment of elf2flt package under GPL v2.0.

19 years agoAdd missing headers.
Bernardo Innocenti [Wed, 16 Mar 2005 03:26:26 +0000 (03:26 +0000)]
Add missing headers.

Patch submitted by Bernardo Innocenti <bernie@develer.com>.

19 years agoBuild elf2flt with headers from binutils 2.15.94+.
Bernardo Innocenti [Wed, 23 Feb 2005 01:33:26 +0000 (01:33 +0000)]
Build elf2flt with headers from binutils 2.15.94+.
Should still work with older versions of binutils.

Patch submitted by Bernardo Innocenti <bernie@develer.com>.

19 years agoCygwin fixes.
Bernardo Innocenti [Wed, 23 Feb 2005 01:31:04 +0000 (01:31 +0000)]
Cygwin fixes.

Patch submitted by Stig Petter Olsrød <stigpo@users.sourceforge.net>.

19 years agoAdd support for win32 (non-cygwin) builds of elf2flt
John Williams [Mon, 8 Nov 2004 00:25:31 +0000 (00:25 +0000)]
Add support for win32 (non-cygwin) builds of elf2flt

Fix minor typo in error message

Patch submitted by Scott Thibault <thibault@gmvhdl.com>

19 years agoh8/300 forbid relocation of absolute symbol
Yoshinori Sato [Thu, 28 Oct 2004 16:54:25 +0000 (16:54 +0000)]
h8/300 forbid relocation of absolute symbol

19 years ago- add target h8300h
David McCullough [Thu, 13 May 2004 00:45:07 +0000 (00:45 +0000)]
- add target h8300h
- shared flat binary support for h8

Yoshinori Sato <ysato@users.sourceforge.jp>

20 years agoUse headers direct from binutils
David McCullough [Tue, 23 Mar 2004 04:00:15 +0000 (04:00 +0000)]
Use headers direct from binutils

Patch also includes a horrible kludge to get around some wierdness in the
elf files produced by mb-ld.

John Williams <jwilliams@itee.uq.edu.au>

20 years agoA small patch to ld-elf2flt.in, that lets an elf2flt-ified toolchain run
David McCullough [Fri, 19 Mar 2004 00:17:18 +0000 (00:17 +0000)]
A small patch to ld-elf2flt.in, that lets an elf2flt-ified toolchain run
from a directory other than that specifed in the original ./configure.
Helpful if you distribute toolchains and can't control where people
install them! :)  Also helpful if you are testing toolchains and need to
move them around after the elf2flt "make install".

John Williams <jwilliams@itee.uq.edu.au>

20 years agoSomehow the microblaze support in elf2flt/config.sub was removed in the last revision...
Greg Ungerer [Tue, 9 Mar 2004 04:49:56 +0000 (04:49 +0000)]
Somehow the microblaze support in elf2flt/config.sub was removed in the last revision (1.4 -> 1.5).

Attached patch restores it.

Submitted by John Williams <jwilliams@itee.uq.edu.au>.

20 years agoWhen the linker "-v" flag is passed, turn on shell debugging to show what
David McCullough [Tue, 10 Feb 2004 00:22:19 +0000 (00:22 +0000)]
When the linker "-v" flag is passed,  turn on shell debugging to show what
we are doing.

20 years agothis patch for elf2flt makes sure that all install dirs exist before
David McCullough [Mon, 9 Feb 2004 23:59:40 +0000 (23:59 +0000)]
this patch for elf2flt makes sure that all install dirs exist before
copying files to them.

Bernardo Innocenti <bernie@develer.com>

20 years agoIn order to use m68k-uclinux globally as the new toolchain target,
David McCullough [Mon, 5 Jan 2004 23:41:50 +0000 (23:41 +0000)]
In order to use m68k-uclinux globally as the new toolchain target,
I had to replace config.sub and config.guess in elf2flt with updated
versions already containing the required bits.

Bernardo Innocenti <bernie@develer.com>

20 years agoA slightly updated configure script
David McCullough [Mon, 5 Jan 2004 23:38:14 +0000 (23:38 +0000)]
A slightly updated configure script

20 years agoFind attached the patch for the elf2flt utility. Except the elf2flt.c file, I have...
Greg Ungerer [Tue, 11 Nov 2003 07:23:04 +0000 (07:23 +0000)]
Find attached the patch for the elf2flt utility. Except the elf2flt.c file, I have slightly modified the Makefile.in. The reason for this is to check the target architecture and if it is set to "e1", another linker script is installed. The reason for this alchemy is that our linker needs some sections that are included in the e1-elf2flt.ld script.

Patch submitted by Yannis Mitsos <gmitsos@telecom.ntua.gr>.

20 years agoAllow installing elf2flt with build directory out of the source directory
David McCullough [Tue, 23 Sep 2003 00:00:26 +0000 (00:00 +0000)]
Allow installing elf2flt with build directory out of the source directory
Bernardo Innocenti <bernie@develer.com>

20 years agoCheck in stubs.c from Miles Bader's last patch
David McCullough [Sun, 21 Sep 2003 23:19:08 +0000 (23:19 +0000)]
Check in stubs.c from Miles Bader's last patch

20 years agoAdd support for possibly missing dcgettext function
David McCullough [Tue, 9 Sep 2003 11:21:48 +0000 (11:21 +0000)]
Add support for possibly missing dcgettext function
Miles Bader <miles@gnu.org>

20 years agoAllow for really big apps, Miles Bader <miles@gnu.org>
David McCullough [Tue, 9 Sep 2003 11:20:14 +0000 (11:20 +0000)]
Allow for really big apps, Miles Bader <miles@gnu.org>

20 years agoI've now tested building the uClinux tools on a Windows box. These are
David McCullough [Wed, 3 Sep 2003 12:29:29 +0000 (12:29 +0000)]
I've now tested building the uClinux tools on a Windows box. These are
some more elf2flt fixes required for Cygwin:

Bernardo Innocenti <bernie@develer.com>

20 years agoI've found the bug! A BSS link-once section was missing in elf2flt.ld.
David McCullough [Sun, 17 Aug 2003 23:41:40 +0000 (23:41 +0000)]
I've found the bug! A BSS link-once section was missing in elf2flt.ld.
The old version of GCC probably didn't ever generate this kind of
section because it was placing everything in the data link-once section.

Patch from Bernardo Innocenti <bernie@develer.com>

20 years agoFixup after last update
David McCullough [Wed, 6 Aug 2003 16:50:41 +0000 (16:50 +0000)]
Fixup after last update

20 years agothis patch adds Cygwin support to elf2flt. Also include a copy
David McCullough [Mon, 4 Aug 2003 18:06:49 +0000 (18:06 +0000)]
this patch adds Cygwin support to elf2flt. Also include a copy
of the elf.h header which is missing on Win32.

This is just a cleaned-up version of Leon's former Cygwin patch
and I couldn't really test it on Windows. At least I can ensure
it doesn't break anything on Linux :-)

Bernardo Innocenti <bernie@develer.com>

20 years agoFixed handling of MICROBLAZE_32 reloc type. The mb-gcc distributes
David McCullough [Tue, 29 Jul 2003 10:47:48 +0000 (10:47 +0000)]
Fixed handling of MICROBLAZE_32 reloc type.  The mb-gcc distributes
relocations across several places - the "standard" ones such as
q->addend and bfd_section_vma(), but also embeds small offsets in the
actual text (code) itself.  Thus, it is necessary to examine the text to
get an initial offset, then add that to the others to get the final
fixup location.

This is required for at least MICROBLAZE_64 and MICROBLAZE_32 - others
may also need it.

Patch from John Williams <jwilliams@itee.uq.edu.au>

20 years agoPatch from Bernardo Innocenti <bernie@develer.com>:
David McCullough [Tue, 22 Jul 2003 11:31:20 +0000 (11:31 +0000)]
Patch from Bernardo Innocenti <bernie@develer.com>:

 - Use implicit a.out as output when -o option is not specified, like
   real ld does (this helps with configure tests);

 - Protect OFILE usage with quotes in case the name contains spaces;

20 years agoGet rid of false/FALSE and true/TRUE usage so we work with all versions of
David McCullough [Mon, 14 Jul 2003 00:19:02 +0000 (00:19 +0000)]
Get rid of false/FALSE and true/TRUE usage so we work with all versions of
the binutils.  Patch from Bernardo Innocenti <bernie@develer.com>.

20 years agoIgnore the -relax option. Done for the MicroBlaze, enabled for everyone,
David McCullough [Thu, 10 Jul 2003 23:17:30 +0000 (23:17 +0000)]
Ignore the -relax option.  Done for the MicroBlaze,  enabled for everyone,
hopefully this won't be a problem.

20 years agoMake sure "-relax" is only used on FINAL links, let's see if this is good
David McCullough [Thu, 10 Jul 2003 06:42:49 +0000 (06:42 +0000)]
Make sure "-relax" is only used on FINAL links, let's see if this is good
enough for the Microblaze -r/-relax incompatibility.

20 years agoMicroblaze changes from John Williams.
David McCullough [Wed, 25 Jun 2003 04:49:40 +0000 (04:49 +0000)]
Microblaze changes from John Williams.

20 years agoTwo changes from Miles Bader <miles@gnu.org>
David McCullough [Mon, 2 Jun 2003 11:11:08 +0000 (11:11 +0000)]
Two changes from Miles Bader <miles@gnu.org>

1.) Previously it was writing the relocated pointer at the pointer's section
    offset from the start of the containing _segment_, not the start of the
    containing section (it doesn't affect most people because for normal
    usage, they're the same).

2)  Add v850 HI16S/LO16 relocation type

20 years agoFix the zero padding so that it doesn't crash if tehre is more than 1K of
David McCullough [Fri, 30 May 2003 07:02:26 +0000 (07:02 +0000)]
Fix the zero padding so that it doesn't crash if tehre is more than 1K of
padding required.

Fix the shared library support which,  although the library is at a high
address,  we don't want to pad the file to +16Mb.  We also do not want the
relocations starting +16Mb into the file :-)

20 years agoAdd ktrace option so that individual flat files will produce the useful
David McCullough [Thu, 29 May 2003 03:17:56 +0000 (03:17 +0000)]
Add ktrace option so that individual flat files will produce the useful
kernel trace for debugging.

Update to latest flat.h.

20 years agoPatches from Miles Bader <miles@gnu.org>:
David McCullough [Tue, 27 May 2003 10:42:57 +0000 (10:42 +0000)]
Patches from Miles Bader <miles@gnu.org>:

* replace occurances of sectionp + q->address with r_mem.

* fix all hex debug to have 0x prefix

* Add new v850 split relocation support

20 years agoMultiple sections of a given type are combined, and any holes between
Greg Ungerer [Thu, 22 May 2003 07:10:54 +0000 (07:10 +0000)]
Multiple sections of a given type are combined, and any holes between
sections are filled with zeroes.

This changes the definition of `text', `data', and `bss' to use the
flags set by BFD, rather than requiring hardwired input section names
(for the normal case where one is using GNU ld and the elf2flt.ld linker
script, this should produce identical results, as that only ever
produces the three well-defined sections anyway).

Patch from Miles Bader <miles@gnu.org>.

20 years agoThis capability was already sort of in the code, but intertwined with
Greg Ungerer [Thu, 22 May 2003 07:07:52 +0000 (07:07 +0000)]
This capability was already sort of in the code, but intertwined with
the GOT/PIC processing option.

This patch enables a separate ELF file for relocation info to be
specified independently using a -R option.

Patch from Miles Bader <miles@gnu.org>.

20 years agoAdded support for the Microblaze archiecture.
Greg Ungerer [Thu, 22 May 2003 05:42:19 +0000 (05:42 +0000)]
Added support for the Microblaze archiecture.

The only mod outside the #ifdef TARGET_microblaze stuff in elf2flt.c is a new
entry in config.sub so it knows about the target, and a new entry in the
elf2flt.ld because the microblaze gnu tools create sections called (.bss.*).

Patch from John Williams <jwilliams@itee.uq.edu.au>.

20 years agoAdded SH support from Paul Mundt <lethal@linux-sh.org>
David McCullough [Thu, 8 May 2003 03:36:16 +0000 (03:36 +0000)]
Added SH support from Paul Mundt <lethal@linux-sh.org>

20 years agoFixup some host alignment errors from Miles Bader <miles@gnu.org>
David McCullough [Tue, 6 May 2003 07:57:20 +0000 (07:57 +0000)]
Fixup some host alignment errors from Miles Bader <miles@gnu.org>

21 years agoAdded a --disable-got-check for platforms that can't do PIC/GOT yet, and
David McCullough [Wed, 16 Apr 2003 06:16:00 +0000 (06:16 +0000)]
Added a --disable-got-check for platforms that can't do PIC/GOT yet, and
more so for h8300 binutils that cannot do the double link stage normally
used by ld-elf2flt.

This should be it for h8300 support in elf2flt.

21 years agoAdd H8 support (tested on H8300S).
David McCullough [Wed, 9 Apr 2003 05:18:13 +0000 (05:18 +0000)]
Add H8 support (tested on H8300S).

Remove GOT limit from all but the m68k targets.

Added bad reloc error count and fail

Added --with-binutils-include-dir so we can get the elf/XX headers
from binutils directly and eventually dispense with elf.h.

21 years agoarm expects the data segment on a 32 byte boundary, otherwise the GOT
David McCullough [Fri, 14 Mar 2003 04:26:42 +0000 (04:26 +0000)]
arm expects the data segment on a 32 byte boundary,  otherwise the GOT
entries can throw the alignment of the relocations out and things get
pretty ugly from there.

21 years agoput in the full contructor support by default.
David McCullough [Thu, 13 Mar 2003 06:14:40 +0000 (06:14 +0000)]
put in the full contructor support by default.

For arm-elf remove all lines containing __[CD]TOR_END__, I'm not sure why
it is different yet.

21 years agoChanges needed to fix arm-elf debugging and pthreads on ARM and m68k
David McCullough [Tue, 4 Mar 2003 10:48:37 +0000 (10:48 +0000)]
Changes needed to fix arm-elf debugging and pthreads on ARM and m68k
It also fixes random crashes on ARM where the end of data was not
aligned on a 16byte boundary.

21 years agogcc 3.1 and 3.1.1 create a .jcr ELF section, which apparently is intended to
Erik Andersen [Wed, 31 Jul 2002 09:07:41 +0000 (09:07 +0000)]
gcc 3.1 and 3.1.1 create a .jcr ELF section, which apparently is intended to
contain a list of pointers to classes to be registered during constructor
invoction time.  Sigh.  So make elf2flt work with newer gcc versions.
 -Erik

21 years agoPass through R_ARM_GOT32 and R_ARM_GOTPC relocations
Erik Andersen [Wed, 31 Jul 2002 05:13:08 +0000 (05:13 +0000)]
Pass through R_ARM_GOT32 and R_ARM_GOTPC relocations

21 years agoClean up the absolute path problems in ld-elf2flt
David McCullough [Thu, 11 Jul 2002 14:09:32 +0000 (14:09 +0000)]
Clean up the absolute path problems in ld-elf2flt

Tested with arm-elf toolchain build,  apps build
and run ok for me :-)

22 years agoFixed some spelling mistakes.
Greg Ungerer [Fri, 12 Apr 2002 13:00:44 +0000 (13:00 +0000)]
Fixed some spelling mistakes.

22 years agocleanup a few things while adding support for the shared library flat file
David McCullough [Thu, 11 Apr 2002 00:05:51 +0000 (00:05 +0000)]
cleanup a few things while adding support for the shared library flat file
stuff.

22 years agoFixup for ARM PLT32 relocation type, patch from David Byron
Greg Ungerer [Tue, 19 Mar 2002 02:21:30 +0000 (02:21 +0000)]
Fixup for ARM PLT32 relocation type, patch from David Byron
<dbyron@dbyron.com> (was <dbyron@coactive.com>).

22 years agoAdded -with-bfd-include-dir=<dir> option as we have to use the bfd.h
David McCullough [Mon, 18 Feb 2002 04:58:36 +0000 (04:58 +0000)]
Added -with-bfd-include-dir=<dir> option as we have to use the bfd.h
that matches the libbfd.a we are using,  otherwise, elf2flt may coredump if
the system header is incompatible with the libbfd.a used.

22 years agoChanges from Pauli to enable moving strings into the text area (if possible).
David McCullough [Sun, 17 Feb 2002 23:26:11 +0000 (23:26 +0000)]
Changes from Pauli to enable moving strings into the text area (if possible).

22 years agoChanges to compile under Solaris from The LEOX team <lpm@leox.org>.
David McCullough [Sun, 17 Feb 2002 23:20:14 +0000 (23:20 +0000)]
Changes to compile under Solaris from The LEOX team <lpm@leox.org>.

22 years agoImprovements to the configure system from Miles Bader (miles@lsi.nec.co.jp).
Greg Ungerer [Thu, 14 Feb 2002 13:07:29 +0000 (13:07 +0000)]
Improvements to the configure system from Miles Bader (miles@lsi.nec.co.jp).

22 years agoSome more v850 tweaks from Miles Bader <miles@gnu.org>
David McCullough [Thu, 14 Feb 2002 09:56:05 +0000 (09:56 +0000)]
Some more v850 tweaks from Miles Bader <miles@gnu.org>

22 years agoFix an error in the last update.
David McCullough [Thu, 14 Feb 2002 09:44:56 +0000 (09:44 +0000)]
Fix an error in the last update.

22 years agoFixups for the v850 from Miles Bader <miles@gnu.org>.
David McCullough [Thu, 14 Feb 2002 01:59:17 +0000 (01:59 +0000)]
Fixups for the v850 from Miles Bader <miles@gnu.org>.

22 years agoInitial revision
David McCullough [Thu, 14 Feb 2002 01:40:50 +0000 (01:40 +0000)]
Initial revision