Toolchain issues with pcrel addressing

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

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞

調査の方向性

ファイルやテストは指定されていません。まず、pcrel ツールチェーンに関する5つの論点、すなわち @notoc 呼び出し、拡張 inline-asm のアドレッシング、プレフィックス付き命令のアラインメント、r2 の割り当て、mcount リロケーションを分離します。各制限について文書化された解決策があるか、関連するツールチェーンプロジェクトに提起されていれば完了です。

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

説明

enhancement incremental

This issue will track some issues with porting the 64-bit kernel to pcrel addressing. Once we have something reasonably working and found no good way to solve these, they should be raised with relevant toolchain projects.

  • @notoc annotation required for function call target symbols. Would be nice to have an assembler option that defaults to notoc (and perhaps could have a @toc annotation if necessary).
  • Extended inline asm addressing. I haven't found a way to use more complex addressing, let alone pcrel addressing in asm constraints.
  • Prefixed instructions require padding to prevent crossing 64 byte boundaries. This causes the assembler to treat delta between symbols containing prefixed instructions as non-constant even if the symbols and instructions are explicitly aligned to avoid padding inserted (e.g., 8 byte alignment for prefix instruction will prevent implicit size change). This prevents them being used in some cases, e.g., in alternate instruction sequences.
  • r2 is unused in pcrel code. Could we have an option to permit the compiler to use it?
  • mcount branches still generate R_PPC64_REL24 relocations. Possible to get gcc to emit @notoc branches for those?
主要言語
言語のデータがありません
スター
14
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

linuxppc/issues のほかの issue

linuxppc/issues の issue をすべて見る

似ている issue

Compilers の issue をもっと見る

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

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