forked from bminor/binutils-gdb
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[nanoMIPS] Add eh_frame start and end symbols #8
Open
AndrijaSyrmia
wants to merge
1
commit into
MediaTek-Labs:nmips/gold_v7
Choose a base branch
from
AndrijaSyrmia:andrija/nmips/gold_v7/eh-frame-start-end
base: nmips/gold_v7
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
.section .text, "ax", @progbits | ||
# Dummy function to generate eh frame | ||
.cfi_startproc | ||
.ent _start | ||
_start: | ||
addiu $a1, $a2, 1 | ||
|
||
.end _start | ||
.cfi_endproc | ||
.size _start, .-_start | ||
|
||
.extern __eh_frame_start | ||
.extern __eh_frame_end | ||
# If not referenced, eh frame star/end symbols are not added | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/star/start |
||
.section .reference_start_end, "aw", @progbits | ||
.4byte __eh_frame_start | ||
.4byte __eh_frame_end | ||
|
||
.ifdef hdr | ||
.4byte __eh_frame_hdr_start | ||
.4byte __eh_frame_hdr_end | ||
.endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/sh | ||
|
||
# nanomips_eh_frame_start_end_syms.sh -- test generation of start/end eh_frame | ||
# section symbols. | ||
|
||
# Copyright (C) 2018 Free Software Foundation, Inc. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix year |
||
# Written by Andrija Jovanovic <[email protected]>. | ||
|
||
# This file is part of gold. | ||
|
||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 3 of the License, or | ||
# (at your option) any later version. | ||
|
||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
|
||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | ||
# MA 02110-1301, USA. | ||
|
||
check() | ||
{ | ||
file=$1 | ||
pattern=$2 | ||
|
||
found=`grep "$pattern" $file` | ||
if test -z "$found"; then | ||
echo "pattern \"$pattern\" not found in file $file." | ||
exit 1 | ||
fi | ||
} | ||
|
||
|
||
check nanomips_eh_frame_start_end_syms_1.stdout ".eh_frame PROGBITS 00001000 001000 000028" | ||
# Global hidden symbols may be demoted to local symbols, that's why that is | ||
# not checked | ||
check nanomips_eh_frame_start_end_syms_1.stdout "00001000 0 NOTYPE [A-Z ]* HIDDEN [0-9 ]* __eh_frame_start" | ||
check nanomips_eh_frame_start_end_syms_1.stdout "00001028 0 NOTYPE [A-Z ]* HIDDEN [0-9 ]* __eh_frame_end" | ||
|
||
check nanomips_eh_frame_start_end_syms_2.stdout ".eh_frame PROGBITS 00001000 001000 000028" | ||
check nanomips_eh_frame_start_end_syms_2.stdout ".eh_frame_hdr PROGBITS 00002000 002000 000014" | ||
check nanomips_eh_frame_start_end_syms_2.stdout "00001000 0 NOTYPE [A-Z ]* HIDDEN [0-9 ]* __eh_frame_start" | ||
check nanomips_eh_frame_start_end_syms_2.stdout "00001028 0 NOTYPE [A-Z ]* HIDDEN [0-9 ]* __eh_frame_end" | ||
check nanomips_eh_frame_start_end_syms_2.stdout "00002000 0 NOTYPE [A-Z ]* HIDDEN [0-9 ]* __eh_frame_hdr_start" | ||
check nanomips_eh_frame_start_end_syms_2.stdout "00002014 0 NOTYPE [A-Z ]* HIDDEN [0-9 ]* __eh_frame_hdr_end" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation