From fa463e9fc644e7a3bad39aa73bf6be72ea865805 Mon Sep 17 00:00:00 2001 From: Niklas G?rtler Date: Wed, 28 Aug 2019 12:33:41 +0100 Subject: Add an option to objcopy to change the alignment of sections. PR 24942 * objcopy.c (SECTION_CONTEXT_SET_ALIGNMENT): New constant. (struct section_list): Add alignment field. (command_line_switch): Add OPTION_SET_SECTION_ALIGNMENT. (copy_options): Add --set-section-alignment. (copy_usage): Describe --set-section-alignment. (find_section_list): Initialise the alignment field. (setup_section): Handle the alignment field. (copy_main): Handle OPTION_SET_SECTION_ALIGNMENT. * doc/binutils.texi: Document the new feature. * NEWS: Mention the new feature. --- binutils/NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'binutils/NEWS') diff --git a/binutils/NEWS b/binutils/NEWS index c6c4e29..349af31 100644 --- a/binutils/NEWS +++ b/binutils/NEWS @@ -2,6 +2,9 @@ * Add --source-comment[=] option to objdump which if present, provides a prefix to source code lines displayed in a disassembly. +* Add --set-section-alignment = option to objcopy to allow + the changing of section alignments. + * Add --verilog-data-width option to objcopy for verilog targets to control width of data elements in verilog hex format. -- cgit v1.1