This is the mail archive of the binutils@sourceware.org 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: Are _etext, _edata, _end broken?


> o Why is _etext is not equal to the virtual address of the .data
> section (in the elf binary) ?

Why should it be?  It's the end of the .text section, not the
beginning of the data section.

> o And also _edata is not the virtual addess of the .bss section in the
> elf binary?

It is on my system.

> o To locate the span of virtual address of DATA segment and BSS
> segment is a better Idea to read the virtual addess form the .data
> and .bss sections of elf binary or depend on _etext , _edata (they
> seem to be broken ?)

For embedded ELF, it's better to write your own linker script that
provides variables you can trust.


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