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]

Re: Define various symbols conditionally in shared libraries executables


> Date: Tue, 12 Jun 2018 16:47:35 +0200
> From: Hans-Peter Nilsson <hp@axis.com>

> Right, though (IIRC) the purpose of the address pattern not
> being ".+" is that I want to exclude 0 (and the last part is
> that functions start on an even address).  Though, that doesn't
> seem important enough to worry about.

Still, this is what I committed.

ld:

	* testsuite/ld-cris/libdso-1.d: Correct recent address pattern update.

diff --git a/ld/testsuite/ld-cris/libdso-1.d b/ld/testsuite/ld-cris/libdso-1.d
index 2ad44af..5a7e9a1 100644
--- a/ld/testsuite/ld-cris/libdso-1.d
+++ b/ld/testsuite/ld-cris/libdso-1.d
@@ -4,10 +4,12 @@
 #objdump: -T
 
 # Just check that we actually got a DSO with the dsofn symbol.
+# The pattern also makes sure that the address (modulo 16) is non-zero
+# and even.
 
 .*:     file format elf32-cris
 
 DYNAMIC SYMBOL TABLE:
 #...
-000000.[02468ace] g    DF .text	0+2 dsofn
+0+[^0]+0*[02468ace] g    DF .text	0+2 dsofn
 #pass

brgds, H-P


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