Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
fed750ff
Commit
fed750ff
authored
11 years ago
by
Rui Ueyama
Browse files
Options
Downloads
Patches
Plain Diff
[PECOFF][Writer] Skip ".debug$S" section in the input object file.
llvm-svn: 185129
parent
d059f360
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
+7
-0
7 additions, 0 deletions
lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
lld/test/pecoff/hello.test
+2
-2
2 additions, 2 deletions
lld/test/pecoff/hello.test
lld/test/pecoff/trivial.test
+3
-3
3 additions, 3 deletions
lld/test/pecoff/trivial.test
with
12 additions
and
5 deletions
lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
+
7
−
0
View file @
fed750ff
...
...
@@ -191,6 +191,13 @@ private:
return
ec
;
uint64_t
ordinal
=
0
;
// We do not support debug information yet. We could keep data in ".debug$S"
// section in the resultant binary by copying as opaque bytes, but it would
// make the binary hard to debug because of extraneous data. So we'll skip
// the debug info.
if
(
sectionName
==
".debug$S"
)
return
error_code
::
success
();
// Create an atom for the entire section.
if
(
symbols
.
empty
())
{
ArrayRef
<
uint8_t
>
Data
(
SecData
.
data
(),
SecData
.
size
());
...
...
This diff is collapsed.
Click to expand it.
lld/test/pecoff/hello.test
+
2
−
2
View file @
fed750ff
...
...
@@ -42,9 +42,9 @@ CHECK: }
CHECK
:
Section
{
CHECK
:
Number
:
3
CHECK
:
Name
:
.
data
(
2
E
64
61
74
61
00
00
00
)
CHECK
:
VirtualSize
:
0x
74
CHECK
:
VirtualSize
:
0x
0
CHECK
:
VirtualAddress
:
0x3000
CHECK
:
RawDataSize
:
116
CHECK
:
RawDataSize
:
0
CHECK
:
PointerToRawData
:
0x600
CHECK
:
PointerToRelocations
:
0x0
CHECK
:
PointerToLineNumbers
:
0x0
...
...
This diff is collapsed.
Click to expand it.
lld/test/pecoff/trivial.test
+
3
−
3
View file @
fed750ff
...
...
@@ -39,7 +39,7 @@ FILE: MajorImageVersion: 0
FILE
:
MinorImageVersion
:
0
FILE
:
MajorSubsystemVersion
:
3
FILE
:
MinorSubsystemVersion
:
11
FILE
:
SizeOfImage
:
8192
FILE
:
SizeOfImage
:
4096
FILE
:
SizeOfHeaders
:
512
FILE
:
Subsystem
:
IMAGE_SUBSYSTEM_WINDOWS_CUI
(
0x3
)
FILE
:
Subsystem
[
(
0x8540
)
...
...
@@ -97,9 +97,9 @@ SECTIONS: }
SECTIONS
:
Section
{
SECTIONS
:
Number
:
3
SECTIONS
:
Name
:
.
data
(
2
E
64
61
74
61
00
00
00
)
SECTIONS
:
VirtualSize
:
0x
6C
SECTIONS
:
VirtualSize
:
0x
0
SECTIONS
:
VirtualAddress
:
0x2000
SECTIONS
:
RawDataSize
:
108
SECTIONS
:
RawDataSize
:
0
SECTIONS
:
PointerToRawData
:
0x400
SECTIONS
:
PointerToRelocations
:
0x0
SECTIONS
:
PointerToLineNumbers
:
0x0
...
...
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