145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.globl bar
245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.globl foo
345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.section .bar
545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgbar:
645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.4byte foo-.
745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.4byte baz-.
845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgcall foo
945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgcall baz
1045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgfoo:
1145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
1245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.section .data
1345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgbaz:
1445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.4byte foo-.
1545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#.4byte .-foo	# illegal
1645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.4byte baz-.
1745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.4byte .-baz
1845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.4byte foo+4-.		# with constant
1945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.4byte .-baz+foo+4-.	# both local and cross-segment (legal)
2045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#.4byte baz+foo+4-.-.	# ditto, slightly different - GAS gets confused on this
2145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#.4byte (bar-.)+(foo-.)	# illegal (too many cross-segment)
2245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.4byte baz-.+baz-.	# two from same segment
2345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
2445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.section .text
2545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmovl $5, foo-.
2645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmovl $(foo-.), %eax
2745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgcall foo
28