Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(159)

Issue 7624043: code review 7624043: cmd/6l, cmd/8l: fix BSD builds (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by rsc
Modified:
12 years, 9 months ago
Reviewers:
CC:
golang-dev
Visibility:
Public.

Description

cmd/6l, cmd/8l: fix BSD builds Before this CL, running cd misc/cgo/test go test -c readelf --dyn-syms test.test | grep cgoexp turned up many UNDEF symbols corresponding to symbols actually in the binary but marked only cgo_export_static. Only symbols marked cgo_export_dynamic should be listed in this mode. And if the symbol is going to be listed, it should be listed with its actual address instead of UNDEF. The Linux dynamic linker didn't care about the seemingly missing symbols, but the BSD one did. This CL eliminates the symbols from the dyn-syms table.

Patch Set 1 #

Patch Set 2 : diff -r bb71b657b5bc https://go.googlecode.com/hg #

Patch Set 3 : diff -r bb71b657b5bc https://go.googlecode.com/hg #

Patch Set 4 : diff -r ed48ace1855b https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -22 lines) Patch
M src/cmd/6l/asm.c View 1 10 chunks +12 lines, -12 lines 0 comments Download
M src/cmd/8l/asm.c View 1 8 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 2
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg
12 years, 9 months ago (2013-03-08 04:13:51 UTC) #1
rsc
12 years, 9 months ago (2013-03-08 05:24:05 UTC) #2
*** Submitted as https://code.google.com/p/go/source/detail?r=451d31faf61c ***

cmd/6l, cmd/8l: fix BSD builds

Before this CL, running

        cd misc/cgo/test
        go test -c
        readelf --dyn-syms test.test | grep cgoexp

turned up many UNDEF symbols corresponding to symbols actually
in the binary but marked only cgo_export_static. Only symbols
marked cgo_export_dynamic should be listed in this mode.
And if the symbol is going to be listed, it should be listed with its
actual address instead of UNDEF.

The Linux dynamic linker didn't care about the seemingly missing
symbols, but the BSD one did.

This CL eliminates the symbols from the dyn-syms table.

R=golang-dev
TBR=golang-dev
CC=golang-dev
https://codereview.appspot.com/7624043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b