[dmd-internals] [D-Programming-Language/dmd] 31a899: rename/complete special section header indices

GitHub noreply at github.com
Fri Jan 25 10:44:14 PST 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 31a89946b3eca551087d172dad0255900d5abc6a
      https://github.com/D-Programming-Language/dmd/commit/31a89946b3eca551087d172dad0255900d5abc6a
  Author: Martin Nowak <code at dawg.eu>
  Date:   2013-01-25 (Fri, 25 Jan 2013)

  Changed paths:
    M src/backend/elfobj.c
    M src/backend/melf.h
    M src/libelf.c

  Log Message:
  -----------
  rename/complete special section header indices

- according to System V ABI
  http://www.sco.com/developers/gabi/latest/ch4.sheader.html


  Commit: 277bf94dcf1fd388fca23a78eac53951c98f9e76
      https://github.com/D-Programming-Language/dmd/commit/277bf94dcf1fd388fca23a78eac53951c98f9e76
  Author: Martin Nowak <code at dawg.eu>
  Date:   2013-01-25 (Fri, 25 Jan 2013)

  Changed paths:
    M src/backend/elfobj.c

  Log Message:
  -----------
  rename abbreviation for section header index (SHI->SHN)

- matches ELF constants


  Commit: 4cbadd6ba4418a750643a01aa4d6355b5db87d10
      https://github.com/D-Programming-Language/dmd/commit/4cbadd6ba4418a750643a01aa4d6355b5db87d10
  Author: Martin Nowak <code at dawg.eu>
  Date:   2013-01-25 (Fri, 25 Jan 2013)

  Changed paths:
    M src/backend/elfobj.c
    M src/backend/melf.h

  Log Message:
  -----------
  use extendend section header indices when exceeding SHN_LORESERVE

- overflowing section indices in symbol table are escaped
  (st_shndx field is set to SHN_XINDEX)

- additional .symtab_shndx section contains 32-bit section indices
  (contains zero entries for symbols that have a valid st_shndx value)

- overflowing section count in ELF header (e_shnum) is stored in the
  size field of the first section header (sh_size)

- insert dummy null sections to skip reserved section indices


  Commit: f8fe498f97063381e37b20055ce19976970abd41
      https://github.com/D-Programming-Language/dmd/commit/f8fe498f97063381e37b20055ce19976970abd41
  Author: Martin Nowak <code at dawg.eu>
  Date:   2013-01-25 (Fri, 25 Jan 2013)

  Changed paths:
    M src/backend/cdef.h

  Log Message:
  -----------
  use -1 as UNKNOWN segment index flag

- increases the maximum size of SegData from 32767 to INT_MAX

- the whole backend uses `int` as segment index


  Commit: 2d836844f10e1893bc22e83dc0f4a57c09cffbb4
      https://github.com/D-Programming-Language/dmd/commit/2d836844f10e1893bc22e83dc0f4a57c09cffbb4
  Author: Walter Bright <walter at walterbright.com>
  Date:   2013-01-25 (Fri, 25 Jan 2013)

  Changed paths:
    M src/backend/cdef.h
    M src/backend/elfobj.c
    M src/backend/melf.h
    M src/libelf.c

  Log Message:
  -----------
  Merge pull request #1540 from dawgfoto/fixSectionOverflow

Fix section overflow


Compare: https://github.com/D-Programming-Language/dmd/compare/e4fb5742c75a...2d836844f10e


More information about the dmd-internals mailing list