This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question concerning objcopy an elf file into a raw binary file


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]