Rollup merge of #88820 - hlopko:add_pie_relocation_model, r=petrochenkov
Add `pie` as another `relocation-model` value MCP: https://github.com/rust-lang/compiler-team/issues/461
This commit is contained in:
commit
6f1e930581
11 changed files with 147 additions and 8 deletions
|
@ -288,6 +288,7 @@ impl ToJson for MergeFunctions {
|
|||
pub enum RelocModel {
|
||||
Static,
|
||||
Pic,
|
||||
Pie,
|
||||
DynamicNoPic,
|
||||
Ropi,
|
||||
Rwpi,
|
||||
|
@ -301,6 +302,7 @@ impl FromStr for RelocModel {
|
|||
Ok(match s {
|
||||
"static" => RelocModel::Static,
|
||||
"pic" => RelocModel::Pic,
|
||||
"pie" => RelocModel::Pie,
|
||||
"dynamic-no-pic" => RelocModel::DynamicNoPic,
|
||||
"ropi" => RelocModel::Ropi,
|
||||
"rwpi" => RelocModel::Rwpi,
|
||||
|
@ -315,6 +317,7 @@ impl ToJson for RelocModel {
|
|||
match *self {
|
||||
RelocModel::Static => "static",
|
||||
RelocModel::Pic => "pic",
|
||||
RelocModel::Pie => "pie",
|
||||
RelocModel::DynamicNoPic => "dynamic-no-pic",
|
||||
RelocModel::Ropi => "ropi",
|
||||
RelocModel::Rwpi => "rwpi",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue