[patch] Testcase for weak/strong symbols

Paul Brook paul@codesourcery.com
Wed May 4 13:41:00 GMT 2005


The attached patch adds a test to check that the size of a non-weak symbol is 
not overridded by later weak definitions.

It also fixes a test harness bug. If the last line of a .d file is "#...", it 
is equivalent to "#pass".

Tested on i686-linux.
Ok?

Paul

2005-05-04  Paul Brook  <paul@codesourcery.com>

gas/testsuite/
	* lib/gas-defs.exp (regexp_diff): Pass test if last line is "#...".
ld/testsuite/
	* lib/ld-lib.exp (regexp_diff): Pass test if last line is "#...".
	* ld-elfweak/elfweak.exp: Run size2.d.
	* ld-elfwaek/size2.d: New file.
	* ld-elfwaek/size2a.s: New file.
	* ld-elfwaek/size2b.s: New file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.test_size
Type: text/x-diff
Size: 3098 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20050504/e6752296/attachment.bin>


More information about the Binutils mailing list