<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/debug/elf/testdata, branch fix-runtime-test-GOMAXPROCS</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=fix-runtime-test-GOMAXPROCS</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=fix-runtime-test-GOMAXPROCS'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2025-03-14T22:08:23Z</updated>
<entry>
<title>debug/elf: add riscv attributes definitions</title>
<updated>2025-03-14T22:08:23Z</updated>
<author>
<name>Meng Zhuo</name>
<email>mengzhuo@iscas.ac.cn</email>
</author>
<published>2025-03-13T08:29:16Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=5bb73e650496c229c9baf5b9a4fe3861c07c9302'/>
<id>urn:sha1:5bb73e650496c229c9baf5b9a4fe3861c07c9302</id>
<content type='text'>
This CL adds `riscv.attributes` related ELF section header
type and program header type according to
[RISC-V ELF Specification](https://github.com/riscv-non-isa/riscv-elf-psabi-doc/releases/download/v1.0/riscv-abi.pdf)

Also an riscv64/linux testcase binary built from:

```
gcc -march=rv64g -no-pie -o gcc-riscv64-linux-exec hello.c
strip gcc-riscv64-linux-exec
```

Fixes #72843

Change-Id: I7710a0516f69141c0efaba71dd997f05b4c88421
Reviewed-on: https://go-review.googlesource.com/c/go/+/657515
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: David Chase &lt;drchase@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>debug/elf: add SHT_GNU_VERDEF section parsing</title>
<updated>2024-11-07T15:23:24Z</updated>
<author>
<name>benbaker76</name>
<email>headkaze@gmail.com</email>
</author>
<published>2024-11-06T23:13:37Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=2e97c30d8d9f5740a503428c09efae7bedb68efb'/>
<id>urn:sha1:2e97c30d8d9f5740a503428c09efae7bedb68efb</id>
<content type='text'>
Fixes #63952

Change-Id: Icf93e57e62243d9c3306d4e1c5dadb3f62747710
GitHub-Last-Rev: 5c2952760063474f3aac338fe5bdb65bde238ab6
GitHub-Pull-Request: golang/go#69850
Reviewed-on: https://go-review.googlesource.com/c/go/+/619077
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: David Chase &lt;drchase@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>debug/elf: support relocations relative to sections with non-zero addresses</title>
<updated>2020-08-31T18:42:38Z</updated>
<author>
<name>Victor Michel</name>
<email>victor@optimyze.cloud</email>
</author>
<published>2020-08-30T20:43:39Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e01a226fadcac721e26c12921ca54388c7244d03'/>
<id>urn:sha1:e01a226fadcac721e26c12921ca54388c7244d03</id>
<content type='text'>
commit 72ec930fa70c20ce69b21bf32a7916c04c2e9c2f added basic support for
relocations, but assumed that the symbol value would be 0, likely because
.debug_info always has address == 0 in the ELF section headers.

CL 195679 added further support for relocations, but explicitly encoded
the original assumption that section addresses would be 0.

This change removes that assumption: all relocations will now be
properly computed based on the target symbol value even when that symbol
is a section with a non-zero address.

Typically, sections that are part of a LOAD program segment have
non-zero addresses. For example, .debug_ranges relocations could be
relative to .text, which usually has an address &gt; 0.

Fixes #40879

Change-Id: Ib0a616bb8b05d6c96d179b03ca33a10946fc5d59
GitHub-Last-Rev: 4200de732641995f3a4958a13a5c78f65b7eae50
GitHub-Pull-Request: golang/go#41038
Reviewed-on: https://go-review.googlesource.com/c/go/+/250559
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>debug/elf: add riscv64 relocations</title>
<updated>2018-04-18T13:19:31Z</updated>
<author>
<name>Tobias Klauser</name>
<email>tklauser@distanz.ch</email>
</author>
<published>2018-04-12T14:35:51Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=96f6cc15949c27df4fe5df3c5ac9952f37543333'/>
<id>urn:sha1:96f6cc15949c27df4fe5df3c5ac9952f37543333</id>
<content type='text'>
Based on the code from https://github.com/riscv/riscv-go/ originally
written by Amol Bhave.

Change-Id: I8d5377096d4ff8b198dadb630511f9a0347f9797
Reviewed-on: https://go-review.googlesource.com/107339
Run-TryBot: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>debug/elf: add support for GOARCH=mips{,le}</title>
<updated>2016-11-03T22:38:25Z</updated>
<author>
<name>Vladimir Stefanovic</name>
<email>vladimir.stefanovic@imgtec.com</email>
</author>
<published>2016-10-18T21:50:48Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=2c39e50995bb02325b2c17f253b10f5ada0e337f'/>
<id>urn:sha1:2c39e50995bb02325b2c17f253b10f5ada0e337f</id>
<content type='text'>
Change-Id: Ia6f8ae7e56a49ad66b60a24c4afb606f3cfe5efd
Reviewed-on: https://go-review.googlesource.com/31482
Run-TryBot: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
Reviewed-by: Cherry Zhang &lt;cherryyz@google.com&gt;
</content>
</entry>
<entry>
<title>debug/elf: add sparc64 relocations</title>
<updated>2016-10-11T21:52:37Z</updated>
<author>
<name>James Clarke</name>
<email>jrtc27@jrtc27.com</email>
</author>
<published>2016-10-11T18:08:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e1fc292500aa70c265937aebad00ac010031cbaf'/>
<id>urn:sha1:e1fc292500aa70c265937aebad00ac010031cbaf</id>
<content type='text'>
Change-Id: I1a2504ad9ca8607588d2d366598115fe360435b5
Reviewed-on: https://go-review.googlesource.com/30870
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>debug/elf: add s390x relocations</title>
<updated>2016-03-29T16:48:09Z</updated>
<author>
<name>Michael Munday</name>
<email>munday@ca.ibm.com</email>
</author>
<published>2016-03-18T21:24:18Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=12fb62a57db6a34c4ba0162ac970724d60dbbfbb'/>
<id>urn:sha1:12fb62a57db6a34c4ba0162ac970724d60dbbfbb</id>
<content type='text'>
Change-Id: I8440f69c7f99d65b2f69035c26b4a62104f22bd3
Reviewed-on: https://go-review.googlesource.com/20874
Reviewed-by: Minux Ma &lt;minux@golang.org&gt;
</content>
</entry>
<entry>
<title>all: zero mtimes in testdata gz files</title>
<updated>2016-03-25T04:02:36Z</updated>
<author>
<name>Caleb Spare</name>
<email>cespare@gmail.com</email>
</author>
<published>2016-03-24T00:33:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=139fad21b937dc0b405d243e3abe33429890947f'/>
<id>urn:sha1:139fad21b937dc0b405d243e3abe33429890947f</id>
<content type='text'>
Fixes #14937.

Change-Id: Iea11a32230d44d5a43f8aec812d25f13bce85895
Reviewed-on: https://go-review.googlesource.com/21038
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
Run-TryBot: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>debug/elf: transparently decompress compressed sections</title>
<updated>2015-12-03T20:53:11Z</updated>
<author>
<name>Austin Clements</name>
<email>austin@google.com</email>
</author>
<published>2015-12-02T17:20:29Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=76483877052eaa9b2242deee2239e82d3953fd16'/>
<id>urn:sha1:76483877052eaa9b2242deee2239e82d3953fd16</id>
<content type='text'>
This adds support for compressed ELF sections. This compression is
treated as a framing issue and hence the package APIs all
transparently decompress compressed sections. This requires some
subtlety for (*Section).Open, which returns an io.ReadSeeker: since
the decompressed data comes from an io.Reader, this commit introduces
a Reader-to-ReadSeeker adapter that is efficient for common uses of
Seek and does what it can otherwise.

Fixes #11773.

Change-Id: Ic0cb7255a85cadf4c1d15fb563d5a2e89dbd3c36
Reviewed-on: https://go-review.googlesource.com/17341
Reviewed-by: Russ Cox &lt;rsc@golang.org&gt;
Run-TryBot: Austin Clements &lt;austin@google.com&gt;
</content>
</entry>
<entry>
<title>dwbug/elf: support old-style compressed DWARF</title>
<updated>2015-12-03T20:53:04Z</updated>
<author>
<name>Austin Clements</name>
<email>austin@google.com</email>
</author>
<published>2015-12-02T03:55:28Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e1544d3bb68d56ebf43cc8828e3dce18fd5ef442'/>
<id>urn:sha1:e1544d3bb68d56ebf43cc8828e3dce18fd5ef442</id>
<content type='text'>
GCC and LLVM support zlib-compressing DWARF debug sections (and
there's some evidence that this may be happening by default in some
circumstances now).

Add support for reading compressed DWARF sections. Since ELF
relocations apply to the decompressed data, decompression is done
before applying relocations. Since relcations are applied by
debug/elf, decompression must also be handled there.

Note that this is different from compressed ELF sections, which is a
more general mechanism used by very recent versions of GCC.

Updates #11773.

Change-Id: I3f4bf1b04d0802cc1e8fcb7c2a5fcf6c467c5089
Reviewed-on: https://go-review.googlesource.com/17340
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
Run-TryBot: Austin Clements &lt;austin@google.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Russ Cox &lt;rsc@golang.org&gt;
</content>
</entry>
</feed>
