bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/24942] objcopy: Add option for setting section alignment


From: nickc at redhat dot com
Subject: [Bug binutils/24942] objcopy: Add option for setting section alignment
Date: Wed, 28 Aug 2019 09:15:25 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=24942

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nickc at redhat dot com

--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Hi Niklas,

  There is an easier way of solving this problem - the assembler's .incbin
  directive.  For example:

  % cat foo.s
        .section foo-image, "a", @progbits
        .align 4
        .global start_of_foo
start_of_foo:
        .incbin "foo.jpg"
        .global end_of_foo
end_of_foo:

  Assembling this will create an object file called foo.o which contains
  the contents of foo.jpg in a section called foo-image, and which is 
  aligned to 4 bytes.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]