This is an archive of the discontinued LLVM Phabricator instance.

MC, Object: Reserve a section type, SHT_LLVM_ODRTAB, for the ODR table.
ClosedPublic

Authored by pcc on Jun 6 2017, 11:11 PM.

Details

Summary

This is part of the ODR checker proposal:
http://lists.llvm.org/pipermail/llvm-dev/2017-June/113820.html

It appears [1] that binutils' most recent section type number
allocations in the OS-specific range have been of the form 0x6fff47XX,
where 0x47 ('G') presumably stands for GNU. So I have taken the
bold step of using 0x6fff4c00, where 0x4c ('L') stands for LLVM. If
this seems reasonable I will contact gnu-gabi to reserve the entire
0x6fff4cXX range for LLVM.

[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=elfcpp/elfcpp.h;h=cce40d41dedb281c2d8f41135250c2cc39162469;hb=HEAD#l369

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Jun 6 2017, 11:11 PM
ruiu accepted this revision.Jun 7 2017, 8:17 PM

LGTM

This revision is now accepted and ready to land.Jun 9 2017, 10:35 AM
This revision was automatically updated to reflect the committed changes.