<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>ELF :: 标签 :: yafeng 的博客</title>
    <link>https://yafengabc.github.io/tags/elf/index.html</link>
    <description></description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Tue, 06 Oct 2026 17:10:00 +0800</lastBuildDate>
    <atom:link href="https://yafengabc.github.io/tags/elf/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>开发笔记：把 gocld 变成真正的链接器</title>
      <link>https://yafengabc.github.io/goc/devnotes/02-%E6%8A%8Agocld%E5%8F%98%E6%88%90%E7%9C%9F%E6%AD%A3%E7%9A%84%E9%93%BE%E6%8E%A5%E5%99%A8/index.html</link>
      <pubDate>Tue, 06 Oct 2026 17:10:00 +0800</pubDate>
      <guid>https://yafengabc.github.io/goc/devnotes/02-%E6%8A%8Agocld%E5%8F%98%E6%88%90%E7%9C%9F%E6%AD%A3%E7%9A%84%E9%93%BE%E6%8E%A5%E5%99%A8/index.html</guid>
      <description>让 goc -c 产出真正可重定位的目标文件（PE 的 COFF 与 Linux 的 ELF64），让 gocld 成为可独立运行的链接器。本文记录这次改造里踩到的字节级坑：字符串表 NUL 约定、Elf64_Sym 漏掉 st_other、section 索引 1-based、sh_link 偏移差 4 字节、deferred 分支跳过重定位生成，以及 goa 与 ELF 两套PC-relative 算术的对齐。</description>
    </item>
  </channel>
</rss>