View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000499 | file | General | public | 2024-01-23 12:33 | 2024-01-30 21:44 |
Reporter | glebfm | Assigned To | christos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 5.45 | ||||
Fixed in Version | HEAD | ||||
Summary | 0000499: file misidentifies DSOs with FLAGS_1 tag as "static-pie linked" | ||||
Description | file identifies an ELF shared object as "static-pie-linked" when any of the FLAGS_1 flags are set, not limited to the DF_1_PIE flag. | ||||
Steps To Reproduce | $ gcc -shared -Wl,-zglobalaudit -xc /dev/null -o f $ readelf -aW f | grep FLAGS_1 0x000000006ffffffb (FLAGS_1) Flags: GLOBAUDIT $ ./src/file -m magic/magic.mgc ./f ./f: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), static-pie linked, BuildID[sha1]=bc5733e07568cc022ce24849e147ff03d4746bfc, not stripped $ gcc -shared -Wl,-Bgroup -xc /dev/null -o f $ readelf -aW f | grep FLAGS_1 0x000000006ffffffb (FLAGS_1) Flags: GROUP $ ./src/file -m magic/magic.mgc ./f ./f: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), static-pie linked, BuildID[sha1]=a96bd0ff9b106623f0717fc8314206e77632f6d2, not stripped $ gcc -shared -xc /dev/null -o f $ readelf -aW f | grep FLAGS_1 $ ./src/file -m magic/magic.mgc ./f ./f: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=f82e2f8304d3239f6f9eb11115c1ed0a0b2ea00a, not stripped | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2024-01-23 12:33 | glebfm | New Issue | |
2024-01-30 21:43 | christos | Assigned To | => christos |
2024-01-30 21:43 | christos | Status | new => assigned |
2024-01-30 21:44 | christos | Status | assigned => resolved |
2024-01-30 21:44 | christos | Resolution | open => fixed |
2024-01-30 21:44 | christos | Fixed in Version | => HEAD |
2024-01-30 21:44 | christos | Note Added: 0003992 |