Updates to common.h for Oct 4, 1999 Draft of ELF ABI.
Nick Clifton
nickc@cygnus.com
Mon Jan 10 15:00:00 GMT 2000
Hi H.J.
Thanks for the explanation of the parts of new ELF spec that I did not
understand.
: > * The spec redefines the value of DT_LOOS from 0x60000000 to
: > 0x6000000d and DT_HIOS from 0x6fffffff to 0x6fff0000. I have
: > ignored both of these redefinitions.
:
: Those are intentional since we defined some new rules. But some
: existing DT_* entries don't follow the new rules.
Hmm, what do you think is the best thing to do here ? Use the new
values, but include a comment that some targets may be using old, out-
of-range values ?
: >
: > * The new spec defines the value of the new dynamic section tag
: > DT_ENCODING as 32. However this value conflicts with the
: > following definition of the tag DT_PREINIT_ARRAY which also has
: > a value of 32. Since all of the preceeding tags have been in
: > ascending numerical order, and since no tag was assigned the
: > value of 31, I have assumed that this was a typo, and used the
: > value of 31 instead.
:
: It is not a typo. It is intentional. Nick, please read the paragraph
: following the definitions of d_val and d_ptr in "Dynamic Section."
Oops - sorry - I did not spot that. The patch below will fix this.
Cheers
Nick
Index: common.h
===================================================================
RCS file: /cvs/binutils/binutils/include/elf/common.h,v
retrieving revision 1.8
diff -p -w -r1.8 common.h
*** common.h 2000/01/10 18:51:33 1.8
--- common.h 2000/01/10 22:36:34
*************** Foundation, Inc., 59 Temple Place - Suit
*** 409,415 ****
#define DT_FINI_ARRAYSZ 28
#define DT_RUNPATH 29
#define DT_FLAGS 30
! #define DT_ENCODING 31 /* Note: Oct 4, 1999 Draft specifies this as 32, but this conflicts with DT_PREINIT_ARRAY */
#define DT_PREINIT_ARRAY 32
#define DT_PREINIT_ARRAYSZ 33
--- 409,416 ----
#define DT_FINI_ARRAYSZ 28
#define DT_RUNPATH 29
#define DT_FLAGS 30
!
! #define DT_ENCODING 32
#define DT_PREINIT_ARRAY 32
#define DT_PREINIT_ARRAYSZ 33
More information about the Binutils
mailing list