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.
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.
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>
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.
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.
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>
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>
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