363 Commits

Author SHA1 Message Date
Chris Johns
a35f8909b9 tools/gdb: Simulator inline fixes in the cgen code. 2014-04-30 23:13:14 +10:00
Chris Johns
9e78f60ebf tools/microblaze: Fix the building of libgcc. 2014-04-30 16:22:37 +10:00
Chris Johns
4efea40bbb bsp: Clean up the BBxM BSP configuration. 2014-04-29 09:18:14 +10:00
Chris Johns
bd0fbd6f13 bsp: Break on the terminate halt to get fatal handlers run. 2014-04-29 09:10:34 +10:00
Chris Johns
4e8f9840b4 bsp: Add Beagleboard xM support. 2014-04-29 09:10:34 +10:00
Chris Johns
b45ca524c5 tester: Fix the psim script. 2014-04-10 18:21:24 +10:00
Chris Johns
f756b51af3 gdb: pr 16827, fix sim on Mavrick. 2014-04-10 18:21:01 +10:00
Chris Johns
05d2385550 bsp: Add psim. 2014-03-26 16:45:19 +11:00
Chris Johns
a116962a43 tester: The process returns an exit code not an errno. 2014-03-26 16:45:06 +11:00
Joel Sherrill
ec18d1d37e gcc-4.8.2-rtems4.11-20140349.diff: New file 2014-03-20 15:21:16 -05:00
Chris Johns
e959da9ef5 4.11/gdb: Fix detecting python when building GDB on FreeBSD 10.0.
This patch is from the FreeBSD 10.0 devel/gdb port and adds the LDFLAGS to
link command line with Python enabled.

Note, this may effect some hosts if there are library clashes.
2014-03-19 15:15:31 +11:00
Chris Johns
f91e023fc4 Add the documentation. 2014-02-17 18:04:46 +11:00
Chris Johns
11d4b8976e Add README.
Also add a git ignore.
2014-02-17 17:56:03 +11:00
Chris Johns
50fdf12244 rt: Add the rtems-tester. 2014-02-15 06:30:06 +11:00
Chris Johns
8f75c4a380 libffi: Fix for Fedora 64bit pkg-config file. 2014-02-12 13:18:33 +11:00
Chris Johns
29734ecaa6 gdb/sparc: SIS gdb output fix, add nouartrx.
Fix the output from the simulator to gdb to use gdb interfaces
so the output is passes through the MI protocol if used.

Add a nouartrx option to the simulator so it does not block on
an stdin read. The termios settings put the tty into non-blocking
mode however the read sometimes blocks on high loads.
2014-01-18 17:27:13 +11:00
Peng Fan
53ed116b90 Implement a new tool 'rtems-ra'
rtems-ra supports converting an elf archive file into a rap archive file.
It also support add, replace and delete rap files from the rap archive
file.
2013-08-30 21:42:58 +08:00
Peng Fan
64309e0b78 Ignore common section and null(index 0) section
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-08-29 19:42:33 +08:00
Peng Fan
37a7a7c92f RA format support for rtems-ld
1. Automatically place object files in archive files into a ra file,
   using new option --runtime-lib
2. Add a new option --one-file to decide whether the collected
   object files should be merged into the rap file or not.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-08-29 19:41:49 +08:00
Peng Fan
5eb6604773 Fix archive writer
1. align to even address
2. Fix the use of GElf_Ehdr and Elf32_Ehdr
3. Fix the header related
2013-08-29 19:41:23 +08:00
Chris Johns
b2589cbab7 gcc: Switch GCC to the posix thread model.
Change from the RTEMS thread model to the POSIX model. Do not enable
the weak support as it fails to link in the posix parts from the
RTEMS library. No weak support requires libstdc++'s makefile be
updated to handle RTEMS.
2013-08-14 13:49:27 +10:00
Peng Fan
59c3ebd7f4 Add rpath support 2013-08-04 22:35:42 +08:00
Peng Fan
347c9b585e Add section size for rap details
Add elf section size to the section details, because gdb will use the size of
a section.
2013-08-01 16:15:07 +08:00
Peng Fan
39f48c9047 Add object file details to RAP format
This change added the object file details to the RAP format so aid debugging
support. The information can be optionally stripped for production images
not needed this information if space is an issue,with '--rap-strip' assigned
to rtems-ld.
2013-07-26 17:45:01 +08:00
Peng Fan
76d3b8962c collect 'STT_NOTYPE' symbols 2013-07-22 09:44:15 +08:00
Peng Fan
f2915943d1 fix relocation records order 2013-07-22 00:39:21 +08:00
Peng Fan
c14133efaf Add support for relocations which reference local symbols
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-07-21 11:32:06 +08:00
Peng Fan
e23ef3b6ab Fixed fsec
If one object file contains .rodata and .rodata.str1.4 sections,
.rodata contains rela reloc entries, but .rodata.str1.4 do not
contain reloc entris.'.rodata' and '.rodata.str1.4' will be both
included in '.const'.Then using this patch to fix the rela problem

Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-07-19 07:35:08 +08:00
Peng Fan
4b31ced3e1 Fixed layout problem
Fixed when only one elf object file is passed to rtems-ld.And fixed the error when
one object file has rela relocation records, but the other does not contain relocation
records.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-07-19 07:34:14 +08:00
Peng Fan
f4cf8f47b1 arch specific section support 2013-07-19 07:32:41 +08:00
Chris Johns
98f78dc6ab The __cxa_atexit support is a reqirement for destructor registration of
thread-local objects.

