- GNU objcopy supports --set-section-flags src=... --rename-section src=tst and --set-section-flags runs first.
- GNU objcopy processes --update-section before --rename-section.
To match the two behaviors, postpone --rename-section and allow its use together
with --set-section-flags.
As a side effect, --rename-section=.foo1=.foo2 --add-section=.foo1=/dev/null
leads to .foo2 while GNU objcopy surprisingly produces .foo1 (so
--set-section-flags --add-section --rename-section do not form a total order).
I think the deviation is fine as a total order makes more sense.
Rename set-section-flags-and-rename.test to
set-section-attr-and-rename.test and additionally test --set-section-alignment
Nit: This line's getting quite long. Perhaps time to split it over two?
Aside: do we need a similar conflict error for --section-section-alignment?