Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable dbgsym package for dhcpmon #9862

Merged
merged 2 commits into from
Jan 28, 2022

Conversation

saiarcot895
Copy link
Contributor

Signed-off-by: Saikrishna Arcot [email protected]

Why I did it

Copy out the dbgsym package for dhcpmon, to assist in debugging if needed

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Saikrishna Arcot <[email protected]>
yxieca
yxieca previously approved these changes Jan 27, 2022
Also, use LDFLAGS when linking dhcp6relay. These two changes make sure
the flags set in environment variables (by dpkg-buildflags) are honored.

Also, explicitly enable all hardening flags in dpkg-buildflags for
dhcp6relay and dhcpmon. The change from the default set of flags is that
during linking, immediate binding of symbols is done instead of lazy
binding.

Signed-off-by: Saikrishna Arcot <[email protected]>
Copy link
Contributor

@yxieca yxieca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update PR title/comments accordingly.

@qiluo-msft
Copy link
Collaborator

This commit could not be cleanly cherry-picked to 202012. Please submit another PR.

@saiarcot895 saiarcot895 deleted the dhcp-dbgsym branch February 4, 2022 16:50
yxieca pushed a commit to yxieca/sonic-buildimage that referenced this pull request Feb 10, 2022
…#9862)

Enable dbgsym package for dhcpmon.

Allow CFLAGS and LDFLAGS from environment variables to be used
in the dhcp6relay build. This makes sure that the -O2 flag from
dpkg-buildflags gets used.

Finally, enable all hardening flags in dpkg-buildflags for
dhcp6relay and dhcpmon. The change from the default set of flags is that
during linking, immediate binding of symbols is done instead of lazy
binding.

Signed-off-by: Saikrishna Arcot <[email protected]>
yxieca pushed a commit to yxieca/sonic-buildimage that referenced this pull request Feb 10, 2022
…#9862)

Enable dbgsym package for dhcpmon.

Allow CFLAGS and LDFLAGS from environment variables to be used
in the dhcp6relay build. This makes sure that the -O2 flag from
dpkg-buildflags gets used.

Finally, enable all hardening flags in dpkg-buildflags for
dhcp6relay and dhcpmon. The change from the default set of flags is that
during linking, immediate binding of symbols is done instead of lazy
binding.

Signed-off-by: Saikrishna Arcot <[email protected]>
yxieca added a commit that referenced this pull request Feb 11, 2022
…9862) (#9960)

Enable dbgsym package for dhcpmon.

Allow CFLAGS and LDFLAGS from environment variables to be used
in the dhcp6relay build. This makes sure that the -O2 flag from
dpkg-buildflags gets used.

Finally, enable all hardening flags in dpkg-buildflags for
dhcp6relay and dhcpmon. The change from the default set of flags is that
during linking, immediate binding of symbols is done instead of lazy
binding.

Signed-off-by: Saikrishna Arcot <[email protected]>

Co-authored-by: Saikrishna Arcot <[email protected]>
yxieca added a commit that referenced this pull request Feb 11, 2022
…9959)

* dhcp6relay: Save the dbgsym package into the target folder (#9013)

This makes it possible to install the debug symbols if needed. Also install
the package into the debug version of sonic-dhcp-relay container.

Signed-off-by: Saikrishna Arcot <[email protected]>

* Package debugging and hardening for dhcpmon and dhcp6relay (#9862)

Enable dbgsym package for dhcpmon.

Allow CFLAGS and LDFLAGS from environment variables to be used
in the dhcp6relay build. This makes sure that the -O2 flag from
dpkg-buildflags gets used.

Finally, enable all hardening flags in dpkg-buildflags for
dhcp6relay and dhcpmon. The change from the default set of flags is that
during linking, immediate binding of symbols is done instead of lazy
binding.

Signed-off-by: Saikrishna Arcot <[email protected]>

* [201811][dhcp] update debian build rules

Signed-off-by: Ying Xie <[email protected]>

Co-authored-by: Saikrishna Arcot <[email protected]>
@kellyyeh kellyyeh added the Request for 202111 Branch For PRs being requested for 202111 branch label Feb 16, 2022
@judyjoseph
Copy link
Contributor

@saiarcot895 Please create a separate PR for 202111 branch as there are conflicts

@judyjoseph judyjoseph removed the Request for 202111 Branch For PRs being requested for 202111 branch label Feb 22, 2022
saiarcot895 added a commit to saiarcot895/sonic-buildimage that referenced this pull request Feb 22, 2022
…#9862)

Enable dbgsym package for dhcpmon.

Allow CFLAGS and LDFLAGS from environment variables to be used
in the dhcp6relay build. This makes sure that the -O2 flag from
dpkg-buildflags gets used.

Finally, enable all hardening flags in dpkg-buildflags for
dhcp6relay and dhcpmon. The change from the default set of flags is that
during linking, immediate binding of symbols is done instead of lazy
binding.

Signed-off-by: Saikrishna Arcot <[email protected]>
saiarcot895 added a commit that referenced this pull request Feb 25, 2022
…10063)

Enable dbgsym package for dhcpmon.

Allow CFLAGS and LDFLAGS from environment variables to be used
in the dhcp6relay build. This makes sure that the -O2 flag from
dpkg-buildflags gets used.

Finally, enable all hardening flags in dpkg-buildflags for
dhcp6relay and dhcpmon. The change from the default set of flags is that
during linking, immediate binding of symbols is done instead of lazy
binding.

Signed-off-by: Saikrishna Arcot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants