pdb.c
Source embeds a long hexadecimal byte arrayNTFS alternate data stream write
SHA-256003fc2c0a9292c91fefbcda9b1c60dbb372eeaf9cacc8b9b08c2b4e8a713c2cd
MaleculeO(Er)H(Db₂)
Evidence
1/* BFD back-end for PDB Multi-Stream Format archives.
2 Copyright (C) 2022-2023 Free Software Foundation, Inc.
3
4 This file is part of BFD, the Binary File Descriptor library.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at you …
9:36… on.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHAN …
14:16… Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street - Fift …
21:40… format, which is used for the
22 PDB debug info generated by MSVC. See https://llvm.org/docs/PDB/MsfFile.html
23 for a full description of the format. */
24
25#include "sysdep.h"
26#include "bfd.h"
27#include "libbfd.h"
28
29/* "Microsoft C/C++ MSF 7.00\r\n\x1a\x44\x53\0\0\0" */
30static const uint8_t pdb_magic[] =
31{ 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66,
32 0x74, 0x20, 0x43, 0x2f, 0x43, 0x2b, 0x2b, 0x20,
33 0x4d, 0x53, 0x46, 0x20, 0x37, 0x2e, 0x30, 0x30,
34 0x0d, 0x0a, 0x1a, 0x44, 0x53, 0x0 …
⋯4 lines
40{
41 int ret;
42 char magic[sizeof (pdb_magic)];
43
44 ret = bfd_bread (magic, sizeof (magic), abfd);
45 if (ret != sizeof (magic))
46 {
47 bfd_set_error (b …