This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/2] objcopy/strip removing sections and relocations


The first patch extends the section-pattern syntax used by objcopy and
strip to allow a '!' prefix (similar to symbol patterns).  This prefix
indicates a non-matching section pattern, which is removed from the
set of sections matched by an earlier pattern.  Hopefully it's
explained better in the actual patch...

The second patch adds a new command line option for objcopy and strip
that allows relocations to be removed without removing the section to
which the relocations are being applied.

---

Andrew Burgess (2):
  objcopy/strip: Allow section patterns starting with '!'.
  objcopy/strip: Add option --remove-relocations=SECTIONPATTERN

 binutils/ChangeLog                                 |  40 ++++++++
 binutils/NEWS                                      |  15 +++
 binutils/doc/binutils.texi                         |  94 +++++++++++++++++++
 binutils/objcopy.c                                 | 102 +++++++++++++++++----
 binutils/testsuite/binutils-all/data-sections.s    |  17 ++++
 binutils/testsuite/binutils-all/objcopy.exp        |  12 +++
 binutils/testsuite/binutils-all/only-section-01.d  |   9 ++
 binutils/testsuite/binutils-all/remove-relocs-01.d |  16 ++++
 binutils/testsuite/binutils-all/remove-relocs-01.s |  19 ++++
 binutils/testsuite/binutils-all/remove-relocs-02.d |   6 ++
 binutils/testsuite/binutils-all/remove-relocs-03.d |   6 ++
 binutils/testsuite/binutils-all/remove-relocs-04.d |  11 +++
 binutils/testsuite/binutils-all/remove-relocs-05.d |  17 ++++
 binutils/testsuite/binutils-all/remove-relocs-06.d |  11 +++
 .../testsuite/binutils-all/remove-section-01.d     |   8 ++
 15 files changed, 367 insertions(+), 16 deletions(-)
 create mode 100644 binutils/testsuite/binutils-all/data-sections.s
 create mode 100644 binutils/testsuite/binutils-all/only-section-01.d
 create mode 100644 binutils/testsuite/binutils-all/remove-relocs-01.d
 create mode 100644 binutils/testsuite/binutils-all/remove-relocs-01.s
 create mode 100644 binutils/testsuite/binutils-all/remove-relocs-02.d
 create mode 100644 binutils/testsuite/binutils-all/remove-relocs-03.d
 create mode 100644 binutils/testsuite/binutils-all/remove-relocs-04.d
 create mode 100644 binutils/testsuite/binutils-all/remove-relocs-05.d
 create mode 100644 binutils/testsuite/binutils-all/remove-relocs-06.d
 create mode 100644 binutils/testsuite/binutils-all/remove-section-01.d

-- 
2.5.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]