179 Commits

Author SHA1 Message Date
Chris Johns
b9d32b3bb5 rtemstoolkit: Fix decoding unicode strings in output 2024-04-22 16:42:08 +10:00
Sebastian Huber
e7d5f9c009 rld: Recognize 64-bit PowerPC
Close #4995.
2024-02-29 09:56:32 +01:00
zhengxiaojun
ce16c80840 add libiberty/argv.c for mingw32 build
Signed-off-by: zhengxiaojun <jameszxj@gmail.com>

Close #4974.
2024-02-28 09:24:06 +01:00
Sebastian Huber
489565f330 rtemstoolkit/libiberty: Add missing file
This fixes the following build error for --host=x86_64-w64-mingw32:

rtemstoolkit/libiberty.a(pex-win32.c.18.o): in function `win32_spawn':
rtemstoolkit/libiberty/pex-win32.c:643: undefined reference to `writeargv'

Update #4969.
2024-02-28 09:18:31 +01:00
Chris Johns
f408c0f8d9 rtemstoolkit, linkers: Fix C++17 warnings
Closes #4970
2023-11-22 14:34:16 +11:00
Chris Johns
00af5a6ada rtemstoolkit: Update SimpleIni to latest
The resolves C++17 warnings.

Updates #4970
2023-11-22 14:33:54 +11:00
Chris Johns
a4b312ee4f rtemstoolkit/libierty: Update to gcc latest
- Use POSIX spawn support for MacOS

Closes #4969
2023-11-21 16:30:24 +11:00
Chris Johns
75ffa6781a python: Updates for Python 3.12
- Change SafeConfigParser to ConfigParser

- Fix escape sequences in strings

Updates #4968
2023-11-21 15:47:17 +11:00
Chris Johns
eda9325e58 rtemstoolkit: Provide a shlex.join for python 3.8 and earlier 2023-08-30 09:51:47 +10:00
Chris Johns
3ea0c24934 rtemstoolkit: Fix shell execution
The fixes to parse the command along with the pipe options broke
a simple shell command such as '/sbin/sysctl hw.ncpu' on FreeBSD.
This patch fixes the shell command by passing a string for the
various options.

The unit test has been updated to catch errors and report them.

Closes #4951
2023-08-28 16:48:13 +10:00
Muhammad Sulthan Mazaya
bd2d3d5523 rtemstoolkit: Fix shlex.split to use posix mode and add unit test for pipe operation
Turns out subprocess.Popen operates on posix mode. Also, there is an
issue with previous implementation of pipe command that is fixed by
Chris. Now, it can also accepts command in form of a string. The unit
test for that is added via this patch.
2023-06-21 14:30:48 +10:00
Chris Johns
493c8bff70 rtemstoolkil: Fix execute as strings after pipe addition 2023-06-21 10:33:46 +10:00
Muhammad Sulthan Mazaya
38162e17d9 rtemstoolkit: add support for executing pipe command
added unit tests and shorten long lines.
2023-06-21 08:59:41 +10:00
Kinsey Moore
6970c47c70 linkers/rtems-syms: Generate TLS symbols
When generating the symbol table for loadable modules, include TLS
symbols so that the modules can reference them.
2023-01-17 09:32:45 -06:00
Ryan Long
40529bc566 _libelf_config.h: Add removed Cygwin code
This code was removed for some reason. Without it, we are unable to build
RTEMS with Cygwin.
2022-10-12 09:58:58 -05:00
Ryan Long
f3d9c87958 rtemstoolkit: Fix conditions using "is" with literals
Fix warnings that come from python 3.8 about using the "is" operator with
string literals.

Closes #4700
2022-08-12 09:26:27 -05:00
Chris Johns
f199d42e47 linkers: Speed up reading large executables for all cases except inlining
- Only load the function DWARF data if checking inlines
2022-05-18 18:17:33 +10:00
Karel Gardas
ff68bccc25 rtemstoolkit:libelf: sync _libelf_config.h with FreeBSD
This fixes compilation issue on Apple M1.
2022-05-17 21:19:49 +10:00
Alex White
072f88f4d4 rtemstoolkit/rld-path.cpp: Fix double free 2022-03-09 16:06:09 -06:00
Alex White
6b31bb03aa rtemstoolkit/mailer.py: Fix parsing of options with no optarg 2021-11-12 08:25:48 -06:00
Alex White
ba4648bf68 rtems-bsp-builder: Fix mail support
This fixes a problem with mailer options support that occurred because
check.py uses argparse.ArgumentParser instead of tester.rt.options.
2021-10-29 16:44:02 -05:00
Ryan Long
5519a635fd rld-rapp.cpp: Add catch for exception
CID 1471643: Uncaught exception

Closes #4502
2021-10-08 08:58:32 -05:00
Chris Johns
b4245dd209 tester/covoar: Fix clang compile errors, revert uneeded changes 2021-09-03 14:43:47 +10:00
Ryan Long
2cf693aee9 rld-dwarf.cpp: Initialize member variables
Initialize member variables not listed.

CID 1503019: Uninitialized scalar field.

Closes #4500
2021-09-01 10:31:25 -05:00
Ryan Long
68348ad39f rtems-utils.h: Create ostream_guard 2021-07-27 13:40:40 -05:00
Alex White
ac56fce7c1 covoar: Store address-to-line info outside of DWARF
This adds the AddressToLineMapper class and supporting classes to
assume responsibility of tracking address-to-line information.

