[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/14746] ld: internal error in address, at gold/output.h:72 whil
From: |
ccoutant at gmail dot com |
Subject: |
[Bug gold/14746] ld: internal error in address, at gold/output.h:72 while building Linux kvm tool |
Date: |
Thu, 20 Aug 2015 23:19:40 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=14746
--- Comment #8 from Cary Coutant <ccoutant at gmail dot com> ---
> What I had to do to reproduce it was to add a symbol in my linker script
> that pointed to the address of .eh_frame. It's the same assert but I'm not
> sure that it's the same problem.
>
> Repo:
> test.c
> main(){ return 0; }
>
> g++ -c -o test.o test.c
>
> test.o need to contain an eh_frame.
>
> ld.gold -T script.lcf test.o
> ld.gold: internal error in address, at ../../gold/output.h:73
This is a different problem. In the original case, gold was trying to allocate
something in a discarded section. I don't expect that case to work, but it does
need a better diagnostic.
In this case, the .eh_frame section isn't discarded, but we're trying to get
its address before it's been computed (since .eh_frame is a linker-optimized
section, it hasn't been finalized yet). This case really ought to work.
--
You are receiving this mail because:
You are on the CC list for the bug.