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: Fix PR12762 using linkonce sections in plugin bfd


On Thu, Aug 11, 2011 at 7:56 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Thu, Aug 11, 2011 at 7:40 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>> On Thu, Aug 11, 2011 at 7:04 AM, Alan Modra <amodra@gmail.com> wrote:
>>> On Thu, Aug 11, 2011 at 06:18:03AM -0700, H.J. Lu wrote:
>>>> This is the first approach I tried and failed with GCC 4.7 LTO
>>>> tests on Linux/x86-64 since adding new sections to dummy
>>>> LTO bfd at this stage didn't work very well.
>>>
>>> Current mainline gcc bootstrap and regression tests look good on
>>> powerpc. ?What is peculiar about x86-64? ?Can you test my patch and
>>> let me know what fails? ?I'll wait to hear back before applying.
>>>
>>
>> I will start test.
>
> It failed testcase in
>
> http://sourceware.org/bugzilla/show_bug.cgi?id=12942
>
> with GCC 4.7 on Linux/x86-64.

I put your change on hjl/lto/pr12762 branch at

http://git.kernel.org/?p=devel/binutils/hjl/x86.git;a=summary

When compiling with GCC 4.7, I got

Executing on host: sh -c {/usr/gcc-4.7.0-x32/bin/g++
-B/export/build/gnu/binutils-lto/build-x86_64-linux/ld/tmpdir/ld/
-L/usr/local/x86_64-unknown-linux-gnu/lib64 -L/usr/local/lib64
-L/lib64 -L/usr/lib64 -L/usr/local/x86_64-unknown-linux-gnu/lib
-L/usr/local/lib -L/lib -L/usr/lib   -o tmpdir/pr12942a.exe
-L/export/gnu/import/git/binutils-lto/ld/testsuite/ld-plugin -O2 -flto
-fuse-linker-plugin tmpdir/pr12942a.o tmpdir/pr12942b.o tmpdir/dummy.o
2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]^M
tmpdir/pr12942b.o: In function `test()':
/export/gnu/import/git/binutils-lto/ld/testsuite/ld-plugin/pr12942a.h:7:
undefined reference to `link_error()'
collect2: error: ld returned 1 exit status
tmpdir/pr12942b.o: In function `test()':
/export/gnu/import/git/binutils-lto/ld/testsuite/ld-plugin/pr12942a.h:7:
undefined reference to `link_error()'
collect2: error: ld returned 1 exit status
FAIL: PR ld/12942 (1)


-- 
H.J.


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