Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610818 - toolchain-funcs.eclass: gen_usr_ldscript doesn't take multiple values into account for OUTPUT_FORMAT
Summary: toolchain-funcs.eclass: gen_usr_ldscript doesn't take multiple values into ac...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-02-24 16:21 UTC by Tim Hentenaar
Modified: 2023-08-22 21:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for toolchain-funcs.eclass (toolchain-funcs.diff,595 bytes, patch)
2017-02-24 16:21 UTC, Tim Hentenaar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Hentenaar 2017-02-24 16:21:08 UTC
Created attachment 465020 [details, diff]
Patch for toolchain-funcs.eclass

If I cross-emerge sys-libs/zlib for a mips-linux-uclibc target, defaulting to big-endian, ld will have 'elf32-tradbigmips' as the first entry in the OUTPUT_FORMAT list, even when -EL is specified. This leads to gen_user_ldscript using it as the definitive OUTPUT_FORMAT for its wrapper, though it's obviously incompatible with a library built with -EL.

I've attached a patch which extracts the entire OUTPUT_FORMAT list from ld's output instead of just the first entry. This allows linking against the wrapper to proceed normally in the above case.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2023-08-22 21:33:07 UTC
Is this still relevant?