This allows the DWARF library to properly cleanup all of its resources
and leads to significant memory savings.

Closes #4383
2021-06-17 16:00:08 -05:00
Alex White
f18e6d8e15 rtemstoolkit/mailer.py: Fix option ordering for add_arguments
The ordering of keys cannot be guaranteed in a dictionary. This changes
the options iteration to no longer rely on key ordering.

Closes #4402
2021-05-10 10:39:39 -05:00
Alex White
82b752a438 rtemstoolkit/mailer.py: Add --use-gitconfig option
This adds the option to pull mail-related configuration values from the
user's git configuration.

Closes #4384
2021-04-14 09:32:11 -05:00
Alex White
3b1407fb20 rtemstoolkit/mailer.py: Add SMTP login options
This adds more options so that the user can authenticate with the SMTP
server.

Updates #4384
2021-04-13 16:44:42 -05:00
Alex White
92f7f67297 rtemstoolkit: Filter mail options from log output
This filters mail-related options out before logging the command line
options. This is needed to prevent leaking potentially sensitive
information via logs and emails.

Updates #4384
2021-04-13 16:44:42 -05:00
Alex White
1a575af817 rtemstoolkit/mailer.py: Return full smtp-host arg value
This fixes mail.smtp_host() so that it returns the full argument value
rather than just the second character.

Updates #4384
2021-04-13 16:44:42 -05:00
Hesham Almatary
fe59a1495d rld-cc: Add -target to recognised cflags
-target *-*-* flag is necessary for LLVM/Clang while cross-compiling
2021-04-01 10:59:21 +02:00
Joel Sherrill
49fac039a1 Revert rld-process: Add named tempfile constructor
This patch reflected a temporary workaround which avoided regenerating
the temporary files for each symbol set. The need for redundant processing
is being eliminated in an upcoming patch series.

Hash: 420d7a13672991a1480d06ac02190f2976b9253b

From 420d7a13672991a1480d06ac02190f2976b9253b Mon Sep 17 00:00:00 2001
From: Alex White <alex.white@oarcorp.com>
Date: Wed, 3 Mar 2021 09:48:00 -0600
Subject: rld-process: Add named tempfile constructor

This adds a new tempfile constructor for creating a named tempfile
rather than generating the name.
2021-03-31 10:41:25 -05:00
Alex White
420d7a1367 rld-process: Add named tempfile constructor
This adds a new tempfile constructor for creating a named tempfile
rather than generating the name.
2021-03-30 13:15:57 -05:00
Alex White
0fe7902aee rld-dwarf: Fix file::get_source
The file::get_source method was giving "unknown:-1" for valid
addresses. This has been fixed.
2021-03-30 13:15:57 -05:00
Alex White
85eb59e217 rld-dwarf: Add function::has_entry_pc 2021-03-30 13:15:57 -05:00
Chris Johns
d9aecc20b3 rtemstoolkit/dwarf: Dump the DIE offset 2020-09-26 10:49:27 +10:00
Chris Johns
84181adf61 rtemstoolkit/configuration: Treat an empty variable as an empty list 2020-09-26 10:49:27 +10:00
Chris Johns
87262b429d Move all python commands to use env python
- If you host does not provide a python command consult the User
  manual for ways you can run the python commands.

- Full package paths are being used to avoid namespace pollution and
  crosstalk.
2020-09-26 10:49:27 +10:00
Chris Johns
463831374c linker/exeinfo: Optionally output full flags when listing object files
- Start adding support to dump configuration tables
2020-09-15 13:10:56 +10:00
Chris Johns
0ad4aaafc2 linker/rap: Ignore relocation records with no section
Uodates #4096
2020-09-11 15:59:47 +10:00
Chris Johns
6de89d9268 linkers/ld: Output all reloc records to the RAP file
Updates #3969
2020-05-05 11:31:04 +10:00
Chris Johns
ca7b290f94 rtemstoolkit/execute: Handle unicode input on python2
- Allow unicode as a type on python2. The unicode type is not
  present on python3 so make the support conditional.
- Add some more diag prints to aid debugging.

Closes #3964
2020-03-30 09:55:02 +11:00
Gedare Bloom
11a481fb94 execute.py: fix long line 2020-03-19 09:33:14 -06:00
Sebastian Huber
763f10232f rtemstoolkit: Detect native SPARCV9 ELF arch 2020-03-05 10:44:45 +01:00
Sebastian Huber
c7315a218a rtemstoolkit: Use multiprocessing.cpu_count()
The previous implementation does not work on some Linux distributions,
e.g. Debian on sparc64.  Use a standard function instead.
2020-03-05 10:33:07 +01:00
Sebastian Huber
00b9f1d825 rtemstoolkit: Support more Linux distributions
The platform.dist() function is not always available.
2020-03-05 10:26:15 +01:00
Vijay Kumar Banerjee
2852cac71a rtemstoolkit/path: Add support to copy single file 2020-01-28 08:36:35 +11:00
Hesham Almatary
e6e610d262 rld-rap: Ignore relocations with section index 0 2019-11-12 10:20:05 +00:00
Hesham Almatary
dcfccb1072 Add RISC-V machine to rld-elf 2019-11-12 10:19:53 +00:00