Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
elfio mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Third Party Mirrors
elfio mirror
Commits
f78a5195
Commit
f78a5195
authored
11 years ago
by
Mario Werner
Browse files
Options
Downloads
Patches
Plain Diff
removed const from the segment load function
parent
fa813b7b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
elfio/elfio_segment.hpp
+5
-4
5 additions, 4 deletions
elfio/elfio_segment.hpp
with
5 additions
and
4 deletions
elfio/elfio_segment.hpp
+
5
−
4
View file @
f78a5195
...
@@ -51,10 +51,11 @@ class segment
...
@@ -51,10 +51,11 @@ class segment
virtual
Elf_Half
get_section_index_at
(
Elf_Half
num
)
const
=
0
;
virtual
Elf_Half
get_section_index_at
(
Elf_Half
num
)
const
=
0
;
protected
:
protected
:
virtual
void
set_index
(
Elf_Half
)
=
0
;
virtual
Elf64_Off
get_offset
()
const
=
0
;
virtual
void
load
(
std
::
ifstream
&
stream
,
std
::
streampos
header_offset
)
const
=
0
;
virtual
void
set_index
(
Elf_Half
)
=
0
;
virtual
void
load
(
std
::
ifstream
&
stream
,
std
::
streampos
header_offset
)
=
0
;
virtual
void
save
(
std
::
ofstream
&
f
,
std
::
streampos
header_offset
,
virtual
void
save
(
std
::
ofstream
&
f
,
std
::
streampos
header_offset
,
std
::
streampos
data_offset
)
=
0
;
std
::
streampos
data_offset
)
=
0
;
};
};
...
@@ -143,7 +144,7 @@ class segment_impl : public segment
...
@@ -143,7 +144,7 @@ class segment_impl : public segment
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
void
load
(
std
::
ifstream
&
stream
,
load
(
std
::
ifstream
&
stream
,
std
::
streampos
header_offset
)
const
std
::
streampos
header_offset
)
{
{
stream
.
seekg
(
header_offset
);
stream
.
seekg
(
header_offset
);
stream
.
read
(
reinterpret_cast
<
char
*>
(
&
ph
),
sizeof
(
ph
)
);
stream
.
read
(
reinterpret_cast
<
char
*>
(
&
ph
),
sizeof
(
ph
)
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment