Skip to content

Objcopy generates huge binary file #79

Description

@rushire

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions