Skip to content

Include Build IDs in VEX V5 executables - #166331

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
vexide:lewisfm/vexos-build-id
Nov 22, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
vexide:lewisfm/vexos-build-id

Conversation

@lewisfm

@lewisfm lewisfm commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds GNU build IDs to executables built for VEX V5, which will make it easier for tools to automatically identify the ELF files associated with programs running on VEX V5 devices.

When programs are uploaded to a VEX V5 robot controller, they are converted to a simple binary format that doesn't contain any section, symbol, and debug information. That means a debugger attaching to a program (or another tool) cannot automatically discover a program's debug info using just the info on the device.

This change will allow tools to more easily discover program debug and symbol info by adding a unique ID to executables that correlates the stripped binary stored on-device with the original ELF: the program running on-device could implement some way of reading the build id and sending it to a host tool, and the host tool could then use it for some purpose such as discovering debug info.

cc @tropicaaal @Gavin-Niederman

@rustbot

rustbot commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

These commits modify compiler targets.
(See the Target Tier Policy.)

@rustbot rustbot 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 Nov 21, 2026
@rustbot

rustbot commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

r? @adwinwhite

rustbot has assigned @adwinwhite.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 79 candidates
  • Random selection from 20 candidates

@tropicaaal tropicaaal left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hanna-kruppe

Copy link
Copy Markdown
Contributor

r? me @bors r+ rollup

@rust-bors

rust-bors Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 5f6ba93 has been approved by hanna-kruppe

It is now in the queue for this repository.

@rustbot rustbot assigned hanna-kruppe and unassigned adwinwhite Nov 22, 2026
@rust-bors rust-bors Bot 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 Nov 22, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 22, 2026
…anna-kruppe

Include Build IDs in VEX V5 executables

This PR adds GNU build IDs to executables built for VEX V5, which will make it easier for tools to automatically identify the ELF files associated with programs running on VEX V5 devices.

When programs are uploaded to a VEX V5 robot controller, they are converted to a simple binary format that doesn't contain any section, symbol, and debug information. That means a debugger attaching to a program (or another tool) cannot automatically discover a program's debug info using just the info on the device.

This change will allow tools to more easily discover program debug and symbol info by adding a unique ID to executables that correlates the stripped binary stored on-device with the original ELF: the program running on-device could implement some way of reading the build id and sending it to a host tool, and the host tool could then use it for some purpose such as discovering debug info.

cc @tropicaaal @Gavin-Niederman
rust-bors Bot pushed a commit that referenced this pull request Nov 22, 2026
…uwer

Rollup of 13 pull requests

Successful merges:

 - #166266 (miri subtree update)
 - #155216 (match: Use an aggregate equality comparison for constant array/slice patterns)
 - #166142 (Lower to `hir::Param`s for extern functions)
 - #163315 (s390x: replace -Ctarget-feature=+backchain with -Cforce-frame-pointers)
 - #165238 (make conflicting_repr_hints a hard error)
 - #165366 (Add lint against duplicate parameter names in fns without body)
 - #166269 (libcore: Revert some comment changes)
 - #166287 (Use `core::ptr` in `implicit_provenance_casts` help for `no_std` crates)
 - #166306 (bootstrap: Stop passing `-Ztrim-paths` to cargo now that it's stable in beta)
 - #166309 (Add `#[must_use]` to `Ip*Addr::as_octets` methods)
 - #166315 (rustc_diagnostic_item macros added on some iter functions)
 - #166331 (Include Build IDs in VEX V5 executables)
 - #166349 (compiletest: Remove some old special-case code paths)
@rust-bors
rust-bors Bot merged commit 6f2c589 into rust-lang:main Nov 22, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 22, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 22, 2026
Rollup merge of #166331 - vexide:lewisfm/vexos-build-id, r=hanna-kruppe

Include Build IDs in VEX V5 executables

This PR adds GNU build IDs to executables built for VEX V5, which will make it easier for tools to automatically identify the ELF files associated with programs running on VEX V5 devices.

When programs are uploaded to a VEX V5 robot controller, they are converted to a simple binary format that doesn't contain any section, symbol, and debug information. That means a debugger attaching to a program (or another tool) cannot automatically discover a program's debug info using just the info on the device.

This change will allow tools to more easily discover program debug and symbol info by adding a unique ID to executables that correlates the stripped binary stored on-device with the original ELF: the program running on-device could implement some way of reading the build id and sending it to a host tool, and the host tool could then use it for some purpose such as discovering debug info.

cc @tropicaaal @Gavin-Niederman
github-actions Bot pushed a commit to rust-lang/stdarch that referenced this pull request Nov 23, 2026
…uwer

Rollup of 13 pull requests

