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/4] Fix issue with PROVIDE in linker scripts


This series works is really all about patch #3, that fixes an issue in
linker scripts where PROVIDE can override a "normal" symbol.  The
issue is described in more detail in patch #3.

The other patches #1, #3, and #4, are all setup and cleanup.

I've tested this whole series against a set of 245 targets, there are
no new regressions.

---

Andrew Burgess (4):
  ld: In map file use '=' in PROVIDE statements
  ld: Find and run some tests using a wildcard pattern
  ld: Fix issue where PROVIDE overrides defined symbol
  ld: Remove unused expression state

 ld/ChangeLog                                       | 41 +++++++++
 ld/ldexp.c                                         | 99 +++++++++++-----------
 ld/ldexp.h                                         |  1 -
 ld/ldlang.c                                        |  1 +
 ld/testsuite/ld-scripts/provide-3.d                |  1 +
 ld/testsuite/ld-scripts/provide-4-map.d            | 13 ---
 ld/testsuite/ld-scripts/provide-4.d                |  2 +-
 ld/testsuite/ld-scripts/provide-4.map              | 13 +++
 ld/testsuite/ld-scripts/provide-5.d                |  2 +-
 .../ld-scripts/{provide-5-map.d => provide-5.map}  |  2 +-
 ld/testsuite/ld-scripts/provide-6.d                |  9 ++
 ld/testsuite/ld-scripts/provide-6.t                | 11 +++
 ld/testsuite/ld-scripts/provide-7.d                |  8 ++
 ld/testsuite/ld-scripts/provide-7.t                | 11 +++
 ld/testsuite/ld-scripts/provide-8.d                |  8 ++
 ld/testsuite/ld-scripts/provide-8.t                | 14 +++
 ld/testsuite/ld-scripts/provide.exp                | 12 +--
 17 files changed, 177 insertions(+), 71 deletions(-)
 delete mode 100644 ld/testsuite/ld-scripts/provide-4-map.d
 create mode 100644 ld/testsuite/ld-scripts/provide-4.map
 rename ld/testsuite/ld-scripts/{provide-5-map.d => provide-5.map} (60%)
 create mode 100644 ld/testsuite/ld-scripts/provide-6.d
 create mode 100644 ld/testsuite/ld-scripts/provide-6.t
 create mode 100644 ld/testsuite/ld-scripts/provide-7.d
 create mode 100644 ld/testsuite/ld-scripts/provide-7.t
 create mode 100644 ld/testsuite/ld-scripts/provide-8.d
 create mode 100644 ld/testsuite/ld-scripts/provide-8.t

-- 
2.14.3


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