Question concerning objcopy an elf file into a raw binary file

Ian Lance Taylor ian@airs.com
Thu Jul 3 12:40:00 GMT 2003


Jie Zhang <zhangjie@magima.com.cn> writes:

> In this case, leaving out a space as large as the memory size of .bss
> at the beginning of the binary file can make thing much easier.

Understood, but it doesn't work that way, and it isn't going to
change.  Most people prefer it to work the way it works today.

You can use a linker script to force the .bss section into the .data
section.  You may have to add a BYTE(0) or something to force the
.data section to be allocated, if you don't have any data.

Ian



More information about the Binutils mailing list