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

Objcopy generates huge binary file #79

Open
rushire opened this issue Jul 6, 2016 · 1 comment
Open

Objcopy generates huge binary file #79

rushire opened this issue Jul 6, 2016 · 1 comment

Comments

@rushire
Copy link

rushire commented Jul 6, 2016

ARM arch, Linaro GCC 5.3-2016.02
objcopy target generates ~400Mb binary file, ending by section .note.gnu.build-id
$ objdump -x images/antares.elf

  0 .note.gnu.build-id 00000024  20000000  20000000  00020000  2**2
  1 .isr_vector        000001d0  08000000  08000000  00010000  2**0

Currently workaround is patching antares/toolchains/gcc.mk:

-OBJCOPYFLAGS+=-Obinary
+OBJCOPYFLAGS+=-Obinary -R .note.gnu.build-id

Another way is completely disable build-id section generation by --build-id=none compiler option

@nekromant
Copy link
Owner

nekromant commented Jul 6, 2016

This sounds a lot more like a toolchain problem, I'll have a look in the evening and see if I can reproduce it with crosstool-ng-based toolchain.

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