binutils for musl

Alan Modra amodra@gmail.com
Wed Jul 12 09:05:37 GMT 2023


On Wed, Jul 12, 2023 at 02:29:41PM +0800, 程智星 wrote:
> hi,friend:
> 
> When I use Musl as the base library to compile the yocto embedded system, the following error will be reported:
> 
> = {anonymous}::Target_i386; Scan = {anonymous}::Target_i386::Scan; Classify_reloc = {anonymous}::Target_i386::Classify_reloc; size_t = long unsigned int]':
> 
> | ../../gold/i386.cc:2624:19:   required from here
> 
> | ../../gold/gc.h:250:34: error: invalid cast from type 'std::nullptr_t' to type 'gold::Relobj*'
> 
> |   250 |   (*secvec).push_back(Section_id(reinterpret_cast<Relobj*>(NULL), 0));
> 
> |       |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This was fixed in git commit b97bd976233e, with the same patch you
posted.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list