1
0
mirror of https://github.com/golang/go synced 2024-10-04 20:21:22 -06:00
go/src/pkg/debug
Gustavo Niemeyer ba2e3af177 ld: remove overlap of ELF sections on dynamic binaries
The dynamic ELF sections were pointing to the proper data,
but that data was already owned by the rodata and text sections.
Some ELF references explicitly prohibit multiple sections from
owning the same data, and strip behaves accordingly.

The data for these sections was moved out and their ranges are
now owned by their respective sections.  This change makes strip
happy both with and without -s being provided at link time.

A test was added in debug/elf to ensure there are no regressions
on this area in the future.

Fixes #1242.
Fixes #2022.

NOTE: Tested on Linux amd64/386/arm only.

R=rsc
CC=golang-dev
https://golang.org/cl/4808043
2011-07-20 12:47:02 -03:00
..
dwarf go/printer: changed max. number of newlines from 3 to 2 2011-07-14 14:39:40 -07:00
elf ld: remove overlap of ELF sections on dynamic binaries 2011-07-20 12:47:02 -03:00
gosym debug/gosym: remove need for gotest to run preparatory commands. 2011-03-29 10:41:23 -07:00
macho pkg: spelling tweaks, A-H 2011-05-18 13:14:56 -04:00
pe go/printer: changed max. number of newlines from 3 to 2 2011-07-14 14:39:40 -07:00