Successful merges:

 - rust-lang/rust#166266 (miri subtree update)
 - rust-lang/rust#155216 (match: Use an aggregate equality comparison for constant array/slice patterns)
 - rust-lang/rust#166142 (Lower to `hir::Param`s for extern functions)
 - rust-lang/rust#163315 (s390x: replace -Ctarget-feature=+backchain with -Cforce-frame-pointers)
 - rust-lang/rust#165238 (make conflicting_repr_hints a hard error)
 - rust-lang/rust#165366 (Add lint against duplicate parameter names in fns without body)
 - rust-lang/rust#166269 (libcore: Revert some comment changes)
 - rust-lang/rust#166287 (Use `core::ptr` in `implicit_provenance_casts` help for `no_std` crates)
 - rust-lang/rust#166306 (bootstrap: Stop passing `-Ztrim-paths` to cargo now that it's stable in beta)
 - rust-lang/rust#166309 (Add `#[must_use]` to `Ip*Addr::as_octets` methods)
 - rust-lang/rust#166315 (rustc_diagnostic_item macros added on some iter functions)
 - rust-lang/rust#166331 (Include Build IDs in VEX V5 executables)
 - rust-lang/rust#166349 (compiletest: Remove some old special-case code paths)
@rust-timer

Copy link
Copy Markdown

Note

This PR was benchmarked as part of triage of its containing rollup: triage URL.

Finished benchmarking commit (f5b67d0): comparison URL.

Overall result: ❌✅ regressions and improvements - please read:

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.2% [0.1%, 0.3%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.8% [-1.1%, -0.1%] 8
All ❌✅ (primary) - - 0

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

Results (secondary 3.6%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
6.0% [3.2%, 8.5%] 11
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-5.3% [-7.1%, -4.0%] 3
All ❌✅ (primary) - - 0

Binary size

This perf run didn't have relevant results for this metric.

Artifact size: 406.41 MiB -> 405.69 MiB (-0.18%)

@rustbot rustbot added the perf-regression Performance regression. label Nov 23, 2026
@lewisfm

lewisfm commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

I think this is just noise, this PR only changed a config for a target that shouldn't even be getting tested in CI since it's tier 3.

@JonathanBrouwer

Copy link
Copy Markdown
Member

@rustbot label: +perf-regression-triaged
Improvements and regressions are noise

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label Nov 23, 2026
github-merge-queue Bot pushed a commit to rust-lang/miri that referenced this pull request Nov 23, 2026
…uwer

Rollup of 13 pull requests

Successful merges:

 - rust-lang/rust#166266 (miri subtree update)
 - rust-lang/rust#155216 (match: Use an aggregate equality comparison for constant array/slice patterns)
 - rust-lang/rust#166142 (Lower to `hir::Param`s for extern functions)
 - rust-lang/rust#163315 (s390x: replace -Ctarget-feature=+backchain with -Cforce-frame-pointers)
 - rust-lang/rust#165238 (make conflicting_repr_hints a hard error)
 - rust-lang/rust#165366 (Add lint against duplicate parameter names in fns without body)
 - rust-lang/rust#166269 (libcore: Revert some comment changes)
 - rust-lang/rust#166287 (Use `core::ptr` in `implicit_provenance_casts` help for `no_std` crates)
 - rust-lang/rust#166306 (bootstrap: Stop passing `-Ztrim-paths` to cargo now that it's stable in beta)
 - rust-lang/rust#166309 (Add `#[must_use]` to `Ip*Addr::as_octets` methods)
 - rust-lang/rust#166315 (rustc_diagnostic_item macros added on some iter functions)
 - rust-lang/rust#166331 (Include Build IDs in VEX V5 executables)
 - rust-lang/rust#166349 (compiletest: Remove some old special-case code paths)
flip1995 pushed a commit to flip1995/rust-clippy that referenced this pull request Nov 26, 2026
…uwer

Rollup of 13 pull requests

Successful merges:

 - rust-lang/rust#166266 (miri subtree update)
 - rust-lang/rust#155216 (match: Use an aggregate equality comparison for constant array/slice patterns)
 - rust-lang/rust#166142 (Lower to `hir::Param`s for extern functions)
 - rust-lang/rust#163315 (s390x: replace -Ctarget-feature=+backchain with -Cforce-frame-pointers)
 - rust-lang/rust#165238 (make conflicting_repr_hints a hard error)
 - rust-lang/rust#165366 (Add lint against duplicate parameter names in fns without body)
 - rust-lang/rust#166269 (libcore: Revert some comment changes)
 - rust-lang/rust#166287 (Use `core::ptr` in `implicit_provenance_casts` help for `no_std` crates)
 - rust-lang/rust#166306 (bootstrap: Stop passing `-Ztrim-paths` to cargo now that it's stable in beta)
 - rust-lang/rust#166309 (Add `#[must_use]` to `Ip*Addr::as_octets` methods)
 - rust-lang/rust#166315 (rustc_diagnostic_item macros added on some iter functions)
 - rust-lang/rust#166331 (Include Build IDs in VEX V5 executables)
 - rust-lang/rust#166349 (compiletest: Remove some old special-case code paths)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant 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.

7 participants