Skip to content

[AIX] Remove AixLinker's debuginfo() implementation - #117118

Merged
bors merged 3 commits into
rust-lang:masterfrom
bzEq:aix-linker
Mar 15, 2024
Merged

[AIX] Remove AixLinker's debuginfo() implementation#117118
bors merged 3 commits into
rust-lang:masterfrom
bzEq:aix-linker

Conversation

@bzEq

@bzEqbzEq commented Oct 24, 2023

Copy link
Copy Markdown
Contributor

AIX ld's -s option doesn't perfectly fit debuginfo()'s semantics and may unexpectedly remove metadata in shared libraries. Remove the implementation of AixLinker and suggest user to use strip utility instead.

@rustbot

Copy link
Copy Markdown
Collaborator

r? @wesleywiser

(rustbot has picked a reviewer for you, use r? to override)

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 24, 2023
@bjorn3

Copy link
Copy Markdown
Member

Shouldn't rustc invoke strip itself? On macOS where there is no linker option for striping we also invoke strip ourself based on the -Cstrip value.

@bzEq

bzEq commented Oct 24, 2023

Copy link
Copy Markdown
ContributorAuthor

On macOS where there is no linker option for striping we also invoke strip ourself based on the -Cstrip value

Thanks for the info, will update the PR.

@wesleywiserwesleywiser added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 24, 2023
@bors

bors commented Nov 22, 2023

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #118178) made this pull request unmergeable. Please resolve the merge conflicts.

@JohnCSimon

Copy link
Copy Markdown

@bzEq

ping from triage - can you post your status on this PR? This PR has not received an update in a few months.

FYI: when a PR is ready for review, send a message containing
@rustbot ready to switch to S-waiting-on-review so the PR is in the reviewer's backlog.

Or if you're not going to continue, please close it. Thank you!

Kai Luo added 2 commits March 5, 2024 15:10
`-s` option doesn't perfectly fit into debuginfo()'s semantics and may unexpectedly
remove metadata in shared libraries. Remove the implementation and suggest user to
use `strip` utility instead.
@bzEq

bzEq commented Mar 5, 2024

Copy link
Copy Markdown
ContributorAuthor

@rustbot ready.

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 5, 2024
@wesleywiser

Copy link
Copy Markdown
Member

Thanks @bzEq!

@bors r+ rollup

@bors

bors commented Mar 14, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit b1c3909 has been approved by wesleywiser

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 14, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 14, 2024
…iaskrgr
Rollup of 10 pull requests
Successful merges:
- rust-lang#117118 ([AIX] Remove AixLinker's debuginfo() implementation)
- rust-lang#121650 (change std::process to drop supplementary groups based on CAP_SETGID)
- rust-lang#121764 (Make incremental sessions identity no longer depend on the crate names provided by source code)
- rust-lang#122212 (Copy byval argument to alloca if alignment is insufficient)
- rust-lang#122322 (coverage: Initial support for branch coverage instrumentation)
- rust-lang#122373 (Fix the conflict problem between the diagnostics fixes of lint `unnecessary_qualification` and `unused_imports`)
- rust-lang#122479 (Implement `Duration::as_millis_{f64,f32}`)
- rust-lang#122487 (Rename `StmtKind::Local` variant into `StmtKind::Let`)
- rust-lang#122498 (Update version of cc crate)
- rust-lang#122503 (Make `SubdiagMessageOp` well-formed)
r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 15, 2024
…iaskrgr
Rollup of 10 pull requests
Successful merges:
- rust-lang#117118 ([AIX] Remove AixLinker's debuginfo() implementation)
- rust-lang#121650 (change std::process to drop supplementary groups based on CAP_SETGID)
- rust-lang#121764 (Make incremental sessions identity no longer depend on the crate names provided by source code)
- rust-lang#122212 (Copy byval argument to alloca if alignment is insufficient)
- rust-lang#122322 (coverage: Initial support for branch coverage instrumentation)
- rust-lang#122373 (Fix the conflict problem between the diagnostics fixes of lint `unnecessary_qualification` and `unused_imports`)
- rust-lang#122479 (Implement `Duration::as_millis_{f64,f32}`)
- rust-lang#122487 (Rename `StmtKind::Local` variant into `StmtKind::Let`)
- rust-lang#122498 (Update version of cc crate)
- rust-lang#122503 (Make `SubdiagMessageOp` well-formed)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 68ca795 into rust-lang:masterMar 15, 2024
@rustbotrustbot added this to the 1.78.0 milestone Mar 15, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Mar 15, 2024
Rollup merge of rust-lang#117118 - bzEq:aix-linker, r=wesleywiser
[AIX] Remove AixLinker's debuginfo() implementation
AIX ld's `-s` option doesn't perfectly fit` debuginfo()`'s semantics and may unexpectedly remove metadata in shared libraries. Remove the implementation of `AixLinker` and suggest user to use `strip` utility instead.
@bzEq
bzEq deleted the aix-linker branch March 25, 2024 05:52
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@bzEq@rustbot@bjorn3@bors@JohnCSimon@wesleywiser