1.1 --- a/libexec/include/exec/elf.h Fri Mar 03 19:29:33 2023 +0100
1.2 +++ b/libexec/include/exec/elf.h Sat Mar 04 12:42:09 2023 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * ELF payload decoding support.
1.6 *
1.7 - * Copyright (C) 2022 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2022, 2023 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -50,9 +50,6 @@
1.13
1.14 class Payload
1.15 {
1.16 -protected:
1.17 - Segment **_segments = NULL;
1.18 -
1.19 public:
1.20 virtual ~Payload();
1.21
1.22 @@ -68,10 +65,13 @@
1.23 {
1.24 protected:
1.25 HEADER *_header;
1.26 + Segment **_segments = NULL;
1.27
1.28 public:
1.29 explicit PayloadVariant(HEADER *header);
1.30
1.31 + virtual ~PayloadVariant();
1.32 +
1.33 l4_addr_t entry_point();
1.34 offset_t header_extent();
1.35 offset_t program_header_extent();