7 Commits

Author SHA1 Message Date
Christian Mauderer
3c0e4f74f1 bin2c: Add option for alignment
Sometimes it's useful if structures are aligned. This patch add a

  -A alignment

option. Note that this doesn't check for valid alignments. It accepts
any positive number in decimal or hex format. If for example an
alignment of 7 is specified, the compiler will complain that it is not a
power of 2. But it's not really useful to duplicate this check here.
2022-02-14 16:35:31 +01:00
Ryan Long
05dab02722 rtems-bin2c.c: Check length of buffer to be copied
CID 1063892: Copy into fixed size buffer in process().

Closes #4424
2021-09-29 10:00:22 -05:00
Joel Sherrill
cebdafe8a6 rtems-bin2c.c: Define _XOPEN_SOURCE to 700 for strnlen() visibility 2021-04-02 09:29:42 -05:00
Sebastian Huber
83b8f1f2a5 bin2c: Improve file name sanitation
Only use alpha-numeric characters for header guards.
2019-12-02 06:44:40 +01:00
Chris Johns
3d2db56f7d Fix warnings on Windows. 2018-11-29 05:45:21 +11:00
Sebastian Huber
1a89c3d789 bin2c: Fix warnings
Update #3380.
2018-06-14 07:26:51 +02:00
Sebastian Huber
1cd75c4952 bin2c: Import from RTEMS
Corresponding RTEMS commit is 75933d5d25cd50f80162b7a0d2f66a5534e1763f.

Update #3380.
2018-06-14 07:26:47 +02:00