For *-*-elf it is already enabled by default.  See comment line 810 in
"gcc/config.gcc".

Define TARGET_LIBGCC_SDATA_SECTION on PowerPC for RTEMS to ".sdata" to
place the __dso_handle.  The __dso_handle is referenced by application
code.  In case this code uses the small data section, the __dso_handle
must be there.

This patch should be committed to GCC 4.8 and 4.9.

Test results:

 href="http://gcc.gnu.org/ml/gcc-testresults/2013-07/msg00671.html
2013-07-16 09:58:54 +10:00
Chris Johns
6651de8474 Add Joel's stack_t patch. 2013-05-31 09:43:40 +10:00
Amar Takhar
bba0b780b8 Add patch to remove times.c from PowerPC newlib. 2013-05-22 02:47:01 -04:00
Amar Takhar
acdef3644f Add three patches from Anthony Green to fix moxie tools.
http://sourceware.org/git/?p=binutils.git;a=commitdiff;h=cdef5ce2d07eefec59c3ef2157bc44a85df89157
  http://sourceware.org/git/?p=binutils.git;a=commitdiff;h=9cd5917ee16c8d8b138bc7c6ffd76a97952b650d
  http://sourceware.org/git/?p=binutils.git;a=commitdiff;h=fa75401a3f5c44e9f1ca1235135e579b833e26bb
2013-05-16 04:13:31 -04:00
Chris Johns
440c97f15e Regenerate the patch cleanly. 2013-04-15 08:25:05 +10:00
Chris Johns
65575cc327 Update the 4.7.2 patch to 4.7.3. 2013-04-14 10:34:31 +10:00
Chris Johns
eba19fac98 Update to the patch Joel merged. 2013-04-05 14:24:01 +11:00
Chris Johns
926ef3c81b PR target/56771. Require 64-bit int for arm*-*-rtems[.0-9]*. 2013-04-03 08:39:03 +11:00
Chris Johns
9d711f426c Fix to build in cygwin. 2013-04-02 17:48:38 +11:00
Chris Johns
4c5ffb2f82 Fix the sed breakage on FreeBSD. 2013-03-20 17:27:49 +11:00
Chris Johns
038b250624 Add the current rtems-4.10 patches. 2013-03-19 17:16:54 +11:00
Chris Johns
ce77d87439 Import the 4.9 patches. 2013-03-15 12:10:20 +11:00
Sebastian Huber
f0c9bae4ff Add latest GCC 4.7 ARM to EABI patch
This patch is included in the current GCC 4.7 branch.
2013-03-11 09:33:02 +01:00
Chris Johns
cb328a1533 Regenerate the ARM EABI patch for gcc-4.7.2 sources. 2013-03-11 17:16:02 +11:00
Chris Johns
94c5d74225 ARM EABI patch. 2013-03-11 11:50:53 +11:00
Chris Johns
e42bad3350 Move current patches in to the repo. 2013-03-11 09:28:55 +11:00
Chris Johns
5749230cbd Regerated version of Joel's patch so patch -p1 works. 2013-03-10 14:31:57 +11:00
Chris Johns
0e900001d5 Use a better name for the patch. 2013-03-10 12:35:37 +11:00
Chris Johns
25e43e17a7 Microblaze gcc-4.7.2 patch from Joel. 2013-03-10 12:27:22 +11:00
Chris Johns
df78032098 MIPS memcpy fixes.
http://sourceware.org/ml/newlib-cvs/2013-q1/msg00022.html

http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/machine/mips/memcpy.S.diff?r1=1.2&r2=1.3&cvsroot=src
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/machine/mips/memcpy.S.diff?r1=1.1&r2=1.2&cvsroot=src
2013-03-08 18:44:32 +11:00