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

Static linking against glibc, can't use --gc-sections #9

Closed
whongx opened this issue Apr 12, 2016 · 1 comment
Closed

Static linking against glibc, can't use --gc-sections #9

whongx opened this issue Apr 12, 2016 · 1 comment

Comments

@whongx
Copy link

whongx commented Apr 12, 2016

Hi, this came out when try to configure and build busybox (make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j4):

AR networking/lib.a
LINK busybox_unstripped
Static linking against glibc, can't use --gc-sections
Trying libraries: crypt m
Library crypt is not needed, excluding it
Library m is needed, can't exclude it (yet)
Final link with: m

Is this an error? And i don't know whether it is compiled successfully or not?

Thanks!
wong

@longsleep
Copy link
Owner

No, this is no error. You know if it worked when there is a "busybox" binary file in the base folder of your busybox tree.

file ./busybox
./busybox: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, for GNU/Linux 3.7.0, BuildID[sha1]=a4d0ad6f7fa0e7143911132732f1e23bb3fbba69, stripped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants