On 10/11/2010 8:53 AM, Jie Zhang wrote:
Some LTO tests do relocatable linking. Some target boards set a linker
script which can't be used for relocatable linking. This patch changes
lto.exp to use the default linker script instead if -r is found in the
options.
Is it OK?
I think this patch makes sense. Ideally, there would be more structure
here, in that tests that use "-r" would set some kind of "relocatable"
flag, which would cause DejaGNU to (a) insert -r, and (b) not use the
default linker script. But, I don't see how to make that plumbing
practical, at least not without changing all the *_target_compile functions.
OK if no objections within 48 hours.