Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
binutils-gdb
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Sebastien Michelland
binutils-gdb
Commits
63b33ceb
Commit
63b33ceb
authored
15 years ago
by
Nick Clifton
Browse files
Options
Downloads
Patches
Plain Diff
PR 10387
* config/tc-arm.h (THUMB_IS_FUNC): Handle a NULL pointer. (ARM_IS_FUNC): Likewise.
parent
b101f7a1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gas/ChangeLog
+6
-0
6 additions, 0 deletions
gas/ChangeLog
gas/config/tc-arm.h
+14
-12
14 additions, 12 deletions
gas/config/tc-arm.h
with
20 additions
and
12 deletions
gas/ChangeLog
+
6
−
0
View file @
63b33ceb
2009-07-14 Nick Clifton <nickc@redhat.com>
PR 10387
* config/tc-arm.h (THUMB_IS_FUNC): Handle a NULL pointer.
(ARM_IS_FUNC): Likewise.
2009-07-14 Daniel Gutson <dgutson@codesourcery.com>
2009-07-14 Daniel Gutson <dgutson@codesourcery.com>
* config/tc-arm.c (md_assemble): Added validation.
* config/tc-arm.c (md_assemble): Added validation.
...
...
This diff is collapsed.
Click to expand it.
gas/config/tc-arm.h
+
14
−
12
View file @
63b33ceb
...
@@ -128,24 +128,26 @@ bfd_boolean arm_is_eabi (void);
...
@@ -128,24 +128,26 @@ bfd_boolean arm_is_eabi (void);
/* For ELF objects THUMB_IS_FUNC is inferred from
/* For ELF objects THUMB_IS_FUNC is inferred from
ARM_IS_THUMB and the function type. */
ARM_IS_THUMB and the function type. */
#define THUMB_IS_FUNC(s) \
#define THUMB_IS_FUNC(s) \
((arm_is_eabi () \
((s) != NULL \
&& (ARM_IS_THUMB (s)) \
&& ((arm_is_eabi () \
&& (symbol_get_bfdsym (s)->flags & BSF_FUNCTION)) \
&& (ARM_IS_THUMB (s)) \
|| (ARM_GET_FLAG (s) & THUMB_FLAG_FUNC))
&& (symbol_get_bfdsym (s)->flags & BSF_FUNCTION)) \
|| (ARM_GET_FLAG (s) & THUMB_FLAG_FUNC)))
#define ARM_IS_FUNC(s) \
((arm_is_eabi () \
#define ARM_IS_FUNC(s) \
&& !(ARM_IS_THUMB (s)) \
(((s) != NULL \
/* && !(THUMB_FLAG_FUNC & ARM_GET_FLAG (s)) \ */
\
&& arm_is_eabi () \
&& !(ARM_IS_THUMB (s)) \
/* && !(THUMB_FLAG_FUNC & ARM_GET_FLAG (s)) \ */
\
&& (symbol_get_bfdsym (s)->flags & BSF_FUNCTION)))
&& (symbol_get_bfdsym (s)->flags & BSF_FUNCTION)))
#else
#else
#define THUMB_IS_FUNC(s) (ARM_GET_FLAG (s) & THUMB_FLAG_FUNC)
#define THUMB_IS_FUNC(s) (
(s) &&
ARM_GET_FLAG (s) & THUMB_FLAG_FUNC)
#define ARM_IS_FUNC(s) (!THUMB_IS_FUNC (s) \
#define ARM_IS_FUNC(s) (!THUMB_IS_FUNC (s) \
&& (symbol_get_bfdsym (s)->flags & BSF_FUNCTION))
&& (s)
&& (symbol_get_bfdsym (s)->flags & BSF_FUNCTION))
#endif
#endif
#define ARM_SET_THUMB(s,t) ((t) ? ARM_SET_FLAG (s, ARM_FLAG_THUMB) : ARM_RESET_FLAG (s, ARM_FLAG_THUMB))
#define ARM_SET_THUMB(s,t) ((t) ? ARM_SET_FLAG (s, ARM_FLAG_THUMB) : ARM_RESET_FLAG (s, ARM_FLAG_THUMB))
...
...
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