Comments (4)
Build with:
g++ asan.ii -g -c && ./bin/diva asan.o
DW_DLE_ATTR_FORM_BAD (114)
ERR_INVALID_DWARF: Failed to read DWARF from 'asan.o'
from diva.
Reproduced: repro.zip
Looks like gcc is now outputting template parameter values in block form rather than as integers (which is valid DWARF).
DW_TAG_template_value_parameter
DW_AT_name "b" <form DW_FORM_string>
DW_AT_type <0x00000072> <form DW_FORM_ref4>
DW_AT_const_value 03000000 <form DW_FORM_block1>
This has the same underlying problem as issue #1 (quick fixed), where we could account for more forms when reading attributes, and handle forms we aren't expecting better.
from diva.
As an aside I wonder why the value is now encoded as DW_FORM_block*
(a collection of bytes) rather than DW_FORM_data*
.
The reader of the DWARF can't interpret the value without knowing what the bytes represent. In this case they're a little endian integer but there is no way of 'knowing' that.
from diva.
The type is the DW_AT_type on the DW_TAG_template_value_parameter. If you look at DWARF, e.g. DWARF5 pdf, block class next to constant and string are the supported classes.
While this inefficiency has been fixed in the mean time in GCC 8, if you say have template parameter with say __int128_t type that doesn't fit into 64-bits (signed or unsigned), you'll get a block too.
from diva.
Related Issues (10)
- Can not read static binaries HOT 7
- Support for VS .obj File HOT 1
- Assertion `ReferencesToBeSet.empty() && "Some objects had a reference that was not created"' failed. HOT 1
- Can't process DWARF from dwo file HOT 2
- Source code HOT 3
- License information HOT 2
- DIVA does not build with Clang 5.0 HOT 2
- build is failing
- Diva segfaults for crtbegin.o HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diva.