[PATCH] D58762: [BinaryFormat] Add DT_USED tag into dynamic section.

Xing via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 5 04:57:05 PST 2019


Higuoxing added a comment.

Sorry for the delay.

In D58762#1413304 <https://reviews.llvm.org/D58762#1413304>, @jhenderson wrote:

> 1. Do GNU objdump and readelf recognise this flag?


Yes, both `GNU objdump` and `GNU readelf` recognize this flag. `GNU objdump` prints its value in hex format, while `GNU readelf` prints its value in string that the value points to.

> 2. Do you know of any actual users of this tag?

No.

> 3. Is there documentation for these tags anywhere other than the Oracle/Sun documentation? I'm not talking about code examples here by the way.

I've tried to find some docs that could give us information on it in detail, but I cannot find one that makes me happy.

What I found is:

| Name    | Value      | d_un  | Executable | Shared Object |
| DT_USED | 0x7ffffffe | d_val | Optional   | Optional      |
|

from: Dynamic Section <https://docs.oracle.com/cd/E19253-01/817-1984/chapter6-42444/index.html>

All my knowledge about this tag is from some codes segment.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58762/new/

https://reviews.llvm.org/D58762





More information about the llvm-commits mailing list