berkus / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

How to identify the relocation section of debug #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
So far, MCLinker use the name rule to identify debug sections:
In file ELFReader.cpp

 26 LDFileFormat::Kind
 27 ELFReaderIF::getLDSectionKind(uint32_t pType, const char* pName) const
 28 {
 29   // name rules
 30   llvm::StringRef name(pName);
 31   if (llvm::StringRef::npos != name.find(".debug"))
 32     return LDFileFormat::Debug;

However, the relocation sections for debug should be treated as a normal 
relocation section. Current rule treats debug relocation section as a debug 
section, not normal relocation section.

Original issue reported on code.google.com by LubaTang on 3 May 2012 at 1:12

GoogleCodeExporter commented 9 years ago
System V ABI only defines the section name with the *prefix* .debug are 
reserved for future use in the ABI.

Original comment by LubaTang on 4 May 2012 at 5:48

GoogleCodeExporter commented 9 years ago
Issue 31 has been merged into this issue.

Original comment by LubaTang on 7 May 2012 at 2:50

GoogleCodeExporter commented 9 years ago
Basic Dwarf debugging support is there after commit c7cd2174. And on Android 
platform, gdb remote debugging should work.

Original comment by pete.c...@gmail.com on 10 May 2012 at 8:52

GoogleCodeExporter commented 9 years ago

Original comment by LubaTang on 22 May 2012 at 1:28