Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unifont: error: format 'default' not supported; treating as elf (supported formats: elf, binary) #83

Closed
crrodriguez opened this issue Mar 6, 2013 · 8 comments
Assignees

Comments

@crrodriguez
Copy link

mod_unifont_la_LDFLAGS =
$(AM_LDFLAGS)
-module
-avoid-version
-Wl,-z,noexecstack
-Wl,--format=binary -Wl,$(UNIFONT_BIN) -Wl,--format=default

-Wl,--format=default is invalid with the gold linker. (binutils 2.23.1/ gcc 4.8) you must pick between binary and elf.

@dvdhrm
Copy link
Owner

dvdhrm commented Mar 7, 2013

I only have binutils 2.23.1 and gcc 4.7 to test this now. Please tell me exactly what options the gold linker accepts. The thing is, ld <= 2.23.1 is totally fine with --format=default so I wonder why upstream gold doesn't accept that. Could you tell me what command-line option gold requires? Is it --format=elf? Or does it require the correct elf64-x86-64 etc. line?

As a workaround, you can use --with-fonts=pango (that is, without "unifont").

Thanks
David

@crrodriguez
Copy link
Author

using "elf" works just fine, results in a DSO with the correct elf64-x86-64.

@crrodriguez
Copy link
Author

the only accepted options are --format [elf,binary]

@dvdhrm
Copy link
Owner

dvdhrm commented Mar 7, 2013

The old linker doesn't accept "elf" as format. I hate this already. Maybe I should drop that "--format=default" entirely and rely on gcc to pass the right format for all objects.

Any standard way to detect the gold linker in autoconf?

@dvdhrm
Copy link
Owner

dvdhrm commented Mar 8, 2013

Ok, I actually didn't get autotools to use ld.gold but I tried it separately and the issue should be fixed with aeddc5b. Can you give it a try?

Thanks!
David

@crrodriguez
Copy link
Author

That should work, I will try it later, however I'm gonna talk to the gold people first, this looks like a bug to me as gold is supposed to be compatible with the old ld.

@crrodriguez
Copy link
Author

Fixed in gold HEAD --> http://sourceware.org/ml/binutils/2013-03/msg00119.html

@dvdhrm
Copy link
Owner

dvdhrm commented Mar 9, 2013

Thanks a lot for reporting this upstream. This does simplify things a lot, even though, the BFD architecture identifiers are still ugly to use in autotools.

Thanks!
David

@ghost ghost assigned dvdhrm Mar 9, 2013
@dvdhrm dvdhrm closed this as completed Mar 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants