`picotool seal` corrupts ELF files built with IAR toolchain

オープン
#374 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@bavison がすでに取り組んでいます。

2026年11月6日 から。

  • #375 @bavison による — オープン

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
cli

調査の方向性

Start by locating the picotool seal implementation and how it reads and writes ELF program headers; compare that behavior with the before and after readelf -l output in the issue. Reproduce with an ELF built using the IAR toolchain and inspect the headers before and after sealing. Done when sealing preserves valid program headers for that input.

索引モデルが issue の本文から書いたものです。

説明

Illustrated by running readelf -l on the input and output ELF files:

Before
Elf file type is EXEC (Executable file)
Entry point 0x20000181
There is 1 program header, starting at offset 1742692

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x000034 0x20000000 0x20000000 0x09040 0x0a584 RWE 0x8

 Section to Segment mapping:
  Segment Sections...
   00     P1 P1_2
After
Elf file type is EXEC (Executable file)
Entry point 0x20000181
There are 2 program headers, starting at offset 1742692

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  <unknown>: 100 0x1f6a0004 0x8ffc0001 0x00002000 0x100000 0x1f800004   E 0x2000
  <unknown>: 100 0x1ff50004 0x8ffc0001 0x00002000 0x100000 0x4ccf0004     0x42000

 Section to Segment mapping:
  Segment Sections...
   00
   01
主要言語
C++
スター
1k
フォーク
195
平均マージ
11日 5時間
マージ済み PR(30日)
4

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

raspberrypi/picotool のほかの issue

raspberrypi/picotool の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。