-
Notifications
You must be signed in to change notification settings - Fork 11
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
SiFive: Add -z force-zicfilp option #10
Conversation
Internal Jira: SCT-3082 |
Oh I need to change |
Add .ifdef in assembly code to control whether we want to add landing pad or shadow stack GNU properties.
eccfb45
to
b79b8c1
Compare
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.
LGTM with 3 minor comment, feel free to merge once addressed.
bfd/elfxx-riscv.h
Outdated
typedef enum | ||
{ | ||
PLT_NORMAL = 0x0, /* Normal plts. */ | ||
PLT_ZICFILP = 0x1 /* Landing pad plts. */ |
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.
Two space after dot.
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.
also, maybe align like that:
PLT_NORMAL = 0x0, /* Normal plts. */
PLT_ZICFILP = 0x1 /* Landing pad plts. */
bfd/elfxx-riscv.c
Outdated
@@ -2751,7 +2751,7 @@ _bfd_riscv_elf_link_setup_gnu_properties (struct bfd_link_info *info, | |||
uint32_t *and_prop_p, uint32_t *or_prop_p) | |||
{ | |||
asection *sec; | |||
bfd *pbfd; | |||
bfd *pbfd; /* pointer bfd */ |
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.
Should we really need this comment?
bfd/elfnn-riscv.c
Outdated
@@ -184,6 +184,13 @@ struct _bfd_riscv_elf_obj_tdata | |||
|
|||
/* All GNU_PROPERTY_RISCV_FEATURE_2_OR properties. */ | |||
uint32_t gnu_or_prop; | |||
|
|||
/* True to warn when linking objects with incompatible | |||
GNU_PROPERTY_RISCV_FEATURE_1_ZICFILP. */ |
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.
Two space after dot.
b79b8c1
to
89dd467
Compare
No description provided.